Hi,

On 3/28/2007 3:40 AM, Marc Schiffbauer wrote:
> Hi *,
> 
> I cannot relabel a Tape in my DLT-Drive...
> 
> I wanted to relabel it from "TestTape" to "Tape_21"
> 
> Any hints someone what be wrong?
> 
> 
> *mount
> Automatically selected Storage: lisa-sd
> 3001 Mounted Volume: TestTape
> 3001 Device "DLT8000" (/dev/nst0) is already mounted with Volume
> "TestTape"
> *relabel
> Automatically selected Storage: lisa-sd
> Automatically selected Pool: Default
> +---------+------------+-----------+---------+---------------+----------+--------------+---------+------+-----------+-----------+---------------------+
> | mediaid | volumename | volstatus | enabled | volbytes      |
> volfiles | volretention | recycle | slot | inchanger | mediatype |
> lastwritten         |
> +---------+------------+-----------+---------+---------------+----------+--------------+---------+------+-----------+-----------+---------------------+
> |       2 | TestTape   | Purged    |       1 | 2,037,676,032 |
> 4 |   31,536,000 |       1 |    0 |         1 | DLT-IV    |
> 2007-03-27 02:57:00 |
> +---------+------------+-----------+---------+---------------+----------+--------------+---------+------+-----------+-----------+---------------------+
> Enter MediaId or Volume name: 2
> Enter new Volume name: Tape_21
> Automatically selected Pool: Default
> Connecting to Storage daemon lisa-sd at lisa:9103 ...
> Sending relabel command from "TestTape" to "Tape_21" ...
> 3912 Failed to label Volume: ERR=dev.c:425 Unable to open device
> "DLT8000" (/dev/nst0): ERR=Input/output error
> 
> Label command failed for Volume Tape_21.
> Do not forget to mount the drive!!!
> *unmount
> Automatically selected Storage: lisa-sd
> 3901 Device "DLT8000" (/dev/nst0) is already unmounted.
> * 

Try it with the device unmounted and the tape loaded.

(I'm not absolutely sure this works, by the way...)

As this might require manual intervention, you could also do this with 
more manual intervention than strictly necessary, but in a way I'm sure 
works. Well, as long as you don't need the data on that tape any more, 
but the name of the volume indicates that to me :-)

Unmount the storage device from Bacula.

Using a shell, first load the tape to the drive. Then either use btape 
to write the new label to the drive and use the bconsole command add to 
add it to the catalog, or use 'mt -f /dev/nst0 weof && mt -f /dev/st0 
weof' to clear the tape label and use the label command from bconsole to 
label the volume. In either case, you can remove the old volume and its 
associated data from the catalog using 'delete volume=TestTape' from 
bconsole.

Arno

> 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users

-- 
IT-Service Lehmann                    [EMAIL PROTECTED]
Arno Lehmann                  http://www.its-lehmann.de

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to