[Bacula-users] Bacula vchanger USB - Device is not open
2013-07-02 09:40:08
Hi all.
I installed bacula 5.2.13 with vchanger to store data in USB disks.
I would use one external drive by day (mon-fri), so follow settings:
/opt/bacula/c1.conf:
# /etc/bacula/c1.conf
logfile = /var/lib/bacula/vchanger_c1.log
work_dir = /var/lib/bacula
changer_name = c1
virtual_drives = 1
slots_per_magazine = 1
magazine_bays = 1
automount_dir = /mnt/vchanger
magazine = UUID:3f23d14d-b390-4b7b-9b06-0f0ced5a1277 (for testing because i
dont know how can i use variables do match the UUID)
#eof
sd.conf:
----------------------
Storage { # definition of myself
Name = c1
SDPort = 9103 # Director's port
WorkingDirectory = "/opt/bacula/"
Pid Directory = "/opt/bacula/bin/working"
Maximum Concurrent Jobs = 20
SDAddress = 200.238.251.77
}
# List Directors who are permitted to contact Storage daemon
#
#---- local virtual autochanger with USB drive "magazines"
Autochanger {
Name = usb-changer
Device = usb-changer-drive0
Changer Command = "/opt/bacula/vchanger %c %o %S %a %d"
Changer Device = "/opt/bacula/c1.conf"
}
#--- drive 0 of the usb-changer-1 autochanger
Device {
Name = usb-changer-drive0
Drive Index = 0
Autochanger = yes;
DeviceType = File
MediaType = File
ArchiveDevice = /var/lib/bacula/0/drive0
RemovableMedia = no;
RandomAccess = yes;
AlwaysOpen = yes;
}
---------------------------------
[root@aplicativos2 mnt]# vchanger -u bacula -g disk /opt/bacula/c1.conf initmag
1
created magazine 1 in bay 1 [/mnt/vchanger/3f23d14d-b390-4b7b-9b06-0f0ced5a1277]
[root@aplicativos2 mnt]# vchanger -u bacula -g disk /opt/bacula/c1.conf listmags
1:c1:1:/mnt/vchanger/3f23d14d-b390-4b7b-9b06-0f0ced5a1277
[root@aplicativos2 mnt]# vchanger -u bacula -g disk /opt/bacula/c1.conf list
1:c1_0001_0001
Loading volume in slot 1 of drive 0:
[root@aplicativos2 mnt]# vchanger -u bacula -g disk /opt/bacula/c1.conf load 1
/var/lib/bacula/0/drive0 0
OK (i guess).
[root@aplicativos2 bin]# cat
/mnt/vchanger/3f23d14d-b390-4b7b-9b06-0f0ced5a1277/loaded0
c1_0001_0001
In bconsole:
sta sto:
Device status:
Autochanger "usb-changer" with devices:
"usb-changer-drive0" (/var/lib/bacula/0/drive0)
Device "usb-changer-drive0" (/var/lib/bacula/0/drive0) is not open.
Drive 0 is not loaded.
==
====
In dont understand! the drive was loaded! Whats wrong? Sorry my english.
Tnx for any help.
+----------------------------------------------------------------------
|This was sent by arnaldojsousa AT gmail DOT com via Backup Central.
|Forward SPAM to abuse AT backupcentral DOT com.
+----------------------------------------------------------------------
------------------------------------------------------------------------------
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
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Bacula-users] Bacula vchanger USB - Device is not open,
arnaldojsousa <=
|
|
|