Migrating data from Lenovo V series family systems

You can use an iSCSI attachment to migrate data from a Lenovo V series family system to a Lenovo Storage V series system.

  1. Ensure that the Lenovo Storage V series system is running a level of software that can support iSCSI migration (minimum version 7.7.0).
    Lenovo Storage V series supports iSCSI connections to migrate data from the following Lenovo V series family systems:
    • IBM Storwize® V3700 for Lenovo
    • Lenovo Storage V series and Lenovo Storage V series
    • IBM Storwize® V7000 for Lenovo, Storwize® V7000 Gen2, and Storwize V7000 Gen2+

    For more details about configuring iSCSI support for Lenovo V series family systems, see Configuring Lenovo V series family storage systems.

  2. Verify that Ethernet ports are available and supported on each system.
    • You can use any available Ethernet port to establish iSCSI connectivity between the Lenovo Storage V series system and the backend storage controller.
      Note: If you are using onboard Ethernet ports on a Lenovo Storage V3700 V2 or Lenovo Storage V3700 V2 XP system, ensure that onboard Ethernet port 2 on the system is not still configured to be used as the technician port.
    • To avoid performance bottlenecks, the iSCSI initiator and target systems must use Ethernet ports at the same speed. Do not use a combination of Ethernet links that run at different speeds.
  3. Ensure that you have the appropriate number of Ethernet cables and switches to connect to the Ethernet ports on each system.
  4. Ensure that the Ethernet ports on each system are connected to the appropriate Ethernet switches. For full redundancy and increased throughput, use two or more Ethernet switches. Similarly-numbered Ethernet ports on each node of each system must be connected to the same switch. They must also be configured on the same subnet or VLAN.

    For example, Figure 1 shows iSCSI connections between a Lenovo Storage V5030 system (iSCSI initiator) and a IBM Storwize® V3700 for Lenovo system (iSCSI target).

    Each system consists of two nodes and a 4-port 10 Gbps Ethernet card is installed in each node. On each node, Ethernet port 1 on each card is connected to Switch 1. Ethernet port 2 on each node is connected to Switch 2.

    Figure 1. Example of an iSCSI connection between two systems
    Example of iSCSI connections that use two Ethernet switches

Configure the cabling and systems

  1. Connect the Ethernet cables from the ports on the Lenovo Storage V series iSCSI initiator system to the appropriate Ethernet switches. Use any available Ethernet port.
  2. Connect the Ethernet cables from the ports on the Lenovo V series family iSCSI target system to the appropriate Ethernet switches. Use any available Ethernet port.
  3. Stop all host I/O operations.
  4. On the Lenovo V series family system, unmap the logical drives that contain the data to be migrated to the Lenovo Storage V series system.
  5. Verify that the Lenovo Storage V series system is configured as a replication layer. To do so, enter the following command.
    svcinfo lssystem
    1. If the Lenovo Storage V series system is not configured correctly, enter the following command.
      svctask chsystem -layer replication
  6. Verify that the Lenovo V series family system is configured as a storage layer system. To do so, enter the following command.
    svcinfo lssystem
    1. If the Lenovo V series family system is not configured correctly, enter the following command:
      svctask chsystem -layer storage

Establish the iSCSI connection

  1. On the Lenovo Storage V series system, enter the following command to configure one or more ports that can be used for iSCSI attachment to a backend storage system.
    svctask cfgportip –nodenodename-storage yesport_id
    Note: If the ports are configured with IPv6 addresses, specify the -storage-6 parameter on the command.
  2. On the Lenovo V series family system, define a new host by using the iSCSI information that was collected from the iSCSI initiator Lenovo Storage V series system.
    svctask mkhost -iscsinameiscsi_name_list
  3. On the Lenovo V series family system, map the logical drives to the newly created host as a logical unit.
    You can use the management GUI to select and map several drives at one time. You can also enter the following command to map each individual drive.
    svctask mkvdiskhostmap -hosthostnamediskname
    hostname
    Name or ID of the host that you created in step 8.
    diskname
    Name or ID of the volume that you want to migrate to the Lenovo Storage V series system.
  4. On the Lenovo Storage V series system, enter the following command to discover the available ports on the iSCSI target system. The source_port_id is the Ethernet port on the Lenovo Storage V series iSCSI initiator system through which the discovery is made. The ipv_addr is the IP address of the port on the iSCSI target system.
    svctask detectiscsistorageportcandidate –srcportidsource_port_id-targetipipv_addr
    Notes:
    • If the ports on the iSCSI target system are configured with IPv6 addresses, specify the -targetip6 parameter.
    • If the iSCSI target system requires authentication, specify the -username and -chapsecret parameters on the discovery request.
  5. Display information about the iSCSI ports that were discovered on the Lenovo Storage V series iSCSI initiator system. This information includes the unique iSCSI qualified name (IQN) and Internet Protocol (IP) combination.
    svcinfo lsiscsistorageportcandidate
  6. Select one or more port candidates to configure. You can specify up to 64 candidate IDs, each separated by a colon. The candidate_id is the value in the ID column of the output displayed by the lsiscsistorageportcandidate command.
    svctask addiscsistorageportcandidate_id

