Bacula-users

[Bacula-users] vchanger (one more time)

2013-09-21 13:27:03
Subject: [Bacula-users] vchanger (one more time)
From: Greg Woods <greg AT gregandeva DOT net>
To: bacula-users AT lists.sourceforge DOT net
Date: Sat, 21 Sep 2013 11:23:06 -0600
I apologize for yet another posting, but I am just having a HELL of a
time trying to get vchanger to work. I have been following the
instructions in the Howto that came with the source code. I have the
automounting working, and the permissions are all correct (the "bacula"
user owns the work_dir and the automount_dir, as well as the root
directory of my first magazine drive:

# ls -ld /var/spool/bacula/mag /wd/mag /wd/mag/*
drwxr-xr-x 2 bacula bacula 4096 Sep 21 11:06 /var/spool/bacula/mag
drwxr-xr-x 3 bacula bacula    0 Sep 21 11:06 /wd/mag
drwxrwxrwx 3 bacula bacula 4096 Sep 20
19:06 /wd/mag/fea7e396-427b-49c4-af1e-195a6e6036dd

Unless I forgot something else, this isn't a permissions problem. The
problem is that "initmag" does not work:

#   vchanger -u bacula -g bacula /etc/bacula/ARCH.conf initmag 1
magazine bay 1 has no magazine mounted

The "initmag" command does trigger a successful automount before the
error occurs.

Obviously I cannot get past this.

Another oddity is, if I run the "listmags" command, even with no disk
drive inserted, I get this:

# vchanger -u bacula -g bacula /etc/bacula/ARCH.conf listmags
1::0:

According to the Howto, the "0" should be a "-1" when there is no disk
inserted.

I also end up with this in the work_dir:

# ls -l /var/spool/bacula/mag
total 4
-rw-r--r-- 1 bacula bacula 1 Sep 21 11:15 bay1
-rw-r--r-- 1 bacula bacula 0 Sep 21 10:23 state0

(the "bay1" file contains only a single newline).

I must have made some stupid mistake in configuring vchanger, but I'm
damned if I can see it. Here is my ARCH.conf file:

changer_name = ARCH
slots_per_magazine = 34
virtual_drives = 1
magazine_bays = 1
automount_dir = /wd/mag
work_dir = /var/spool/bacula/mag
log_level = LOG_DEBUG
logfile = /var/log/ARCH.log
magazine = UUID:fea7e396-427b-49c4-af1e-195a6e6036dd
magazine = UUID:c15c828b-0237-4b05-aa85-a9e3102ffe42
magazine = UUID:fe3c5faf-7ea2-4051-8a92-bc4c6c94b0ab
magazine = UUID:6c7279d5-f287-4e3b-8a33-51e398a3c932

Here's what's in the log file after the "initmag" command:

Sat Sep 21 11:20:43 2013 Bay 1 was previously unloaded
Sat Sep 21 11:20:44 2013 MagazineState::set() - GetMountpointFromUUID
returned -3
Sat Sep 21 11:20:44 2013 Init: magazine
UUID:fea7e396-427b-49c4-af1e-195a6e6036dd not mounted
Sat Sep 21 11:20:44 2013 MagazineState::set() - GetMountpointFromUUID
returned -3
Sat Sep 21 11:20:44 2013 Init: magazine
UUID:c15c828b-0237-4b05-aa85-a9e3102ffe42 not mounted
Sat Sep 21 11:20:44 2013 MagazineState::set() - GetMountpointFromUUID
returned -3
Sat Sep 21 11:20:44 2013 Init: magazine
UUID:fe3c5faf-7ea2-4051-8a92-bc4c6c94b0ab not mounted
Sat Sep 21 11:20:45 2013 MagazineState::set() - GetMountpointFromUUID
returned -3
Sat Sep 21 11:20:45 2013 Init: magazine
UUID:6c7279d5-f287-4e3b-8a33-51e398a3c932 not mounted
Sat Sep 21 11:20:45 2013 confirm bay 1 loaded with mag 0 = 
Sat Sep 21 11:20:45 2013 Init: drive 0 last state was unloaded
Sat Sep 21 11:20:45 2013 Info: drive 0 is unloaded
Sat Sep 21 11:20:45 2013 magazine bay 1 has no magazine mounted


I have been struggling with this for two days now, so any ideas would be
gratefully accepted.

Thanks,
--Greg



------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/22/13. 
http://pubads.g.doubleclick.net/gampad/clk?id=64545871&iu=/4140/ostg.clktrk
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users

<Prev in Thread] Current Thread [Next in Thread>