On Sep 14, 2012, at 5:41 PM, Simon Tyler wrote:

> Hi Gani,
> 
> I tried different tapes, and then tried an: update slots scan, but with the 
> same results. I don't think it's the tapes, but they were used by previous 
> backup software. Have I neglected to do something to get bacula to recognize 
> these tapes?

Perhaps they need to be 'erased'.

Try:

mt -f /dev/nst0 rewind
mt -f /dev/nst0 weof
mt -f /dev/nst0 rewind

This places an End-Of-Fil marker at the beginning of the tape.  In effect, it 
is an erase.

If the data on the tape from the previous system is causing trouble, the above 
will fix that issue.

> 
> Thanks,
> Simon Tyler  |  Systems Administrator
> TPM Communications  |  416-408-2727  x286
> si...@tpmcomm.com
> 
> 
> 
> On Fri, Sep 14, 2012 at 4:50 PM, Simon Tyler <si...@tpmcomm.com> wrote:
> Hi Gani,
> 
> Thanks for the response.
> 
> [root@pmappp01 bin]# ./mtx-changer /dev/sg1 list
> 
> 1:TPMBU011
> 2:TPMBU002
> 3:TPMBU001
> 4:TPMBU005
> 5:TPMBU007
> 6:
> 7:
> 8:TPMBU003
> 
> [root@pmappp01 bin]# mtx -f /dev/sg1 status
>   Storage Changer /dev/sg1:1 Drives, 8 Slots ( 0 Import/Export )
> Data Transfer Element 0:Full (Storage Element 8 Loaded):VolumeTag = TPMBU003  
>                       
>       Storage Element 1:Full :VolumeTag=TPMBU011                        
>       Storage Element 2:Full :VolumeTag=TPMBU002                        
>       Storage Element 3:Full :VolumeTag=TPMBU001                        
>       Storage Element 4:Full :VolumeTag=TPMBU005                        
>       Storage Element 5:Full :VolumeTag=TPMBU007                        
>       Storage Element 6:Full 
>       Storage Element 7:Full 
>       Storage Element 8:Empty
> 
> 
> I also  did an: unmount, and then: update slots scan. On slots 6,7 I got the 
> following errors:
> 
> 3304 Issuing autochanger "load slot 6, drive 0" command.
> 3305 Autochanger "load slot 6, drive 0", status is OK.
> block.c:275 Volume data error at 0:0! Wanted ID: "BB02", got "". Buffer 
> discarded.
> 3902 Cannot mount Volume on Storage Device ""HP-0" (/dev/nst0)" because:
> Requested Volume "" on "HP-0" (/dev/nst0) is not a Bacula labeled Volume, 
> because: ERR=block.c:275 Volume data error at 0:0! Wanted ID: "BB02", got "". 
> Buffer discarded.
> No VolName for Slot=6 InChanger set to zero.
> 
> Connecting to Storage daemon HP Autoloader at pmappp01.tpmcomm.com:9103 ...
> 3307 Issuing autochanger "unload slot 6, drive 0" command.
> 3304 Issuing autochanger "load slot 7, drive 0" command.
> 3305 Autochanger "load slot 7, drive 0", status is OK.
> block.c:275 Volume data error at 0:0! Wanted ID: "BB02", got "". Buffer 
> discarded.
> 3902 Cannot mount Volume on Storage Device ""HP-0" (/dev/nst0)" because:
> Requested Volume "" on "HP-0" (/dev/nst0) is not a Bacula labeled Volume, 
> because: ERR=block.c:275 Volume data error at 0:0! Wanted ID: "BB02", got "". 
> Buffer discarded.
> No VolName for Slot=7 InChanger set to zero.
> 
> I'm going to try different tapes and see if it can read those barcodes,
> 
> 
> 
> Simon Tyler  |  Systems Administrator
> TPM Communications  |  416-408-2727  x286
> si...@tpmcomm.com
> 
> 
> 
> On Wed, Sep 5, 2012 at 11:38 PM, ganiuszka <ganius...@gmail.com> wrote:
> W dniu 06.09.2012 00:37, Simon Tyler pisze:
> 
> Hello,
> 
> I'm having some issues with bacula.
> 
> This is a new install, I have not used bacula before. So far I've
> successfully backed up from a client to a file on the bacula server, now
> I'm trying to get autoloader working so I can backup to tape. I want to
> make it so all tapes or Volumes are a member of Default Pool.
> 
> I'm trying to label tapes and set them up so they're available in a Pool
> for backups. It appears that two slots are not recognized as containing
> bacula tapes and I'm not sure how to fix that. I think almost all of the
> tapes were used in our previous backup solution, so I don't know why
> these two slots are misbehaving. If I try the "label barcodes" command,
> it offers to label slots 1-6, and 8, but not the tapes in mystery slots
> 6 and 7.
> 
> Please let me know if I can supply more information, or if I should be
> posting somewhere else.
> 
> Hi,
> 
> It means that probably there is problem with reading tape labels in slots 6 
> and 7. Are you sure that tapes in slots 6 and 7 have sticked correct labels?
> 
> Could you show us output from below commands?
> 
> mtx -f /dev/sgX status
> 
> (/dev/sgX is special file of changer device)
> 
> and from mtx-changer Bacula script:
> 
> mtx-changer /dev/sgX list
> 
> (/dev/sgX is special file of changer device).
> 
> Regards.
> gani
> 
> 
> 
> ------------------------------------------------------------------------------
> Got visibility?
> Most devs has no idea what their production app looks like.
> Find out how fast your code is with AppDynamics Lite.
> http://ad.doubleclick.net/clk;262219671;13503038;y?
> http://info.appdynamics.com/FreeJavaPerformanceDownload.html_______________________________________________
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users

-- 
Dan Langille - http://langille.org

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://ad.doubleclick.net/clk;258768047;13503038;j?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to