IBM Tivoli Storage Manager, Version 7.1

MOVE MEDIA (Move sequential access storage pool media)

Use this command to manage overflow storage pools. The database tracks media that is moved by using this command.

This command applies to sequential access primary and copy storage pool volumes that are managed by an automated library (including an external library). The library does not have to be full. One or more sequential access storage pool volumes can be processed at the same time.

Use the DAYS parameter to identify eligible volumes to be moved. Use the OVERFLOW LOCATION parameter to record the storage location for the moved media.

This command generates a background process that you can view by using the QUERY PROCESS command. To cancel, issue the CANCEL PROCESS command.

To determine whether the command was successful, issue the QUERY ACTLOG command or use the server console.

The volumes that are moved by the MOVE DRMEDIA command for offsite recovery are not processed by the MOVE MEDIA command.

Privilege class

To issue this command, you must have one of the following privilege classes:
  • If the CMD parameter is NOT specified: operator or system privilege.
  • If the CMD parameter is specified and the REQSYSAUTHOUTFILE server option is set to NO: operator, unrestricted storage, or system privilege.
  • If the CMD parameter is specified and the REQSYSAUTHOUTFILE server option is set to YES (the default): system privilege.

Syntax

Read syntax diagramSkip visual syntax diagram
>>-MOVe MEDia--volume_name--STGpool--=--pool_name--------------->

   .-Days--=--0----.   
>--+---------------+-------------------------------------------->
   '-Days--=--days-'   

>--+--------------------------------------+--------------------->
   '-WHERESTate--=--+-MOUNTABLEInlib----+-'   
                    '-MOUNTABLENotinlib-'     

>--+---------------------------------+-------------------------->
   |                 .-,-----------. |   
   |                 V             | |   
   '-WHERESTATUs--=----+-FULl----+-+-'   
                       +-FILling-+       
                       '-EMPty---'       

>--+--------------------------+--+--------------------------+--->
   '-ACCess--=--+-READWrite-+-'  '-OVFLOcation--=--location-'   
                '-READOnly--'                                   

   .-REMove--=--Bulk-----.                          
>--+---------------------+--+-------------------+--------------->
   '-REMove--=--+-No---+-'  '-CMd--=--"command"-'   
                +-Yes--+                            
                '-Bulk-'                            

                                  .-APPend--=--No------.   
>--+---------------------------+--+--------------------+-------->
   '-CMDFilename--=--file_name-'  '-APPend--=--+-No--+-'   
                                               '-Yes-'     

   .-CHECKLabel--=--Yes-----.                          
>--+------------------------+--+-------------------+-----------><
   '-CHECKLabel--=--+-Yes-+-'  '-CAP--=----x,y,z---'   
                    '-No--'                            

Parameters

volume_name (Required)
Specifies the name of the sequential access primary or copy storage pool volume to be processed. You can use a wildcard character to specify the name. All matching volumes are considered for processing.
STGpool (Required)
Specifies the name of the sequential access primary or copy storage pool that is used to select the volumes for processing. You can use a wildcard character to specify the name. All matching storage pools are processed. If the storage pool specified is not managed by an automated library, no volumes are processed.
Days
Specifies the number of days that must elapse after the volume is written or read before the volume is eligible for processing by the command. This parameter is optional. You can specify a number from 0 to 9999. The default value is 0. The most recent of the volumes' last written date or last read date is used to calculate the number of days elapsed.
WHERESTate
Specifies the current state of the volumes to be processed. This parameter is used to restrict processing to the volumes that are in the specified state. This parameter is optional. The default value is MOUNTABLEINLIB.
Possible values are:
MOUNTABLEInlib
Specifies that storage pool volumes are to move from the MOUNTABLEINLIB state to the MOUNTABLENOTINLIB state. Volumes in the MOUNTABLEINLIB state contain valid data and are in the library.
MOUNTABLENotinlib
Specifies that storage pool volumes are to change from the MOUNTABLENOTINLIB state back to the MOUNTABLEINLIB state. Volumes in the MOUNTABLENOTINLIB state might contain valid data and are in the overflow location.
  • For empty scratch volumes, the MOVE MEDIA command deletes the volume records so that they can be used again.
  • For private volumes, the MOVE MEDIA command resets the volume location to blank, changes the volumes' state to CHECKIN, and changes the last update date to the current date.
  • For scratch volumes with data, the MOVE MEDIA command resets the volume location to blank, changes the volumes' state to CHECKIN, and changes the last update date to the current date.
