Pruning oldest volume "server-0728"

54 views
Skip to first unread message

Goncalo Sousa

unread,
Jul 28, 2020, 12:23:38 PM7/28/20
to bareos-users
Hello,

My BareOS is trying to backup a windows server and it only gives me "Pruning oldest volume "server-0728" (159 rows of this to be precise). The job starts at 11PM and I cancelled it at 11AM.

The jobs worked about 3 weeks ago, now it's constantly happening. I've tried to restart the agent on the Windows side and stays the same and I've tried to prune via bconsole and gives me another volume to prune in the next job, staying the same.

What can be the cause of this?

J. Echter

unread,
Jul 29, 2020, 2:55:23 AM7/29/20
to bareos...@googlegroups.com


Am 28.07.20 um 18:23 schrieb Goncalo Sousa:
--
You received this message because you are subscribed to the Google Groups "bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bareos-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bareos-users/c1830989-8855-4cd4-ace4-78f366dca6a6o%40googlegroups.com.

Hi,

maybe you have the volume retention set to a higher value so the volume will not be free to get recycled. Only then it will be re-used.

Greetings

Juergen

Goncalo Sousa

unread,
Jul 29, 2020, 6:48:18 AM7/29/20
to bareos-users
The retention is only 30 days


quarta-feira, 29 de Julho de 2020 às 07:55:23 UTC+1, j.echter escreveu:


Am 28.07.20 um 18:23 schrieb Goncalo Sousa:
Hello,

My BareOS is trying to backup a windows server and it only gives me "Pruning oldest volume "server-0728" (159 rows of this to be precise). The job starts at 11PM and I cancelled it at 11AM.

The jobs worked about 3 weeks ago, now it's constantly happening. I've tried to restart the agent on the Windows side and stays the same and I've tried to prune via bconsole and gives me another volume to prune in the next job, staying the same.

What can be the cause of this?
--
You received this message because you are subscribed to the Google Groups "bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bareos...@googlegroups.com.

J. Echter

unread,
Jul 30, 2020, 3:05:37 AM7/30/20
to bareos...@googlegroups.com

This is 4 weeks, what are your other retention periods?

Am 29.07.20 um 12:48 schrieb Goncalo Sousa:
To unsubscribe from this group and stop receiving emails from it, send an email to bareos-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bareos-users/215e1cf9-a499-40f9-bcfb-bfe90a3939b5o%40googlegroups.com.

J. Echter

unread,
Jul 30, 2020, 3:10:25 AM7/30/20
to bareos...@googlegroups.com

also please post your config files: pool, job and so on

Am 29.07.20 um 12:48 schrieb Goncalo Sousa:
The retention is only 30 days
To unsubscribe from this group and stop receiving emails from it, send an email to bareos-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bareos-users/215e1cf9-a499-40f9-bcfb-bfe90a3939b5o%40googlegroups.com.

Goncalo Sousa

unread,
Jul 31, 2020, 8:05:18 AM7/31/20
to bareos-users
On these last 2 days it backuped successfully, strange

These are all the files related to the client:

[root@bareos-server bareos]# cat /etc/bareos/bareos-dir.d/client/windows-server-fd.conf
Client {
  Name = windows-server-fd
  Address = windows-server
  Password = "password"
  # uncomment the following if using bacula
  # Catalog = "MyCatalog"
  }
[root@bareos-server bareos]# cat /etc/bareos/bareos-dir.d/fileset/windows-server-fs.conf
FileSet {
  Name = "windows-server-fs"
Enable VSS = yes
  Include {
    Options {
      Compression=GZIP
      Signature = MD5
      Drive Type = fixed
      IgnoreCase = yes
      WildFile = "[A-Z]:/pagefile.sys"
      WildDir = "[A-Z]:/RECYCLER"
      WildDir = "[A-Z]:/$RECYCLE.BIN"
      WildDir = "[A-Z]:/System Volume Information"
      WildDir = "[A-Z]:/Users"
Exclude = yes
    }
    File ="E:/"
}
}

[root@bareos-server bareos]# cat /etc/bareos/bareos-dir.d/job/windows-server-job.conf
Job {
  Name = windows-server-job
  Client = windows-server-fd
  Type = Backup
  Level = Incremental
  Fileset = "windows-server-fs"
  Schedule = "schedule"
  Storage = windows-server-sd
  Messages = Standard
  Pool = pool-srvtsprdintra
  Priority = 1
  Write Bootstrap = "/var/lib/bareos/%c.bsr"
}

[root@bareos-server bareos]# cat /etc/bareos/bareos-dir.d/pool/pool-windows-server.conf
Pool {
  Name = pool-srvtsprdintra
  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 = "windows-server-"              # Volumes will be labeled "Full-<volume-id>"
}

[root@bareos-server bareos]# cat /etc/bareos/bareos-dir.d/storage/windows-server-sd.conf
Storage {
  Name = windows-server-sd
  Address = bareos-server                # N.B. Use a fully qualified name here (do not use "localhost" here).
  Password = "password"
  Device = windows-server-sd
  Media Type = File
}
[root@bareos-server bareos]# cat /etc/bareos/tray-monitor.d/client/windows-server-mon.conf
Monitor {
  # Name to establish connections to Director Console, Storage Daemon and File Daemon.
  Name = windows-server-mon
  # Password to access the Director
  Password = "password"         # password for the Directors
  RefreshInterval = 30 seconds
}


[root@bareos-server bareos]# cat /etc/bareos/bareos-sd.d/device/windows-server-sd.conf
Device {
  Name =windows-server-sd
  Media Type = File
  Archive Device = /tsbackcrit/windows-server-sd
  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."

}

quinta-feira, 30 de Julho de 2020 às 08:10:25 UTC+1, j.echter escreveu:

also please post your config files: pool, job and so on

Am 29.07.20 um 12:48 schrieb Goncalo Sousa:
The retention is only 30 days

quarta-feira, 29 de Julho de 2020 às 07:55:23 UTC+1, j.echter escreveu:


Am 28.07.20 um 18:23 schrieb Goncalo Sousa:
Hello,

My BareOS is trying to backup a windows server and it only gives me "Pruning oldest volume "server-0728" (159 rows of this to be precise). The job starts at 11PM and I cancelled it at 11AM.

The jobs worked about 3 weeks ago, now it's constantly happening. I've tried to restart the agent on the Windows side and stays the same and I've tried to prune via bconsole and gives me another volume to prune in the next job, staying the same.

What can be the cause of this?
--
You received this message because you are subscribed to the Google Groups "bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bareos...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bareos-users/c1830989-8855-4cd4-ace4-78f366dca6a6o%40googlegroups.com.

Hi,

maybe you have the volume retention set to a higher value so the volume will not be free to get recycled. Only then it will be re-used.

Greetings

Juergen

--
You received this message because you are subscribed to the Google Groups "bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bareos...@googlegroups.com.

Goncalo Sousa

unread,
Aug 3, 2020, 7:07:28 AM8/3/20
to bareos-users
Today happened the same thing.

"bareos-dir JobId 5426: Pruning oldest volume "srvtsprdintra01-0747"
Reply all
Reply to author
Forward
0 new messages