VERITAS Volume Manager 3.5 Migration Guide (September 2004)

Chapter 3
Command Differences
Comparison of LVM and VxVM Tasks
46
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
LVM Create a logical volume in LVM volume
group.
lvcreate -L
vol_size
/dev/
vol_grp
VxVM Create a volume of one of these layout
types:
A concatenated volume
A striped mirror volume
A RAID-5 volume
vxassist make
vol_name length
vxassist make
vol_name length
layout=mirror, stripe
vxassist make
vol_name length
layout=raid5
LVM Display information about logical volumes lvdisplay /dev/
vol_grp
/
vol_name
VxVM Display all volume information.
Display information about a specific
volume.
vxprint -vt
vxprint -ht
vol_name
Table 3-2 LVM and VxVM Task Comparison (Continued)
Task
Type
Description Example