{"id":223,"date":"2012-01-12T15:47:37","date_gmt":"2012-01-12T14:47:37","guid":{"rendered":"http:\/\/elkano.org\/blog\/?p=223"},"modified":"2012-01-12T15:47:37","modified_gmt":"2012-01-12T14:47:37","slug":"bacula-device-is-blocked-waiting-to-create-a-volume","status":"publish","type":"post","link":"https:\/\/elkano.org\/blog\/bacula-device-is-blocked-waiting-to-create-a-volume\/","title":{"rendered":"Bacula: Device is BLOCKED waiting to create a volume"},"content":{"rendered":"<p>I&#8217;m using Bacula server 5.2.3 for backing up my data, actually backing up more than 20 servers. The last days I am getting this message in bacula server from one of my jobs:<\/p>\n<pre class=\"brush: text; gutter: false; first-line: 1; highlight: []; html-script: false\">\r\n--\r\n12-ene 10:46 bacula-sd JobId 5799: Job Backup-server15.2012-01-12_09.41.51_28 is waiting. Cannot find any appendable volumes.\r\nPlease use the &quot;label&quot; command to create a new Volume for:\r\n    Storage:      &quot;FileStorage-server15&quot; (\/pools\/vol0\/server15)\r\n    Pool:         server15-file\r\n    Media type:   File-server15\r\n--\r\n<\/pre>\n<p>My backups are disk based, each server has it&#8217;s own storage and device, and are configured to label volumes automatically. I am getting this error only from one of my jobs, the others are finishing correctly.<\/p>\n<p>I&#8217;ve rechecked all configuration for this client, looking for errors but it had the same settings than the others clients and in the past has been running ok. I&#8217;ve checked also, that LabelMedia option has set to yes in it&#8217;s device config:<\/p>\n<pre class=\"brush: text; gutter: false; first-line: 1; highlight: []; html-script: false\">\r\n#\r\nDevice {\r\n  Name = FileStorage-server15\r\n  Media Type = File-server15\r\n  Archive Device = \/pools\/vol0\/server15\r\n  LabelMedia = yes;                   # lets Bacula label unlabeled media\r\n  Random Access = Yes;\r\n  AutomaticMount = yes;               # when device opened, read it\r\n  RemovableMedia = no;\r\n  AlwaysOpen = no;\r\n}\r\n#\r\n<\/pre>\n<p>When I listed the pool&#8217;s volumes for this client I could see one volume in APPEND state, I have configured bacula to use one volume per job.<\/p>\n<p><code>*list media pool=server15-file<\/code><\/p>\n<pre class=\"brush: text; gutter: false; first-line: 1; highlight: []; html-script: false\">\r\n--\r\n+---------+-----------------------+-----------+---------+----------------+----------+--------------+---------+------+-----------+--------------+---------------------+\r\n| MediaId | VolumeName            | VolStatus | Enabled | VolBytes       | VolFiles | VolRetention | Recycle | Slot | InChanger | MediaType    | LastWritten         |\r\n|   7,178 | disk-server157178      | APPEND    |       1 |              0 |        0 |    1,209,600 |       0 |    0 |         0 | File-server15 | 0000-00-00 00:00:00 |\r\n--\r\n<\/pre>\n<p>I&#8217;ve checked that this volume does not exist physically in disk, so I&#8217;ve manually purged this volume in bacula catalog. Anyway when a new job is run it has to create a new volume in bacula catalog.<\/p>\n<p><code>*purge volume=disk-server157178 yes<\/code><\/p>\n<p>When I&#8217;ve relaunched this job again, a new volume has been added and the job has finished Ok.<br \/>\nI don&#8217;t know exactly why I&#8217;ve reached this situation, may be because a few days ago I&#8217;ve run out of disk space, but I am not sure.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m using Bacula server 5.2.3 for backing up my data, actually backing up more than 20 servers. The last days I am getting this message in bacula server from one of my jobs: &#8212; 12-ene 10:46 bacula-sd JobId 5799: Job Backup-server15.2012-01-12_09.41.51_28 is waiting. Cannot find any appendable volumes. Please use the &quot;label&quot; command to create [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[5],"tags":[31,146,32,33],"_links":{"self":[{"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/posts\/223"}],"collection":[{"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/comments?post=223"}],"version-history":[{"count":21,"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/posts\/223\/revisions"}],"predecessor-version":[{"id":244,"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/posts\/223\/revisions\/244"}],"wp:attachment":[{"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/media?parent=223"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/categories?post=223"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/tags?post=223"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}