hello,
i've done some mistake with a volume (Label TAPE001) of my dlt-v4
tape-drive.
At first: my intention was to change the device of my storage daemon
from st0 to non-rewinding nst0.
Therefore i've unmounted the volume, changed the config and restarted
the storage daemon.
But after this i can't mount the volume again:
##################
*mount
Using default Catalog name=MyCatalog DB=bacula
The defined Storage resources are:
1: File
2: Tapes
Select Storage resource (1-2): 2
3902 Cannot mount Volume on Storage Device "/dev/nst0" because:
Requested Volume "" on /dev/nst0 is not a Bacula labeled Volume,
because: ERR=block.c:793 Read zero bytes at 0:0 on device /dev/nst0.
3905 Device /dev/nst0 open but no Bacula volume is mounted.
If this is not a blank tape, try unmounting and remounting the Volume.
##################
unmount and remount doesn't work too (as suggested).
*list volumes
Pool: Default
+---------+------------+-----------+-----------------+----------+--------------+---------+------+-----------+-----------+---------------------+
| mediaid | volumename | volstatus | volbytes | volfiles |
volretention | recycle | slot | inchanger | mediatype |
lastwritten |
+---------+------------+-----------+-----------------+----------+--------------+---------+------+-----------+-----------+---------------------+
| 5 | TAPE001 | Append | 329,255,094,597 | 535 |
31,536,000 | 1 | 0 | 1 | VS160 | 2007-10-18
00:12:49 |
| 8 | TAPE002 | Full | 279,261,830,359 | 504 |
31,536,000 | 1 | 0 | 1 | VS160 | 2007-07-01
08:23:57 |
| 9 | TAPE003 | Full | 327,895,771,225 | 532 |
31,536,000 | 1 | 0 | 1 | VS160 | 2007-07-27
23:07:54 |
| 10 | TAPE004 | Full | 307,050,768,977 | 492 |
31,536,000 | 1 | 0 | 1 | VS160 | 2007-08-19
14:51:04 |
| 11 | TAPE005 | Full | 328,204,187,588 | 524 |
31,536,000 | 1 | 0 | 1 | VS160 | 2007-09-16
10:06:30 |
+---------+------------+-----------+-----------------+----------+--------------+---------+------+-----------+-----------+---------------------+
move forward to end-of-data results in: (did this makes sense without a
fixed block size?)
# mt -f /dev/nst0 status
SCSI 2 tape drive:
File number=0, block number=0, partition=0.
Tape block size 0 bytes. Density code 0x51 (no translation).
Soft error count since last status=0
General status bits on (41010000):
BOT ONLINE IM_REP_EN
# mt -f /dev/nst0 eod
# mt -f /dev/nst0 status
SCSI 2 tape drive:
File number=1, block number=-1, partition=0.
Tape block size 0 bytes. Density code 0x51 (no translation).
Soft error count since last status=0
General status bits on (9010000):
EOD ONLINE IM_REP_EN
Perhaps i've done another mistake with an misspelled "mt eod" as "mt
eof" (but without count).
As i understand right this writes me [count] eof marker (without given
count => count=1?) to current position(should be 0), perhaps this was
the problem for bacula cause the label was overwritten?)
Was it possible to get the tape recognized again?
If not, how can i reassing the same label (TAPE001) to it?
Is there in general a problem with changing the device from a rewinding
(stX) to a non-rewinding (nstX)?
--
Markus Schulz
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Bacula-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users