VERITAS Volume Manager 3.5 Migration Guide (August 2002)
Comparison of LVM and VxVM Tasks Final 24 July 2002
50 VERITAS Volume Manager Migration Guide
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
VxVM Mirroring the VxVM root disk. vxrootmir [-v] [-t tasktag]
disk_access_name | disk_media_name
Table 3. 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.