Sun Solaris List HBA/Tape/scan device

** Myself
List hardware
cfgadm –a
list HBA (wwn)
cfgadm -al

Scaning new hardware for online recognition (as root):
devfsadm -v
the you'll see the new add tape device
and put in a tape in the tape drive try:
0 rewind,0n no rewind
mt stat -f /dev/rmt/0
# mt -f /dev/rmt/0n status
Message no tape in drive
/dev/rmt/0n: no tape loaded or drive offline
Message tape in drive
HP DDS-4 DAT (Sun) tape drive:
sense key(0x0)= No Additional Sense residual= 0 retries= 0
file no= 0 block no= 0

list device and format disk
format (disk)

Example
cfgadm -al -o show_FCP_dev
Ap_Id                          Type         Receptacle   Occupant     Condition
c1                             fc-private   connected    configured   unknown
c1::500000e010a61501,0         disk         connected    configured   unknown
c1::500000e010a61e71,0         disk         connected    configured   unknown
c2                             fc-fabric    connected    configured   unknown
c2::210100e08b38a1bf           unknown      connected    unconfigured unknown
c2::216000c0ff87fedc,0         disk         connected    configured   unknown
c2::216000c0ff87fedc,1         disk         connected    configured   unknown
c2::216000c0ff87fedc,2         disk         connected    configured   unknown
c2::216000c0ff87fedc,3         disk         connected    configured   unknown
c2::266000c0ffe7f9e0,0         disk         connected    configured   unknown
c2::266000c0ffe7f9e0,1         disk         connected    configured   unknown
c2::266000c0ffe7f9e0,2         disk         connected    configured   unknown
c2::266000c0ffe7f9e0,3         disk         connected    configured   unknown
c3                             fc-fabric    connected    configured   unknown
c3::2100001086115474,0         med-changer  connected    unconfigured unknown
c3::2100001086115474,1         tape         connected    unconfigured unknown
c3::2100001086115474,2         tape         connected    unconfigured unknown
c3::210000e08b18a1bf           unknown      connected    unconfigured unknown
c3::216000c0ff87f9e0,0         disk         connected    configured   unknown
c3::216000c0ff87f9e0,1         disk         connected    configured   unknown
c3::216000c0ff87f9e0,2         disk         connected    configured   unknown
c3::216000c0ff87f9e0,3         disk         connected    configured   unknown
c3::266000c0ffe7fedc,0         disk         connected    configured   unknown
c3::266000c0ffe7fedc,1         disk         connected    configured   unknown
c3::266000c0ffe7fedc,2         disk         connected    configured   unknown
c3::266000c0ffe7fedc,3         disk         connected    configured   unknown

cfgadm -al -o show_FCP_dev c3
Ap_Id                          Type         Receptacle   Occupant     Condition
c3                             fc-fabric    connected    configured   unknown
c3::2100001086115474,0         med-changer  connected    configured   unknown
c3::2100001086115474,1         tape         connected    configured   unknown
c3::2100001086115474,2         tape         connected    configured   unknown
c3::210000e08b18a1bf           unknown      connected    unconfigured unknown
c3::216000c0ff87f9e0,0         disk         connected    configured   unknown
c3::216000c0ff87f9e0,1         disk         connected    configured   unknown
c3::216000c0ff87f9e0,2         disk         connected    configured   unknown
c3::216000c0ff87f9e0,3         disk         connected    configured   unknown
c3::266000c0ffe7fedc,0         disk         connected    configured   unknown
c3::266000c0ffe7fedc,1         disk         connected    configured   unknown
c3::266000c0ffe7fedc,2         disk         connected    configured   unknown
c3::266000c0ffe7fedc,3         disk         connected    configured   unknown

Solaris scan tape
devfsadm -C -c tape

Netbackup scan tape
/usr/openv/volmgr/bin/sgscan all conf -v

0 comments:

Loading