1820072 Members
2683 Online
109608 Solutions
New Discussion юеВ

Post Veritas commands

 
SOLVED
Go to solution
sysadm_1
Valued Contributor

Post Veritas commands

Hi,

Post usefull(Generally required) vx commands with syntax and description.
Points will follow as per ...

Shaji
6 REPLIES 6
Pete Randall
Outstanding Contributor

Re: Post Veritas commands

Shaji,

In this thread, I pointed out the extremely useful "Veritas Migration Guide" which has a whole chapter on command equivalents between LVM and VxVM tasks, Patrick provides the link to the Software Recovery Handbook section on VxVM, and SEP provides his notes from a VxVM class he took:

The thread:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x9a00f9c32d109545b634bb1db85d94ec,00.html

The link to Software Recovery Handbook:
http://www1.itrc.hp.com/service/iv/node.do?node=prod%2FWW_Start%2FN1%7C16%7C25

That should pretty well cover it.


Pete





Pete
Pete Randall
Outstanding Contributor
Berlene Herren
Honored Contributor

Re: Post Veritas commands

http://www.cuddletech.com/veritas/vxcheatsheet.txt

Berlene
http://www.mindspring.com/~bkherren/dobes/index.htm
sysadm_1
Valued Contributor

Re: Post Veritas commands

Hi,


Please mention simple commands instead of giving links.
Pete Randall
Outstanding Contributor
Solution

Re: Post Veritas commands

Shaji,

vxdiskadd device_name - Bring a disk under Volume Manager control.
vgcreate /dev/vol_grp - Create a disk group
vxdg init disk_group disk_name - Add a disk to an existing disk group

vxresize -g disk_group -F vxfs vol_name length
vxassist growto vol_name new_length - these three commands increase the volume by or to a given length

vxassist growby vol_name length_change /


vxresize -g disk_group -F vxfs vol_name \ to_length

vxassist -b shrinkby vol_name length - these three commands reduce a volume by or to a given length

vxassist -b shrinkto vol_name newlength /

vxdg -tfC -n newname import disk_group - Import a disk group

vxdg deport disk_group - Deport a disk group

dgcfgbackup -f /pathname/filename vol_grp
- Back up volume group configuration information

gcfgrestore -n /dev/vol_grp /dev/rdsk/disk_name - Restore volume group configuration to a particular physical volume.

vxdg deport disk_group - Destroy a disk group.

vxdg init disk_group - Destroy a disk group

vxdiskadd disk_name - Add one or more disks to the disk group

vxdg -g disk_group -k rmdisk disk_nam - Remove a disk from disk group

vxmirror -g disk_group -d yes|no disk_name [new_disk_name] - Mirroring a disk - HP-UX 11i Version 1.5 only.

vxassist make vol_name length - Create a concatenated volume

vxassist make vol_name length layout=mirror, stripe - Create a striped mirror volume

vxassist make vol_name length layout=raid5 - Create a RAID-5 volume

vxprint -vt - Display all volume information.

vxprint -ht vol_name - Display information about a specific volume.

vxdisk list/vxdg list - Display disk group information.

vxprint -g disk_group/vxdisk list disk_group - Display information about a specific disk group


vxinfo/vxprint - Display information about Volume Manager volumes

vxedit rm vol_name - Remove a volume.

vxdisk rm disk_group - Remove disks from a disk group.

vxdg rmdisk disk_name - Remove disks from a disk group.

vxdg -g group_name rmdisk disk_name - Remove disks from a disk group.

vxdg deport disk_group - Deport a disk group

vxassist make vol_namelength layout=mirrorvxmake plexplex_namesdisk_name - Create a mirrored volume/plex or add a mirror to an existing volume.

vxplex att vol_nameplex_name - Create a mirrored volume/plex or add a mirror to an existing volume.

vxplex -o rm dis plex_name - Remove mirrors or reduce the number of plexes/mirrors.

vxedit -rf rm vol_name - Remove a volume with the plexes associated with it.

vxassist mirror vol_name - Add mirrors to a volume or increase the number of plexes.

vxassist snapshot vol_name new_vol_name - Snapshot a volume and create a new volume.

vxplex mv orig_plex new_plex - Move a plex.

vxvol resync - Resynchronize operations for the given volumes.

vxrecover -s vol_name - Resynchronize operations for the named volumes, or for volumes residing on the named disks.

vxrecover -s vol_name - Start a volume.

vxvol start vol_name - Start a volume.

vxvol stop vol_name - Stop a volume.

vxedit set spare=on disk_name - Make a disk available as a hot spare.


There's a few more but I'm tired of cutting and pasting.


Pete






Pete
Alzhy
Honored Contributor

Re: Post Veritas commands

1. Well the commands I think are done away with, I am contibuting great sites:

www.vxideas.org
www.cuddletech.org

2. Very good folks at this maillist/forum:
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-vx

3. Of course you can always use the VEA (Veritas Enterprise Administrator) GUI and have it display the commands behind every point and click.

4. Finally, there is "vxdiskadm" -- your nice ASCII based menu driven interface to VxVM.


Thank you HP for bringing Veritas to HPUX!
Hakuna Matata.