Mounting logical volumes on Linux hosts after transition
After the transition from ONTAP operating in 7-Mode to clustered Data ONTAP, your logical volumes are offline. You must mount those logical volumes for your LUNs to be accessible to your hosts.
If you are doing a copy-free transition (CFT), procedures for vol rehost must be complete. See the 7-Mode Transition Tool Copy-Free Transition Guide for details.
-
For copy-based transitions (CBTs), perform these steps after completing the Storage Cutover operation in the 7-Mode Transition Tool (7MTT).
-
For CFTs, perform these steps after the Import Data & Configuration operation in the 7MTT.
-
Generate the 7-Mode to clustered Data ONTAP LUN mapping file:
-
For copy-based transitions, run the following command from the Linux host where the 7MTT is installed:
transition cbt export lunmap -p project-name -o file_path
For example:
transition cbt export lunmap -p SanWorkLoad -o c:/Libraires/Documents/7-to-C-LUN-MAPPING.csv
-
For copy-free transitions, run the following command from the system where the 7MTT is installed:
transition cft export lunmap -p p_roject-name_ -s svm-name -o output-file
For example:
transition cft export lunmap -p SanWorkLoad -s svml -0 c:/Libraries/Documents/7-to-C-LUN-MAPPING-svml.csv
You must run this command for each of your storage virtual machines (SVMs).
-
-
Remove the SCSI devices created for 7-Mode LUNs:
-
To remove all of the SCSI devices:
rescan-scsi-bus.sh -r
-
To remove each SCSI device individually:
echo 1> /sys/block/SCSI_ID/delete
This command must be executed on all 7-Mode LUN SCSI devices. See the SCSI Device ID column on the SAN Host LUNs tab of the Inventory Assessment Workbook to identify the SCSI device IDs for the LUNs.
-
-
Discover new ONTAP LUNs:
rescan-scsi-bus.sh
-
Configure DMMP devices for ONTAP LUNs:
multipath
-
Verify that ONTAP LUNs are discovered:
sanlun lun show
-
Determine the new ONTAP LUN device handle ID:
multipath -ll Device_handle_name
-
Import the volume group:
vgimport vg_name
-
Verify the volume group status:
vgdisplay
-
Enable logical volumes:
vgchange -ay vg_name
-
Verify the logical volume status:
lvdisplay
The LV status should be displayed as “available”.
-
Mount the logical volumes from the ONTAP LUN to its respective mount point directory:
mount lv_namemount_point
If the mount points are defined in the
etc/fstab
file, you can use themount -a
command to mount the logical volumes. -
Verify the mount points:
mount
-