Skip to main content
ONTAP 7-Mode Transition

Mounting logical volumes on Linux hosts after transition

Contributors

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.

    1. 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

        Note You must run this command for each of your storage virtual machines (SVMs).
    2. 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.

    3. Discover new ONTAP LUNs:

      rescan-scsi-bus.sh

    4. Configure DMMP devices for ONTAP LUNs:

      multipath

    5. Verify that ONTAP LUNs are discovered:

      sanlun lun show

    6. Determine the new ONTAP LUN device handle ID:

      multipath -ll Device_handle_name

    7. Import the volume group:

      vgimport vg_name

    8. Verify the volume group status:

      vgdisplay

    9. Enable logical volumes:

      vgchange -ay vg_name

    10. Verify the logical volume status:

      lvdisplay

      The LV status should be displayed as “available”.

    11. 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 the mount -a command to mount the logical volumes.

    12. Verify the mount points:

      mount