LVM Migration from Legacy to Agile Naming Model
A Typical Migration Operation
1. Identify volume groups for migration:
a) Activate deactivated volume groups:
In this example, volume group vg01 is not active. Activate it.
# vgdisplay -F | grep -E "vg_status=deactivated"
vg_name=/dev/vg01:vg_status=deactivated
# vgchange -a y vg01
Activated volume group
Volume group "vg01" has been successfully changed.
b) Identify volume groups configured with legacy DSFs. Only the ones configured with legacy DSFs must be
migrated.
In this example, volume group vg03 does not require a migration. Only the volume group vg01 needs to
be migrated as it is configured with legacy DSFs.
# vgdisplay -Fv /dev/vg03| grep -E "pv_name=/dev/dsk/c[0-9]+t[0-9]+d[0-9]"
# vgdisplay -Fv /dev/vg01 | grep -E "pv_name=/dev/dsk/c[0-9]+t[0-9]+d[0-9]"
pv_name=/dev/dsk/c8t0d1,/dev/dsk/c10t0d1,/dev/dsk/c19t0d1,/dev/dsk/c21t0d1:pv_status=avail
able:total_pe=1279:free_pe=1279:autoswitch=On
pv_name=/dev/dsk/c8t0d4:pv_status=available:total_pe=1279:free_pe=1279:autoswitch=On
pv_name=/dev/dsk/c8t0d5:pv_status=available:total_pe=1279:free_pe=1279:autoswitch=On
pv_name=/dev/dsk/c8t0d6:pv_status=available:total_pe=1279:free_pe=1279:autoswitch=On
c) Ensure all physical volumes configured in the volume group are online.
# ioscan –P health –C /dev/disk/disk59
Class I H/W Path health
===============================
disk 153 64000/0xfa00/0x40 online
2. Make a note of the volume group configuration:
For reference, make a complete note of volume group configuration. This information helps to revert the
volume group to its original configuration, if required. LVM display commands like vgdisplay, pvdisplay and
lvdisplay can be invoked in verbose mode to gather the required information. A backup of /etc/lvmtab and
/etc/lvmpvg files should also be taken using cp command.
# cp /etc/lvmtab /etc/lvmtab.backup
# cp /etc/lvmpvg /etc/lvmpvg.backup
3. Run
vgdsf
to migrate volume group vg01:
# /usr/contrib/bin/vgdsf -c /dev/vg01
Converting legacy DSFs to persistent DSFs in VG /dev/vg01
Persistent DSF /dev/disk/disk56 added to VG /dev/vg01
Persistent DSF /dev/disk/disk59 added to VG /dev/vg01
12