Hi Russ,
First of all, you said that you have LTO-6 tapes. So, I recomend you
specify it in your Device name definition, that will avoid some confusion
in the future:
Device {
Name = ML6000-LTO6-0
...
}
A second question is: don't you have barcodes? Are you sure you're going to
work without barcode labels? If you're not going to work with barcodes, you
should use the "label" command for labeling the tapes (before you should
guarantee they are ready for labeling with mt -f /dev/st0 rewind and weof).
The add command, as it tells you when you run it, doesn't labeled your
volumes and you need this.
So, use the "label" or "label barcodes" commands, they will label your
volumes and records them corretly in the bacula catalog (MediaId, name,
slot, inchanger flag, etc.)
Regards,
Ana
On Thu, Oct 2, 2014 at 8:27 PM, Russ Button <russ...@telmate.com> wrote:
> The times they are a-changing, but my Dell Autochanger sure isn't...
>
> I'm working at getting an initial install of bacula up and running. My
> backup server is a Dell R510 running CentOS 7.0, which has bacula version
> 5.2.13-18 in the yum repository. I'm using mysql for the data base. We're
> going to be writing to a Dell ML6000 (a re-labeled IBM Ultrium TD6) with
> LTO-6 tapes, which hold 2.5TB native. There is one tape drive and 40 tape
> slots in the Dell autochanger, with 30 new, unused tapes in them.
>
> I've got the director successfully talking to the database and the local
> file daemon. I believe that the storage daemon is successfully talking to
> the autochanger and the tape drive because in bconsole, I was able to add
> the tapes to the Default pool:
>
>
> *add pool=Default storage=ML6000-LTO3-0
> You probably don't want to be using this command since it
> creates database records without labeling the Volumes.
> You probably want to use the "label" command.
>
> Automatically selected Catalog: MyCatalog
> Using Catalog "MyCatalog"
> Enter number of Volumes to create. 0=>fixed name. Max=30: 30
> Enter base volume name: LTO6-Vol
> Enter the starting number: 000001
> Enter slot (0 for none): 1
> InChanger? yes/no: yes
> 30 Volumes created in pool Default
> You have messages.
>
>
>
> At first, it seemed to have done what I wanted, which was to get all of
> the tapes into the Default pool. In bconsole, I ran "list media", which
> gave me:
> ========================================================
>
>
> *list media
> Automatically selected Catalog: MyCatalog
> Using Catalog "MyCatalog"
> Pool: Default
>
> +---------+--------------+-----------+---------+----------+----------+--------------+---------+------+-----------+-----------+---------------------+
> | MediaId | VolumeName | VolStatus | Enabled | VolBytes | VolFiles |
> VolRetention | Recycle | Slot | InChanger | MediaType | LastWritten
> |
>
> +---------+--------------+-----------+---------+----------+----------+--------------+---------+------+-----------+-----------+---------------------+
> | 1 | LTO6-Vol0001 | Append | 1 | 0 | 0 |
> 31,536,000 | 1 | 0 | 0 | LTO-6 | 0000-00-00 00:00:00 |
> | 2 | LTO6-Vol0002 | Append | 1 | 0 | 0 |
> 31,536,000 | 1 | 0 | 0 | LTO-6 | 0000-00-00 00:00:00 |
> | 3 | LTO6-Vol0003 | Append | 1 | 0 | 0 |
> 31,536,000 | 1 | 0 | 0 | LTO-6 | 0000-00-00 00:00:00 |
> | 4 | LTO6-Vol0004 | Append | 1 | 0 | 0 |
> 31,536,000 | 1 | 0 | 0 | LTO-6 | 0000-00-00 00:00:00 |
> | 5 | LTO6-Vol0005 | Append | 1 | 0 | 0 |
> 31,536,000 | 1 | 0 | 0 | LTO-6 | 0000-00-00 00:00:00 |
> | 6 | LTO6-Vol0006 | Append | 1 | 0 | 0 |
> 31,536,000 | 1 | 0 | 0 | LTO-6 | 0000-00-00 00:00:00 |
> | 7 | LTO6-Vol0007 | Append | 1 | 0 | 0 |
> 31,536,000 | 1 | 0 | 0 | LTO-6 | 0000-00-00 00:00:00 |
> | 8 | LTO6-Vol0008 | Append | 1 | 0 | 0 |
> 31,536,000 | 1 | 0 | 0 | LTO-6 | 0000-00-00 00:00:00 |
> | 9 | LTO6-Vol0009 | Append | 1 | 0 | 0 |
> 31,536,000 | 1 | 0 | 0 | LTO-6 | 0000-00-00 00:00:00 |
> | 10 | LTO6-Vol0010 | Append | 1 | 0 | 0 |
> 31,536,000 | 1 | 0 | 0 | LTO-6 | 0000-00-00 00:00:00 |
> | 11 | LTO6-Vol0011 | Append | 1 | 0 | 0 |
> 31,536,000 | 1 | 0 | 0 | LTO-6 | 0000-00-00 00:00:00 |
> | 12 | LTO6-Vol0012 | Append | 1 | 0 | 0 |
> 31,536,000 | 1 | 0 | 0 | LTO-6 | 0000-00-00 00:00:00 |
> | 13 | LTO6-Vol0013 | Append | 1 | 0 | 0 |
> 31,536,000 | 1 | 0 | 0 | LTO-6 | 0000-00-00 00:00:00 |
> | 14 | LTO6-Vol0014 | Append | 1 | 0 | 0 |
> 31,536,000 | 1 | 0 | 0 | LTO-6 | 0000-00-00 00:00:00 |
> | 15 | LTO6-Vol0015 | Append | 1 | 0 | 0 |
> 31,536,000 | 1 | 0 | 0 | LTO-6 | 0000-00-00 00:00:00 |
> | 16 | LTO6-Vol0016 | Append | 1 | 0 | 0 |
> 31,536,000 | 1 | 0 | 0 | LTO-6 | 0000-00-00 00:00:00 |
> | 17 | LTO6-Vol0017 | Append | 1 | 0 | 0 |
> 31,536,000 | 1 | 0 | 0 | LTO-6 | 0000-00-00 00:00:00 |
> | 18 | LTO6-Vol0018 | Append | 1 | 0 | 0 |
> 31,536,000 | 1 | 0 | 0 | LTO-6 | 0000-00-00 00:00:00 |
> | 19 | LTO6-Vol0019 | Append | 1 | 0 | 0 |
> 31,536,000 | 1 | 0 | 0 | LTO-6 | 0000-00-00 00:00:00 |
> | 20 | LTO6-Vol0020 | Append | 1 | 0 | 0 |
> 31,536,000 | 1 | 0 | 0 | LTO-6 | 0000-00-00 00:00:00 |
> | 21 | LTO6-Vol0021 | Append | 1 | 0 | 0 |
> 31,536,000 | 1 | 0 | 0 | LTO-6 | 0000-00-00 00:00:00 |
> | 22 | LTO6-Vol0022 | Append | 1 | 0 | 0 |
> 31,536,000 | 1 | 0 | 0 | LTO-6 | 0000-00-00 00:00:00 |
> | 23 | LTO6-Vol0023 | Append | 1 | 0 | 0 |
> 31,536,000 | 1 | 0 | 0 | LTO-6 | 0000-00-00 00:00:00 |
> | 24 | LTO6-Vol0024 | Append | 1 | 0 | 0 |
> 31,536,000 | 1 | 0 | 0 | LTO-6 | 0000-00-00 00:00:00 |
> | 25 | LTO6-Vol0025 | Append | 1 | 0 | 0 |
> 31,536,000 | 1 | 0 | 0 | LTO-6 | 0000-00-00 00:00:00 |
> | 26 | LTO6-Vol0026 | Append | 1 | 0 | 0 |
> 31,536,000 | 1 | 0 | 0 | LTO-6 | 0000-00-00 00:00:00 |
> | 27 | LTO6-Vol0027 | Append | 1 | 0 | 0 |
> 31,536,000 | 1 | 0 | 0 | LTO-6 | 0000-00-00 00:00:00 |
> | 28 | LTO6-Vol0028 | Append | 1 | 0 | 0 |
> 31,536,000 | 1 | 0 | 0 | LTO-6 | 0000-00-00 00:00:00 |
> | 29 | LTO6-Vol0029 | Append | 1 | 0 | 0 |
> 31,536,000 | 1 | 0 | 0 | LTO-6 | 0000-00-00 00:00:00 |
> | 30 | LTO6-Vol0030 | Append | 1 | 0 | 0 |
> 31,536,000 | 1 | 0 | 0 | LTO-6 | 0000-00-00 00:00:00 |
>
> +---------+--------------+-----------+---------+----------+----------+--------------+---------+------+-----------+-----------+---------------------+
> Pool: Scratch
> No results to list.
>
>
> Now when I attempt a local backup, here's what I get:
> ========================================================
> 02-Oct 16:09 bacula-dir JobId 14: No prior Full backup Job record found.
> 02-Oct 16:09 bacula-dir JobId 14: No prior or suitable Full backup found
> in catalog. Doing FULL backup.
> 02-Oct 16:09 bacula-dir JobId 14: Start Backup JobId 14,
> Job=LocalBackup.2014-10-02_16.09.41_13
> 02-Oct 16:09 bacula-dir JobId 14: Using Device "ML6000-LTO3-0" to write.
> 02-Oct 16:09 bacula-sd JobId 14: No slot defined in catalog (slot=0) for
> Volume "LTO6-Vol0001" on "ML6000-LTO3-0" (/dev/nst0).
> 02-Oct 16:09 bacula-sd JobId 14: Cartridge change or "update slots" may be
> required.
> 02-Oct 16:09 bacula-sd JobId 14: Warning: mount.c:219 Open device
> "ML6000-LTO3-0" (/dev/nst0) Volume "LTO6-Vol0001" failed: ERR=dev.c:513
> Unable to open device "ML6000-LTO3-0" (/dev/nst0): ERR=No medium found
> 02-Oct 16:09 bacula-sd JobId 14: No slot defined in catalog (slot=0) for
> Volume "LTO6-Vol0001" on "ML6000-LTO3-0" (/dev/nst0).
> 02-Oct 16:09 bacula-sd JobId 14: Cartridge change or "update slots" may be
> required.
>
>
>
>
> I built my bacula-sd.conf file from what I saw at:
>
> http://wiki.bacula.org/doku.php?id=sample_configs
>
> From my bacula-sd.conf
> =====================
>
> Autochanger {
> Name = "ML6000 Library"
> Device = ML6000-LTO3-0
> Changer Device = /dev/sg8
> Changer Command = "/usr/libexec/bacula/mtx-changer %c %o %S %a %d"
> # %c = changer device
> # %o = command (unload|load|loaded|list|slots)
> # %S = slot index (1-based)
> # %a = archive device (i.e., /dev/sd* name for tape
> drive)
> # %d = drive index (0-based)
> }
>
> Device {
> Name = ML6000-LTO3-0
> Archive Device = /dev/nst0
> Device Type = Tape
> Media Type = LTO-6
> Autochanger = Yes
> Alert Command = "sh -c '/usr/sbin/tapeinfo -f /dev/sg7 | /bin/sed -n
> /TapeAlert/p'"
> Drive Index = 0
> RemovableMedia = yes
> Random Access = no
> Maximum Spool Size = 100gb
> Maximum Job Spool Size = 60gb
> Spool Directory = /backup/spool
> Automatic mount = Yes
> }
>
>
>
>
>
>
>
>
> Why is it bconsole can talk to the autochanger and get it to label all of
> the tapes, yadda, yadda, but I can't get a backup job to load a tape?
>
>
> Thanks!
>
> Russ
>
>
> ------------------------------------------------------------------------------
> Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
> Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
> Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
> Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
>
> http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
> _______________________________________________
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
>
------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users