Amanda-Users

Re: Problems with finding tapes loaded

2003-11-06 12:16:47
Subject: Re: Problems with finding tapes loaded
From: Adam Ardis <aardis1 AT yahoo DOT com>
To: amanda-users AT amanda DOT org
Date: Thu, 6 Nov 2003 09:14:25 -0800 (PST)
I did the boot -r and the links are the same, but this
time only 2 were created.  And now when I do the
amtape staging show, only the slot 1 drive shows a
tape.  I guess I'm getting closer...Notice the
difference in the permissions of the raw tape devices.
 st@2,0 and st@5,0 are 666, but 3 and 4 are 600. 
Changing the permissions to all 666 got slot 2 to also
show a tape.  It's just very confusing...

[aardis@twdbs001]$ ls -la /dev/rmt/*ubn
lrwxrwxrwx   1 root     root          45 Nov  6 11:46
/dev/rmt/0ubn ->
../../devices/pci@1f,4000/scsi@3,1/st@2,0:ubn
lrwxrwxrwx   1 root     root          45 Nov  6 11:46
/dev/rmt/1ubn ->
../../devices/pci@1f,4000/scsi@3,1/st@3,0:ubn

[aardis@twdbs001]$ ls -la /dev/rmt/*.bak
lrwxrwxrwx   1 root     other         45 Nov 11  2002
/dev/rmt/0ubn.bak ->
../../devices/pci@1f,4000/scsi@3,1/st@2,0:ubn
lrwxrwxrwx   1 root     other         45 Nov 11  2002
/dev/rmt/1ubn.bak ->
../../devices/pci@1f,4000/scsi@3,1/st@3,0:ubn
lrwxrwxrwx   1 root     other         45 Nov 11  2002
/dev/rmt/2ubn.bak ->
../../devices/pci@1f,4000/scsi@3,1/st@4,0:ubn
lrwxrwxrwx   1 root     other         45 Nov 11  2002
/dev/rmt/3ubn.bak ->
../../devices/pci@1f,4000/scsi@3,1/st@5,0:ubn

# ls -la /devices/pci@1f,4000/scsi@3,1/*ubn
crw-rw-rw-   1 root     sys       33,349 Nov  4 21:05
/devices/pci@1f,4000/scsi@3,1/st@2,0:ubn
crw-------   1 root     sys       33,350 Aug  7 00:08
/devices/pci@1f,4000/scsi@3,1/st@3,0:ubn
crw-------   1 root     sys       33,351 Aug  7 03:16
/devices/pci@1f,4000/scsi@3,1/st@4,0:ubn
crw-rw-rw-   1 root     sys       33,476 Oct 13 23:53
/devices/pci@1f,4000/scsi@3,1/st@5,0:ubn

twdbs001:/export/home/amanda$ amtape staging show
amtape: scanning all 4 slots in tape-changer rack:
slot 1: date 20030730 label ST007
slot 2: chg-multi: slot is empty
slot 3: chg-multi: slot is empty
slot 4: chg-multi: slot is empty

# chmod 666 /devices/pci@1f,4000/scsi@3,1/st@3,0:ubn
# chmod 666 /devices/pci@1f,4000/scsi@3,1/st@4,0:ubn

twdbs001:/export/home/amanda$ ls -la
/devices/pci@1f,4000/scsi@3,1/*ubn
crw-rw-rw-   1 root     sys       33,349 Nov  4 21:05
/devices/pci@1f,4000/scsi@3,1/st@2,0:ubn
crw-rw-rw-   1 root     sys       33,350 Aug  7 00:08
/devices/pci@1f,4000/scsi@3,1/st@3,0:ubn
crw-rw-rw-   1 root     sys       33,351 Aug  7 03:16
/devices/pci@1f,4000/scsi@3,1/st@4,0:ubn
crw-rw-rw-   1 root     sys       33,476 Oct 13 23:53
/devices/pci@1f,4000/scsi@3,1/st@5,0:ubn

twdbs001:/export/home/amanda$ amtape staging show
amtape: scanning all 4 slots in tape-changer rack:
slot 4: chg-multi: slot is empty
slot 1: date 20030730 label ST007
slot 2: date 20030827 label ST033
slot 3: chg-multi: slot is empty

So now I'm back to 2 drives not working properly,
which could coincide with the two drives that did not
recreate a symbiolic link.  Any ideas?  Maybe if I
remove those two drives from the server, reboot, then
add them back and boot -r that would help?

__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree