To prevent managed disks (MDisks) from having an uneven
distribution of data, ensure that the cluster has the same amount
of free space as the data that you want to migrate.
Perform the following steps to migrate data:
- Stop all I/O operations from the hosts. Unmap the logical
disks that contain the data from the hosts.
- Create one or more MDisk groups
with free capacity. Ensure that the MDisk groups have enough free
capacity to contain all of the migrating data and that they have balanced
data distribution.
- Create an empty MDisk group. This temporarily contains
the data that is imported.
- Perform the following steps to create an image mode virtual
disk (VDisk) from the first unmanaged-mode MDisk that contains the
data to be imported:
- Map one logical disk from the storage system
to the SAN Volume Controller ports.
- Issue the svctask detectmdisk command-line interface
(CLI) command on the cluster or use the SAN Volume Controller Console to
discover MDisks. The new unmanaged-mode MDisk that is found corresponds
with the logical disk mapped in the previous step.
- Create an image mode VDisk from this unmanaged-mode
MDisk and assign it to the empty MDisk group that you just created.
- Repeat steps 4.a through 4.c for all logical disks
as required.
- You can restart host applications by mapping the image
mode VDisks to the hosts and restarting the hosts. Alternatively,
you can wait until the migration is complete to map the VDisks to
the hosts.
- Perform the following steps to migrate the data to the
MDisk groups that you created in step 2:
- Select the first image mode VDisk to be migrated.
- Using the svctask migratevdisk or svctask
migratetoimage command, migrate this VDisk from its
current MDisk group to one of the MDisk groups that you created in
step 2.
This migrates all of the data from the logical disk into the new free
space.
- Run the svcinfo lsmigrate command
to verify that the migration has completed.
- Select the next image mode VDisk and repeat the previous
step after the migration completes.
- When all the VDisks have been migrated, the MDisk groups
that you created in step 2 contain
the data that was on the image mode VDisks. The data is striped across
the new groups and is virtualized.
- Destroy the temporary MDisk group that contained the original
image mode VDisks.
- Go back to the storage system and
reconfigure the old arrays and logical disks according to the guidelines.
- Add this storage back under the SAN Volume Controller and
use the old storage to create new VDisks.