Bacula-users

[Bacula-users] Bacula rewrites storageId of a Volume

2008-04-29 04:29:17
Subject: [Bacula-users] Bacula rewrites storageId of a Volume
From: Sebastian Stelmasik <s.stelmasik AT it-websolutions DOT com>
To: bacula-users AT lists.sourceforge DOT net
Date: Tue, 29 Apr 2008 10:28:55 +0200
Hallo,
I'm running bacula on a SLES 10 Server and have the following issue:
Bacula rewrites the storageId of the 2nd Volume after finishing the first Job on the 2nd Volume and changes it to the 1rst StorageId, which is FULL! After this one cannot run any backup, even if I change the StorageID directy in the mysql-database - bacula always says - it cannot find the volume on the first device!

  • There are two Devices (bacula-sd.conf):
Device {
  Name = FileStorage
  Media Type = File
  Archive Device = /media/disk/backups/
  LabelMedia = yes;                   # lets Bacula label unlabeled media
  Random Access = Yes;
  AutomaticMount = yes;               # when device opened, read it
  RemovableMedia = no;
  AlwaysOpen = yes;
  Maximum Volume Size = 450G;
}

Device {
  Name = FileStorage2
  Media Type = File
  Archive Device = /media/sdb1/
  LabelMedia = yes;                   # lets Bacula label unlabeled media
  Random Access = Yes;
  AutomaticMount = yes;               # when device opened, read it
  RemovableMedia = no;
  AlwaysOpen = yes;
  Maximum Volume Size = 279G;
}
  • And 2 storages:
Storage {
  Name = File
  Address = backup                # N.B. Use a fully qualified name here
  SDPort = 9103
  Password = "cw41jU2LGePoueBM9+XQbhx+8HovJdP/qlCp7Yt/nMEm"
  Device = FileStorage
  Media Type = File
}

Storage {
  Name = File2
  Address = backup                # N.B. Use a fully qualified name here
  SDPort = 9103
  Password = "cw41jU2LGePoueBM9+XQbhx+8HovJdP/qlCp7Yt/nMEm"
  Device = FileStorage2
  Media Type = File
}

  • And 1 Pool:
Pool {
  Name = Default
  Pool Type = Backup
  Recycle = yes                       # Bacula can automatically recycle Volumes
  AutoPrune = yes                     # Prune expired volumes
  Volume Retention = 31 days         # one month
  Storage = File
  Storage = File2
}

  • And 2 Volumes:
Volume Before Job:
INSERT INTO `Media` VALUES (4,'USB_Media4Backup',0,1,'File',0,0,'2008-04-24 17:20:14','2008-04-28 07:22:04','2008-04-24 17:20:14',32,112,7489846,34,483183820263,0,0,8135571,0,'Full',1,1,2678400,0,0,0,0,0,1,0,0,0,10128444627,112,2147483110,0,1,'0000-00-00 00:00:00',0,0,NULL),(10,'SDB1_New',0,1,'File',0,0,'2008-04-29 09:27:04','2008-04-29 09:31:22','2008-04-29 09:27:04',1,0,1849,1,119255601,0,0,1850,0,'Append',1,1,2678400,0,0,0,0,0,2,0,0,0,461499,0,119255600,0,0,'0000-00-00 00:00:00',0,1,NULL);

Volume After Job:
INSERT INTO `Media` VALUES (4,'USB_Media4Backup',0,1,'File',0,0,'2008-04-24 17:20:14','2008-04-28 07:22:04','2008-04-24 17:20:14',32,112,7489846,34,483183820263,0,0,8135571,0,'Full',1,1,2678400,0,0,0,0,0,1,0,0,0,10128444627,112,2147483110,0,1,'0000-00-00 00:00:00',0,0,NULL),(10,'SDB1_New',0,1,'File',0,0,'2008-04-29 09:27:04','2008-04-29 09:31:22','2008-04-29 09:27:04',1,0,1849,1,119255601,0,0,1850,0,'Error',1,1,2678400,0,0,0,0,0,1,0,0,0,461499,0,119255600,0,0,'0000-00-00 00:00:00',0,1,NULL);

  • Here's the Log:
  • first Job on the 2nd Volume is OK:
