The migratevdisk command enables you to migrate an entire virtual disk from one managed disk group to another managed disk group.
>>- svctask -- -- migratevdisk -- ------------------------------> >-- -mdiskgrp --+- mdisk_group_id ---+-- -----------------------> '- mdisk_group_name -' >--+---------------------------------+-- --+--------------+-----> '- -threads -- number_of_threads -' '- -copy-- id -' >-- -- -vdisk --+- vdisk_id ---+------------------------------->< '- vdisk_name -'
The migratevdisk command migrates the specified virtual disk into a new managed disk group; all the extents that make up the virtual disk are migrated onto free extents in the new managed disk group.
You can issue the svcinfo lsmigrate command to view the progress of the migration.
The process can be prioritized by specifying the number of threads to use during the migration. Using only one thread puts the least background load on the system.
The migratevdisk command fails if there are insufficient free extents on the targeted managed disk group for the duration of the command. To avoid this problem, do not issue new commands that use extents until the VDisk migration is completed.
The migratevdisk command fails if the target VDisk or source VDisk is offline. Correct the offline condition before attempting to migrate the VDisk.
An invocation example
svctask migratevdisk -vdisk 4 -mdiskgrp Group0 -threads 2
The resulting output
No feedback