Attention: Volumes in the CHECKIN state might contain valid data and must be checked into the library.
WHERESTATUs
Specifies that the move process must be restricted by volume status. This parameter is optional. You can specify more than one status in a list by separating each status with a comma and no intervening spaces. If you do not specify this parameter, volumes moved from the MOUNTABLEINLIB state to the MOUNTABLENOTINLIB state are restricted to only full volumes, and volumes moved from the MOUNTABLENOTINLIB state to the MOUNTABLEINLIB state are restricted to only empty volumes.

Possible values are:

FULl
Moves volumes with a status of FULL.
FILling
Moves volumes with a status of FILLING.
EMPty
Moves volumes with a status of EMPTY.
ACCess
Specifies how users and system processes access files in the storage pool volume that is moved out from an automated library and stored in an overflow location by the MOVE MEDIA command. This parameter is optional. If you do not specify this parameter, moving volumes from the MOUNTABLEINLIB state to the MOUNTABLENOTINLIB process updates the volumes' access mode to READONLY, and moving volumes from the MOUNTABLENOTINLIB state to the MOUNTABLEINLIB process updates the volumes' access mode to READWRITE.

Possible values are:

READWrite
Specifies that users and system processes can read from and write to files stored on the volume that is in the overflow location. If this value is specified, Tivoli® Storage Manager requests the volume to be checked into the library when the volume is needed for a read or write operation.
READOnly
Specifies that users and system processes can read but not write to files that are stored on the volume that is in the overflow location. The server requests the volume to be checked into the library only when the volume is needed for a read operation.
OVFLOcation
Specifies the overflow location that is the destination of the volumes that are being processed. The maximum length of the location name is 255 characters. The location name information must be enclosed in quotation marks if it contains any blank characters. If you do not specify an overflow location and the storage pool also has no overflow location identified, the server changes the location of the ejected volume to a null string ("").
REMove

Specifies that the Tivoli Storage Manager server tries to move the volume out of the library and into the convenience I/O station or entry/exit ports. This parameter is optional. Possible values are YES, BULK, and NO. The default is BULK. The response of the server to each of those options and the default values are described in the following tables.

349X libraries: The following table shows how the server responds for 349X libraries.

Table 1. How theTivoli Storage Manager Server Responds for 349X Libraries
REMOVE=YES REMOVE=BULK REMOVE=NO
The 3494 Library Manager ejects the cartridge to the convenience I/O station. The 3494 Library Manager ejects the cartridge to the high-capacity output facility. The 3494 Library Manager does not eject the volume.

The server leaves the cartridge in the library in the INSERT category for use by other applications.

SCSI libraries: The following table shows how the server responds to YES, BULK, and NO for SCSI libraries.
Table 2. How the Tivoli Storage Manager Server Responds for SCSI Libraries
If a library... And REMOVE=YES... And REMOVE=BULK... And REMOVE=NO
Does not have entry/exit ports The server leaves the cartridge in its current slot within the library and specifies the slot address in a message.

The server then prompts you to remove the cartridge from the slot and issue a REPLY command.

The server leaves the cartridge in its current slot within the library and specifies the slot address in a message.

The server does not prompt you to remove the cartridge and does not require a REPLY command.

The server leaves the cartridge in its current slot within the library and specifies the slot address in a message.

The server does not prompt you to remove the cartridge and does not require a REPLY

command.
Has entry/exit ports and an entry/exit port is available The server moves the cartridge to the available entry/exit port and specifies the port address in a message.

The server then prompts you to remove the cartridge from the slot and issue a REPLY command.

The server moves the cartridge to the available entry/exit port and specifies the port address in a message.

The server does not prompt you to remove the cartridge and does not request a REPLY command.

The server leaves the cartridge in its current slot within the library and specifies the slot address in a message.

The server does not prompt you to remove the cartridge and does not require a REPLY command.

