Hi folks, I had a label command freeze up today under 1.36.2. Here is what it looked like. This is just an FYI and in case it triggers something in an otherwise unrelated issue.
*label Using default Catalog name=MyCatalog DB=bacula The defined Storage resources are: 1: File 2: DLT 3: DLTRemote Select Storage resource (1-3): 2 Enter new Volume name: DLT7000-015 Automatically selected Pool: Default Connecting to Storage daemon DLT at bacula.unixathome.org:9103 ... Sending label command for Volume "DLT7000-015" Slot 0 ... End of Volume "DLT7000-015" at 0:0 on device /dev/nsa0. Write of 64512 bytes got 0. CatReq Job= UpdateMedia VolName=DLT7000-015 VolJobs=0 VolFiles=1 VolBlocks=0 VolBytes=0 VolMounts=0 VolErrors=0 VolWrites=1 M axVolBytes=0 EndTime=1114956778 VolStatus= Slot=0 relabel=0 InChanger=0 VolReadTime=0 VolWriteTime=0 ^C There were no messages on /var/log/messages. Then I tried this: [EMAIL PROTECTED]:~] $ sudo mt -f /dev/nsa0 status Password: mt: /dev/nsa0: Device busy # OK, so the SD still has the tape, so I'll stop the daemons [EMAIL PROTECTED]:~] $ sudo /usr/local/etc/rc.d/z-bacula.sh stop Stopping the Bacula File daemon Stopping the Bacula Storage daemon Stopping the Bacula Director daemon [EMAIL PROTECTED]:~] $ sudo mt -f /dev/nsa0 status Mode Density Blocksize bpi Compression Current: 0x1b:DLTapeIV(35GB) variable 85937 IDRC ---------available modes--------- 0: 0x1b:DLTapeIV(35GB) variable 85937 IDRC 1: 0x1b:DLTapeIV(35GB) variable 85937 IDRC 2: 0x1b:DLTapeIV(35GB) variable 85937 IDRC 3: 0x1b:DLTapeIV(35GB) variable 85937 IDRC --------------------------------- Current Driver State: at rest. --------------------------------- File Number: 1 Record Number: 0 Residual Count 0 [EMAIL PROTECTED]:~] $ sudo mt -f /dev/nsa0 rewind [EMAIL PROTECTED]:~] $ sudo mt -f /dev/nsa0 weof [EMAIL PROTECTED]:~] $ sudo mt -f /dev/nsa0 weof [EMAIL PROTECTED]:~] $ sudo mt -f /dev/nsa0 weof [EMAIL PROTECTED]:~] $ sudo mt -f /dev/nsa0 weof [EMAIL PROTECTED]:~] $ sudo mt -f /dev/nsa0 rewind [EMAIL PROTECTED]:~] $ sudo /usr/local/etc/rc.d/z-bacula.sh start Then the label went OK: *label The defined Storage resources are: 1: File 2: DLT 3: DLTRemote Select Storage resource (1-3): 2 Enter new Volume name: DLT7000-015 Automatically selected Pool: Default Connecting to Storage daemon DLT at bacula.unixathome.org:9103 ... Sending label command for Volume "DLT7000-015" Slot 0 ... 3000 OK label. Volume=DLT7000-015 Device=/dev/nsa0 Catalog record for Volume "DLT7000-015", Slot 0 successfully created. Requesting to mount DLT ... 3001 Device /dev/nsa0 is mounted with Volume "DLT7000-015" * The tape in question had been used for testing DLT drives. I'd been dumping data to the tape using dd, or perhaps tar. -- Dan Langille : http://www.langille.org/ BSDCan - The Technical BSD Conference - http://www.bsdcan.org/ NEW brochure available at http://www.bsdcan.org/2005/advocacy/ ------------------------------------------------------- This SF.Net email is sponsored by: NEC IT Guy Games. Get your fingers limbered up and give it your best shot. 4 great events, 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20 _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users