Veritas Volume Manager 5.0.1 Migration Guide, HP-UX 11i v3, First Edition, November 2009

Table 3-2
LVM and VxVM task comparisons (continued)
ExampleDescriptionTask type
vgextend /dev/vol_grp/\
/dev/dsk/disk_name
Extend a volume group by adding LVM disks
to the volume group.
LVM
vxdiskadd disk_name
Option 1 in the vxdiskadm main menu
performs this task.
Add one or more disks to the disk group.VxVM
vgreduce /dev/vol_grp
/dev/dsk/disk_name
Reduce a volume group by reducing the number
of disks in a volume group
LVM
vxdg -g disk_group -k rmdisk
disk_name
Remove a disk from disk group.VxVM
1
pvcreate /dev/rdsk/second_disk
2
vgextend /dev/vol_grp \
/dev/dsk/second_disk
3
lvextend -m no_of_mirrors \
/dev/vol_grp/lvol_name \
/dev/dsk/second_disk
Mirroring a disk involves several steps.LVM
vxmirror -g disk_group -d yes|no \
disk_name [new_disk_name]
vxmirror -d yes disk_name
Option 6 in the vxdiskadm menu performs
this task.
Mirroring a disk
To mirror volumes on a disk or control default
mirroring and causes a disk to have its contents
mirrored to available space on another disk.
VxVM
1
pvcreate -B
/dev/rdsk/second_disk
2
mkboot -l /dev/dsk/second_disk
3
vgextend /dev/vol_grp \
/dev/dsk/second_disk
4
lvextend -m no_of_mirrors \
/dev/vol_grp/root_lvol \
/dev/dsk/second_disk
5
lvlnboot -r
/dev/vol_grp/lvol_name
Mirroring an LVM root disk involves several
steps.
LVM
65Command differences
Comparison of LVM and VxVM tasks