DIR에서 요청한 Bacula 장치 "FileStorage"를 열 수 없거나 존재하지 않습니다.

DIR에서 요청한 Bacula 장치 "FileStorage"를 열 수 없거나 존재하지 않습니다.

내 컴퓨터를 원격으로 백업하기 위해 bacula를 설정하려고 합니다.

내 구성은 다음과 같습니다.

Job {
  Name = "LocalBackup"
  JobDefs = "DefaultJob"
}

Job {
  Name = "RemoteBackup"
  JobDefs = "DefaultJob"
  Client = ClientMachine-fd
  Pool = RemoteFile
}

Job {
  Name = "RestoreRemote"
  Type = Restore
  Client=ClientMachine-fd
  FileSet="Full Set"
  Storage = File     
  Pool = Default
  Messages = Standard
  Where = /bacula/restore
}

내 클라이언트 구성은 다음과 같습니다.

Client {
  Name = ClientMachine-fd
  Address = ClientMachine.DomainName.com
  FDPort = 9102 
  Catalog = MyCatalog
  Password = "u2LK-yBrQzfiEsc6NWftHEhymmdPWsklN"          # password for Remote FileDaemon
  File Retention = 30 days            # 30 days
  Job Retention = 6 months            # six months
  AutoPrune = yes                     # Prune expired Jobs/Files
}

이 구성을 실행하고 처음으로 내 클라이언트의 상태를 찾으면 다음 메시지가 나타납니다.

ClientMachine-fd Version: 5.2.6 (21 February 2012)  x86_64-pc-linux-gnu ubuntu 14.04
Daemon started 01-Oct-15 13:14. Jobs: run=0 running=0.
 Heap: heap=270,336 smbytes=15,823 max_bytes=15,970 bufs=48 max_bufs=49
 Sizeof: boffset_t=8 size_t=8 debug=0 trace=0 
Running Jobs:
Director connected at: 01-Oct-15 13:53
No Jobs running.
====

Terminated Jobs:
====
*

이제 작업을 실행하려고 하는데 다음 메시지가 나타납니다.

    01-Oct 11:54 BackupServer-dir JobId 4: Start Backup JobId 4, Job=RemoteBackup.2015-10-01_11.54.23_05
01-Oct 11:54 BackupServer-sd JobId 4: Error: dev.c:120 Unable to stat device /nonexistant/path/to/file/archive/dir: ERR=No such file or directory
01-Oct 11:54 BackupServer-sd JobId 4: Warning: 
     Device "FileStorage" requested by DIR could not be opened or does not exist.
01-Oct 11:54 BackupServer-sd JobId 4: Error: dev.c:120 Unable to stat device /nonexistant/path/to/file/archive/dir: ERR=No such file or directory
01-Oct 11:54 BackupServer-sd JobId 4: Warning: 
     Device "FileStorage" requested by DIR could not be opened or does not exist.
01-Oct 11:54 BackupServer-sd JobId 4: Error: dev.c:120 Unable to stat device /nonexistant/path/to/file/archive/dir: ERR=No such file or directory
01-Oct 11:54 BackupServer-sd JobId 4: Warning: 
     Device "FileStorage" requested by DIR could not be opened or does not exist.
01-Oct 11:54 BackupServer-sd JobId 4: Fatal error: Device reservation failed for JobId=4: Jmsg Job=RemoteBackup.2015-10-01_11.54.23_05 type=5 level=1443700465 BackupServer-sd JobId 4: Warning: 
     Device "FileStorage" requested by DIR could not be opened or does not exist.

01-Oct 11:54 BackupServer-dir JobId 4: Fatal error: 
     Storage daemon didn't accept Device "FileStorage" because:
     3924 Device "FileStorage" not in SD Device resources.
01-Oct 11:54 BackupServer-dir JobId 4: Error: Bacula BackupServer-dir 5.2.6 (21Feb12):
  Build OS:               i686-pc-linux-gnu ubuntu 14.10
  JobId:                  4
  Job:                    RemoteBackup.2015-10-01_11.54.23_05
  Backup Level:           Full (upgraded from Incremental)
  Client:                 "ClientMachine-fd" 5.2.6 (21Feb12) x86_64-pc-linux-gnu,ubuntu,14.04
  FileSet:                "Full Set" 2015-10-01 11:39:29
  Pool:                   "RemoteFile" (From Job resource)
  Catalog:                "MyCatalog" (From Client resource)
  Storage:                "File" (From Job resource)
  Scheduled time:         01-Oct-2015 11:54:21
  Start time:             01-Oct-2015 11:54:25
  End time:               01-Oct-2015 11:54:25
  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
  Encryption:             no
  Accurate:               no
  Volume name(s):         
  Volume Session Id:      2
  Volume Session Time:    1443699984
  Last Volume Bytes:      0 (0 B)
  Non-fatal FD errors:    1
  SD Errors:              0
  FD termination status:  
  SD termination status:  
  Termination:            *** Backup Error ***

왜 이런 일이 일어나는지 말해 줄 수 있는 사람이 있나요?

답변1

에 관하여:

3924 장치 "FileStorage"가 SD 장치 리소스에 없습니다.

  • 은 및 Media Type에서 모두 동일해야 합니다 .bacula.sd.confbacula-dir.conf

10월 1일 11:54 BackupServer-sd JobId 4: 오류: dev.c:120 장치 /nonexistant/path/to/file/archive/dir을 stat할 수 없습니다. ERR=해당 파일 또는 디렉터리가 없습니다.

  • 가 기본으로 제공되기 때문에 Archive Device변경 하는 것을 잊었을 수도 있습니다 ./nonexistant/path/to/file/archive/dir

답변2

오류 메시지는 파일 저장 장치가 제대로 구성되지 않았음을 나타냅니다. 몇 년 전에는 바큘라로 많은 일을 했는데 지금은 기억이 나지 않습니다. 하지만 사용 가능한 구성을 얻으려면 bacula Director 데몬과 미디어 데몬(bacula-dir.conf, bacula-sd.conf)에 대한 구성 파일을 확인하고 "DefaultJob"에 대한 작업 속성을 편집해야 합니다.

JobDefs = "DefaultJob"

bacula가 제대로 존재하지 않는 표준 파일 저장 장치에 백업을 시도한다는 것을 나타냅니다. 또한 이것은:

Storage daemon didn't accept Device "FileStorage" because:
3924 Device "FileStorage" not in SD Device resources.

스토리지 데몬의 구성을 확인하면 문제를 해결할 수 있습니다. 어쨌든 기본값은 다소 모호하고 예시로만 사용할 수 있으므로 머리를 더 긁고 문서를 읽어야 합니다!

관련 정보