Storage error

49 views
Skip to first unread message

Goncalo Sousa

unread,
Apr 3, 2020, 12:45:42 PM4/3/20
to bareos-users
Hello,

I added a new client and after adding I tried to run a job with bconsole and in WebGUI it gives me a storage error:




bareos-sd JobId 4151: Fatal error: Device reservation failed for JobId=4151:
bareos-dir JobId 4151: Fatal error:
Storage daemon didn't accept Device "ts082-sd" because:
3924 Device "ts082-sd" not in SD Device resources or no matching Media Type.

When I do status storage it gives me:
 JobId  Level    Files      Bytes   Status   Finished        Name
===================================================================
4151  Full          0         0   Error    03-Apr-20 17:24 ts082-job

And status client;
*status client=ts082-fd
Connecting to Client ts082-fd at 192.168.x.x:9102

ts082-fd Version: 17.2.4 (21 Sep 2017)  x86_64-redhat-linux-gnu redhat Red Hat Enterprise Linux Server release 5.7 (Tikanga)
Daemon started 03-Apr-20 17:02. Jobs: run=0 running=0.
 Heap: heap=135,168 smbytes=28,508 max_bytes=28,897 bufs=64 max_bufs=67
 Sizeof: boffset_t=8 size_t=8 debug=0 trace=0 bwlimit=0kB/s

Running Jobs:
bareos-dir (director) connected at: 03-Apr-20 17:44
No Jobs running.
====

Terminated Jobs:



Here is Client config files:

ts082-fd.conf
Client {
  Name = ts082-fd
  Address = 192.168.x.x
  Password = password
}

ts082-fs.conf
FileSet {
  Name = "ts082-fs"
  Description = "Backup all regular filesystems, determined by filesystem type."
  Include {
    Options {
      Compression=GZIP
      Signature = MD5 # calculate md5 checksum per file
      One FS = No     # change into other filessytems
      xattrsupport=yes
      FS Type = overlay
      FS Type = btrfs
      FS Type = ext2  # filesystems of given types will be backed up
      FS Type = ext3  # others will be ignored
      FS Type = ext4
      FS Type = reiserfs
      FS Type = jfs
      FS Type = xfs
      FS Type = zfs
      FS Type = ufs
      FS Type = vxfs
      FS Type = tmpfs
      FS Type = rootfs
}
    File = /root
    File = /home
    File = /etc
    File = /u01
}
  # Things that usually have to be excluded
  # You have to exclude /var/lib/bareos/storage
  # on your bareos server
  Exclude {
    File = /proc
    File = /tmp
    File = /var/tmp
    File = /.journal
    File = /.fsck
    File = /var
  }
}

ts082-job.conf
Job {
  Name = "ts082-job"
  Client = ts082-fd
  Type = Backup
  Level = Incremental
  FileSet = "ts082-fs"
  Schedule = "schedule"
  Storage = ts082-sd
  Messages = Standard
  Pool = pool-ts082
  Priority = 10
  Write Bootstrap = "/var/lib/bareos/%c.bsr"
}

pool-ts082.conf
Pool {
  Name = pool-ts082
  Pool Type = Backup
  Recycle = yes                       # Bareos can automatically recycle Volumes
  Recycle Oldest Volume = yes
  AutoPrune = yes                     # Prune expired volumes
  Volume Retention = 30 days         # How long should the Full Backups be kept? (                                                                                                                        #06)
  Maximum Volume Bytes = 25G          # Limit Volume size to something reasonable
  Maximum Volumes = 100               # Limit number of Volumes in Pool
  Label Format = "ts082-"              # Volumes will be labeled "Full-<volume-id>                                                                                                                        "
}

ts082-sd.conf
Storage {
  Name = ts082-sd
  Address = srvtsprdbos                # N.B. Use a fully qualified name here (do                                                                                                                         not use "localhost" here).
  Password = "password"
  Device = ts082-sd
  Media Type = File
}


I cant see the error.

Evgenij

unread,
Apr 3, 2020, 1:30:11 PM4/3/20
to bareos-users
Hi, 

Please show your SD configuration
Default config is located in: ... bareos-sd.d/device/FileStorage.conf

Goncalo Sousa

unread,
Apr 3, 2020, 1:35:13 PM4/3/20
to bareos-users
Device {
  Name = FileStorage
  Media Type = File
  Archive Device = /var/lib/bareos/storage
  LabelMedia = yes;                   # lets Bareos label unlabeled media
  Random Access = yes;
  AutomaticMount = yes;               # when device opened, read it
  RemovableMedia = no;
  AlwaysOpen = no;
  Description = "File device. A connecting Director must have the same Name and MediaType."
}

I have noticed that other clients have files here but the new client doesn't have a file in that location

Evgenij

unread,
Apr 3, 2020, 1:49:38 PM4/3/20
to bareos-users
This file should be only in the Storage Daemon server


Storage -> Device -> Name should be the save as in Director -> Storage -> Device
as well as Media Type

Reply all
Reply to author
Forward
0 new messages