Hi, Only for testing, could you use "/dev/nst0" and "/dev/nst1" in Device section. This use the "non-rewind" device type. Try mount again then.
J. 2011/8/23 selanty <bacula-fo...@backupcentral.com>: > Hi all, > > I have a strange problem when i try to mount a tape. > First what i have i use centos 5.4 with bacula 5.0.3 > Hardware is an IBM TS3100 (3573-TL) with 2 LTO5 (ULT3580-HH5) > > config from bacula-sd.conf > Autochanger { > Name = Autochanger > Device = LTO5_1, LTO5_2 > Changer Device = /dev/sg5 > Changer Command = "/etc/bacula/mtx-changer %c %o %S %a %d" > } > > Device { > Name = LTO5_1 > Drive Index = 0 > Media Type = LTO5 > Archive Device = /dev/st0 > Autochanger = yes > Automatic Mount = yes > Always Open = yes > Removable Media = yes > Random Access = no > Requires Mount = no > Maximum Job Spool Size = 12G > Spool directory = "/var/spool" > Label Type = Bacula > Check Labels = yes > Label Media = no > } > > Device { > Name = LTO5_2 > Drive Index = 1 > Media Type = LTO5 > Archive Device = /dev/st1 > Autochanger = yes > Automatic Mount = yes > Always Open = yes > Removable Media = yes > Random Access = no > Requires Mount = no > Maximum Job Spool Size = 12G > Spool directory = "/var/spool" > Label Type = Bacula > Check Labels = yes > LabelMedia = no > > Config from bacula-dir.conf > Storage { > Name = AutoChanger > Password = host > Address = snlbck01.steltix.local > SDPort = 9103 > Device = Autochanger > Media Type = LTO5 > Autochanger = yes > Maximum Concurrent Jobs = 20 > > What happens if i want to mount a tape from console i do the following and > get the following. > *mount > Automatically selected Catalog: MyCatalog > Using Catalog "MyCatalog" > The defined Storage resources are: > 1: File > 2: AutoChanger > Select Storage resource (1-2): 2 > Connecting to Storage daemon AutoChanger at snlbck01.steltix.local:9103 ... > Enter autochanger drive[0]: 0 > Enter autochanger slot: 5 > 3301 Issuing autochanger "loaded? drive 0" command. > 3302 Autochanger "loaded? drive 0", result: nothing loaded. > 3304 Issuing autochanger "load slot 5, drive 0" command. > 3992 Bad autochanger "load slot 5, drive 0": ERR=Child died from signal 15: > Termination. > Results=Program killed by Bacula (timeout) > > 3301 Issuing autochanger "loaded? drive 0" command. > 3302 Autochanger "loaded? drive 0", result is Slot 5. > 3901 Unable to open device "LTO5_1" (/dev/st0): ERR=dev.c:491 Unable to open > device "LTO5_1" (/dev/st0): ERR=No medium found > > Then i ask the Status and get the following > *status > Status available for: > 1: Director > 2: Storage > 3: Client > 4: All > Select daemon type for status (1-4): 2 > The defined Storage resources are: > 1: File > 2: AutoChanger > Select Storage resource (1-2): 2 > Connecting to Storage daemon AutoChanger at snlbck01.steltix.local:9103 > > snlbck01.steltix.local-sd Version: 5.0.3 (04 August 2010) i686-pc-linux-gnu > redhat > Daemon started 23-Aug-11 14:20. Jobs: run=0, running=0. > Heap: heap=135,168 smbytes=24,942 max_bytes=122,999 bufs=100 max_bufs=108 > Sizes: boffset_t=8 size_t=4 int32_t=4 int64_t=8 > > Device status: > Autochanger "Autochanger" with devices: > "LTO5_1" (/dev/st0) > "LTO5_2" (/dev/st1) > Device "FileStorage" (/tmp) is not open. > Device "LTO5_1" (/dev/st0) is not open. > Slot 5 is loaded in drive 0. > Device "LTO5_2" (/dev/st1) is not open. > Drive 1 status unknown. > ==== > > Used Volume status: > > so the tape is loaded in the correct drive but not mounted. then i try > another mount > *mount > The defined Storage resources are: > 1: File > 2: AutoChanger > Select Storage resource (1-2): 2 > Enter autochanger drive[0]: 0 > Enter autochanger slot: > 3901 Unable to open device "LTO5_1" (/dev/st0): ERR=dev.c:491 Unable to open > device "LTO5_1" (/dev/st0): ERR=No medium found > > wont mount and then i do the following mount. > *mount > The defined Storage resources are: > 1: File > 2: AutoChanger > Select Storage resource (1-2): 2 > Enter autochanger drive[0]: 1 > Enter autochanger slot: > 3301 Issuing autochanger "loaded? drive 1" command. > 3302 Autochanger "loaded? drive 1", result: nothing loaded. > 3001 Mounted Volume: SCR02 > 3001 Device "LTO5_2" (/dev/st1) is already mounted with Volume "SCR02" > > and the tape is mounted to LTO5_2 while it should LTO5_1 > if ask for status it tells me this > Device status: > Autochanger "Autochanger" with devices: > "LTO5_1" (/dev/st0) > "LTO5_2" (/dev/st1) > Device "FileStorage" (/tmp) is not open. > Device "LTO5_1" (/dev/st0) is not open. > Slot 5 is loaded in drive 0. > Device "LTO5_2" (/dev/st1) is mounted with: > Volume: SCR02 > Pool: *unknown* > Media type: LTO5 > Drive 1 status unknown. > Total Bytes Read=64,512 Blocks Read=1 Bytes/block=64,512 > Positioned at File=1 Block=0 > ==== > > Used Volume status: > SCR02 on device "LTO5_2" (/dev/st1) > Reader=0 writers=0 devres=0 volinuse=0 > > I am totaly lost i asked at first to mount on drive 0 LTO and ending up on > LTO5_2 it does this with jobs to when i manualy move the tape to drive1 the > jobs goes further > What could be wrong i dont know anymore > btw i am a newby with bacula so dont shoot me for asking stupid things i > googled and googled but couldnt find anything about it. > > Regards Marcel > > +---------------------------------------------------------------------- > |This was sent by marcel.van.gereste...@steltix.com via Backup Central. > |Forward SPAM to ab...@backupcentral.com. > +---------------------------------------------------------------------- > > > > ------------------------------------------------------------------------------ > Get a FREE DOWNLOAD! and learn more about uberSVN rich system, > user administration capabilities and model configuration. Take > the hassle out of deploying and managing Subversion and the > tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2 > _______________________________________________ > Bacula-users mailing list > Bacula-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bacula-users > -- _____________________________________________ Francisco Javier Funes Nieto [esen...@gmail.com] CANONIGOS Servicios Informáticos para PYMES. Cl. Cruz 2, 1º Oficina 7 Tlf: 958.536759 / 661134556 Fax: 958.521354 GRANADA - 18002 ------------------------------------------------------------------------------ EMC VNX: the world's simplest storage, starting under $10K The only unified storage solution that offers unified management Up to 160% more powerful than alternatives and 25% more efficient. Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users