migratevdisk
Use the migratevdisk command to migrate an entire volume from one storage pool to another storage pool.
Syntax
>>- migratevdisk -- -- -mdiskgrp --+- mdisk_group_id ---+-- ----> '- mdisk_group_name -' >--+---------------------------------+-- --+--------------+-----> '- -threads -- number_of_threads -' '- -copy-- id -' >-- -- -vdisk --+- vdisk_id ---+------------------------------->< '- vdisk_name -'
Parameters
- -mdiskgrp mdisk_group_id | mdisk_group_name
- (Required) Specifies the new storage pool ID or name.
- -threads number_of_threads
- (Optional) Specifies the number of threads to use during the migration of these extents. You can specify 1 - 4 threads. The default number of threads is 4.
- -copy id
- (Required if the specified volume has more than one copy) Specifies the volume copy to migrate.
- -vdisk vdisk_id | vdisk_name
- (Required) Specifies the volume ID or name to migrate in to a new storage pool.Note: The command cannot be used with image-mode volumes.
Description
The migratevdisk command migrates the specified volume into a new storage pool; all the extents that make up the volume are migrated onto free extents in the new storage pool.
- Child pool to its parent pool
- Parent pool to one of its child pools
- Between the child pools in the same parent pool
- Between two parent pools
You can issue the 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 storage pool for the duration of the command. To avoid this problem, do not issue new commands that use extents until the volume migration is completed.
The migratevdisk command fails if the target volume or source volume is offline. Correct the offline condition before attempting to migrate the volume.
- This command cannot be used on a volume owned by a filesystem.
- This command cannot be used if the source MDisk is an SAS MDisk (which works in image mode only).
An invocation example
migratevdisk -vdisk 4 -mdiskgrp Group0 -threads 2
The resulting output:
No feedback