VERITAS Volume Manager 3.5 Migration Guide (August 2002)
Comparison of LVM and VxVM Tasks Final 24 July 2002
48 VERITAS Volume Manager Migration Guide
LVM Extend a logical volume or increase
space allocated to a logical volume.
lvextend -l 50 /dev/vol_grp/lvol_name
l—indicates the number of logical extents in
the logical volume
VxVM Increase the volume by or to a given
length.
vxresize -g disk_group -F vxfs
vol_name length
vxassist growto vol_name new_length
vxassist growby vol_name
length_change
Grow the file system after growing the
volumes.
LVM Reduce a logical volume. lvreduce -L to_size
/dev/vol_grp/lvol_name
-L indicates the number of megabytes.
VxVM Reduce a volume by or to a given
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.
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.