Migrate the data

  1. On the Lenovo Storage V series system, complete the following steps to manage the logical unit.
    1. To create one empty storage pool, enter the following command. The extent_size is the size of the volume that you are migrating from the iSCSI target system.
      svctask mkmdiskgrp -extextent_size
      The logical unit that is mapped from the Lenovo V series family system appears as an unmanaged-mode MDisk to the Lenovo Storage V series system.
    2. To list the unmanaged-mode MDisks, enter the following command.
      svcinfo lsmdisk
    3. If the new unmanaged-mode MDisk is not listed, perform a fabric-level discovery. Enter the following to command to scan the network for the unmanaged-mode MDisks.
      svctask detectmdisk
    4. To convert the unmanaged-mode MDisk to an image mode volume disk, enter the following command.
      svctask mkvdisk -vtype image -iogrpiogrp_name-mdiskgrpmdiskgrp_name-mdiskmdisk_name-mirrorwritepriority redundancy
      iogrp_name
      Name or ID of the I/O group.
      mdiskgrp_name
      Name or ID of the storage pool that you created in step 13.a.
      mdisk_name
      Name or ID of the unmanaged-mode MDisk.
    5. To list the hosts that were previously using the data that the MDisk now contains, enter the following command.
      svcinfo lssasportcandidate
    6. If the host does not exist on the Lenovo Storage V series system, you can create a new iSCSI or Fibre Channel (or Fibre Channel over Ethernet) host.
      • To create a new iSCSI host, enter the following command.
        svctask mkhost -iscsinamehost_iqn
      • To create a new FC or FCoE host, enter the following command.
        svctask mkhost -fcwwpnhost_wwpn
    7. Enter the following command to map the new volume to the host. When the image mode volume is mapped, it becomes accessible for I/O operations to the host.
      svctask mkvdiskhostmap -hosthostname diskname
      hostname
      Name or ID of the host you created in step 13.f.
      diskname
      Name or ID of the virtual disk you created in step 13.d.
  2. Enter the following command to display information about the storage pools that are visible to the Lenovo Storage V series system.
    svcinfo lsmdiskgrp
    1. If no storage pools are available on the Lenovo Storage V series system to migrate the storage pool that you created in step 13.a, enter the following command to create a new storage pool. The extent_size is the size of the volume that you are migrating from the iSCSI target system.
      svctask mkmdiskgrp -extextent_size-namepool_name
  3. Migrate the data from the Lenovo V series family system to the storage pool on Lenovo Storage V series system. For more information about migrating data to volumes, see Managing volumes.
    • To migrate data from the entire volume, enter the following command.
      svctask migratevdisk -mdiskgrpmdisk_group-vdiskvdisk_id
    • To migrate data from selected extents, enter the following command.
      svctask migrateexts -sourcemdisk_name-extsnum_extents-targetnew_mdisk-threads 4 -vdiskvdisk_id
  4. To monitor the progress of the data migration, enter the following command.
    svcinfo lsmigrate

The data on the logical drives from the Lenovo V series family system is migrated to the Lenovo Storage V series system. Host I/O operations are also switched to the Lenovo Storage V series system.

  1. On the Lenovo Storage V series system, enter the following command to display the configured ports on the iSCSI target system.
    svcinfo lsiscsistorageport
  2. Delete the configured iSCSI target ports. Specify the row number from the lsiscsistorageport output to identify the sessions to delete.
    svctask rmiscsistorageportlsiscsistorageport_row_id
  3. Disconnect the Ethernet cables that connect the Lenovo Storage V series system and the Lenovo V series family system to the Ethernet switches.