I have bacula configured to use a removable hard drive mounted at /mnt/backup1.  This works pretty well, but I have to manage mounting/umounting/partitioning myself: not a big deal.  For the first time today, however, I tried to do a restore of a file which happened to span across two of these disks, and I got the following error during the restore:

28-May 04:26 sophy-fd: RestoreFiles.2006-05-28_03.27.55 Error: attribs.c:337 File size of restored file /tmp/bacula-restores/mnt/fastRaid/Les/Outlook/saved/outlook.pst not correct. Original 437813248, restored 356188160.
28-May 04:26 sophy-sd: RestoreFiles.2006-05-28_03.27.55 Fatal error: acquire.c:195 Open device "FileStorage" (/mnt/backup1) Volume "daily003" failed: ERR=dev.c:444 Could not open: /mnt/backup1/daily003, ERR=No such file or directory

28-May 04:26 sophy-sd: RestoreFiles.2006-05-28_03.27.55 Fatal error: mount.c:501 Cannot open Dev="FileStorage" (/mnt/backup1), Vol=daily003

Why isn't bacula pausing and asking me to insert the daily003 volume???  Of course it can't find it, it's not inserted!  When I started the restore, it did the same thing for the first disk, so I figured out by hand which disk it started on and put it in.

Here's the relevant portion of my bacula-sd.conf:

Device {
  Name = FileStorage
  Media Type = RemovableFile
  Archive Device = /mnt/backup1

  #Requires Mount = yes
  #Mount Point = /mnt/backup1
  #Mount Command = "/bin/mount /mnt/backup1"
  #Unmount Command = "/bin/umount /mnt/backup1"
  #Write Part Command = "/usr/bin/true"

  LabelMedia = yes;                   # lets Bacula label unlabeled media
  Random Access = Yes;
  AutomaticMount = no;               # when device opened, read it
  RemovableMedia = yes;
  AlwaysOpen = no;
}

Am I doing something wrong? If so, what?  If not, is there a patch I can apply? I need this restore to happen soon.

Thanks,
John Demme
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to