Bacula-users

Re: [Bacula-users] Vchanger

2013-07-03 14:19:45
Subject: Re: [Bacula-users] Vchanger
From: Josh Fisher <jfisher AT pvct DOT com>
To: bacula-users AT lists.sourceforge DOT net
Date: Wed, 03 Jul 2013 14:16:41 -0400
On 7/3/2013 11:41 AM, Mark Gordon wrote:
> We have been using vchanger 0.8.6 for a while now. When preparing for a new 
> USB we have to initialize the magazine. Anyone have a solution?
>
>
> When doing so we get the following errors:
>
> [root@backup ~]# vchanger -u bacula -g bacula /etc/bacula/example.conf 
> initmag 1
> magaine not a valid keyword at line 29
>
> Trying any other magazine command also presents the same error.
>
> [root@backup ~]# vchanger -u bacula -g bacula /etc/bacula/example.conf 
> listmags
> magaine not a valid keyword at line 29
>
> [root@backup changer1]# vchanger -u bacula -g bacula /etc/bacula/example.conf 
> list
> magaine not a valid keyword at line 29

Could be a syntax error in the config file.

> changer.log indicates that a magazine is initialized but the UUID is 
> incorrect from the new drives UUID
>
> Wed Jun  5 10:06:03 2013 magazine in bay 1 
> (/mnt/vchanger/b0c558d0-c51b-434d-bae9-b1b2c9032ac5) already initialized as 
> magazine 19
> a7acac4e-b8cc-4908-86e9-7346cf39cc3b is the correct ID for the drive I am 
> trying to mount.

If you have multiple magazines defined in the config file, it will list 
all that are attached in the order given in the config.

>
> According to http://wiki.bacula.org/doku.php?id=removable_disk I can enable 
> debug and logging, I cannot find this instance mentioned in the article under 
> section 11.
>
> #
> # log whats done
> #
> # to turn on logging, uncomment the following line
> #touch $wd/vchanger.log
> #
>
> #
> # Write to a log file
> #    To log debugging info, create file /var/bacula/vchanger.log
> #    with write permission for bacula-sd user. To stop logging,
> #    delete file /var/bacula/vchanger.log
> #
> dbgfile="/var/bacula/vchanger.log"
> function debug()

That wiki article is very old and not for version 0.8.6. You should go 
by the docs in the doc directory of the vchanger source.


------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users