Numerical argument out of domain

From wiki.zmanda.com
Revision as of 14:55, 19 January 2006 by Paul.bijnens (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

You have a RAIT setup, and amcheck (and many other commands) return an error like:

$ amcheck test
...
amcheck-server: slot 2: reading label: Numerical argument out of domain


This means that one of the members of the RAIT does not have the correct label, matching the other members.

To find out which member (apart from looking on the handwritten labels on the physical tapes themselves), you must use ammt and amdd to extract the first file from each member tape:

$ ammt -t file:/amandatapes/daily/vtape2 rewind
$ amdd  if=file:/amandatapes/daily/vtape2 bs=32k count=1
AMANDA: TAPESTART DATE X TAPE DAILY-02

1+0 in
1+0 out
$ ammt -t file:/amandatapes/daily/vtape2 rewind
$ ammt -t /dev/nst0 rewind
$ amdd  if=/dev/nst0 bs=32k count=1
AMANDA: TAPESTART DATE X TAPE Test-03

1+0 in
1+0 out
$ ammt -t /dev/nst0 rewind

In the above example, member 1 (a vtape) has a tape labeled "DAILY-02" in slot 2, while the physical tapedrive has a tape labeled "Text-03". You need to find the physical tape labeled "DAILY-02" and insert that in the drive.