29-Apr 09:27 backup-dir JobId 83: Start Backup JobId 83, Job=System.2008-04-29_09.27.03
29-Apr 09:27 backup-dir JobId 83: Using Device "FileStorage2"
29-Apr 09:27 backup-sd JobId 83: Wrote label to prelabeled Volume "SDB1_New" on device "FileStorage2" (/media/sdb1/)
29-Apr 09:31 backup-sd JobId 83: Job write elapsed time = 00:04:18, Transfer rate = 461.6 K bytes/second
29-Apr 09:31 backup-dir JobId 83: Bacula backup-dir 2.2.8 (26Jan08): 29-Apr-2008 09:31:22
  Build OS:               i686-pc-linux-gnu suse 10
  JobId:                  83
  Job:                    System.2008-04-29_09.27.03
  Backup Level:           Incremental, since=2008-04-28 00:47:04
  Client:                 "backup-fd" 2.2.8 (26Jan08) i686-pc-linux-gnu,suse,10
  FileSet:                "System" 2008-04-27 11:50:50
  Pool:                   "Default" (From Job resource)
  Storage:                "File" (From Pool resource)
  Scheduled time:         29-Apr-2008 09:26:56
  Start time:             29-Apr-2008 09:27:04
  End time:               29-Apr-2008 09:31:22
  Elapsed time:           4 mins 18 secs
  Priority:               10
  FD Files Written:       664
  SD Files Written:       664
  FD Bytes Written:       119,014,414 (119.0 MB)
  SD Bytes Written:       119,098,739 (119.0 MB)
  Rate:                   461.3 KB/s
  Software Compression:   68.6 %
  VSS:                    no
  Storage Encryption:     no
  Volume name(s):         SDB1_New
  Volume Session Id:      1
  Volume Session Time:    1209453818
  Last Volume Bytes:      119,255,601 (119.2 MB)
  Non-fatal FD errors:    0
  SD Errors:              0
  FD termination status:  OK
  SD termination status:  OK
  Termination:            Backup OK


  • on the 2nd Job Bacula looks for the Volume on the wrong device, WHY?
29-Apr 09:31 backup-dir JobId 83: Begin pruning Jobs.
29-Apr 09:31 backup-dir JobId 83: No Jobs found to prune.
29-Apr 09:31 backup-dir JobId 83: Begin pruning Files.
29-Apr 09:31 backup-dir JobId 83: No Files found to prune.
29-Apr 09:31 backup-dir JobId 83: End auto prune.

29-Apr 09:37 backup-dir JobId 84: Start Backup JobId 84, Job=Jobs.2008-04-29_09.37.04
29-Apr 09:37 backup-dir JobId 84: Using Device "FileStorage"
29-Apr 09:37 backup-sd JobId 84: Warning: Volume "SDB1_New" not on device "FileStorage" (/media/disk/backups/).
29-Apr 09:37 backup-sd JobId 84: Marking Volume "SDB1_New" in Error in Catalog.
29-Apr 09:37 backup-sd JobId 84: Warning: Volume "SDB1_New" not on device "FileStorage" (/media/disk/backups/).
29-Apr 09:37 backup-sd JobId 84: Marking Volume "SDB1_New" in Error in Catalog.
29-Apr 09:37 backup-sd JobId 84: Error: Could not open device "FileStorage" (/media/disk/backups/): ERR=dev.c:491 Could not open: /media/disk/backups/SDB1_New, ERR=Datei oder Verzeichnis nicht gefunden

29-Apr 09:37 backup-sd JobId 84: Fatal error: Could not ready device "FileStorage" (/media/disk/backups/) for append.
29-Apr 09:37 backup-fd JobId 84: Fatal error: job.c:1811 Bad response to Append Data command. Wanted 3000 OK data
, got 3903 Error append data



What's going wrong here?

Best regards,

Sebastian


-- 

IT- & Websolutions Stelmasik

Pottgiesserstr. 7
45144 Essen

Phone:  +49-201-6177151
Fax:    +49-201-6177152
Mobile: +49-172-2415963

---

Die Information in dieser e-mail ist vertraulich und exklusiv fuer den Adressatenkreis bestimmt. Weiterleitung oder Kopieren, auch auszugsweise, darf nur mit ausdruecklicher Einwilligung von IT- & Websolutions Stelmasik erfolgen. In jedem Fall ist sicherzustellen, dass keinerlei inhaltliche Veraenderungen erfolgen. IT- & Websolutions Stelmasik uebernimmt keine Haftung fuer die Richtigkeit der Information in dieser e-mail noch fuer Handlungen, die auf ihrer Grundlage erfolgen.

The information provided in this e-mail is confidential and is for the sole use of the recipient. It may not be disclosed, copied or distributed in any form without the obtained permission of IT- & Websolutions Stelmasik and to the extent that it is passed on care must be taken to ensure that this is in a form which accurately reflects the information presented here. No responsibility can be accepted by  IT- & Websolutions Stelmasik for the correctness of the information provided in this e-mail nor for any action on its basis.

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
<Prev in Thread] Current Thread [Next in Thread>