bacula kérdés

Sziasztok,

Van három solaris 10-em. Ebből kettő egy VMware ESX-en futkos (de szerintem ez lényegtelen). Amelyik fizikai gépen van, arra feltelepítettem a blastwave-ről a bacula-t, a másik kettőre csak a klienst.
A bacula-sd.conf idevágó részei:


Device {
  Name = FileStorageMantis02
  Media Type = File
  Archive Device = /data/mantis02
  LabelMedia = yes;                   # lets Bacula label unlabeled media
  Random Access = Yes;
  AutomaticMount = yes;               # when device opened, read it
  RemovableMedia = no;
  AlwaysOpen = no;
}

Device {
  Name = FileStorageMantis01
  Media Type = File
  Archive Device = /data/mantis01
  LabelMedia = yes;                   # lets Bacula label unlabeled media
  Random Access = Yes;
  AutomaticMount = yes;               # when device opened, read it
  RemovableMedia = no;
  AlwaysOpen = no;
}

A bacula-dir.conf idevágó részei:

JobDefs {
  Name = "Mantis02 Local FS"
  Type = Backup
  Level = Incremental
  Client = mantis02-dir
  FileSet = "Matis02 Local FS"
  Schedule = "WeeklyCycle"
  Storage = FileMantis02
  Messages = Standard
  Pool = Default
  Priority = 10
}

JobDefs {
  Name = "Mantis01 Local FS"
  Type = Backup
  Level = Incremental
  Client = mantis01-dir
  FileSet = "Matis01 Local FS"
  Schedule = "WeeklyCycle"
  Storage = FileMantis01
  Messages = Standard
  Pool = Default
  Priority = 10
}

Job {
  Name = "mantis02-localfs"
  Client = mantis02-dir
  Jobdefs = "Mantis02 Local FS"
  Write Bootstrap = "/opt/csw/var/bacula/working/mantis02-localfs.bsr"
}

Job {
  Name = "mantis01-localfs"
  Client = mantis01-dir
  Jobdefs = "Mantis01 Local FS"
  Write Bootstrap = "/opt/csw/var/bacula/working/mantis01-localfs.bsr"
}

FileSet {
  Name = "Matis02 Local FS"
  Include {
    Options {
      signature = MD5
    }
    File = /bin
    File = /boot
    File = /etc
    File = /home
    File = /kernel
    File = /lib
    File = /opt
    File = /platform
    File = /root
    File = /sbin
    File = /system
    File = /usr
    File = /var
  }
}

FileSet {
  Name = "Matis01 Local FS"
  Include {
    Options {
      signature = MD5
    }
    File = /bin
    File = /boot
    File = /etc
    File = /home
    File = /kernel
    File = /lib
    File = /opt
    File = /platform
    File = /root
    File = /sbin
    File = /system
    File = /usr
    File = /var
  }
}

Client {
  Name = mantis02-dir
  Address = mantis02.answare.hu
  FDPort = 9102
  Catalog = MyCatalog
  Password = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
  File Retention = 14 days
  Job Retention = 2 months
  Autoprune = yes
}

Client {
  Name = mantis01-dir
  Address = mantis01.answare.hu
  FDPort = 9102
  Catalog = MyCatalog
  Password = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
  File Retention = 14 days
  Job Retention = 2 months
  Autoprune = yes
}

Storage {
  Name = FileMantis02
# Do not use "localhost" here
  Address = bcksol10                # N.B. Use a fully qualified name here
  SDPort = 9103
  Password = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
  Device = FileStorageMantis02
  Media Type = File
}

Storage {
  Name = FileMantis01
# Do not use "localhost" here
  Address = bcksol10                # N.B. Use a fully qualified name here
  SDPort = 9103
  Password = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
  Device = FileStorageMantis01
  Media Type = File
}

bconsolról:


list volumes
Pool: Default
+---------+------------------+-----------+---------+---------------+----------+--------------+---------+------+-----------+-----------+---------------------+
| MediaId | VolumeName       | VolStatus | Enabled | VolBytes      | VolFiles | VolRetention | Recycle | Slot | InChanger | MediaType | LastWritten         |
+---------+------------------+-----------+---------+---------------+----------+--------------+---------+------+-----------+-----------+---------------------+
|       2 | volume2          | Recycle   |       1 |             1 |        0 |    2,592,000 |       1 |    0 |         0 | DDS-4     | 0000-00-00 00:00:00 |
|       3 | volume01         | Full      |       1 |        64,512 |        0 |   31,536,000 |       1 |    0 |         0 | DDS-4     | 0000-00-00 00:00:00 |
|       4 | mantos02_localfs | Error     |       1 | 9,376,628,712 |        2 |   31,536,000 |       1 |    0 |         0 | File      | 2009-02-21 08:20:52 |
|       5 | mantis01_localfs | Append    |       1 |           206 |        0 |   31,536,000 |       1 |    0 |         0 | File      | 0000-00-00 00:00:00 |
+---------+------------------+-----------+---------+---------------+----------+--------------+---------+------+-----------+-----------+---------------------+

