I am currently having problems with amlabel and amdump on
HPUX11.11 using tapedev as "file:/data1/amanda/Archive_File/slots"
and the
Chg-disk changer.
When running amlabel I get
>amlabel Archive_File dailyset101 slot 101
labeling tape in slot 101
(file:/var/tmp/Archive_File/slots):
rewinding, reading label, not an amanda tape (Read 0 bytes)
rewinding, writing label dailyset101, checking label
amlabel: no label found, are you sure
file:/var/tmp/Archive_File/slots is non-rewinding?
I ran “truss” on the amlabel exec and it appears
to be creating the file dailyset and then unlinking it?
2612: open("/var/tmp/Archive_File/slots/data/00000.dailyset1",
O_RDWR|O_CREAT|O_TRUNC|O_LARGEFILE, 0600) = 4
2612: open("/var/tmp/Archive_File/slots/data/00000-dailyset1",
O_RDONLY|O_LARGEFILE, 0107614) ERR#2 ENOENT
2612: lseek64(4, 0,
SEEK_CUR)
= 0
2612: ftruncate64(4,
0)
= 0
2612: write(4, "A M A N D A
: T A P E S T A R ".., 32768) = 32768
2612: lseek64(4, 0,
SEEK_CUR)
= 32768
2612: ftruncate64(4,
32768)
= 0
2612: close(4)
= 0
2612: open("/var/tmp/Archive_File/slots/data/00000-dailyset1",
O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0666) = 4
2612: ioctl(4, TCGETA,
0x7a007db8)
ERR#25 ENOTTY
2612: write(4, "0
0 3 2 7 6 8 \n",
10)
= 10
2612: close(4)
= 0
...
2612: write(10, "a m l a b e l
: p a r "..,
34) = 34
2612: write(10, "a m l a b e l
: t o t "..,
34) = 34
2612: write(10, "a m l a b e l
: b l o "..,
38) = 38
2612: unlink("/var/tmp/Archive_File/slots/data/00000.dailyset1")
= 0
2612: unlink("/var/tmp/Archive_File/slots/data/00000-dailyset1")
= 0
I created the “disk file sets” with my x86_64
linux box and copied the contents in to the Archive_File directory “using
the same configuration” I was not able to backup to the disk set.
taper: pid 3475 executable taper version 2.5.1p1
taper: page size = 4096
taper: buffer size is 32768
changer: opening pipe to:
/opt/amanda2.5.1p1/libexec/chg-disk -info
dumper: pid 3480 executable dumper3 version 2.5.1p1
changer: opening pipe to:
/opt/amanda2.5.1p1/libexec/chg-disk -slot current
dumper: pid 3478 executable dumper2 version 2.5.1p1
dumper: pid 3476 executable dumper0 version 2.5.1p1
dumper: pid 3477 executable dumper1 version 2.5.1p1
ERROR: /var/tmp/Archive_File/slots/data/ (No such file or
directory)
ERROR: /var/tmp/Archive_File/slots/data/ (No such file or
directory)
changer: opening pipe to:
/opt/amanda2.5.1p1/libexec/chg-disk -slot next
taper: slot: 2 wrote label `dailyset2' date `20061030105851'
driver: result time 2.028 from taper: TAPER-OK
although this may have no barring on the problem.