>>- svctask -- -- migratevdisk -- ------------------------------> >-- -mdiskgrp --+- mdisk_group_id ---+-- -----------------------> '- mdisk_group_name -' >--+---------------------------------+-- -----------------------> '- -threads -- number_of_threads -' >-- -vdisk --+- vdisk_id ---+---------------------------------->< '- vdisk_name -'
This command migrates the specified virtual disk into a new managed disk group. That is, all the extents that make up the virtual disk are migrated onto free extents in the new managed disk group.
The command returns a success message while the transfer completes in the background. The command returns with the in_progress return code. The progress of the migration can be found by issuing the svcinfo lsmigrate command, which list the migrations in progress.
The process can be prioritized by specifying the number of threads to use while migrating. Using only one thread puts the least background load on the system.
The migratevdisk command will fail 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 migratevdisk is completed.
An invocation example
svctask migratevdisk -vdisk 4 -mdiskgrp Group0 -threads 2
The resulting output
No feedback