I then edited bacula-sd.conf and changed
Archive Device = "/var/spool/vchanger/vchanger01/drive0"
to
Archive Device = "/var/spool/vchanger/vchanger01/0"
I also edited vchanger.conf and changed
bconsole=""
back to
bconsole="/usr/sbin/bconsole"
Restarted bacula-sd, deleted all the volume files in the disk, executed "delete" in bconsole to remove all the volumes previously added from the catalog.
Next, I recreated the volumes:
[root@deneb ~]# vchanger /etc/vchanger/vchanger01.conf createvols 0 18
This time, everything went off smoothly.
From bconsole:
*status slots storage=vchanger01 drive=0
Connecting to Storage daemon vchanger01 at deneb.chuakt.local:9103 ...
3306 Issuing autochanger "slots" command.
Device "SATA-vchanger01" has 37 slots.
Connecting to Storage daemon vchanger01 at deneb.chuakt.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 | Append | File | Scratch |
3 | vchanger01_0_10 | Append | File | Scratch |
4 | vchanger01_0_11 | Append | File | Scratch |
5 | vchanger01_0_12 | Append | File | Scratch |
6 | vchanger01_0_13 | Append | File | Scratch |
7 | vchanger01_0_14 | Append | File | Scratch |
8 | vchanger01_0_15 | Append | File | Scratch |
9 | vchanger01_0_16 | Append | File | Scratch |
10 | vchanger01_0_17 | Append | File | Scratch |
11 | vchanger01_0_2 | Append | File | Scratch |
12 | vchanger01_0_3 | Append | File | Scratch |
13 | vchanger01_0_4 | Append | File | Scratch |
14 | vchanger01_0_5 | Append | File | Scratch |
15 | vchanger01_0_6 | Append | File | Scratch |
16 | vchanger01_0_7 | Append | File | Scratch |
17 | vchanger01_0_8 | Append | File | Scratch |
18 | vchanger01_0_9 | Append | File | Scratch |
19*| | ? | ? | ? |
...
...
37*| | ? | ? | ? |
I'm off now to create more volumes in the other "magazines" (filesystems) and other tasks to complete this setup.
Another problem I'm facing so far is the udev script /usr/libexec/vchanger/vchanger-mount-uuid.sh not actually mounting the inserted disks...but instead it creates a mount point (eg /mnt/vchanger/1fde15be-83a4-4b67-accc-378d5fa10ea7) with root:root permission.
Thanks for your time.
Pann