Step 2: Migrate and Remove an existing storage location
To remove the storage location 'firstLoc' and migrate all the files to storage location 'secondLoc', use the following command.
emcli remove_swlib_storage_location
name=firstLoc
type=OmsAgent
migrate_to_loc=secondLoc
-migrate_to_type=OmsShared
Sample Output:
Job 'MigrateEntityFiles_1352113174929' has been successfully submitted for migrating the files.
The location 'firstLoc' will be removed on successful execution of the job. You can see the detail of the job execution by navigating to Enterprise, Jobs, and then, Activity Page.
Verifying the Status of Source OMS Agent File System Storage Location
Immediately after initiating the migrate and remove operation for storage location 'firstLoc', the location will be marked 'Inactive' to stop any new file uploads to this location. To verify the status of the location, use the following command.
emcli list_swlib_storage_locations
-type=OmsAgent
Sample Output:
firstLoc, /u01/swlib/, Inactive
Once the migrate job is complete, the 'firstLoc' location is not listed, as it is removed.