Replicating volume using global mirror

From Notes_Wiki

Home > Storage server > IBM Storwize V5000 Gen2 storage server > Replicating volume using global mirror

Very detailed steps for replicating volume using global mirror over iSCSI when partnership is already present are mentioned below. Note that among two storages one is called sandr (for DR site) and other is called sanpr (for Primary site) in below steps.

Create volume on sandr

  1. Open sandr web management console and login using superuser.
  2. Go to Volumes -> Volumes
  3. Choose "Create Volume" option from top and click "Custom" under Advanced
  4. Enter exactly same capacity as given for volume on sanpr
  5. Enter desired volume name. It is recommended to give names which indicate relationship between pr and dr volumes.
  6. Click on "Volume Location"
  7. Select appropriate Pool where volume should be created
  8. Go to Summary and verify all the details


Create remote copy relationship between two volumes on primary

  1. Open sanpr web management console and login using superuser.
  2. Go to "Copy services" -> "Remote Copy"
  3. Click on "Create consistency Group"
  4. Enter desired consistency group name
  5. For "Where are the auxillary volumes located" choose "On another system" and click next. This is for one way copy from sanpr to sandr.
  6. Select "Yes, add relationships to this group" and click next
  7. Select "Global Mirror" and click next
  8. On "Create Consistency Group" click next and do not worry about "No items found." message shown.
  9. On "Master" dropdown select appropriate volume created earlier.
  10. On "Auxillary" dropdown select appropriate volume created earlier. It will only show volumes of same size on Auxillary. Non qualified (Different sizes) volumes will be hidden automatically.
  11. Click "Add"
  12. Click next
  13. Click "Yes, the volumes are already synchronized". ***DO THIS ONLY FOR NEW VOLUMES WHICH ARE FORMATTED JUST NOW AND HAVE NEVER BEEN USED. DO NOT DO THIS WHEN SELECTED VOLUMES ON PRIMARY AND DR SIDE DIFFER"***.
  14. Click "Yes, start copying now" and click next.
  15. In case at step "13" you have choosen "No, the volumes are not synced" then wait for sync to finish before proceeding further.


Mounting primary (sanpr) volume on primary side host with multipath over iSCSI

  1. "cat /etc/iscsi/initiatorname.iscsi" to get primary side host iqn number
  2. Open sanpr web management console and login using superuser.
  3. Go to "Hosts" -> "Hosts"
  4. Select "Add Host"
  5. Enter desired name
  6. Select "iSCSI" as host connection
  7. For "iSCSI port" copy the iqn number seen in step 1
  8. Leave other settings as it is and click "Add". Example IQN number is iqn.1994-05.com.redhat:63f1504c1272
  9. Right click on created host and choose "Modify Voume Mappings" option
  10. Click on "Add Volume Mappings"
  11. Click on appropriate volume created in previous steps on sanpr.
  12. Leave "System Assign" selected and click next
  13. On next screen click "Map Volumes"
  14. Click "Close" on "Modify Mappings" popup window
  15. On the host on primary side login into any of the iSCSI IPs of first controller (node1 on primary) using:
    iscsiadm -m discovery -t st -p <<iscsi-ip> -l
    Also do the same for second controller (node2 on primary)
  16. Check whether multipath is discovered and setup automatically or not using "multipath -ll"
  17. If "mulitpath -ll" is not showing then do "fdisk -l" to see whether multiple hard-disk (6) are visible or not. If hard-disk are not visible check iqn number and mapping at storage end (Steps 1-14). After correcting iqn number or mapping rescan using:
    echo "- - -" > /sys/class/scsi_host/host0/scan
    command. Or logout using "iscsiadm -m session -r <session-no> -u" from all sessions. Then "service iscsid stop". Then "service iscsid start" followed by login
  18. Now "multipath -ll" must show all the disks and paths.
  19. Do "chkconfig multipathd on" and "chkconfig iscsid on" if not done already. For CentOS 7.x use "systemctl enable multipathd" and "systemctl start multipathd"
  20. yum -y install parted
  21. We can partition the device (Assuming <2TB using fdisk msdos-partition-table, use parted if it is >2TB gpt-partition-table). After creating partition check for partition related device names under /dev/mapper such as /dev/mapper/mpathap1, etc. If device names are not visible do "partprobe /dev/mapper/mpatha"
  22. Create filesystem on the discovered/created partitions
  23. As required mount the partition using /etc/fstab so that it is remounted automatically on reboot. Use blkid based UUID and not device names as device names might change with reboots.
  24. Use the filesystem as required.


In case of emergency or for general verification, steps for using remote copy of sandr on a dr machine

  1. Open sandr web management console and login using superuser.
  2. Go to "Copy service" -> "Flash copy"
  3. Choose target volume where sanpr volume is being copied using remote copy. Right click and choose "Advanced flash copy". Based on the requirement choose between "Create new target volume" and "Use existing target volume"
  4. In create flash-copy mapping choose "Clone". Click on Advancted Settings and select maximum speed for both "Background Copy" (2Gbps) and Cleaning rate (2Gbps). Click next.
  5. In "Create FlashCopy Mapping" select "No, do not add the mappings to a consistency group" option and click next
  6. In next screen choose "create a generic volume" option
  7. Choose appropriate pool based on requirement whereever the flash copy needs to be stored. Click finish.
  8. Use the plus(+) sign in front of original volume to get list of flash-copy mapping. Right click the mapping and choose "Start" to start copying. Note that mapping will delete automatically after copy is finished.
  9. Use the plus (+) sign in front of original volume to check status of flash copy (progress bar). Once the flash copy is finished we can use above steps (Mounting primary (sanpr) volume on primary side host with multipath over iSCSI) to mount the volume created by flash copy on a desired host on dr site.



Home > Storage server > IBM Storwize V5000 Gen2 storage server > Replicating volume using global mirror