Veritas Volume Manager 5.0 Migration Guide, HP-UX 11i v3, First Edition, May 2008

60 Command differences
Comparison of LVM and VxVM tasks
LVM Extend a volume group by adding
LVM disks to the volume group.
vgextend /dev/vol_grp/\ /dev/dsk/
disk_name
VxVM Add one or more disks to the disk
group.
vxdiskadd disk_name
Option 1 in the vxdiskadm main menu
performs this task.
LVM Reduce a volume group by reducing
the number of disks in a volume
group
vgreduce /dev/vol_grp /dev/dsk/
disk_name
VxVM Remove a disk from disk group. vxdg -g disk_group -k rmdisk
disk_name
LVM Mirroring a disk involves several
steps.
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
VxVM 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.
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.
LVM Mirroring an LVM root disk
involves several steps.
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
Table 3-2 LVM and VxVM task comparison
Task
type
Description Example
Example for a disk_group = veritasdg, medianame = disk01, vol_name -= veritasvol, plex name
= veritasvol-01, subdisk -= disk01-01, devicename = c0t0d0.