Veritas 4.1 Installation Guide (HP-UX 11i v3, February 2007)

Table 6-3 LVM and VxVM Task Comparison (continued)
ExampleDescriptionTask TypeExampleDescription
Task
Type
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.
Increase the
volume by or to
a given length.
VxVM
lvextend -l 50
/dev/vol_grp/lvol_name
l—indicates the number of
logical extents in the logical
volume
Extend a
logical
volume or
increase
space
allocated to
a logical
volume.
LVM
vxresize -g
<disk_group> -F vxfs
<vol_name>
<to_length>
vxassist -b shrinkby
<vol_name> length
vxassist -b shrinkto
<vol_name>
<new_length>
Shrink the file system
before reducing the
volume.
Reduce a
volume by or to
a given length.
VxVM
lvreduce -L to_size
/dev/vol_grp/<lvol_name>
-L indicates the number of
megabytes.
Reduce a
logical
volume.
LVM
vxdg -tfC -n
<newname> import
<disk_group>
Option 8 in the
vxdiskadm menu
performs this task.
Import a disk
group to make
the specified
disk group
accessible on
the local
machine.
VxVM
vgimport -v
/dev/vol_grp\
/dev/dsk/<disk_name>
vgchange -a y
/dev/<vol_grp>
Import and
activate a
volume
group.
LVM
vxdg deport
<disk_group>
Option 9 in the
vxdiskadm menu
performs this task.
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.
VxVM
vgchange -a n vol_group
vgexport
/dev/<vol_group>
Export and
deactivate
an LVM
volume
group, and
its
associated
logical
volumes.
LVM
dgcfgbackup -f
</pathname/filename
vol_grp>
Back up volume
group
configuration
information.
VxVM
vgcfgbackup -f
<directory>/<vol_grp>
Back up
volume
group
configuration
information.
LVM
dgcfgrestore -n
>/dev/vol_grp
/dev/rdsk/<disk_name>
Restore volume
group
configuration to
a particular
physical
volume.
VxVM
vgrestore -n
/dev/vol_grp
/dev/rdsk/disk_name
Restore
volume
group
configuration
to a
particular
physical
volume.
LVM
58 Migrating to VxVM 4.1 on HP-UX 11i v3