Originally posted by: SystemAdmin
hello,
I am going to explain and guide you how to effectively map the tape to the LPAR!
1)make sure the tape is available
#lsdev | grep rmt
2)lets play with the HMC ;-)
on the
VIOS profile added a virtual scsi adapter and
and assign it to the required LPAR.
on the
LPAR do the same
3) now we done with creating the virtual adapters
run #cfgmgr on the lpar and $ cfgdev on the VIOS
4) on the VIOS , check the virtual host thart u just created (vhostX)
-to check all ur virtual adapter run :
-
$ lsdev -virtual | grep vhost
OR
-
$ lsdev -type adapter | grep vhost
now i am pretty sure ,u r confused about which vhostX to use , no worries dude coz IBM
has a command to KILL ur anxiety ;-)
run $ lsmap -all
and check which vhost is already used by other backend devices (disk,CD.DVD,tape..etc)
5) now let`s map the tape(lets say rmt0) to this vhost (lets say vhost5)
simply execute
$ mkvdev -vdev rmt0 -vadapter vhost5
6)check the mapping again
$lsmap -all
you will find the rmt0 is mapped
7)once again execute #cfgmgr and #cfgdev
Now , you can use the rmt0 in ur LAPR :)
if u have any question ,dont hestiate to ask!