Networker

Re: [Networker] Jukebox control port using persistent names

2012-10-26 08:27:23
Subject: Re: [Networker] Jukebox control port using persistent names
From: Riku Valli <riku.valli AT UTA DOT FI>
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Date: Fri, 26 Oct 2012 15:27:14 +0300
On 10/26/2012 02:18 PM, Francis Swasey wrote:
> On Oct 26, 2012, at 2:08 AM, Riku Valli <riku.valli AT UTA DOT FI> wrote:
>
>> I used  persistent names at my Redhat box and 7.6.3 with NMC. You can
>> made jukebox and tape-devices very easily with persistent names. It's
>> that simple and quickly at when my RedHat lost devices and i must
>> recreate them i used NMC for it. Persistent names are mandatory for
>> Linux or you lost devices at every boot.
> In RHEL5, I developed the udev rules that I posted last night because the 
> tape drives were moving around.  It was RHEL6 that started initializing the 
> HBA's in random order and actually caused the issue of the scsi host number 
> of the HBA that is attached to the control port of the jukebox changing 
> almost every reboot.
>
> I also stated in my first message that this jukebox was created (via 
> jbconfig) back in 2008 and the NetWorker configuration has come along with me 
> from RHEL4 and NetWorker 7.3 all the way to RHEL6 and NetWorker 7.6.4 (It's 
> also converted from 32-bit to 64-bit OS's in that time).  The reason I can't 
> just delete the jukebox and create it again through NMC is because of the 
> multiple days it would take to run the inventory of the 1400 tapes in the 
> thing.
>
> I keep trying to get a real test environment with a small jukebox so I can 
> experiment with this stuff.  However, so far I have not been able to shake 
> the necessary money loose.  Therefore, I am very thankful for the existence 
> of this mailinglist and the help that everyone here is giving to all of us.
>
> -- Frank

My Redhat is 5.8 and its used udev-rules from RedHat. Though i used auto
media managemnet and bar-coded tapes, no need to manual inventory via
tape drives. Lesson which i learn earlier jukebox which used manaually
labeled tapes and so on. Problem is at when i install newer kernel.
After reboot Redhat cannot determine all devices. It forgot/loose some
of, but if i reboot few times our box all devices were constant and you
can reboot box without problem and RHEL loose them again when udev or
kernel upgrades for newer version. Problem is at Redhat can used changed
devices, but networker uses static. NSR configuration is "snapshot" and
networker uses own devices and we should hope at OS found them always
similar way. My environment it very small, only 127 tapes. Hope at this
help little bit more.


My devices

ls -l /dev/tape/by-id/
total 0
lrwxrwxrwx 1 root root  9 Oct 16 14:38 scsi-1ADIC_A0C0209505_LLA-changer
-> ../../sg6
lrwxrwxrwx 1 root root 10 Oct 16 14:38 scsi-3500308c09fb49000-nst ->
../../nst0
lrwxrwxrwx 1 root root  9 Oct 16 14:38 scsi-3500308c09fb49000-sg ->
../../sg4
lrwxrwxrwx 1 root root  9 Oct 16 14:38 scsi-3500308c09fb49000-st ->
../../st0
lrwxrwxrwx 1 root root 10 Oct 16 14:38 scsi-3500308c09fb49004-nst ->
../../nst1
lrwxrwxrwx 1 root root  9 Oct 16 14:38 scsi-3500308c09fb49004-sg ->
../../sg5
lrwxrwxrwx 1 root root  9 Oct 16 14:38 scsi-3500308c09fb49004-st ->
../../st1
lrwxrwxrwx 1 root root 10 Oct 16 14:38 scsi-3500308c09fb4909c-nst ->
../../nst2
lrwxrwxrwx 1 root root  9 Oct 16 14:38 scsi-3500308c09fb4909c-sg ->
../../sg7
lrwxrwxrwx 1 root root  9 Oct 16 14:38 scsi-3500308c09fb4909c-st ->
../../st2

and from nsradmin
tapedevice
type: NSR device;
name: /dev/tape/by-id/scsi-3500308c09fb4909c-nst;

if i not used persistent names this line should be
name: /dev/nst2 and this can be any of three tapedevices

library
control port: \
/dev/tape/by-id/scsi-1ADIC_A0C0209505_LLA-changer;
devices: /dev/tape/by-id/scsi-3500308c09fb4909c-nst,
/dev/tape/by-id/scsi-3500308c09fb49000-nst,
/dev/tape/by-id/scsi-3500308c09fb49004-nst;


Regards, Riku