Veritas Storage Foundation 5.1 SP1 Advanced Features Administrator"s Guide (5900-1503, April 2011)
Table 27-3
LVM and VxVM task comparisons (continued)
ExampleDescriptionTask type
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
vxrootmir [-v] [-t tasktag]
disk_access_name | disk_media_name
Mirroring the VxVM root disk.VxVM
lvcreate -L vol_size /dev/vol_grpCreate a logical volume in LVM volume group.LVM
vxassist make vol_name length
vxassist make vol_name length
layout=mirror, stripe
vxassist make vol_name length
layout=raid5
Create a volume of one of these layout types:
A concatenated volume
A striped mirror volume
A RAID-5 volume
VxVM
lvdisplay /dev/vol_grp/lvol_nameDisplay information about logical volumes.LVM
443Offline data migration
Command differences