You
can use the command-line interface (CLI) to migrate data to
an image mode virtual disk (VDisk).
The svctask
migratetoimage CLI command allows you to migrate
the data from an existing VDisk onto a different managed disk (MDisk).
When
the
svctask migratetoimage CLI command is issued, it migrates
the data
of the user specified source VDisk onto the specified target MDisk.
When the
command completes, the VDisk is classified as an image mode VDisk.
Note: Migration
commands fail if the target or source VDisk is offline, or if there
is insufficient
quorum disk space to store the metadata. Correct the offline or quorum
disk
condition and reissue the command.
The MDisk
specified
as the target must be in an unmanaged state at the time the command
is run.
Issuing this command results in the inclusion of the MDisk into the
user specified
MDisk group.
Issue the following CLI command to migrate data
to an image
mode VDisk:
svctask migratetoimage -vdisk vdiskname/ID
-mdisk newmdiskname/ID -mdiskgrp newmdiskgrpname/ID
-threads 4
where
vdiskname/ID is the name
or ID of
the VDisk,
newmdiskname/ID is the name or ID of the new MDisk,
and
newmdiskgrpname/ID is
the name or ID of the new MDisk group.