JavaScript is required to for searching.
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
search filter icon
search icon

Document Information

Preface

1.  About SAM-QFS

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

How to Check the Drive Order of Network-Attached Libraries

6.  Populating the Catalog

7.  Managing Automated Libraries and Manually Loaded Drives

8.  Managing Vendor-Specific Libraries

9.  About Archiving

10.  Configuring the Archiver

11.  Archive Directives (archiver.cmd)

12.  Archive Set Directives (archiver.cmd)

13.  Data Integrity Validation in SAM-QFS

14.  About Releasing

15.  Configuring the Stager

16.  Configuring the Recycler

17.  Advanced SAM-QFS Topics

18.  Using the Sun SAM-Remote Software

Checking the Drive Order in Libraries

How to Check the Drive Order of Libraries With a Front Panel

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.

  1. Verify the order of the drives according to the vendor's documentation.
  2. In the front panel, check each drive's SCSI target ID or World Wide Name (WWN).
  3. Record the order in which each drive and drive target is reported.
  4. In the mcf file, ensure that the order of the drive targets is the same order in which the drives are shown by the automated library's controller.
  5. If you made any changes, verify the mcf file and test the drives. Then, propagate the change to the rest of the system. .

    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.

How to Check the Drive Order of a Tape Library Without a Front Panel

  1. Stop the SAM-QFS software so that no drives are used during the procedure.
  2. Obtain a listing of devices in /dev/rmt/.
    # 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: 
  3. Load a tape into the library's Drive 1.

    Ensure that the other drives are empty by running the samload command.

  4. Obtain information about the drive and tape position by running the following command with each /dev/rmt/ entry:
    # 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
  5. Repeat the steps for each library drive.

    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: 
       ...
  6. Update the mcf file to list the drives in the order in which they are shown by the automated library's controller.

    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
        ...
  7. Verify the mcf file and test the drives.
  8. Propagate the change to the rest of the system.

    For more information, see the Sun QFS File System 5.3 Configuration and Administration Guide

How to Check the Drive Order of Magneto-Optical Libraries Without a Front Panel

  1. Stop the SAM-QFS software so that no drives are used during the procedure.
  2. Obtain a listing of devices in /dev/samst/.
    # ls -l /dev/samst/? 
  3. Load a magneto-optical cartridge manually through the library front panel into the library's Drive 1.

    Ensure the other drives are empty.

  4. Obtain information about the drive and tape position by running the following command with each /dev/samst/ entry:
    # 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
  5. Repeat the steps for each library drive.

    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: 
       ...
  6. Update the mcf file to list the drives in the order in which they are shown by the automated library's controller.

    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
        ...
  7. Verify the mcf file and test the drives.

    .

  8. Propagate the change to the rest of the system.

    For more information, see the Sun QFS File System 5.3 Configuration and Administration Guide.

How to Check the Drive Order of Network-Attached Libraries

  1. Stop the SAM-QFS software so that no drives are used during the procedure.
  2. Obtain a listing of devices in /dev/rmt/.
    # 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.

  3. Display the serial number for each device.
    # luxadm display /dev/rmt/x
  4. Use the ACSLS display to show the drive identifier for each serial number.
       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
  5. Create a table to show the relationships between the identifiers.
        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)
  6. In the mcf file, verify that the order of the drives matches the table.
  7. Verify the mcf file and test the drives.
  8. Propagate the change to the rest of the system.

    For more information, see the Sun QFS File System 5.3 Configuration and Administration Guide.