Hello, Yes, it seems to be a bug (or an unwanted feature). Please, can you open a bug in bugs.bacula.org ?
A simple workaround is put an other volume in the empty slot, or to update the volume with something like "update volume=xxx inchanger=0". Bye LeJav wrote: > > Hello, > > I am using bacula-2.4.3-1 > > I have autochanger (HP MSL2024) with barcodes. > tapes are labeled with "label barcode" > > everything is working well, but if i remove a tape > from the library and do not replace it with a new tape, > the old volume has not its 'InChanger' flag reset. > This causes a lot of problems (error when restoring...) > > *umount storage=MSL2024 > 3307 Issuing autochanger "unload slot 1, drive 0" command. > 3002 Device "Drive-1" (/dev/nst0) unmounted. > > *list volume=NF0018L3 > +---------+------------+-----------+---------+-------------+----------+--------------+---------+------+-----------+-----------+---------------------+ > | MediaId | VolumeName | VolStatus | Enabled | VolBytes | VolFiles | > VolRetention | Recycle | Slot | InChanger | MediaType | > LastWritten | > +---------+------------+-----------+---------+-------------+----------+--------------+---------+------+-----------+-----------+---------------------+ > | 1 | NF0018L3 | Used | 1 | 239,920,128 | 2 | > 176,400 | 1 | 1 | 1 | LTO4 | > 2008-10-24 13:35:04 | > +---------+------------+-----------+---------+-------------+----------+--------------+---------+------+-----------+-----------+---------------------+ > > I now remove the tape from the library > > *update slots storage=MSL2024 > Connecting to Storage daemon MSL2024 at fn-archnfs:9103 ... > 3306 Issuing autochanger "slots" command. > Device "MSL2024" has 24 slots. > Connecting to Storage daemon MSL2024 at fn-archnfs:9103 ... > 3306 Issuing autochanger "list" command. > Catalog record for Volume "NF0024L3" is up to date. > Catalog record for Volume "NF0020L3" is up to date. > Catalog record for Volume "NF0028L3" is up to date. > Catalog record for Volume "CL0001CU" is up to date. > > the tape is no more in the changer > but the InChanger flag for the tape is still 1 > > *list volume=NF0018L3 > +---------+------------+-----------+---------+-------------+----------+--------------+---------+------+-----------+-----------+---------------------+ > | MediaId | VolumeName | VolStatus | Enabled | VolBytes | VolFiles | > VolRetention | Recycle | Slot | InChanger | MediaType | > LastWritten | > +---------+------------+-----------+---------+-------------+----------+--------------+---------+------+-----------+-----------+---------------------+ > | 1 | NF0018L3 | Used | 1 | 239,920,128 | 2 | > 176,400 | 1 | 1 | 1 | LTO4 | > 2008-10-24 13:35:04 | > +---------+------------+-----------+---------+-------------+----------+--------------+---------+------+-----------+-----------+---------------------+ > > all operations on this tape will now fail > > It seems that this bug had been solved a very long time ago. > Is there something i miss ? > > Thx for help > > > > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the > world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Bacula-users mailing list > Bacula-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bacula-users > -- View this message in context: http://www.nabble.com/InChanger-flag-not-reset-tp20151348p20156269.html Sent from the Bacula - Users mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users