-
January 14th, 2009, 03:18 AM
#1
RAIT problem
Hi all,
I use the guide to set up RAIT ([url]http://wiki.zmanda.com/index.php/Rait[/url]) using tape and vtapes.
When i try to label slot 1 amanda show an error:
#amlabel daily daily-01 slot 1
labeling tape in slot 1 (rait:{file:/amanda/vtapes/daily/slot1,tape:/dev/nst0}):
Reading label...
RAIT array {file:/amanda/vtapes/daily/slot1,tape:/dev/nst0} isolated device /dev/nst0
RAIT array {file:/amanda/vtapes/daily/slot1,tape:/dev/nst0} DEGRADED
File /dev/nst0 is not a tape device
Reading the tape label failed:
Error was Device error.
tape not labeled
What's wrong?
Here are the amlabel log file
1231948968.278970: amlabel: pid 18039 ruid 505 euid 505: start at Wed Jan 14 17:02:48 2009
1231948968.287476: amlabel: pid 18039 ruid 505 euid 505: rename at Wed Jan 14 17:02:48 2009
RAIT array {file:/amanda/vtapes/daily/slot1,tape:/dev/nst0} isolated device /dev/nst0
RAIT array {file:/amanda/vtapes/daily/slot1,tape:/dev/nst0} DEGRADED
File /dev/nst0 is not a tape device
1231948968.918280: amlabel: device_read_label; mode = 0
1231948968.918567: amlabel: device_read_label; mode = 0
1231948968.919419: amlabel: device_read_label; mode = 0
1231948968.953030: amlabel: tape_is_tape_device: ioctl(MTIOCTOP/MTNOP) failed: No medium found1231948968.953712: amlabel: pid 18039 finish time Wed Jan 14 17:02:48 2009
/var/log/amanda/server/daily/amlabel.20090114170248.debug (END)
And chg-multi-mirror.conf
multieject 0
needeject 1
gravity 0
ejectdelay 50
statefile /etc/amanda/daily/changerstatus
firstslot 1
lastslot 5
havereader=1
slot 1 rait:{file:/amanda/vtapes/daily/slot1,tape:/dev/nst0}
slot 2 rait:{file:/amanda/vtapes/daily/slot2,tape:/dev/nst0}
slot 3 rait:{file:/amanda/vtapes/daily/slot3,tape:/dev/nst0}
slot 4 rait:{file:/amanda/vtapes/daily/slot4,tape:/dev/nst0}
slot 5 rait:{file:/amanda/vtapes/daily/slot5,tape:/dev/nst0}

If i use only the tape driver in a single configuration i don't have any problem so i post the changer.conf:
firstslot=2
lastslot=14
driveslot=0
havereader=1
offline_before_unload=1
initial_poll_delay=30
In amanda.conf should not add the parameter tapetype AIT-2?(there's only HARDDISK)
Please help.
Thank you
Last edited by ipv4; January 14th, 2009 at 03:23 AM.
-
January 14th, 2009, 04:31 PM
#2
If /dev/nst0 is indeed a tape device and can be accessed by the Amanda user, I'm not sure.
Is a log created by the chg-multi script in /var/log/amanda/server/ with any more clues?
For tapetype, I suppose you should use one that correlates to the physcial tape.
Paul
-
January 15th, 2009, 10:18 AM
#3
The error message is pretty clear (though admittedly buried mid-line):
ioctl(MTIOCTOP/MTNOP) failed: No medium found
was there a tape in the drive? Was the drive ready? Some drives can take quite a while to come online.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules