Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Solaris 8 /dev/rmt

Status
Not open for further replies.

LaysonS

Technical User
Feb 14, 2003
6
0
0
GB
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.
 
Just a note, the 24 devices your seeing are the same physical tape drive, just different ways to access them.

/dev/rmt/0 (standard, with a rewind after access)
/dev/rmt/0n (standard, without a rewind after access)
/dev/rmt/0c (compressed, with a rewind)

You get the picture. Yeah, it doesn't make a whole lot of sense, but it's an industry (perverse) standard. A man on "tapes" will go through some of this.
 
>> I am attempting to track down the elusive scsi ID for my DLT drive.

a wild hack: install Legato Networker aka. Solstice Backup, it comes with a scsi inquiry utility 'inquire'...

Best Regards, Franz
--
Solaris System Manager from Munich, Germany
I used to work for Sun Microsystems Support (EMEA) for 5 years
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top