Skip Navigation Links | |
Exit Print View | |
Sun Storage Archive Manager 5.3 Configuration and Administration Guide Sun QFS and Sun Storage Archive Manager 5.3 Information Library |
2. Configuring Storage Devices for Archiving
3. Performing Additional SAM-QFS Configuration
4. Creating Parameters Files for Network-Attached Automated Libraries
5. Checking the Drive Order in Libraries
Checking the Drive Order in Libraries
How to Check the Drive Order of Libraries With a Front Panel
How to Check the Drive Order of a Tape Library Without a Front Panel
How to Check the Drive Order of Magneto-Optical Libraries Without a Front Panel
7. Managing Automated Libraries and Manually Loaded Drives
8. Managing Vendor-Specific Libraries
11. Archive Directives (archiver.cmd)
12. Archive Set Directives (archiver.cmd)
Some libraries have a panel that display the drive information.
The following procedure is a general plan. The actual steps depend on your specific library product, so consult your vendor documentation for information about drive identification and target identification.
To determine whether the drives become active when loaded with a cartridge, you can visually inspect the drives or use the samu utility's r display. For more information, see the Sun QFS File System 5.3 Configuration and Administration Guide.
# ls -l /dev/rmt/? lrwxrwxrwx 1 root root 42 Jan 10 2000 /dev/rmt/0 -> ../../devices/pci@1f,4000/scsi@2,1/st@2,0: lrwxrwxrwx 1 root root 42 Jan 10 2000 /dev/rmt/1 -> ../../devices/pci@1f,4000/scsi@4,1/st@5,0: lrwxrwxrwx 1 root root 42 Jan 10 2000 /dev/rmt/2 -> ../../devices/pci@1f,4000/scsi@4,1/st@6,0: lrwxrwxrwx 1 root other 40 Dec 13 2000/dev/rmt/3 -> ../../devices/pci@1f,4000/scsi@4/st@1,0: lrwxrwxrwx 1 root root 40 Jun 20 2001 /dev/rmt/4 -> ../../devices/pci@1f,4000/scsi@4/st@2,0: lrwxrwxrwx 1 root root 40 Jun 20 2001 /dev/rmt/5 -> ../../devices/pci@1f,4000/scsi@4/st@3,0: lrwxrwxrwx 1 root root 40 Jun 20 2001 /dev/rmt/6 -> ../../devices/pci@1f,4000/scsi@4/st@4,0: lrwxrwxrwx 1 root root 40 Sep 14 2001 /dev/rmt/7 -> ../../devices/pci@1f,4000/scsi@2/st@2,0: lrwxrwxrwx 1 root root 40 Sep 14 2001 /dev/rmt/8 -> ../../devices/pci@1f,4000/scsi@2/st@3,0: lrwxrwxrwx 1 root root 40 Sep 14 2001 /dev/rmt/9 -> ../../devices/pci@1f,4000/scsi@2/st@4,0:
Ensure that the other drives are empty by running the samload command.
# mt -f /dev/rmt/x status
The /dev/rmt/x entry returns information corresponding to the library's Drive 1. The following example shows mt command output that indicates that a tape is in the drive.
# mt -f /dev/rmt/0 status DLT 7000 tape drive tape drive: sense key(0x2)= Not Ready residual= 0 retries= 0 file no= 0 block no= 0
Create a table that shows which library drive corresponds to each /dev/rmt/ entry.
For example:
drive 1 = /dev/rmt/4 -> ../../devices/pci@1f,4000/scsi@4/st@2,0: drive 2 = /dev/rmt/7 -> ../../devices/pci@1f,4000/scsi@2/st@2,0: ...
In this case, the mcf file starts with the following items:
# Equipment Eq Eq Family Device Additional # Identifier Ord Type Set State Parameters #----------- --- ---- ------ ------ ---------- /dev/rmt/4 31 li ibm3580 on /dev/rmt/7 32 li ibm3580 on ...
For more information, see the Sun QFS File System 5.3 Configuration and Administration Guide
# ls -l /dev/samst/?
Ensure the other drives are empty.
# dd if=/dev/samst/x bs=2k iseek=3374 of=/tmp/foo count=10
The /dev/samst/ entry that returns information corresponds to the library's Drive 1. The following example shows a status message that indicates that an optical cartridge is in the selected device.
# dd if=/dev/samst/c0t3u0 bs=2k iseek=3374 of=/tmp/junk count=10 10+0 records in 10+0 records out
Create a table that shows which library drive corresponds to each /dev/samst/ entry:
drive 1 = /dev/samst/4 -> ../../devices/pci@1f,4000/scsi@4/st@2,0: drive 2 = /dev/samst/7 -> ../../devices/pci@1f,4000/scsi@2/st@2,0: ...
In this case, the mcf file starts with the following items:
# Equipment Eq Eq Family Device Additional # Identifier Ord Type Set State Parameters #----------- --- ---- ------ ------ ---------- /dev/samst/4 31 li ibm3580 on /dev/samst/7 32 li ibm3580 on ...
.
For more information, see the Sun QFS File System 5.3 Configuration and Administration Guide.
# ls -l /dev/rmt/*[0-9] | awk '{print $9, $10, $11}' /dev/rmt/0 -> /devices/pci@8,700000/SUNW,qlc@4,1/fp@0,0/st@w500104f0006041f0,0: /dev/rmt/1 -> /devices/pci@8,700000/SUNW,qlc@4,1/fp@0,0/st@w500104f0006041f3,0: /dev/rmt/2 -> /devices/pci@8,700000/SUNW,qlc@4,1/fp@0,0/st@w500104f00043cbb8,0: /dev/rmt/3 -> /devices/pci@8,700000/SUNW,qlc@5,1/fp@0,0/st@w500104f0006041ea,0: /dev/rmt/4 -> /devices/pci@8,700000/SUNW,qlc@5,1/fp@0,0/st@w500104f0006041ed,0: /dev/rmt/5 -> /devices/pci@8,700000/SUNW,qlc@4/fp@0,0/st@w500104f00060420e,0: /dev/rmt/6 -> /devices/pci@8,700000/SUNW,qlc@4/fp@0,0/st@w500104f000604211,0: /dev/rmt/7 -> /devices/pci@8,700000/SUNW,qlc@4/fp@0,0/st@w500104f000604214,0: /dev/rmt/8 -> /devices/pci@8,700000/SUNW,qlc@5/fp@0,0/st@w500104f000604208,0: /dev/rmt/9 -> /devices/pci@8,700000/SUNW,qlc@5/fp@0,0/st@w500104f00060420b,0:
Next, use luxadm output and output from an ACSLS display command to associate the serial numbers of each drive with the physical location in the library.
# luxadm display /dev/rmt/x
ACSSA> display drive * -f serial_num 2007-10-11 10:49:12 Display Drive Acs Lsm Panel Drive Serial_num 0 2 10 12 331000049255 0 2 10 13 331002044567 0 2 10 14 331002057108 0 2 10 15 331002042417 0 2 10 16 331002031352 0 2 10 17 HU92K00200 0 2 10 18 HU92K00208 0 3 10 10 1200019405 0 3 10 11 1200019442 0 3 10 12 1110150718
Device SSN Drive Identifier /dev/rmt/0 -> 331000049255 -> (acs=0, lsm=2, panel=10, drive=12) /dev/rmt/1 -> 331002044567 -> (acs=0, lsm=2, panel=10, drive=13) /dev/rmt/2 -> 331002057108 -> (acs=0, lsm=2, panel=10, drive=14)
For more information, see the Sun QFS File System 5.3 Configuration and Administration Guide.