You can move data using the MOVE DATA command. Before moving
data, however, take steps to ensure that the move operation succeeds.
Before you begin
Before beginning this procedure:
- If you want to ensure that no new files are written to a volume
after you move data from it, change the volume's access mode to read-only. This
prevents the server from filling the volume with data again as soon
as data is moved. You might want to do this if you want to delete
the volume.
See Updating storage pool volumes for
information about updating the access mode of a storage pool volume.
- Ensure that sufficient space is available on volumes within the
specified destination storage pool by:
- Querying the source storage volume to determine how much space
is required on other volumes. See Monitoring the use of storage pool volumes for information
about requesting information about a storage volume.
- Querying the specified destination storage pool to ensure that
there is sufficient capacity to store the files that are being moved.
See Monitoring space available in a storage pool for
information about querying a storage pool.
If you need more storage space, define volumes or increase
the maximum number of scratch volumes in the specified destination
storage pool. See Defining storage pool volumes for preparing
volumes to be used for server storage.
- If you are moving files from a volume in a sequential storage
pool to another volume in the same storage pool, ensure that the mount
limit of the device class associated with the storage pool is greater
than one.
For information about the mount limit value for the device
class, see:
- If you are moving files from a tape volume to a tape storage pool,
ensure that the two tape drives that are required are available.
Procedure
To move data, issue the MOVE DATA command. For example, to move the files
that are stored in the
/dev/vol3 volume to any
available volume in the
STGTMP1 storage pool, enter:
move data /dev/vol3 stgpool=stgtmp1
For example, to
move the files that are stored in the
d:\storage\vol3 volume
to any available volume in the
STGTMP1 storage pool,
enter:
move data d:\storage\vol3 stgpool=stgtmp1
When you move data from a volume, the server starts
a background process and sends informational messages, such as:
ANR1140I Move Data process started for volume D:\STORAGE\VOL3
(process ID 32).
To run the MOVE DATA command
in the foreground on an administrative client, issue the command with
the WAIT=YES parameter.
Remember: - A volume might not be totally empty after a move data operation
completes. For example, the server might be unable to relocate one
or more files to another volume because of input/output errors on
the device or because errors were found in the file. You can delete
the volume with DISCARDDATA=YES to delete the volume and any remaining
files. The server then deletes the remaining files that had I/O or
other errors.
- In addition to moving data from volumes in storage pools that
have NATIVE or NONBLOCK data formats, you can also move data from
volumes in storage pools that have NDMP data formats (NETAPPDUMP,
CELERRADUMP, or NDMPDUMP). The target storage pool must have the same
data format as the source storage pool. If you are moving data out
of a storage pool for the purpose of upgrading to new tape technology,
the target primary storage pool must be associated with a library
that has the new device for the tape drives.
- If you run the MOVE DATA command
on an offsite volume that contains collocated data, it might be necessary
to issue the MOVE DATA command multiple times to
move all of the data out of the volume. Each MOVE DATA command
moves the data for a single collocation group.