LVM Migration from Legacy to Agile Naming Model

# vgdisplay -v -F vg01 | grep pv_name
pv_name=/dev/disk/disk5:pv_status=available:total_pe=243:free_pe=242:autoswitch=On
2. Find legacy DSFs corresponding to the persistent DSF:
# ioscan -m dsf /dev/disk/disk5
Persistent DSF Legacy DSF(s)
========================================
/dev/disk/disk5 /dev/dsk/c2t1d0
/dev/dsk/c3t1d0
3. Add legacy DSFs as alternate links to the persistent DSF:
# vgextend vg01 /dev/dsk/c2t1d0 /dev/dsk/c3t1d0
4. Remove the persistent DSF from the volume group:
# vgreduce vg01 /dev/disk/disk5
5. Disable native multi-pathing through the legacy DSFs:
scsimgr command can be run in any of the two ways, listed below:
Disable native multi-pathing for a specific LUN in a non-persistent way:
# scsimgr set_attr -D /dev/rdisk/disk5 -a leg_mpath_enable=false
Value of attribute leg_mpath_enable set successfully
Disable native multi-pathing globally for all LUNs in the system, in a non-persistent way:
# scsimgr set_attr -a leg_mpath_enable=false
Value of attribute leg_mpath_enable set successfully
6. Verify the resulting configuration:
The scsimgr get_attr command should show the current setting of leg_mpath_enable attribute value set to false,
for all associated persistent DSFs in the volume group.
# scsimgr get_attr -D /dev/rdisk/disk5 –a leg_mpath_enable
SCSI ATTRIBUTES FOR LUN : /dev/rdisk/disk164
name = leg_mpath_enable
current = false
default = false
saved =
Note:
If the scsimgr command is invoked with save_attr command instead of set_attr, the corresponding change
will be persistent (behavior preserved across reboots).
To fully understand the mass storage attributes and the consequences of changing them, refer to
scsimgr(1M) manual page.
LVM Online Disk Replacement (OLR)
6