Has entry/exit ports, but no ports are available The server leaves the cartridge in its current slot within the library and specifies the slot address in a message.

The server then prompts you to remove the cartridge from the slot and issue a REPLY command.

The server waits for an entry/exit port to be made available. The server leaves the cartridge in its current slot within the library and specifies the slot address in a message.

The server does not prompt you to remove the cartridge and does not require a REPLY command.

ACSLS libraries: The following table shows how the server responds for ACSLS libraries.
Table 3. How the Tivoli Storage Manager Server Responds for ACSLS Libraries
REMOVE=YES or REMOVE=BULK REMOVE=NO
The server ejects the cartridge to the convenience I/O station.

The server then deletes the volume entry from the server library inventory.

While moving volumes from the MOUNTABLE state with REMOVE=YES specified, the MOVE MEDIA command uses more than one slot in the CAP for a StorageTek library with ACSLS.

The server does not eject the cartridge.

The server deletes the volume entry from the server library inventory and leaves the volume in the library.

External libraries: The following table shows how the server responds for external libraries.
Table 4. How the Tivoli Storage Manager Server Responds for External Libraries
REMOVE=YES or REMOVE=BULK REMOVE=NO
The server ejects the cartridge to the convenience I/O station. The server then deletes the volume entry from the server library inventory. The server does not eject the cartridge.

The server deletes the volume entry from the server library inventory and leaves the volume in the library.

CMd
Specifies the creation of executable commands. This parameter is optional. You must enclose your command specification in quotation marks. The maximum length of the command specification is 255 characters. For each volume successfully processed by the MOVE MEDIA command, Tivoli Storage Manager writes the associated commands to a file. Specify the file name with the CMDFILENAME parameter.

AIX operating systems HP-UX operating systems Linux operating systems Sun Solaris operating systems If you do not specify the file name, the MOVE MEDIA command generates a default file name by appending the string exec.cmds.media to the Tivoli Storage Manager server directory.

Windows operating systems If you do not specify the file name, the MOVE MEDIA command generates a default file name by appending the string exec.cmd.media to the Tivoli Storage Manager server directory.

If the length of the command that is written to the file exceeds 255 characters, it is split into multiple lines and a continuation character, +, is added to all but the last line of the command. You must alter the continuation character according to the requirements of the product that runs the commands.

If you do not specify CMD, the MOVE MEDIA command might not generate any executable commands.
string
Specifies the string to build an executable command. You can specify any free form text for the string. Enclose the full string in quotation marks. For example, the following is a valid executable command specification:
        CMD="UPDATE VOLUME &VOL"
The following is an invalid executable command specification:
        CMD=""UPDATE VOLUME" &VOL"
substitution
Specifies a variable for which you want the command to substitute a value. The possible substitution variables are:
&VOL
Substitute the volume name for &VOL. You can specify lowercase characters, &vol. No spaces or blanks are allowed between ampersand, &, and VOL. If there are spaces or blanks between ampersand and VOL, the MOVE MEDIA command treats them as strings and no substitution is set. If &VOL is not specified, no volume name is set in the executable command.
&LOC
Substitute the volume location for &LOC. You can specify lowercase characters, &loc. No spaces or blanks are allowed between ampersand, &, and LOC. If there are spaces or blanks between ampersand and LOC, the MOVE MEDIA command treats them as strings and no substitution is set. If &LOC is not specified, no location name is set in the executable command.
&VOLDSN
Substitute the volume file name for &VOLDSN. An example of a storage pool tape volume file name that uses the default prefix ADSM is ADSM.BFS. If &VOLDSN is not specified, no volume file name is set in the executable command.
&NL
Substitute a new line character for &NL. When &NL is specified, the MOVE MEDIA command splits the command at the position where the &NL is and does not append any continuation character. The user is responsible for specifying the correct continuation character before the &NL if one is required. The user is also responsible for the length of the line written. If the &NL is not specified and the length of the command line exceeds 255, the command line is split into multiple lines and a continuation character, +, is added to all but the last line of the command.
CMDFilename
Specifies the full path name of a file that contains the commands that are specified with CMD. This parameter is optional. The maximum length of the file name is 1279 characters.

