имеем bacula 5.2.6 хочу понять смысл и научится работать с лентой Пользуюсь типом девайсов Vtape для эмуляции ленты. [code] Конфигурация bacula-sd.conf +++++++++++++++++++++++++++++++++++++++++++++++++++ [code] Autochanger { Name = LTO Changer Device = "/tmp/webacula/dev/devchanger/conf" Changer Command ="/etc/bacula/disk-changer %c %o %S %a %d" # Changer Command ="/etc/bacula/mtx-changer %c %o %S %a %d" Device = LTO1_0 Device = LTO1_1 Device = LTO2_0 Device = LTO2_1 Device = LTO3_0 Device = LTO3_1 } Device { Name = LTO1_0 Media Type = LTO1 Archive Device = /tmp/bacula/dev/devchanger/drive0 AutomaticMount = yes; Autochanger = yes Drive Index = 0 AlwaysOpen = yes; RemovableMedia = yes; RandomAccess = no; Maximum File Size = 7M Maximum Volume Size = 30G Maximum Job Spool Size = 1G Maximum Concurrent Jobs = 1 Spool Directory = /var/bacula/spool/ Device Type = VTape LabelMedia = no; } Device { Name = LTO1_1 Media Type = LTO1 Archive Device = /tmp/bacula/dev/devchanger/drive1 AutomaticMount = yes; Autochanger = yes Drive Index = 1 AlwaysOpen = yes; RemovableMedia = yes; RandomAccess = no; Maximum File Size = 7M Maximum Volume Size = 30G # Maximum Job Spool Size = 1G Maximum Concurrent Jobs = 1 Spool Directory = /var/bacula/spool/ Device Type = VTape LabelMedia = no; } Device { Name = LTO2_0 Media Type = LTO2 Archive Device = /tmp/bacula/dev/devchanger/drive2 AutomaticMount = yes; Autochanger = yes Drive Index = 2 AlwaysOpen = yes; RemovableMedia = yes; RandomAccess = no; Maximum File Size = 7M Maximum Volume Size = 30G # Maximum Job Spool Size = 1G Maximum Concurrent Jobs = 1 Spool Directory = /var/bacula/spool/ Device Type = VTape LabelMedia = no; } Device { Name = LTO2_1 Media Type = LTO2 Archive Device = /tmp/bacula/dev/devchanger/drive3 AutomaticMount = yes; Autochanger = yes Drive Index = 3 AlwaysOpen = yes; RemovableMedia = yes; RandomAccess = no; Maximum File Size = 7M Maximum Volume Size = 30G # Maximum Job Spool Size = 1G Maximum Concurrent Jobs = 1 Spool Directory = /var/bacula/spool/ Device Type = VTape LabelMedia = no; } Device { Name = LTO3_0 Media Type = LTO3 Archive Device = /tmp/bacula/dev/devchanger/drive4 AutomaticMount = yes; Autochanger = yes Drive Index = 2 AlwaysOpen = yes; RemovableMedia = yes; RandomAccess = no; Maximum File Size = 7M Maximum Volume Size = 30G # Maximum Job Spool Size = 1G Maximum Concurrent Jobs = 1 Spool Directory = /var/bacula/spool/ Device Type = VTape LabelMedia = no; } Device { Name = LTO3_1 Media Type = LTO3 Archive Device = /tmp/bacula/dev/devchanger/drive5 AutomaticMount = yes; Autochanger = yes Drive Index = 3 AlwaysOpen = yes; RemovableMedia = yes; RandomAccess = no; Maximum File Size = 7M Maximum Volume Size = 30G Maximum Concurrent Jobs = 1 Spool Directory = /var/bacula/spool/ Device Type = VTape LabelMedia = no; } +++++++++++++++++++++++++++++++++++++++++++++++++++ /tmp/webacula/dev/devchanger/conf baculasd="LTO" baculasd_user=root bconsole=/etc/bacula/bconsole magslots=2 maxdrive=1 mountpoint=/mnt/changer ++++++++++++++++++++++++++++++++++++++++++++++++++++ Pool { Name = test1-monthly Pool Type = Backup Maximum Volume Bytes = 30G Volume Retention = 1 year AutoPrune = yes RecyclePool = test1-monthly Recycle = yes Recycle Oldest Volume = yes # Label Format = "Test_monthly-" } Storage { Name = LTO1 Address = 192.168.30.213 SDPort = 9103 Password = "stor-pass" Device = LTO Media Type = LTO1 Autochanger = yes Maximum Concurrent Jobs = 1 } +++++++++++++++++++++++++++++++++++++++++++++++++++++++ [/code] 1)Правильно ли я форматирую кассеты? Если нет, то как правильно их форматировать? [code] label barcode pool="test1-monthly" Automatically selected Catalog: MyCatalog Using Catalog "MyCatalog" The defined Storage resources are: 1: LTO1 2: LTO2 3: LTO3 Select Storage resource (1-3): 1 Connecting to Storage daemon LTO1 at 192.168.30.213:9103 ... Enter autochanger drive[0]: Connecting to Storage daemon LTO1 at 192.168.30.213:9103 ... 3306 Issuing autochanger "slots" command. Device "LTO" has 0 slots. No slots in changer to scan. [/code] 2)Почему он не видит слоты и соответственно не меняет кассеты? 3)По какому принципу он меняет кассеты? меняем LTO1_0 с LTO1_1 если у них задан один media type или кассеты внутри девайса LTO1_0 4) Одна лента времещает в себя один том?