About the media that vmphyinv mounts
The vmphyinv command accepts several options for the media to be mounted, as follows:
NetBackup robot number (-rn robot_number ).
The vmphyinv utility obtains a list of volume records for that robot and inventories each of the media in the list.
To use this option, the NetBackup configuration must contain a volume record that corresponds to the robot number in the NetBackup database for the robot.
NetBackup robot number with filter options.
If you do not want to inventory all of the media in a robot, specify a subset of the media by using filter options. Some filter options are volume pool, volume group, or slot range. To use these options, NetBackup volume records must exist.
The following are some filter examples.
vmphyinv -rn 4 -pn bear
Mounts the media only in robot 4 and in the volume pool bear.
vmphyinv -rn 2 -v moon
Mounts the media in robot 2 and in the volume group moon.
vmphyinv -rn 1 -rc1 2 -number 3
Mounts the media in robot 1 and slot range 2 to 4.
vmphyinv -rn 5 -pn NetBackup -v mars -rc1 2 -number 6
Mounts the media in robot 5, slot range 2 to 7, in volume group mars, and in the NetBackup volume pool.
NetBackup robot number and a list of media that belong to a specific robot.
For example, if the -rn robot_number and -ml A00001:A00002:A00003 options are specified, only the three specified media are inventoried. If any of these media do not belong to the specified robot, the media are skipped and are not inventoried. To use this option, NetBackup volume records must exist.
NetBackup robot number and a slot range or list.
Sometimes, media from a different robot or some other source are moved to a robot and the media ID on the tape is unknown. In these cases, specify a slot range option or list option.
With these options, the NetBackup volume record does not need to exist in the NetBackup database. However, you must specify the density (using the -d option).
Note:
For a robot that supports multiple media types, specify the density carefully. If you specify the incorrect density, vmphyinv cannot complete the mount and permanent drive failure can occur.
The following are some filter examples.
vmphyinv -rn 1 -slot_range 2 10 -d dlt
Mounts the media in slot range 2 to 10 in robot 1.
vmphyinv -rn 0 -slot_list 3:4:5 -d dlt
Mounts the media in slots 3, 4, and 5 in robot 0.
vmphyinv -rn 2 -slot_range 2 4 -slot_list 5:6:7 -d dlt
Mounts the media in slots 2, 3, 4, 5, 6, and 7 in robot 2.
More Information