A mantis02-localfs Job lefut rendben, de mikor a mantis01-localfs akarom futtatni mantos02_localfs akkor kerül Error állapotba. És ezt a hibát kapom:
21-Feb 15:49 bcksol10-dir JobId 22: No prior Full backup Job record found.
21-Feb 15:49 bcksol10-dir JobId 22: No prior or suitable Full backup found in catalog. Doing FULL backup.
21-Feb 15:49 bcksol10-dir JobId 22: Start Backup JobId 22, Job=mantis01-localfs.2009-02-21_15.49.03
21-Feb 15:49 bcksol10-dir JobId 22: Using Device "FileStorageMantis01"
21-Feb 15:49 bcksol10-sd JobId 22: Warning: Volume "mantos02_localfs" not on device "FileStorageMantis01" (/data/mantis01).
21-Feb 15:49 bcksol10-sd JobId 22: Marking Volume "mantos02_localfs" in Error in Catalog.
21-Feb 15:49 bcksol10-sd JobId 22: Warning: Volume "mantos02_localfs" not on device "FileStorageMantis01" (/data/mantis01).
21-Feb 15:49 bcksol10-sd JobId 22: Marking Volume "mantos02_localfs" in Error in Catalog.
21-Feb 15:49 bcksol10-sd JobId 22: Error: Could not open device "FileStorageMantis01" (/data/mantis01): ERR=dev.c:491 Could not open: /data/mantis01/mantos02_localfs, ERR=No such file or directory

21-Feb 15:49 bcksol10-sd JobId 22: Fatal error: Could not ready device "FileStorageMantis01" (/data/mantis01) for append.
21-Feb 15:49 mantis01-fd JobId 22: Fatal error: job.c:1811 Bad response to Append Data command. Wanted 3000 OK data , got 3903 Error append data

21-Feb 15:49 bcksol10-dir JobId 22: Error: Bacula bcksol10-dir 2.2.8 (26Jan08): 21-Feb-2009 15:49:10
Build OS: i386-pc-solaris2.8 solaris 5.8
JobId: 22
Job: mantis01-localfs.2009-02-21_15.49.03
Backup Level: Full (upgraded from Incremental)
Client: "mantis01-dir" 2.2.8 (26Jan08) i386-pc-solaris2.8,solaris,5.8
FileSet: "Matis01 Local FS" 2009-02-21 15:37:18
Pool: "Default" (From Job resource)
Storage: "FileMantis01" (From Job resource)
Scheduled time: 21-Feb-2009 15:49:01
Start time: 21-Feb-2009 15:49:10
End time: 21-Feb-2009 15:49:10
Elapsed time: 0 secs
Priority: 10
FD Files Written: 0
SD Files Written: 0
FD Bytes Written: 0 (0 B)
SD Bytes Written: 0 (0 B)
Rate: 0.0 KB/s
Software Compression: None
VSS: no
Storage Encryption: no
Volume name(s):
Volume Session Id: 1
Volume Session Time: 1235227629
Last Volume Bytes: 9,376,628,712 (9.376 GB)
Non-fatal FD errors: 0
SD Errors: 0
FD termination status: Error
SD termination status: Error
Termination: *** Backup Error ***

Miért keresi a mantos02_localfs a FileStorageMantis01-en, és miért van ez: Could not ready device "FileStorageMantis01" (/data/mantis01) for append?
Bocsánat, hogy ilyen hosszúra sikeredett. Most foglalkozok először a baculával, ezért most kicsit tanácstalan vagyok.

Hozzászólások

"Csoda" történt. Az ég világon nem konfiguráltam semmit, csak kíváncsiságból mgpróbáltam ismét lefuttatni a problémas Job-ot. Most működik :)

--
http://laszlo.co.hu/

Valami azért még sem kerek. Most, hogy lefutott a mantis01_localfs Job, már a mantos02_localfs Job már nem fut le. Ugyan azt a hibát adja, mint amit fent írtam, persze értelemszerűen más nevekkel.

--
http://laszlo.co.hu/

Nem tudja a jobot újra ütemezni:
File Retention = 14 days
Job Retention = 2 months

Így jó lesz (én így szoktam):
File Retention = 14 days
Job Retention = 7 days

----
Nyicc-egy-csört?

A helyzet nem sokat változott. Én továbbra sem értem azt, hogy miért keresi az egyik job a másik jobhoz definiált storage label-ét a saját magához definiált storage alatt.

22-Feb 23:05 bcksol10-sd JobId 38: Error: Could not open device "FileStorageMantis02" (/data/mantis02): ERR=dev.c:491 Could not open: /data/mantis02/mantis01_localfs_090222, ERR=No such file or directory

--
http://laszlo.co.hu/

Szinte biztos, hogy valahogy a mantis02-n vagy a directoron rossz volume nev van megadva, ez az egyik hiba. Mivel autolabeling van, valahogy a mantis01 hostneve felkeveredik a 02 mediajara.

Esetleg a Director-ban ip alapjan vedd fel oket, lehet DNS problema.
--


()=() Ki oda vagyik,
('Y') hol szall a galamb
C . C elszalasztja a
()_() kincset itt alant.