On Monday 07 November 2005 18:22, Matt Bettinger wrote: > >-----Original Message----- > >From: Kern Sibbald [mailto:[EMAIL PROTECTED] > >Sent: Monday, November 07, 2005 11:09 AM > >To: bacula-users@lists.sourceforge.net > >Cc: Matt Bettinger > >Subject: Re: [Bacula-users] DEVICE BLOCKED/appendable volume help > > > >On Monday 07 November 2005 17:02, Matt Bettinger wrote: > >> Hello, > >> > >> I am running bacula henbane-dir Version: 1.36.3 (22 April 2005) on > >> FreeBSD 5.4 and running into a problem. The jobs get hung up due to > >> either DEVICE BLOCKED message and/or cannot find appendable volume > >> message. > >> > >> I insert a new tape and format it using the mt command ( I know mt > > weof > > >> should work too but I do long format in this case to be sure). After > >> the mt format is done I labeled the tape in bconsole and I can see it > > in > > >> list volumes. > > > >Rather than an mt format, I would recommend a: > > > > mt rewind > > mt weof > > mt rewind > > OK. Thank you for your time by the way. > > I did the mt commands and the mount storage commands. > > henbane# mt rewind > henbane# mt weof > henbane# mt rewind > henbane# console > Connecting to Director henbane:9101 > 1000 OK: henbane-dir Version: 1.36.3 (22 April 2005) > Enter a period to cancel a command. > *label > Using default Catalog name=BackupDB DB=bacula > Automatically selected Storage: DLT_TAPE > Enter new Volume name: Tape_73 > Automatically selected Pool: Default > Connecting to Storage daemon DLT_TAPE at henbane:9103 ... > Sending label command for Volume "Tape_73" Slot 0 ... > 3000 OK label. Volume=Tape_73 Device=/dev/nsa0 > Catalog record for Volume "Tape_73", Slot 0 successfully created. > Requesting to mount DLT4000 ... > 3001 Device /dev/nsa0 is mounted with Volume "Tape_73" > * > You have messages. > *mess > 07-Nov 11:17 henbane-sd: Someone woke me up, but I cannot find any > appendable > volumes for Job=henbane.2005-10-30_01.05.00. > 07-Nov 11:17 henbane-sd: Job henbane.2005-10-30_01.05.00 waiting. Cannot > find any appendable volumes. > Please use the "label" command to create a new Volume for: > Storage: DLT4000 > Media type: DLT > Pool: Default > *mount storage=DLT4000 > Storage resource "DLT4000": not found <<<<< what is this all > about?? > Automatically selected Storage: DLT_TAPE > 3001 OK mount. Device=/dev/nsa0
My error. It should be: mount storage=DLT_TAPE then what is important that you didn't do is: status storage=DLT_TAPE PS: it is often much easier if you use the same name in the Director and SD for your device: I.e. DLT4000 instead of DLT_TAPE, then the messages printed by the SD (Storage: DLT4000) correspond to what you type into bconsole. > > > Thanks! > > -mb > > >that ensures you have a blank tape and that it is positioned at the > >beginning > >of the tape. > > > >> | 17 | Tape_73 | Append | 1 | 0 | > >> > >> 31,536,000 | 1 | 0 | 1 | DLT | 0000-00-00 > >> 00:00:00 | > >> > >> When I manually mount the tape in bconsole it mounts fine and then > > the > > >> job attempts to continue but it always says > >> > >> 07-Nov 06:50 henbane-sd: Job henbane.2005-10-30_01.05.00 waiting. > > Cannot > > >> find any appendable volumes. > >> Please use the "label" command to create a new Volume for: > >> Storage: DLT4000 > >> Media type: DLT > >> Pool: Default > > > >The thing to do at this point, if you have mounted what you consider to > > be > > >a > >valid tape is to do in bconsole: > > > > mount storage=DLT4000 > > status storage=DLT4000 > > > >and see what tape the SD thinks is mounted, and the exact reason is > > that it > > >is > >waiting ... > > > >> It works for the most part but every now and then I get these DEVICE > >> BLOCKED or cannot find appendable volume errors and I don't know how > > to > > >> fix them. I thought adding a freshly formatted and labeled tape > > would > > >> be the appropriate action? > >> > >> I purchased a bunch of new DLT tapes in the hopes that this will fix > > the > > >> problems since some of the tape I have been using since 1999! > >> > >> > >> Here is one of my bacula-dir.conf's from a setup that gets hung up > > like > > >> this: > >> > >> # > >> # Bacula config file for home full + differentials # > >> > >> Director { > >> Name = henbane-dir > >> DIRport = 9101 # where we listen for UA connections > >> QueryFile = "/usr/local/share/bacula/query.sql" > >> WorkingDirectory = "/var/db/bacula" > >> PidDirectory = "/var/run/" > >> Maximum Concurrent Jobs = 1 > >> Password = "###" > >> Messages = Standard > >> } > >> > >> ######################################### > >> ## Backup Schedules ## > >> ######################################### > >> > >> Schedule { > >> Name = "HenbaneWeeklyCycle" > >> Run = Level=Full sun at 1:05 > >> Run = Level=Differential mon-sat at 1:05 } > >> > >> Schedule { > >> Name = "ImeldaWeeklyCycle" > >> Run = Level=Full fri at 1:05 > >> Run = Level=Differential sat-thu at 1:05 } > >> > >> Schedule { > >> Name = "DaniWeeklyCycle" > >> Run = Level=Full fri at 1:05 > >> Run = Level=Differential sat-thu at 1:05 } > >> > >> Schedule { > >> Name = "OsxLaptopWeeklyCycle" > >> Run = Level=Full fri at 1:05 > >> Run = Level=Differential sat-thu at 1:05 } > >> > >> Schedule { > >> Name = "CatalogSched" > >> Run = Level=Full sun-sat at 1:10 > >> } > >> > >> ########################################## > >> ## Jobs ## > >> ########################################## > >> > >> Job { > >> Name = "henbane" > >> Type = Backup > >> Level = Differential > >> Client = henbane-fd > >> FileSet = "HENBANE" > >> Messages = Standard > >> Storage = DLT_TAPE > >> Pool = Default > >> Schedule = "HenbaneWeeklyCycle" > >> Write Bootstrap = "/var/db/bacula/henbane.bsr" > >> } > >> > >> job { > >> Name = "imelda" > >> Type = Backup > >> Level = Differential > >> Client = imelda-fd > >> FileSet="IMELDA" > >> Messages = Standard > >> Storage = DLT_TAPE > >> Pool = Default > >> Schedule = "ImeldaWeeklyCycle" > >> Write Bootstrap = "/var/db/bacula/imelda.bsr" > >> Priority = 11 > >> } > >> > >> Job { > >> Name = "dani" > >> Type = Backup > >> Level = Differential > >> Client = dani-fd > >> FileSet="DANI" > >> Messages = Standard > >> Storage = DLT_TAPE > >> Pool = Default > >> Schedule = "DaniWeeklyCycle" > >> Write Bootstrap = "/var/db/bacula/dani.bsr" > >> Priority = 12 > >> } > >> > >> job { > >> Name = "osxlaptop" > >> Type = Backup > >> Level = Differential > >> Client = osxlaptop-fd > >> FileSet="OSXLAPTOP" > >> Messages = Standard > >> Storage = DLT_TAPE > >> Pool = Default > >> Schedule = "OsxLaptopWeeklyCycle" > >> Write Bootstrap = "/var/db/bacula/osxlaptop.bsr" > >> Priority = 11 > >> } > >> > >> Job { > >> Name = "CatalogBackup" > >> Type = Backup > >> Level = Full > >> Client = henbane-fd > >> FileSet = "CatalogFile" > >> Messages = Standard > >> Storage = DLT_TAPE > >> Pool = Default > >> Schedule = "CatalogSched" > >> RunBeforeJob = "/usr/local/share/bacula/make_catalog_backup bacula > >> bacula" > >> RunAfterJob = "/usr/local/share/bacula/delete_catalog_backup" > >> Write Bootstrap = "//var/db/bacula/BackupCatalog.bsr" > >> Priority = 15 # run after backups, but before Verifies > >> } > >> > >> ########################################## > >> ## Restore Jobs ## > >> ########################################## > >> > >> Job { > >> Name = "RestoreHenbane" > >> Type = Restore > >> Client = henbane-fd > >> FileSet = "HENBANE" > >> Storage = DLT_TAPE > >> Messages = Standard > >> Pool = Default > >> Where = / > >> } > >> > >> Job { > >> Name = "RestoreHenbane" > >> Type = Restore > >> Client = henbane-fd > >> FileSet = "HENBANE" > >> Storage = DLT_TAPE > >> Messages = Standard > >> Pool = Default > >> Where = / > >> } > >> > >> Job { > >> Name = "RestoreDani" > >> Type = Restore > >> Client = dani-fd > >> FileSet = "DANI" > >> Storage = DLT_TAPE > >> Messages = Standard > >> Pool = Default > >> Where = / > >> } > >> > >> Job { > >> Name = "RestoreImelda" > >> Type = Restore > >> Client = imelda-fd > >> FileSet = "IMELDA" > >> Storage = DLT_TAPE > >> Messages = Standard > >> Pool = Default > >> Where = / > >> } > >> > >> ########################################## > >> ## File Sets ## > >> ########################################## > >> > >> > >> FileSet { > >> Name = "HENBANE" > >> Include { > >> Options { signature=SHA1 } > >> File = /boot > >> File = /var > >> File = /home > >> File = /usr/local/www > >> File = /usr/local/etc > >> File = /etc > >> File = /usr/src/sys/i386/conf > >> File = /widge > >> } > >> Exclude { > >> File = /proc > >> File = /tmp > >> } > >> } > >> > >> # Backup the copy of the catalog > >> FileSet { > >> Name = "CatalogFile" > >> Include { > >> File = /var/db/bacula/bacula.sql > >> } > >> } > >> > >> > >> FileSet { > >> Name = "IMELDA" > >> Include { > >> Options { signature=SHA1 } > >> File = /home > >> File = /etc > >> File = /var > >> } > >> Exclude { } > >> } > >> > >> FileSet { > >> Name = "DANI" > >> Include { > >> Options { signature=SHA1 } > >> File = "i:/" > >> File = "c:/Documents and Settings/dani/Desktop" > >> File = "c:/Documents and Settings/dani/Favorites" > >> } > >> Exclude { > >> File = "/extra music" > >> File = "/WUTemp" > >> File = "/Program Files" > >> File = "/MSOCache" > >> File = "/RECYCLER" > >> File = "/msdownld.tmp" > >> File = "*.mp3" > >> File = "*.MP3" > >> } > >> } > >> > >> FileSet { > >> Name = "OSXLAPTOP" > >> Include { > >> Options { signature=SHA1 } > >> File = /Users/imelda/Documents > >> File = "/Users/imelda/Backup-Quicken Data.qdfm" > >> File = "/Users/imelda/Quicken Data.qdfm" > >> } > >> Exclude { > >> File = Music > >> File = Movies > >> File = Pictures > >> } > >> } > >> > >> > >> ########################################## > >> ## Definition of tape storage device ## > >> ########################################## > >> > >> Storage { > >> Name = DLT_TAPE > >> Address = henbane # N.B. Use a fully qualified name > >> here > >> SDPort = 9103 > >> Password = "###" # password for Storage daemon > >> Device = DLT4000 # must be same as Device in > >> Storage daemon > >> Media Type = DLT # must be same as MediaType in > >> Storage daemon > >> } > >> > >> ########################################## > >> ## Client Definitions ## > >> ########################################## > >> > >> Client { > >> Name = henbane-fd > >> Address = henbane > >> FDPort = 9102 > >> Catalog = BackupDB > >> Password = "###" > >> File Retention = 30d # 80 days > >> Job Retention = 1y # one year > >> AutoPrune = yes # Prune expired Jobs/Files > >> } > >> > >> Client { > >> Name = imelda-fd > >> Address = 192.168.1.1 > >> FDPort = 9102 > >> Catalog = BackupDB > >> Password = "###" > >> File Retention = 30d # 80 days > >> Job Retention = 1y # one year > >> AutoPrune = yes # Prune expired Jobs/Files > >> } > >> > >> Client { > >> Name = dani-fd > >> Address = 192.168.1.3 > >> FDPort = 9102 > >> Catalog = BackupDB > >> Password = "###" > >> File Retention = 30d # 80 days > >> Job Retention = 1y # one year > >> AutoPrune = yes # Prune expired Jobs/Files > >> } > >> > >> Client { > >> Name = osxlaptop-fd > >> Address = 192.168.1.21 > >> FDPort = 9102 > >> Catalog = BackupDB > >> Password = "###" > >> File Retention = 30d # 80 days > >> Job Retention = 1y # one year > >> AutoPrune = yes # Prune expired Jobs/Files > >> } > >> > >> > >> ######################################### > >> ## Catalog Definitions ## > >> ######################################### > >> > >> Catalog { > >> Name = BackupDB > >> dbname = bacula; user = bacula; password = "" > >> } > >> > >> ######################################### > >> ## Message/Mail Definitions ## > >> ######################################### > >> > >> Messages { > >> Name = Standard > >> mailcommand = "/usr/local/sbin/bsmtp -h localhost -f \"\(Bacula\) > > %r\" > > >> -s \"Bacula: %t %e of %c %l\" %r" > >> operatorcommand = "/usr/local/sbin/bsmtp -h localhost -f \"\(Bacula\) > >> %r\" -s \"Bacula: Intervention needed for %j\" %r" > >> Mail = [EMAIL PROTECTED] = all, !skipped, !terminate > >> append = "/var/db/bacula/log" = all, !skipped, !terminate > >> operator = [EMAIL PROTECTED] = mount > >> console = all, !skipped, !saved > >> } > >> > >> ######################################### > >> ## Pool Definistions ## > >> ######################################### > >> > >> Pool { > >> Name = Default > >> Pool Type = Backup > >> Recycle = yes # Bacula can automatically > > recycle > > >> Volumes > >> AutoPrune = yes # Prune expired volumes > >> Volume Retention = 1y # one year > >> } > >> > >> > >> > >> ------------------------------------------------------- > >> SF.Net email is sponsored by: > >> Tame your development challenges with Apache's Geronimo App Server. > >> Download it for free - -and be entered to win a 42" plasma tv or your > > > >very > > > >> own Sony(tm)PSP. Click here to play: > > http://sourceforge.net/geronimo.php > > >> _______________________________________________ > >> Bacula-users mailing list > >> Bacula-users@lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/bacula-users > > > >-- > >Best regards, > > > >Kern > > > > ("> > > /\ > > V_V -- Best regards, Kern ("> /\ V_V ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users