SD-Konfig auf dem Storageserver definiert.
Die Maschine hat per FC Zugriff auf die Library.
Storage { # definition of myself Name = srv2-sd SDPort = 9103 # Director's port WorkingDirectory = "/opt/bacula/working" Pid Directory = "/opt/bacula/working" Maximum Concurrent Jobs = 20 } # # List Directors who are permitted to contact Storage daemon # Director { Name = srv1-dir Password = "geheim" } # # Restricted Director, used by tray-monitor to get the # status of the storage daemon # Director { Name = srv1-mon Password = "geheim" Monitor = yes } ############################################ # # An autochanger device with two drives # Autochanger { Name = Quantum Device = LTO6-1, LTO6-2 Changer Command = "/opt/bacula/scripts/mtx-changer %c %o %S %a %d" Changer Device = /dev/sg2 # Changer Command = /dev/null # Changer Device = /dev/null } Device { Name = LTO6-1 Media Type = LTO6 LabelMedia = yes Archive Device = /dev/nst0 AutomaticMount = yes; # when device opened, read it AlwaysOpen = yes; RemovableMedia = yes; RandomAccess = no; Maximum File Size = 20GB Changer Command = "/opt/bacula/scripts/mtx-changer %c %o %S %a %d" Changer Device = /dev/sg2 AutoChanger = Yes Drive Index = 0 Maximum Job Spool Size = 50GB Maximum Spool Size = 50GB # # Enable the Alert command only if you have the mtx package loaded Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'" #Offline on Unmount = No Autoselect = Yes Maximum Network Buffer Size = 65535 #Device Type = Tape Maximum Concurrent Jobs = 1 Maximum File Size = 50G Maximum Block Size = 1048576 } Device { Name = LTO6-2 Media Type = LTO6 LabelMedia = yes Archive Device = /dev/nst1 AutomaticMount = yes; # when device opened, read it AlwaysOpen = yes; RemovableMedia = yes; RandomAccess = no; Maximum File Size = 20GB Changer Command = "/opt/bacula/scripts/mtx-changer %c %o %S %a %d" Changer Device = /dev/sg2 AutoChanger = Yes Drive Index = 1 Maximum Job Spool Size = 50GB Maximum Spool Size = 50GB # # Enable the Alert command only if you have the mtx package loaded Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'" #Offline on Unmount = No Autoselect = Yes Maximum Network Buffer Size = 65535 #Device Type = Tape Maximum Concurrent Jobs = 1 Maximum File Size = 50G Maximum Block Size = 1048576 } ######################################################## # # Send all messages to the Director, # mount messages also are sent to the email address # Messages { Name = Standard director = sdestbac1-dir = all }
Dir-Konfig auf dem Director definiert:
... Autochanger { Name = "Quantum-onBAC2" Address = "srvbac2" SdPort = 9103 Device = "Quantum" MaximumConcurrentJobs = 10 MediaType = "LTO6" Password = "geheim" Autochanger = yes } ...
damit mehrere NDMP-Jobs parallel laufen können, muss pro NDMP-Job ein eigenes FileSet definiert werden.