You are here: Foswiki>ATLAS Web>VerifySAMTapeDriveOrdering (04 Aug 2015, OliverBock)Edit Attach

Checking drive ordering between SL3000 and SAM

Following Doc Id 1006246.1 to verify drive ordering matches between SL3000 and SAM/Solaris

preparation

  1. Shut down sam samd stop
  2. ensure all drives are clear (SLConsole)
  3. find out which tape drives are defined in Solaris
    ls -l /dev/rmt/*[0-9] | awk '{print $9, $10, $11}'
    /dev/rmt/111 -> ../../devices/pci@78,0/pci8086,e08@3/pci1077,171@0/fp@0,0/tape@w500104f000aedc31,0:
    /dev/rmt/112 -> ../../devices/pci@0,0/pci8086,e04@2/pci1077,171@0/fp@0,0/tape@w500104f000aedc3d,0:
    /dev/rmt/113 -> ../../devices/pci@78,0/pci8086,e08@3/pci1077,171@0,1/fp@0,0/tape@w500104f000aedc49,0:
    /dev/rmt/211 -> ../../devices/pci@78,0/pci8086,e0a@3,2/pci1077,171@0/fp@0,0/tape@w500104f000aedc2e,0:
    /dev/rmt/212 -> ../../devices/pci@78,0/pci8086,e08@3/pci1077,171@0/fp@0,0/tape@w500104f000aedc3a,0:
    /dev/rmt/213 -> ../../devices/pci@78,0/pci8086,e0a@3,2/pci1077,171@0/fp@0,0/tape@w500104f000aedc46,0:
    /dev/rmt/311 -> ../../devices/pci@0,0/pci8086,e04@2/pci1077,171@0/fp@0,0/tape@w500104f000aedc2b,0:
    /dev/rmt/312 -> ../../devices/pci@0,0/pci8086,e04@2/pci1077,171@0/fp@0,0/tape@w500104f000aedc37,0:
    /dev/rmt/313 -> ../../devices/pci@78,0/pci8086,e08@3/pci1077,171@0,1/fp@0,0/tape@w500104f000aedc43,0:
    /dev/rmt/411 -> ../../devices/pci@78,0/pci8086,e08@3/pci1077,171@0,1/fp@0,0/tape@w500104f000aedc28,0:
    /dev/rmt/412 -> ../../devices/pci@78,0/pci8086,e08@3/pci1077,171@0/fp@0,0/tape@w500104f000aedc34,0:
    /dev/rmt/413 -> ../../devices/pci@78,0/pci8086,e0a@3,2/pci1077,171@0/fp@0,0/tape@w500104f000aedc40,0:
  4. Choose tape cartridges for testing, I'll use ti.100090 (2,7,1) and 040990L4 (2,15,1), loading 100090T2 into CAP (can only load from system slots or CAP to drive)
  5. Check ordering of drives acording to HLI/SCSI numbers: sl3000.jpg
  6. starting from drive 1 (top of list when sorted by HLI/SCSI address), loading tape into drive, waiting for drive to become ready and check mt on all rmt devices via small loop null test:
    for i in /dev/rmt/*[0-9]; do mt -f $i status; done
    /dev/rmt/111: no tape loaded or drive offline
    /dev/rmt/112: no tape loaded or drive offline
    /dev/rmt/113: no tape loaded or drive offline
    /dev/rmt/211: no tape loaded or drive offline
    /dev/rmt/212: no tape loaded or drive offline
    /dev/rmt/213: no tape loaded or drive offline
    /dev/rmt/311: no tape loaded or drive offline
    /dev/rmt/312: no tape loaded or drive offline
    /dev/rmt/313: no tape loaded or drive offline
    /dev/rmt/411: no tape loaded or drive offline
    /dev/rmt/412: no tape loaded or drive offline
    /dev/rmt/413: no tape loaded or drive offline
    

Example run

  1. via SLC load 100090T2 into drive 1,1,2 (recovery move)
  2. verify via SLC that drive is in state "loaded" (system detail)
  3. verify that tape is loaded correctly via mt
    for i in /dev/rmt/*[0-9]; do mt -f $i status; done
    /dev/rmt/111: no tape loaded or drive offline
    STK     T10000D          tape drive:
       sense key(0x6)= Unit Attention   residual= 0   retries= 0
       file no= 0   block no= 0
    /dev/rmt/113: no tape loaded or drive offline
    /dev/rmt/211: no tape loaded or drive offline
    /dev/rmt/212: no tape loaded or drive offline
    /dev/rmt/213: no tape loaded or drive offline
    /dev/rmt/311: no tape loaded or drive offline
    /dev/rmt/312: no tape loaded or drive offline
    /dev/rmt/313: no tape loaded or drive offline
    /dev/rmt/411: no tape loaded or drive offline
    /dev/rmt/412: no tape loaded or drive offline
    /dev/rmt/413: no tape loaded or drive offline
    
  4. or in short:
    for i in /dev/rmt/*[0-9]; do if [[ ! $(mt -f $i status 2>&1) =~ 'no tape loaded or drive offline' ]]; then echo $i; fi; done
    /dev/rmt/112
    
  5. unload to CAP, repeat

drive ordering found

T10000 drives (Partition 3)

  • /dev/rmt/112 (HLI/SCSI 1000)
  • /dev/rmt/212 (HLI/SCSI 1001)
  • /dev/rmt/312 (HLI/SCSI 1002)
  • /dev/rmt/412 (HLI/SCSI 1003)
  • /dev/rmt/113 (HLI/SCSI 1004)
  • /dev/rmt/213 (HLI/SCSI 1005)
  • /dev/rmt/313 (HLI/SCSI 1006)
  • /dev/rmt/413 (HLI/SCSI 1007)

LTO4 drives (Partition 1)

  • /dev/rmt/111 (HLI/SCSI 1000)
  • /dev/rmt/211 (HLI/SCSI 1001)
  • /dev/rmt/311 (HLI/SCSI 1002)
  • /dev/rmt/411 (HLI/SCSI 1003)

Finally, compare with mcf

grep rmt /etc/opt/SUNWsamfs/mcf
/dev/rmt/112cbn                    201  tp  10KD    on     -
/dev/rmt/212cbn                    202  tp  10KD    on     -
/dev/rmt/312cbn                    203  tp  10KD    on     -
/dev/rmt/412cbn                    204  tp  10KD    on     -
/dev/rmt/113cbn                    205  tp  10KD    on     -
/dev/rmt/213cbn                    206  tp  10KD    on     -
/dev/rmt/313cbn                    207  tp  10KD    on     -
/dev/rmt/413cbn                    208  tp  10KD    on     -
/dev/rmt/111cbn                    301  tp  LTO4    on     -
/dev/rmt/211cbn                    302  tp  LTO4    on     -
/dev/rmt/311cbn                    303  tp  LTO4    on     -
/dev/rmt/411cbn                    304  tp  LTO4    on     -

Summary

order seems to be ok

-- CarstenAulbert - 24 Feb 2015

Topic revision: r2 - 04 Aug 2015, OliverBock
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback