Re: [Bacula-users] Mounting autochanger
On 21.06.2007 23:08, Brian Debelius wrote: Why does bacula ask for a slot number to mount, when I mount my VXA autochanger? It seems to me, that bacula should load whatever tape it feels appropriate automatically when the autochanger is loaded. I usually just pick some random number to load, assuming that bacula will (it alwasy seems to) unload and load the correct tape when the scheduled jobs run. If you mount the tape to unlock a drive, which was locked due to an manual unmount you can use slot 0 for the mount. This will unlock the drive, so it can be used by bacula without loading a tape. Andreas - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Mounting autochanger
On Thu, 21 Jun 2007, Brian Debelius wrote: Why does bacula ask for a slot number to mount, when I mount my VXA autochanger? It allows you to select a specific tape to mount. If you have no specific tape to mount, use slot 0 - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Mounting autochanger
Andreas Helmcke wrote: On 21.06.2007 23:08, Brian Debelius wrote: Why does bacula ask for a slot number to mount, when I mount my VXA autochanger? It seems to me, that bacula should load whatever tape it feels appropriate automatically when the autochanger is loaded. I usually just pick some random number to load, assuming that bacula will (it alwasy seems to) unload and load the correct tape when the scheduled jobs run. If you mount the tape to unlock a drive, which was locked due to an manual unmount you can use slot 0 for the mount. This will unlock the drive, so it can be used by bacula without loading a tape. Andreas If I mount using slot 0, I receive the following, Is this the expect response? *mount The defined Storage resources are: 1: Disk0 2: Disk1 3: Tape Select Storage resource (1-3): 3 Enter autochanger slot: 0 3301 Issuing autochanger loaded? drive 0 command. 3302 Autochanger loaded? drive 0, result: nothing loaded. 3301 Issuing autochanger loaded? drive 0 command. 3302 Autochanger loaded? drive 0, result: nothing loaded. 3301 Issuing autochanger loaded? drive 0 command. 3302 Autochanger loaded? drive 0, result: nothing loaded. 3902 Cannot mount Volume on Storage Device VXA-172 (Tape0) because: Couldn't rewind device VXA-172 (Tape0): ERR=../../stored/dev.c:767 Rewind error on VXA-172 (Tape0). ERR=Unknown error. 3905 Device VXA-172 (Tape0) open but no Bacula volume is mounted. If this is not a blank tape, try unmounting and remounting the Volume. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Mounting autochanger
No, I never pick the right one. Nor do I try. I don;t want to have to think about it. I want Bacula to do the work :) I never umount an autochanger but at times I do use the release command. I have to say that a lot of these problems with bacula and autochangers have been fixed recently but to take advantage of these fixes you need the latest beta which is 2.1.20. John - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Mounting autochanger
John Drescher wrote: No, I never pick the right one. Nor do I try. I don;t want to have to think about it. I want Bacula to do the work :) I never umount an autochanger but at times I do use the release command. I have to say that a lot of these problems with bacula and autochangers have been fixed recently but to take advantage of these fixes you need the latest beta which is 2.1.20. John ok. I use umount to unload a tape that is in the tape drive. Is this not the right way to do this? - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Mounting autochanger
I use umount to unload a tape that is in the tape drive. Is this not the right way to do this? I am not sure what version added this command but release does the same job for autochangers but it does not cause the need to mount. I believe the difference is umount also releases the drive from bacula's control where release only unloads the tape in the drive. John - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Mounting autochanger
John Drescher wrote: I use umount to unload a tape that is in the tape drive. Is this not the right way to do this? I am not sure what version added this command but release does the same job for autochangers but it does not cause the need to mount. I believe the difference is umount also releases the drive from bacula's control where release only unloads the tape in the drive. John That worked. Thanks. I have v2.1.10 - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Mounting autochanger
On 22.06.2007 16:55, Brian Debelius wrote: Andreas Helmcke wrote: If you mount the tape to unlock a drive, which was locked due to an manual unmount you can use slot 0 for the mount. This will unlock the drive, so it can be used by bacula without loading a tape. If I mount using slot 0, I receive the following, Is this the expect response? [...] 3902 Cannot mount Volume on Storage Device VXA-172 (Tape0) because: Couldn't rewind device VXA-172 (Tape0): ERR=../../stored/dev.c:767 Rewind error on VXA-172 (Tape0). ERR=Unknown error. 3905 Device VXA-172 (Tape0) open but no Bacula volume is mounted. If this is not a blank tape, try unmounting and remounting the Volume. It is normal to get an error message, because there is no tape loaded. The message I get is: 3901 open device failed: ERR=dev.c:428 Unable to open device Drive-3 (/dev/nst3): ERR=No medium found But this might depend on the drive / bacula version in use. (btw what is your version?) You might also check the output of status storage=Tape to see what the storage deaemon thinks about the drive status. Andreas - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Mounting autochanger
When I go over to the co-lo to change tapes, I go into bconsole and umount the autochanger. Then I eject the magazine from the autochanger's front panel, replace the tapes, shove the magazine back in and wait for the autochanger to stop doing whatever mysterious thrashing it does, then I update slots and mount. This works, and works a whole lot more cleanly than the equivalent procedure used to work under 1.39 (I am on 2.02 now). Should I be doing this a different way? Michael -- The music business is a cruel and shallow money trench, a long plastic hallway where thieves and pimps run free, and good men die like dogs. There's also a negative side. Hunter S. Thompson -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Mounting autochanger
This works, and works a whole lot more cleanly than the equivalent procedure used to work under 1.39 (I am on 2.02 now). Should I be doing this a different way? This is ok. The other method avoids having to mount. Just release each drive that has a tape in it from the changer than you can change the magazines and wait till the auto loader has finished performing an inventory of the tapes and finally an update slots. I have executed the update slots on my changer before the inventory has finished and in my case it waits till the changer is done and then does the command. I am not sure if this happens on all changers though. I have an exabyte Magnum224 with 2 LTO2 drives. John Michael -- The music business is a cruel and shallow money trench, a long plastic hallway where thieves and pimps run free, and good men die like dogs. There's also a negative side. Hunter S. Thompson -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users -- John M. Drescher - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Mounting autochanger
John Drescher wrote: This is ok. The other method avoids having to mount. Just release each drive that has a tape in it from the changer than you can change the magazines and wait till the auto loader has finished performing an inventory of the tapes and finally an update slots. I have executed the update slots on my changer before the inventory has finished and in my case it waits till the changer is done and then does the command. I am not sure if this happens on all changers though. I have an exabyte Magnum224 with 2 LTO2 drives. John I hate getting surprised by commands like this. So I looked at the current docs at http://www.bacula.org/rel-manual/index.html. The only mentions of release don't have anything to do with this command. So I figure it must be in the section for bconsole. Wait, bconsole isn't mentioned in the index either. Ah, maybe under Console Index. Yep, there it is. release This command is used to cause the Storage daemon to rewind (release) the current tape in the drive, and to re-read the Volume label the next time the tape is used. release storage=storage-name After a release command, the device is still kept open by Bacula (unless Always Open is set to No in the Storage Daemon's configuration) so it cannot be used by another program. However, with some tape drives, the operator can remove the current tape and to insert a different one, and when the next Job starts, Bacula will know to re-read the tape label to find out what tape is mounted. If you want to be able to use the drive with another program (e.g. mt), you must use the unmount command to cause Bacula to completely release (close) the device. Thanks Michael -- The music business is a cruel and shallow money trench, a long plastic hallway where thieves and pimps run free, and good men die like dogs. There's also a negative side. Hunter S. Thompson -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Mounting autochanger
Brian Debelius wrote: Why does bacula ask for a slot number to mount, when I mount my VXA autochanger? It seems to me, that bacula should load whatever tape it feels appropriate automatically when the autochanger is loaded. I usually just pick some random number to load, assuming that bacula will (it alwasy seems to) unload and load the correct tape when the scheduled jobs run. Haha! Do you ever guess right? I never do. Whatever slot I pick, it has to unload it and load a different one when the first job runs. ;-) -- The music business is a cruel and shallow money trench, a long plastic hallway where thieves and pimps run free, and good men die like dogs. There's also a negative side. Hunter S. Thompson -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users