VERITAS Volume Manager 3.1 Migration Guide

Command Differences
Comparison of LVM and VxVM Tasks
Chapter 370
LVM Reduce a logical volume. lvreduce -L
to_size
/dev/
vol_grp
/
lvol_name
-L indicates the number of megabytes.
VxVM Reduce a volumeby orto agiven
length.
vxresize -g
disk_group
-F vxfs
vol_name to_length
vxassist -b shrinkby
vol_name
length
vxassist -b shrinkto
vol_name
newlength
Shrink the file system before reducing
the volume.
LVM Import and activate a volume
group.
vgimport -v /dev/
vol_grp
\
/dev/dsk/
disk_name
vgchange -a y /dev/
vol_grp
VxVM Import a disk group to make the
specified disk group accessible
on the local machine.
vxdg -tfC -n
newname
import
disk_group
Option 8 in the vxdiskadm menu
performs this task.
LVM Export and deactivate an LVM
volume group, and its associated
logical volumes.
vgchange -a n
vol_group
vgexport /dev/
vol_group
VxVM Deport a disk group to disable
access to the specified disk
group. A disk group cannot be
deported if any volumes in the
disk group are currently open.
vxdg deport
disk_group
Option 9 in the vxdiskadm menu
performs this task.
LVM Back up volume group
configuration information.
vgcfgbackup -f
/
pathname
/
filename vol_grp
Table 3-2LVM and VxVM Task Comparison
Task
Type
Description Example