06.08.2015 Views

IBM XIV Storage System Copy Services and Migration

IBM XIV Storage System: Copy Services and Migration - Common ...

IBM XIV Storage System: Copy Services and Migration - Common ...

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

When an SVC volume is created we normally specify a size in GiB (binary GB). For instance,Example 8-48 creates a 10 GiB Vdisk in Mdisk group 1.Example 8-48 Create a transitional VDisksvctask mkvdisk -mdiskgrp 1 -iogrp 0 -name migrateme -size 10 -unit gbNow to make a matching <strong>XIV</strong> volume we can either make an <strong>XIV</strong> volume that is larger thanthe source VDisk or one that is exactly the same size. The easy solution is to create a largervolume. Because the <strong>XIV</strong> creates volumes in 16 GiB portions (that display in the GUI asrounded decimal 17 GB chunks), we could create a 17 GB LUN using the <strong>XIV</strong> <strong>and</strong> then mapit to the SVC (in this example the SVC host is defined by the <strong>XIV</strong> as svcstgdemo) <strong>and</strong> use thenext free LUN ID, which in Example 8-49 is LUN ID 12 (it is different every time).Example 8-49 <strong>XIV</strong> comm<strong>and</strong>s to create transitional volumesvol_create size=17 pool="SVC_MigratePool" vol="ImageMode"map_vol host="svcstgdemo" vol="ImageMode" lun="12"The drawback of using a larger volume size is that we eventually end up using extra space.So it is better to create a volume that is exactly the same size. To do this we must know thesize of the VDisk in bytes (by default the SVC shows the VDisk size in GiB, even though itsays GB). In Example 8-50 we first choose to display the size of the VDisk in GB.Example 8-50 Displaying a VDisk size in GB<strong>IBM</strong>_2145:SVCSTGDEMO:admin>svcinfo lsvdisk -filtervalue mdisk_grp_id=1id name status mdisk_grp_id mdisk_grp_name capacity6 migrateme online 1 MGR_MDSK_GRP 10.00GBExample 8-51 displays the size of the same VDisk in bytes.Example 8-51 Displaying a VDisk size in bytes<strong>IBM</strong>_2145:SVCSTGDEMO:admin>svcinfo lsvdisk -filtervalue mdisk_grp_id=1 -bytesid name status mdisk_grp_id mdisk_grp_name capacity6 migrateme online 1 MGR_MDSK_GRP 10737418240Now that we know the size of the source VDisk in bytes, we can divide this by 512 to get thesize in blocks (there are always 512 bytes in a st<strong>and</strong>ard SCSI block). 10,737,418,240 bytesdivided by 512 bytes per block is 20,971,520 blocks. This is the size that we use on the <strong>XIV</strong> tocreate our image mode transitional volume.Example 8-52 shows an XCLI comm<strong>and</strong> run on an <strong>XIV</strong> to create a volume using blocks.Example 8-52 Create an <strong>XIV</strong> volume using blocksvol_create size_blocks=20971520 pool="SVC_MigratePool" vol="ImageBlocks"268 <strong>IBM</strong> <strong>XIV</strong> <strong>Storage</strong> <strong>System</strong>: <strong>Copy</strong> <strong>Services</strong> <strong>and</strong> <strong>Migration</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!