Hi,
Please ignore my previous message. The interface between between the chair
and the keyboard was too quick to hit the "Send" button.
On Tue, May 10, 2016 at 11:00 PM, Josh Fisher <jfis...@pvct.com> wrote:
> Hi Pann,
>
> This is almost certainly the vchanger race condition bug that I mentioned
> previously. The bconsole output in the vchanger log tells me that bconsole
> is being invoked by vchanger to label the volumes. Put a bconsole='' line
> in vchanger.conf and try running the label barcodes command from bconsole.
>
I did what you asked me to try: I changed the line
bconsole="/usr/sbin/vconsole" to bconsole="" in vchanger.conf. Then run
the label barcode command in bconsole:
[root@deneb mnt]# bconsole
Connecting to Director deneb.pt.local:9101
1000 OK: 102 bacula-dir Version: 7.4.0 (16 January 2016)
Enter a period to cancel a command.
*label storage="vchanger01" pool="Scratch" barcodes
Automatically selected Catalog: MyCatalog
Using Catalog "MyCatalog"
Connecting to Storage daemon vchanger01 at deneb.pt.local:9103 ...
Connecting to Storage daemon vchanger01 at deneb.pt.local:9103 ...
3306 Issuing autochanger "slots" command.
Device "SATA-vchanger01" has 37 slots.
Connecting to Storage daemon vchanger01 at deneb.pt.local:9103 ...
3306 Issuing autochanger "list" command.
The following Volumes will be labeled:
Slot Volume
==============
1 vchanger01_0_0
2 vchanger01_0_1
3 vchanger01_0_10
4 vchanger01_0_11
5 vchanger01_0_12
6 vchanger01_0_13
7 vchanger01_0_14
8 vchanger01_0_15
9 vchanger01_0_16
10 vchanger01_0_17
11 vchanger01_0_2
12 vchanger01_0_3
13 vchanger01_0_4
14 vchanger01_0_5
15 vchanger01_0_6
16 vchanger01_0_7
17 vchanger01_0_8
18 vchanger01_0_9
Do you want to label these Volumes? (yes|no): yes
Media record for Slot 1 Volume "vchanger01_0_0" already exists.
Connecting to Storage daemon vchanger01 at deneb.pt.local:9103 ...
Sending label command for Volume "vchanger01_0_1" Slot 2 ...
3307 Issuing autochanger "unload slot 18, drive 0" command for vol
vchanger01_0_1.
3304 Issuing autochanger "load slot 2, drive 0" command for vol
vchanger01_0_1.
3305 Autochanger "load slot 2, drive 0", status is OK for vol
vchanger01_0_1.
3920 Cannot label Volume because it is already labeled: "vchanger01_0_0"
Label command failed for Volume vchanger01_0_1.
Sending label command for Volume "vchanger01_0_10" Slot 3 ...
3307 Issuing autochanger "unload slot 2, drive 0" command for vol
vchanger01_0_10.
3304 Issuing autochanger "load slot 3, drive 0" command for vol
vchanger01_0_10.
3305 Autochanger "load slot 3, drive 0", status is OK for vol
vchanger01_0_10.
3920 Cannot label Volume because it is already labeled: "vchanger01_0_0"
Label command failed for Volume vchanger01_0_10.
Sending label command for Volume "vchanger01_0_11" Slot 4 ...
3307 Issuing autochanger "unload slot 3, drive 0" command for vol
vchanger01_0_11.
3304 Issuing autochanger "load slot 4, drive 0" command for vol
vchanger01_0_11.
3305 Autochanger "load slot 4, drive 0", status is OK for vol
vchanger01_0_11.
3920 Cannot label Volume because it is already labeled: "vchanger01_0_0"
Label command failed for Volume vchanger01_0_11.
...
...
I'm still getting the error "3920 Cannot label Volume because it is already
labeled: "vchanger01_0_0"" for slots 2 - 18.
Only the volume in slot 1 is added to the catalog:
*status slots storage=vchanger01 drive=0
Connecting to Storage daemon vchanger01 at deneb.pt.local:9103 ...
3306 Issuing autochanger "slots" command.
Device "SATA-vchanger01" has 37 slots.
Connecting to Storage daemon vchanger01 at deneb.pt.local:9103 ...
3306 Issuing autochanger "list" command.
Slot | Volume Name | Status | Media Type |
Pool |
------+------------------+-----------+----------------------+--------------------|
1 | vchanger01_0_0 | Append | File |
Scratch |
2*| vchanger01_0_1 | ? | ?
| ? |
3*| vchanger01_0_10 | ? | ?
| ? |
4*| vchanger01_0_11 | ? | ?
| ? |
...
...
37*| | ? | ?
| ? |
*
This is the libudev used on Centos 7.2:
[root@deneb mnt]# ldd /usr/bin/vchanger | grep libudev
libudev.so.1 => /lib64/libudev.so.1 (0x00007f6c57df5000)
[root@deneb mnt]# ls -l /lib64/libudev.so.1
lrwxrwxrwx. 1 root root 16 May 8 19:45 /lib64/libudev.so.1 ->
libudev.so.1.6.2
[root@deneb mnt]# cat /etc/redhat-release
CentOS Linux release 7.2.1511 (Core)
[root@deneb mnt]# uname -r
3.10.0-327.13.1.el7.x86_64
Any thing else I can do to resolve this issue?
Thanks again
Pann
------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users