You will have to excuse me there if I sound a bit naïve.
I am attempting to track down the elusive scsi ID for my DLT drive.
My understanding is that the best way of doing this is to load a tape and
Performing a mount stat on the rmt device id’s /dev/rm/0 , dev/rm/0b etc .. until I get a load mt -f /dev/rmt/.. stat
And this would be my DLT.
So far so good!
When I ls-l in /dev/rmt I get a listing returned of 24 device name/numbers
e.g.
0 0bn 0cb 0cn 0hb 0hn 0lb 0ln 0mb 0mn 0u 0ubn
0b 0c 0cbn 0h 0hbn 0l 0lbn 0m 0mbn 0n 0ub 0un
So I would work through these until the load happens.
If I issue a command given to me to check scsi attached devices
ls –l /dev/rmt/? | sed ‘s/.*rmt\///’ (What does this command actually do ??)
I get a return of
0 -> ../../devices/pci@8,700000/scsi@6,1/st@4,0:
The same on another server returns
0 -> ../../devices/pci@1f,4000/scsi@3,1/st@5,0:
1 -> ../../devices/pci@1f,4000/scsi@3,1/st@5,1:
With a /dev/rmt listing of
0 0cb 0hb 0lb 0mb 0u 1 1cb 1hb 1lb 1mb 1u
0b 0cbn 0hbn 0lbn 0mbn 0ub 1b 1cbn 1hbn 1lbn 1mbn 1ub
0bn 0cn 0hn 0ln 0mn 0ubn 1bn 1cn 1hn 1ln 1mn 1ubn
0c 0h 0l 0m 0n 0un 1c 1h 1l 1m 1n 1un
And on another server.
0 -> ../../devices/pci@1f,4000/scsi@3,1/st@4,0:
1 -> ../../devices/pci@1f,4000/scsi@3,1/st@5,0:
2 -> ../../devices/pci@1f,4000/scsi@3,1/st@5,1:
With /dev/rmt listing of
0 0cn 0lb 0mn 1 1cn 1lb 1mn 2 2cn 2lb 2mn
0b 0h 0lbn 0n 1b 1h 1lbn 1n 2b 2h 2lbn 2n
0bn 0hb 0ln 0u 1bn 1hb 1ln 1u 2bn 2hb 2ln 2u
0c 0hbn 0m 0ub 1c 1hbn 1m 1ub 2c 2hbn 2m 2ub
0cb 0hn 0mb 0ubn 1cb 1hn 1mb 1ubn 2cb 2hn 2mb 2ubn
0cbn 0l 0mbn 0un 1cbn 1l 1mbn 1un 2cbn 2l 2mbn 2un
So logic says that the first 24 are device 0, the next 24 are device 1 etc.
Is that correct ?
So rather than having to mt on 72 id’s to find the DLT is there an easier way ??
TIA, Steve.
I am attempting to track down the elusive scsi ID for my DLT drive.
My understanding is that the best way of doing this is to load a tape and
Performing a mount stat on the rmt device id’s /dev/rm/0 , dev/rm/0b etc .. until I get a load mt -f /dev/rmt/.. stat
And this would be my DLT.
So far so good!
When I ls-l in /dev/rmt I get a listing returned of 24 device name/numbers
e.g.
0 0bn 0cb 0cn 0hb 0hn 0lb 0ln 0mb 0mn 0u 0ubn
0b 0c 0cbn 0h 0hbn 0l 0lbn 0m 0mbn 0n 0ub 0un
So I would work through these until the load happens.
If I issue a command given to me to check scsi attached devices
ls –l /dev/rmt/? | sed ‘s/.*rmt\///’ (What does this command actually do ??)
I get a return of
0 -> ../../devices/pci@8,700000/scsi@6,1/st@4,0:
The same on another server returns
0 -> ../../devices/pci@1f,4000/scsi@3,1/st@5,0:
1 -> ../../devices/pci@1f,4000/scsi@3,1/st@5,1:
With a /dev/rmt listing of
0 0cb 0hb 0lb 0mb 0u 1 1cb 1hb 1lb 1mb 1u
0b 0cbn 0hbn 0lbn 0mbn 0ub 1b 1cbn 1hbn 1lbn 1mbn 1ub
0bn 0cn 0hn 0ln 0mn 0ubn 1bn 1cn 1hn 1ln 1mn 1ubn
0c 0h 0l 0m 0n 0un 1c 1h 1l 1m 1n 1un
And on another server.
0 -> ../../devices/pci@1f,4000/scsi@3,1/st@4,0:
1 -> ../../devices/pci@1f,4000/scsi@3,1/st@5,0:
2 -> ../../devices/pci@1f,4000/scsi@3,1/st@5,1:
With /dev/rmt listing of
0 0cn 0lb 0mn 1 1cn 1lb 1mn 2 2cn 2lb 2mn
0b 0h 0lbn 0n 1b 1h 1lbn 1n 2b 2h 2lbn 2n
0bn 0hb 0ln 0u 1bn 1hb 1ln 1u 2bn 2hb 2ln 2u
0c 0hbn 0m 0ub 1c 1hbn 1m 1ub 2c 2hbn 2m 2ub
0cb 0hn 0mb 0ubn 1cb 1hn 1mb 1ubn 2cb 2hn 2mb 2ubn
0cbn 0l 0mbn 0un 1cbn 1l 1mbn 1un 2cbn 2l 2mbn 2un
So logic says that the first 24 are device 0, the next 24 are device 1 etc.
Is that correct ?
So rather than having to mt on 72 id’s to find the DLT is there an easier way ??
TIA, Steve.