AIX operating systems HP-UX operating systems Linux operating systems Sun Solaris operating systems If you do not specify a file name, the MOVE MEDIA command generates a default file name by appending the string exec.cmds.media to the Tivoli Storage Manager server directory. The server directory is the current working directory of the Tivoli Storage Manager server process.

Windows operating systems If you do not specify a file name, the MOVE MEDIA command generates a default file name by appending the string exec.cmd.media to the Tivoli Storage Manager server directory. The server directory is the current working directory of the Tivoli Storage Manager server process.

The MOVE MEDIA command automatically allocates the file name that is specified or generated. If the file name exists, you can use the APPEND=YES parameter to add to the file. Otherwise, the file is overwritten. If a file is accidentally overwritten and you must run the commands that were in the file, issue the QUERY MEDIA command to rebuild the executable commands for the desired volumes. If the MOVE MEDIA command fails after the command file is allocated, the file is not deleted.

APPend
Specifies to write at the beginning or ending of the command file data. The default is NO. Possible values are:
No
Specifies to write the data from the beginning of the command file. If the command file exists, its contents are overwritten.
Yes
Specifies to append the command file by writing at the end of the command file data.
CHECKLabel
Specifies whether Tivoli Storage Manager reads volume labels for sequential media. For SCSI devices, you can suppress label checking by setting the CHECKLabel to NO. This parameter is not applicable to 349X libraries. This parameter is optional. The default is YES. Possible values are:
Yes
Specifies that Tivoli Storage Manager attempts to read the media label. Reading the media label verifies that the correct volume is being checked out.
No
Specifies that Tivoli Storage Manager does not attempt to read media label. This increases performance because the read process does not occur.
CAP
Specifies which cartridge access port (CAP) to use for ejecting volumes if you specify REMOVE=YES. This parameter applies to volumes in ACSLS libraries only. If the CAP priority value is set to 0 in the library, this parameter is required. If a CAP priority value greater than 0 is set in the library, this parameter is optional. By default, all CAPs initially have a priority value of 0, which means that ACSLS does not automatically select the CAP.
To display valid CAP identifiers (x,y,z), issue the QUERY CAP command with ALL specified from the Automated Cartridge System System Administrator (ACSSA) console on the ACSLS server host. The identifiers are as follows:
x
The Automated Cartridge System (ACS) ID. This identifier can be a number in the range 0 - 126.
y
The Library Storage Module (LSM) ID. This identifier can be a number in the range 0 - 23.
z
The CAP ID. This identifier can be a number in the range 0 - 11.
For more information, see the StorageTek documentation.

Example: Move all full volumes out of the library

Move all full volumes that are in the ARCHIVE sequential primary storage pool out of the library.
move media * stgpool=archive 

Example: Generate the checkin commands

Generate the CHECKIN LIBVOLUME commands for full and partially full volumes that are in the ONSITE.ARCHIVE primary storage pool and stored in the overflow location, Room 2948/Bldg31.

AIX operating systems HP-UX operating systems Linux operating systems Sun Solaris operating systems MOVE MEDIA creates the executable commands in /tsm/move/media/checkin.vols

Windows operating systems MOVE MEDIA creates the executable commands in c:\tsm\move\media\checkin.vols

move media * stgpool=onsite.archive 
wherestate=mountablenotinlib wherestatus=full,filling 
ovflocation=room2948/bldg31 
cmd="checkin libvol lib3494 &vol status=private" 
cmdfilename=/tsm/move/media/checkin.vols
checkin libvolume lib3494 TAPE04 status=private
checkin libvolume lib3494 TAPE13 status=private
checkin libvolume lib3494 TAPE14 status=private
Tip: Run the CHECKIN LIBVOLUME commands by issuing the MACRO command with the following as the macro name:
  • AIX operating systems HP-UX operating systems Linux operating systems Sun Solaris operating systems /tsm/move/media/checkin.vols
  • Windows operating systems c:\tsm\move\media\checkin.vols

Related commands

Table 5. Commands related to MOVE MEDIA
Command Description
CANCEL PROCESS Cancels a background server process.
QUERY MEDIA Displays information about storage pool volumes moved by the MOVE MEDIA command.
QUERY PROCESS Displays information about background processes.


Feedback