CLI Guide

Table Of Contents
Examples
Example: perform a batch migration
1. Create a migration plan.
Use the batch-migrate create-plan command to create a plan to migrate the volumes on all the devices at cluster-1
to the storage at cluster-2:
VPlexcli:/> batch-migrate create-plan migrate.txt --sources /clusters/cluster-1/
devices/* --targets /clusters/cluster-2/devices/*
2. Use the batch-migrate check-plan command to check the plan:
VPlexcli:/> batch-migrate check-plan migrate.txt
If problems are found, correct the errors and re-run the command until the plan-check passes.
3. Use the batch-migrate start command to start the migration:
VPlexcli:/> batch-migrate start migrate.txt
4. Wait for the migration to finish:
Use the batch-migrate summary command to monitor the status of the migration:
VPlexcli:/> batch-migrate summary migrate.txt
Processed 10 migrations from batch migration BR0:
committed: 0
complete: 10
in-progress: 0
paused: 0
error: 0
cancelled: 0
no-record: 0
5. When all the migrations are complete, use the batch-migrate commit command to commit the migration:
VPlexcli:/> batch-migrate commit migrate.txt
The source volumes now reside on the target devices.
6. Use batch-migrate clean to clean the migration:
VPlexcli:/> batch-migrate clean --rename-targets --file migrate.txt
This dismantles the source devices down to their storage volumes and renames the target devices and volumes using the
source device names.
7. Use the batch-migrate remove command to remove the record of the migration:
VPlexcli:/> batch-migrate remove migrate.txt
Example: Pause/resume an in-progress batch migration
VPlexcli:/> batch-migrate pause migrate.txt
VPlexcli:/> batch-migrate resume migrate.txt
A batch-migration can be canceled at any-time, until the point it is committed.
Cancel and restart a batch migration:
VPlexcli:/> batch-migrate cancel migrate.txt
VPlexcli:/> batch-migrate remove migrate.txt
VPlexcli:/> batch-migrate start migrate.txt
Commands
45