The migratetoimage command migrates data from a VDisk (image mode or managed mode) onto a new image mode VDisk copy. The target disk does not have to be in the same MDisk group as the source disk.
>>- svctask -- -- migratetoimage -- --+--------------+-- -------> '- -copy-- id -' >-- -vdisk --+- source_vdisk_id ---+-- -------------------------> '- source_vdisk_name -' >--+---------------------------------+-- -----------------------> '- -threads -- number_of_threads -' >-- -mdisk --+- unmanaged_target_mdisk_id ---+-- ---------------> '- unmanaged_target_mdisk_name -' >-- -mdiskgrp --+- managed_disk_group_id ---+------------------>< '- managed_disk_group_name -'
The migratetoimage command migrates the data of the user-specified source virtual disk onto the managed disk that is specified as the target. At completion of the command, the VDisk is classified as an image mode disk.
The managed disk that is specified as the target must be in an unmanaged state at the time that the command is run. Running this command results in the inclusion of the MDisk into the user-specified MDisk group.
The migratetoimage command fails if the target or source VDisk is offline. Correct the offline condition before attempting to migrate the VDisk.
An invocation example
svctask migratetoimage -vdisk vdisk1 -mdisk mdisk5 -mdiskgrp mdgrp2
The resulting output
No feedback