AIX


VIOS partition with a target SAS drive (add tape to client)


Step 1:
$ lsdev -type tape
name status description
rmt0 Available SAS 4mm Tape Drive

To list all devices of type "tape" that can be used as backing devices, type
$ lsdev -type tape4vtd
name status description
rmt0 Available SAS 4mm Tape Drive

To export a physical tape drive to a client as a virtual tape drive.
step 2:
$ mkvdev -vdev rmt0 -vadapter vhost0
vttape0 Available

To list all virtual target tape devices
step 3:
$ lsdev -type tape -virtual
vttape0 Available Virtual Target Device - Tape

step 4:
$ lsmap -all -type tape
SVSA Physloc Client Partition ID
-------------- ------------------------- -------------------
vhost0 U8203.E4A.10D4431-V2-C11 0x00000004
VTD vttape0
Status Available
LUN 0x8100000000000000
Backing device rmt0
Physloc U789C.001.DQD2684-P1-C4-T1-L900-L0

step 5:
Run cfgmgr on client partition to configure the virtual tape drive
Note: If the physical tape drive is currently used as a backing device and you want to use it locally on the VIOS (i.e to create a backupios), the Virtual Target Device (VTD) must be removed or set in a Defined state first, or you can also choose to remove the backing device
Example:
To remove VTD, vttape0, type
$ rmvdev -vtd vttape0

To put VTD, vttape0, in a Defined state, type
$ rmdev -dev vttape0 -ucfg

To remove the backing device
$ rmvdev -vdev rmt0

No comments:

Post a Comment