From: Pedro M. R. <ped...@gm...> - 2012-04-09 13:59:36
|
> > > Pedro Minguill?n Renaut escribi?: >> Cuando hago el relabel me dice: >> >> Automatically selected storage: File >> Defined Pools: >> 1: Default >> 2: File >> 3: Scratch >> Select the Pool (1-3): 2 >> >> Me muestra la linea con los datos de volume y me pide MediaId or Volume name: le doy copyfile >> a lo que me contesta con: >> Volume "copifile" has VolStatus Append. It must be Purge or Recycled before relabeling. >> >> A continuacion hago como me dices el add y me contesta: >> >> You probably don't want to be using this command since it >> creates database records without labeling the Volumes. >> You probably want to use the "label" command. >> >> Defined Pools: >> 1: Default >> 2: File >> 3: Scratch >> Select the Pool (1-3): 2 >> Automatically selected storage: File >> Enter number of Volumes to create. 0=>fixed name. Max=99: 0 >> Enter Volume name: copifile >> sql_create.c:401 Volume "copifile" already exists. > > Buenas... > > Le has dicho que te cree 0 cintas. Ademas le pusiste el mismo nombre > que la otra y dijo que ya existia, por lo que no la creo. Puedes desde > el bconsole eliminar eso, pero yo nunca lo hice. El comando seria > delete. Creo que debes darle a 1 y te aparecer? tu cinta. Cargatela y > vuelve a ejecutar label , luego el add y esta vez dile que use por lo > menos 5 cintas ( si tienes espacio en hd claro). Te digo que crees > varias cintas, porque has puesto una pol?tica para que ocupe X tama?o > por cinta, en caso de necesitar usara la siguiente cinta (siempre que > este libre) cuando ya uso todas las cintas, y en caso de que las usadas > ya est?n disponibles (haya pasado el tiempo de guardado). Este las > purgara y reutilizara, carg?ndose toda la informaci?n de dentro. > OK ... delete todos los volumes. Hago label y el add ... OK ... 1 Volumes created in pool File > >> >> ?Y ahora que? >> Pues he hecho de nuevo el add con... >> >> Enter number of Volumes to create. 0=>fixed name. Max=99: 1 >> Enter Volume name: copifile >> Enter the starting number: 1 >> 1 Volumes created in Pool File >> >> Ahora si hago status media me dice: >> >> Running Jobs: >> No Jobs running. >> ==== >> Jobs waiting to reserve a drive. >> ==== >> >> Terminated Jobs: >> Todos con status error y el ultimo cancel >> ==== >> Device status: >> Device "FileStorage" (/copias) is not open. >> ==== >> User Volume status: >> ==== >> >> ==== >> >> ?No entiendo muy bien que esta pasando? >> ?Tu que dices? > > Cancela todos los trabajos que te queden. y vuelve a ejecutar un backup, > creo que ya deber? funcionarte. > A ver ... hago run me dice que Job queued. JobId=11 Hago un stat all (4) En Running Jobs del director dice que el JobId esta running. En Running Jobs del storage dice: Writing: Full Backup job BackupClient1 JobId=11 Volume="copifile" pool="File" device="FileStorage" (/copias) spooling=0 despooling=0 despool_wait=0 Files=0 Bytes=0 Bytes/sec=0 FDReadSeqNo=6 in_msg=6 out_msg=4 fd=5 ==== Jobs waiting to reserve a drive ==== Device status: Device "FileStorage" (/copias) is not open. Device is BLOCKED waiting for mount of volume "copifile", Pool: File Media Type: File ==== De modo que hago un mount y repito el stat all... !Nada! sigue mostrandome lo mismo! > Un saludo > -- > -------------- next part -------------- > An HTML attachment was scrubbed... > -------------- next part -------------- > A non-text attachment was scrubbed... > Name: firma2.png > Type: image/png > Size: 37178 bytes > Desc: not available > > ------------------------------ > > ------------------------------------------------------------------------------ > For Developers, A Lot Can Happen In A Second. > Boundary is the first to Know...and Tell You. > Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! > http://p.sf.net/sfu/Boundary-d2dvs2 > > > ------------------------------ > > _______________________________________________ > Bacula-users-es mailing list > Bac...@li... > https://lists.sourceforge.net/lists/listinfo/bacula-users-es > > > End of Bacula-users-es Digest, Vol 32, Issue 15 > *********************************************** |
From: Jose M. R. <jmr...@co...> - 2012-04-09 14:21:04
|
Pedro Minguillán Renaut escribió: >> >> Pedro Minguill?n Renaut escribi?: >>> Cuando hago el relabel me dice: >>> >>> Automatically selected storage: File >>> Defined Pools: >>> 1: Default >>> 2: File >>> 3: Scratch >>> Select the Pool (1-3): 2 >>> >>> Me muestra la linea con los datos de volume y me pide MediaId or Volume name: le doy copyfile >>> a lo que me contesta con: >>> Volume "copifile" has VolStatus Append. It must be Purge or Recycled before relabeling. >>> >>> A continuacion hago como me dices el add y me contesta: >>> >>> You probably don't want to be using this command since it >>> creates database records without labeling the Volumes. >>> You probably want to use the "label" command. >>> >>> Defined Pools: >>> 1: Default >>> 2: File >>> 3: Scratch >>> Select the Pool (1-3): 2 >>> Automatically selected storage: File >>> Enter number of Volumes to create. 0=>fixed name. Max=99: 0 >>> Enter Volume name: copifile >>> sql_create.c:401 Volume "copifile" already exists. >> Buenas... >> >> Le has dicho que te cree 0 cintas. Ademas le pusiste el mismo nombre >> que la otra y dijo que ya existia, por lo que no la creo. Puedes desde >> el bconsole eliminar eso, pero yo nunca lo hice. El comando seria >> delete. Creo que debes darle a 1 y te aparecer? tu cinta. Cargatela y >> vuelve a ejecutar label , luego el add y esta vez dile que use por lo >> menos 5 cintas ( si tienes espacio en hd claro). Te digo que crees >> varias cintas, porque has puesto una pol?tica para que ocupe X tama?o >> por cinta, en caso de necesitar usara la siguiente cinta (siempre que >> este libre) cuando ya uso todas las cintas, y en caso de que las usadas >> ya est?n disponibles (haya pasado el tiempo de guardado). Este las >> purgara y reutilizara, carg?ndose toda la informaci?n de dentro. >> > OK ... delete todos los volumes. > Hago label y el add ... OK ... 1 Volumes created in pool File > > >>> ?Y ahora que? >>> Pues he hecho de nuevo el add con... >>> >>> Enter number of Volumes to create. 0=>fixed name. Max=99: 1 >>> Enter Volume name: copifile >>> Enter the starting number: 1 >>> 1 Volumes created in Pool File >>> >>> Ahora si hago status media me dice: >>> >>> Running Jobs: >>> No Jobs running. >>> ==== >>> Jobs waiting to reserve a drive. >>> ==== >>> >>> Terminated Jobs: >>> Todos con status error y el ultimo cancel >>> ==== >>> Device status: >>> Device "FileStorage" (/copias) is not open. >>> ==== >>> User Volume status: >>> ==== >>> >>> ==== >>> >>> ?No entiendo muy bien que esta pasando? >>> ?Tu que dices? >> Cancela todos los trabajos que te queden. y vuelve a ejecutar un backup, >> creo que ya deber? funcionarte. >> > A ver ... hago run me dice que Job queued. JobId=11 > Hago un stat all (4) > En Running Jobs del director dice que el JobId esta running. > En Running Jobs del storage dice: > Writing: Full Backup job BackupClient1 JobId=11 Volume="copifile" > pool="File" device="FileStorage" (/copias) > spooling=0 despooling=0 despool_wait=0 > Files=0 Bytes=0 Bytes/sec=0 > FDReadSeqNo=6 in_msg=6 out_msg=4 fd=5 > ==== > Jobs waiting to reserve a drive > ==== > Device status: > Device "FileStorage" (/copias) is not open. > Device is BLOCKED waiting for mount of volume "copifile", > Pool: File > Media Type: File > ==== > > De modo que hago un mount y repito el stat all... > > !Nada! sigue mostrandome lo mismo! Buenas..... Me estoy empezando a quedar sin cartuchos...... Ya tienes el fd, sd y director correctamente,pero no es capaz de usar las cintas. Parece que el problema es por el montaje. He estado buscando info por la red pero no doy con ello. He visto esto: ---- Now, what this tells me is that no jobs are running and that none of the devices are in use. Now, if I *unmount* the autochanger, which will not be used in this example, and then start a Job that uses the File device, the job will block. When I re-issue the status storage command, I get for the Device status: status storage=File ... Device status: Autochanger "DDS-4-changer" with devices: "DDS-4" (/dev/nst0) Device "DDS-4" (/dev/nst0) is not open. Device is BLOCKED. User unmounted. Drive 0 is not loaded. Device "DVD-Writer" (/dev/hdc) is not open. Device "File" (/tmp) is not open. Device is BLOCKED waiting for media. ==== ... Now, here it should be clear that if a job were running that wanted to use the Autochanger (with two devices), it would block because the user unmounted the device. The real problem for the Job I started using the "File" device is that the device is blocked waiting for media - that is Bacula needs you to label a Volume. --- Ademas revisando tu director, veo que tienes declarados 2 pools. Puede que sea eso lo que esta dando error, comenta la linea: # Scratch pool definition Pool { Name = Scratch Pool Type = Backup } Reinicia el director: /etc/init.d/bacula-director restart Prueba de nuevo. Cuando estes en el bconsole, ejecuta status y ves por las opciones. primero el 1 para ver el director y confirmar que llegas, luego el storage que es donde dará fallos. Después el client y seleccionas el cliente, debería llegar y no dar fallos. Si es como digo, tienes todo funcionando. Bacula llega al sd, al director, al fd y al cliente. pero dentro del fd no encuentra cintas. PD: Releyendo creo que el problema esta en que tienes 2 pools declarados. Un saludo -- |