VERITAS Volume Manager 3.5 Migration Guide (September 2004)
Chapter 3
Command Differences
Comparison of LVM and VxVM Tasks
45
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
VxVM Back up volume group configuration
information.
dgcfgbackup -f /
pathname
/
filename vol_grp
LVM Restore volume group configuration to a
particular physical volume.
vgrestore -n /dev/
vol_grp
/dev/rdsk/
disk_name
VxVM Restore volume group configuration to a
particular physical volume.
dgcfgrestore -n /dev/
vol_grp
/dev/rdsk/
disk_name
LVM Increase or decrease secondary swap
space.
Enlarge an existing swap logical volume,
or add a new swap logical volume.
lvextend—to increase swap space
lvreduce—to decrease swap space
VxVM Add a new swap volume (HP-UX 11i
Version 1.5 only).
vxassist make
swapvol2 size
(HP-UX 11i
Version 1.5 only)
LVM Remove a volume group.
This destroys a volume group by removing
its last disk and removing it from
/etc/lvmtab.
vgremove /dev/
vol_grp
This is preceded by lvremove and vgreduce down
to the last disk.
VxVM Destroy a disk group. vxdg deport
disk_group
vxdg init
disk_group
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
Table 3-2 LVM and VxVM Task Comparison (Continued)
Task
Type
Description Example