How to
convert a VG from Legacy to Agile/persistent DSF
This command is only available as from HP-UX11v3.
A shell script /usr/contrib/bin/vgdsf, can be used to perform the DSF
migration of a given volume group. vgdsf uses existing LVM commands -
vgdisplay, pvdisplay, vgextend and vgreduce, in addition to the ioscan command
to perform the DSF migration. It automatically updates both the /etc/lvmtab and
/etc/lvmpvg files to reflect the newer configuration and no additional user
action is required. The use of the vgdsf script simplifies the DSF migration
operation and the volume group can remain active and in use.
# command
to use: vgdsf -c /dev/<vgname>
Summary of steps:
1. strings /etc/lvmtab (The Volume Group configuration is storied in this
binary file)
2. cp -p /etc/lvmtab /etc/lvmtab.save (Make a backup of this lvmtab file)
3. vgdsf -c /dev/<vgname> (Convert the VG from legacy to agile
addressing)
4. strings /etc/lvmtab (Verify
that the lvmtab file shows the new agile addressing)
e.g. of vgdsf -c /dev/<vgname>
Example:
hpuxhost1:/root # strings /etc/lvmtab
/dev/vg00
/dev/disk/disk2_p2
/dev/disk/disk3_p2
/dev/vg32
/dev/dsk/c25t0d5
/dev/dsk/c19t0d5
/dev/vg33
/dev/dsk/c25t0d6
/dev/dsk/c19t0d6
/dev/vg34
/dev/dsk/c25t0d1
/dev/dsk/c19t0d1
/dev/vg35
/dev/dsk/c25t0d3
/dev/dsk/c19t0d3
hpuxhost1:/etc # vgdsf -c /dev/vg35
Converting legacy DSFs to persistent DSFs in VG
/dev/vg35
Persistent DSF /dev/disk/disk37 added to VG
/dev/vg35
Legacy DSF /dev/dsk/c19t0d3 removed from VG
/dev/vg35
Legacy DSF /dev/dsk/c25t0d3 removed from VG
/dev/vg35
hpuxhost1:/etc # strings /etc/lvmtab
/dev/vg00
/dev/disk/disk2_p2
/dev/disk/disk3_p2
/dev/vg32
/dev/dsk/c25t0d5
/dev/dsk/c19t0d5
/dev/vg33
/dev/dsk/c25t0d6
/dev/dsk/c19t0d6
/dev/vg34
/dev/dsk/c25t0d1
/dev/dsk/c19t0d1
/dev/vg35
/dev/disk/disk37
No comments:
Post a Comment