Embed
Email

Veritas Volume Manager Command Line Examples camelrichard_org

Document Sample

Shared by: Shrikumar Nair
Categories
Tags
Stats
views:
792
posted:
8/29/2009
language:
English
pages:
7


Home



camelrichard.org

l l l l l l l



camelblog contact home resume rss search sitemap



Home



Veritas Volume Manager Command Line Examples

Tags:

l



Veritas VM



Volume Manager CLI examples: ---------------------------



display disk listings: # vxdisk list



display volume manager object listings # vxprint -ht



display free space in a disk group # vxdg -g free



list all volume manager tasks currently running on the system # vxtask list



add a disk to Volume Manager (devicename = cXtXdX) (prompt driven) # vxdiskadd



designate/remove a disk as a hot-relocation spare # vxedit set spare=on # vxedit set spare=off



rename a disk # vxedit rename



reserve/unreserve a disk (space won't be allocated unless specifically mentioned in vxassist) # vxedit set reserve=on # vxedit set reserve=off



take a disk offline (first remove the disk from its disk group) (devicename=cXtXdXs2) #vxdisk offline



remove a disk (first, stop any applications associated with the volume, unmount the volume, stop the volume, if you need the data on the disk, move the volumes to another disk or back up volume)



--removing the disk from its disk group: # vxdg -g rmdisk



--remove the disk from volume manager control # vxdisk rm



(devicename=cXtXdXs2)



display multipath information # vxdisk list



create a disk group (see 'add a disk to volume manager - if the group does not exist, you will be prompted)



upgrade a disk group --list disk group version # vxdg list



--upgrade disk group to highest version currently running # vxdg upgrade



destroy a disk group # vxdg destroy



display disk group information # vxdg list # vxdg list



move a disk group (stop any applications associated with all volumes in the disk group, unmount and stop all volumes in the disk group: --deport (disable local access) the disk group to be moved on first system # vxdg deport



--import (enable local access) the disk group and its disks from the second system # vxdg import



--start all volumes in the disk group on the second system # vxrecover -g -sb or # vxvol -g startall



estimating maximum volume size (any_valid_type = raid5, stripe, mirror) # vxassist -g maxsize layout=



create a concatenated volume (length examples = 15g, 15m) # vxassist -g make



create a striped volume (length examples = 15g, 15m) # vxassist -g make layout=stripe \



create a raid5 volume (without logging) (length examples = 15g, 15m) # vxassist -g make layout=raid5,nolog \



create a raid5 volume (with logging) (length examples = 15g, 15m) # vxassist -g make layout=raid5,log \



create a mirrored volume (without DRL) (length examples = 15g, 15m) # vxassist -g make layout=mirror,nolog \



create a mirrored volume (with DRL) (length examples = 15g, 15m) # vxassist -g make layout=mirror,log \



mirror an existing volume # vxassist mirror



mirror all volumes within a disk group # vxmirror -g -a



mirror the root (boot) disk EEPROM variable "use-nvramrc?" must be set to true # vxrootmir -v



remove a mirror (use 'vxprint -g -ht' to get plexname)



# vxplex -o rm dis



add a log to an existing volume # vxassist addlog



remove a log from an existing volume # vxassist remove log



create a raid 0+1 volume (without DRL) # vxassist -g make layout=mirror-stripe,nolog \ nmirror=# nstripe=#



create a raid 1+0 volume (without DRL) # vxassist -g make layout=stripe-mirror,nolog \ nmirror=# nstripe=#



resize a volume # vxassist -g growto # vxassist -g growby # vxassist -g shrinkto # vxassist -g shrinkby



# vxassist -g shrinkby



estimate how much a volume can grow # vxassist -g maxgrow



remove a volume (stop all applications associated with the volume, unmount volume (remove /etc/vfstab entry)) --stop volume # vxvol stop -- remove volume (for raid 1+0, use 'rf-rm')



# vxedit -r rm or # vxassist remove volume



change the volume read policy # vxvol rdpol # vxvol rdpol prefer



change volume attributes # vxedit set =



resize a filesystem



(ufs cannot be shrunk, only grown)



# vxresize -g + # vxresize -g -



join subdisks



(must be in the order of offset on disks)



# vxsd join



» 

l l



Add new comment 30067 reads



create a striped volume (length examples = 15g, 15m) Submitted by Anonymous (not verified) on Wed, 07/16/2008 - 04:41. The syntax is incorrect for: create a striped volume (length examples = 15g, 15m) # vxassist -g make layout=stripe \



It should be something like this: # vxassist -g testdg make testdgvol1 285503488 layout=stripe alloc=disk1,disk2,disk3,disk4 This brings the credibility of the rest of this document into question; You have not specified which version of Veritas this applied » 

l



reply



Correct for older versions Submitted by admin on Wed, 07/16/2008 - 22:02. It's been a while since I've used VXVM, but I can assure you these examples are correct. I cut and pasted them as I ran them. I 4.0, and I believe these examples were run on 3.x. Although, I can't claim that these commands are correct for newer versions. The same syntax is used in these examples as well: http://www.adminschoice.com/docs/vxassist.htm http://www.cuddletech.com/veritas/layeredvols/x74.html What version does your example apply to? I'm all for keeping this info relevant and updated, so feel free to post more details ab Thanks. » 

l



reply



vxassist mirror ... Submitted by Afsin Toparlak (not verified) on Mon, 09/15/2008 - 17:27. do you have more examples about this? I want to add new disks into a group and mirror volumes from old to new disks. I want to be able later to remove old disks and so I want to realisize a better move from one SAN to a new one. Is it so possible? What do think about volume movement? Is it secure? thnx » 

l



reply



Lifesaver Submitted by Dave (not verified) on Thu, 11/06/2008 - 16:01. Just want to you know that I refer to this page all the time and it's the only way I can ever remember how to do all this stuff. Tha » 

l



reply



topics

l l l l l l l l l l l l l l l l l l l l



Apache Big Brother HTML Iplanet Java Tuning JBoss LDAP mySQL Postfix PostgreSQL Procmail Python Red Hat Ruby Solaris Spamassassin Tomcat UNIX Veritas VM Weblogic



Links

l l l l



Corey Brune Derek Crudgington Jason McMunn Mike Jordan



Contact the Camel





Related docs
Other docs by Shrikumar Nair
Secure Configuration_solaris__Hardening__
Views: 78  |  Downloads: 7
storage mogrator_unixadmin
Views: 40  |  Downloads: 2
VxVM_vxcrashkourse
Views: 27  |  Downloads: 2
vxvm_admin
Views: 312  |  Downloads: 15
Solaris_commands
Views: 353  |  Downloads: 84
Netbackup commands
Views: 555  |  Downloads: 14
Netbackup Tips for the System Administrator
Views: 71  |  Downloads: 11
Solaris_sol-smf
Views: 130  |  Downloads: 4
By registering with docstoc.com you agree to our
privacy policy

You are almost ready to download!

You are almost ready to download!