How to change the volume pool of a media from the command line without having to use the Media Manager

Article:TECH16643  |  Created: 2001-01-18  |  Updated: 2009-01-09  |  Article URL http://www.symantec.com/docs/TECH16643
Article Type
Technical Solution

Environment

Issue



How to change the volume pool of a media from the command line without having to use the Media Manager

Solution



To change the volume pool of a media, the media cannot have any active (valid) backup images on it.

1. Determine which volume pools are available by running the following command:

/usr/openv/volmgr/bin/vmpool -listall

2. To change the volume pool of the media, run the following command:

/usr/openv/volmgr/bin/vmchange -M <master server> -p <pool number> -m <media ID>


For example,

# /usr/openv/volmgr/bin/vmpool -listall
===============================================================================
pool number:      0
pool name:          None
description:        the None pool (for anyone)
pool host:          ANYHOST
pool user:          ANY
pool group:         NONE
===============================================================================
pool number:        1
pool name:          NetBackup
description:        the NetBackup pool
pool host:          ANYHOST
pool user:          ANY
pool group:         NONE
===============================================================================
pool number:        2
pool name:          test
description:        ----
pool host:          ANYHOST
pool user:          ANY
pool group:         NONE
===============================================================================

The following command uses vmquery to obtain the volume information of the media ID RAY001.

NOTE: In the the vmquery output, the volume pool row shows the volume pool name and the associated volume pool number in brackets. The following vmquery output shows the current volume pool is VERITAS NetBackup and the volume pool number is 1.

# /usr/openv/volmgr/bin/vmquery -m RAY001
================================================================================
media ID:                      RAY001
media type:                  DLT cartridge tape 2 (16)
barcode:                       --------
description:                  ------
volume pool:                NetBackup (1)
robot type:                    NONE - Not Robotic (0)
volume group:                ---
created:                     Fri Jul 20 15:30:00 2001
assigned:                    ---
last mounted:                Sun Sep 02 00:05:27 2001
first mount:                 Fri Jul 20 15:30:39 2001
expiration date:             ---
number of mounts:            15
max mounts allowed:        ---
================================================================================

The following command will change the volume pool of media ID RAY001 from NetBackup (1) to None (0).

# /usr/openv/volmgr/bin/vmchange -M russia -p 0 -m RAY001

NOTE: The vmquery command is being used to query the volume database for volume information on RAY001. The volume pool has changed from NetBackup (1) to None (0).

# /usr/openv/volmgr/bin/vmquery -m RAY001
================================================================================
media ID:                   RAY001
media type:                  DLT cartridge tape 2 (16)
barcode:                    --------
description:                ------
volume pool:                 None (0)
robot type:                  NONE - Not Robotic (0)
volume group:               ---
created:                     Fri Jul 20 15:30:00 2001
assigned:                   ---
last mounted:                Sun Sep 02 00:05:27 2001
first mount:                 Fri Jul 20 15:30:39 2001
expiration date:             ---
number of mounts:            15
max mounts allowed:          ---
================================================================================


Legacy ID



241020


Article URL http://www.symantec.com/docs/TECH16643


Terms of use for this information are found in Legal Notices