On Thursday 02 June 2005 13:14, Andreas Jellinghaus wrote: > Hi, > > | 17 | OpenSC | 2005-03-30 09:17:44 | B | F | 41,268 | > > 1,714,885,770 | T | > > | 18 | OpenSC | 2005-03-31 00:48:22 | B | I | 1,610 | > > 98,040,782 | T | > > | 19 | OpenSC | 2005-04-07 10:07:59 | B | I | 3,980 | > > 776,149,752 | T | > > | 20 | OpenSC | 2005-05-30 20:08:12 | B | I | 17,729 | > > 1,223,273,964 | T | > > looks fine to me: one full backup with 41k files and three incremental > backups. > > unfortunalty restore does not work: there are 0 files if I try to restore > the fullbackup. no longer in the catalog? > > the storage device is: > > Device { > Name = FileBackup > Media Type = File > Archive Device = /root/bacula > LabelMedia = Yes; > Random Access = Yes; > AutomaticMount = yes; > RemovableMedia = no; > AlwaysOpen = no; > } > > and all files are still on the hard disk. > > so I tried bscan to get those files back into the catalog: > > dream:~# /usr/lib/bacula/bscan.mysql -s -m -P bacula > -c /etc/bacula/bacula-sd.conf -v -V BaculaCD0010\|BaculaCD0011\| > BaculaCD00012 /root/bacula > ... > bscan: bscan.c:651 32,768 file records. At file:blk=0:7,019 > bytes=452,532,250 02-Jun 12:42 bscan: Got EOF at file 1 on device > /root/bacula, Volume "BaculaCD0010|BaculaCD0011|BaculaCD00012" > 02-Jun 12:42 bscan: End of Volume at file 1 on device /root/bacula, Volume > "BaculaCD0010|BaculaCD0011|BaculaCD00012" > bscan: bscan.c:303 Create JobMedia for Job OpenSC.2005-03-30_09.17.42 > bscan: bscan.c:1121 Created JobMedia record JobId 17, MediaId 10 > 02-Jun 12:42 bscan: Ready to read from volume "BaculaCD0011" on > device /root/bacula. > bscan: bscan.c:403 Pool record for Default found in DB. > bscan: bscan.c:417 Pool type "Backup" is OK. > bscan: bscan.c:427 Media record for BaculaCD0011 found in DB. > bscan: bscan.c:445 Media type "File" is OK. > bscan: bscan.c:454 VOL_LABEL: OK for Volume: BaculaCD0011 > 02-Jun 12:44 bscan: Got EOF at file 1 on device /root/bacula, Volume > "BaculaCD0011" > 02-Jun 12:44 bscan: End of Volume at file 1 on device /root/bacula, Volume > "BaculaCD0011" > bscan: bscan.c:303 Create JobMedia for Job OpenSC.2005-03-30_09.17.42 > bscan: bscan.c:1121 Created JobMedia record JobId 17, MediaId 11 > 02-Jun 12:44 bscan: Fatal Error at dev.c:341 because: > dev.c:340 Could not open: /root/bacula/BaculaCD00012, ERR=No such file or > direct > ory > 02-Jun 12:44 bscan: bscan Fatal error: Open device /root/bacula volume > BaculaCD0 > 0012 failed, ERR=dev.c:340 Could not open: /root/bacula/BaculaCD00012, > ERR=No su > ch file or directory > > 02-Jun 12:44 bscan: bscan Fatal error: mount.c:467 Cannot open > Dev=/root/bacula, > > Vol=ªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªª >ªªªª > ªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªª >ªªªªª > ªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªª >ªªªªª > ªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªª >ªªªªª > ªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªª >ªªªªª > ªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªª >ªªªªª > ªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªª >ªªªªª > ªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªª >ªªªªª > ªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªª >ªªªªª > ªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªª >ªªªªª > ªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªªª >ªªªªª ªªªªªªªªªªªªªªªªªªªªªªªªªª > 02-Jun 12:44 bscan: End of all volumes. > Segmentation fault > > my fault, the name is "BaculaCD0012" not "BaculaCD00012" (extra "0"). > still bscan shouldn't segfault, right?
No, but there is some silly bug. I'll need a traceback to do much of anything -- or a guaranteed way of reproducing it. > > how to recover from a half done bscan? Run it again. It won't hurt anything. > I purged all files and jobs, and I'm not running bscan on > all volume, I hope this is the right idea? > > purge does not affect the backup media, and I have a catalog > backup, so I should be fine, if that wasn't such a good idea, > right? > > I'm running debian sarge: > dream:/var/lib/bacula# dpkg -s bacula-sd > Package: bacula-sd > Version: 1.36.2-2sarge1 > (i386 Pentium II 400, kernel 2.6.11-rc3 ...) > > Also, is it wrong to bscan volume by volume, if > a job used several volumes? > or will the result be > the same? *I* wouldn't run it Volume by volume, but by design for a scan, it really should not matter. For a restore, you will likely have a truncated file (the last one on the Volume). -- Best regards, Kern ("> /\ V_V N�HS^�隊X���'�����j("{k�ۜ�xj(I����[EMAIL PROTECTED],)ݢ� ��Ƨn�����b��(������0� i�'�*'�����u��^�&�����