Legato Networker and Quantum m2500
From Olden Timey Wiki
Some notes related to configuring and maintaining a Quantum m2500 SDLT tape library with four SDLT600 drives via Legato Networker on Linux.
Contents |
Licensing
Display hostid
[root@tapes]# lgtolic -i Host id: YYacXX01
Jukebox
Unload drive nst1 and place tape into slot 2
nsrjb -uv -f /dev/nst1 -S 2
Load drive nst1 from slot 2
nsrjb -lnv -f /dev/nst1 -S 2
Reset and inventory library
nsrjb -HEv nsrjb -IEv
Designate slot N as the cleaning slot
nsrjb -U -S N
Display library inventory
nsrjb -C
Display backup activity in your shell
nsrwatch
Label all tapes
nsrjb -L
Label slots 34-50 into Pool 'Oracle Pool'
nsrjb -L -S 34-50 -b 'Oracle Pool'
Label tape in slot 8
nsrjb -L -S 8
Eject all drives
nsrjb -HH
Display scsi devices
inquire
Run admin client
export DISPLAY=myip:0 (Start Exceed or other X server) nwadmin -s servername &
Test jukebox
sjisn 1.1.0 sjirdtag 1.1.0
Media Management Commands
Display volumes that are appendable.
- mminfo -q '!full' -r "volume,client,mediarec,mediafile,next,name"
Mark a volume read-only
- nsrmm –y –o readonly volume_name
Drive Settings
Initially we had been using the following command to setup the sdlt600 tape devices..
## set tape device into variable blocksize mode /bin/mt -f /dev/nst0 defblksize 0 /bin/mt -f /dev/nst1 defblksize 0 /bin/mt -f /dev/nst2 defblksize 0 /bin/mt -f /dev/nst3 defblksize 0
I then discovered the stinit program and its database file /etc/stinit.defs, which for these specific devices looks like:
manufacturer="QUANTUM" model = "SDLT600"
{
scsi2logical=1
can-bsr=1
auto-lock=0
two-fms=0
drive-buffering=1
buffer-writes
read-ahead=1
async-writes=1
can-partitions=0
fast-mteom=1
timeout=3600 # 1 hour
long-timeout=14400 # 4 hours
mode1 blocksize=0 density=0x4a compression=1
mode2 blocksize=0 density=0x4a compression=0
mode3 blocksize=0 density=0x4a compression=1
mode4 blocksize=0 density=0x4a compression=0
}
.. Current we run /sbin/stinit at boot from /etc/rc.d/rc.local .
Drive Ordering
If you're seeing 'no tape in device' or other strange errors on the tape devices, chances are that the tape devices are not in the proper order
Run sjisn 1.1.0 (Where 1.1.0 is the scsi target of the jukebox)
The drive element address describes the actual order of the drives in the jukebox.
Serial Number data for 1.1.0 (ATL M2500 ):
Library:
Serial Number: JG0503AHB000065
Drive at element address 128:
Serial Number: RB0435AMC0 .. (/dev/nst2)
Drive at element address 129:
Serial Number: RB0436AMC0 .. (/dev/nst3)
Drive at element address 130:
Serial Number: RB0432AMC0 .. (/dev/nst1)
Drive at element address 131:
Serial Number: RB0445AMC0 .. (/dev/nst0)
Run 'inquire' (Non-tape devices removed for clarity)
scsidev@1.0.0:QUANTUM SDLT600 1E1E|Tape, /dev/nst0
S/N: RB0445AMC05580
ATNN:QUANTUM SDLT600 RB0445AMC05580
WWNN:500E09E000142883
scsidev@1.0.1:QUANTUM SDLT600 1E1E|Tape, /dev/nst1
S/N: RB0432AMC00563
ATNN:QUANTUM SDLT600 RB0432AMC00563
WWNN:500E09E000154E66
scsidev@1.1.1:QUANTUM SDLT600 1E1E|Tape, /dev/nst2
S/N: RB0435AMC00343
ATNN:QUANTUM SDLT600 RB0435AMC00343
WWNN:500E09E000136F1D
scsidev@1.1.2:QUANTUM SDLT600 1E1E|Tape, /dev/nst3
S/N: RB0436AMC00129
ATNN:QUANTUM SDLT600 RB0436AMC00129
WWNN:500E09E000141C93
Now, using the serial #'s from the jukebox, and the output from inquire, determine the actual ordering of how legato needs to see the devices.
In our example case our actual drive order is:
/dev/nst2 /dev/nst3 /dev/nst1 /dev/nst0
