Hello Guy.
My target: run current jobs to write to many device storage. I have a issue
when I deploy Bareos run current jobs, this is my configuration:
Client
------------
/etc/bareos/bareos-dir.d/client/ad1-fd.conf
Client {
Name = ad1-fd
Address = ad1
Password = "26fwxN6NhkAWg3srEgIHryniqXvhZR59LF7Ubp76wWBH"
# uncomment the following if using bacula
# Catalog = "MyCatalog"
AutoPrune = yes
Job Retention = 14 days
File Retention = 14 days
}
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
Device
-------------
/etc/bareos/bareos-sd.d/device/device_bak01.conf
Device {
Name = device_bak01
Media Type = File
Archive Device = /var/lib/bareos/storage/bak01
LabelMedia = yes
Random Access = Yes
AutomaticMount = yes
RemovableMedia = no
AlwaysOpen = no
Maximum Concurrent Jobs = 2
}
/etc/bareos/bareos-sd.d/device/device_bak02.conf
Device {
Name = device_bak02
Media Type = File
Archive Device = /var/lib/bareos/storage/bak02
LabelMedia = yes
Random Access = Yes
AutomaticMount = yes
RemovableMedia = no
AlwaysOpen = no
Maximum Concurrent Jobs = 2
}
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
Storage
------------
/etc/bareos/bareos-dir.d/storage/storage_AD.conf
Storage {
Name = storage_AD
Address = backup
Password = "4CCyw2Nn7pPw/CUap63d8Xkk5PzMWt5V8DMsuvVo3qVb"
Device = device_bak01
Device = device_bak02
Media Type = File
Maximum Concurrent Jobs = 2
}
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
Pool
---------------------
/etc/bareos/bareos-dir.d/pool/Full.conf
Pool {
Name = Full
Pool Type = Backup
Use Volume Once = yes
Recycle = yes
AutoPrune = yes
Volume Retention = 14 days
Maximum Volume Jobs = 1
Label Format = Full-
Maximum Volumes = 3
}
/etc/bareos/bareos-dir.d/pool/Incremental.conf
Pool {
Name = Incremential
Pool Type = Backup
Use Volume Once = yes
Recycle = yes
AutoPrune = yes
Volume Retention = 7 days
Maximum Volume Jobs = 6
Label Format = Inc-
Maximum Volumes = 7
}
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
Fileset
-------------
/etc/bareos/bareos-dir.d/fileset/fileset_bak01.conf
FileSet {
Name = "fileset_bak01"
Enable VSS = yes
Include {
Options {
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"
wildfile = "*.j2k"
wildfile = "*.exe"
wildfile = "*.jpg"
wildfile = "*.jpeg"
wildfile = "*.zip"
Exclude = yes
}
File = "C:/bak01"
}
}
/etc/bareos/bareos-dir.d/fileset/fileset_bak02.conf
FileSet {
Name = "fileset_bak02"
Enable VSS = yes
Include {
Options {
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"
wildfile = "*.j2k"
wildfile = "*.exe"
wildfile = "*.jpg"
wildfile = "*.jpeg"
wildfile = "*.zip"
Exclude = yes
}
File = "C:/bak02"
}
}
Jobdef
--------------------
/etc/bareos/bareos-dir.d/jobdefs/jobdefs_bak01.conf
JobDefs {
Name = "jobdefs_bak01"
Type = Backup
Level = Incremental
FileSet = "fileset_bak01"
Schedule = "schedule_AD"
Storage = "storage_AD"
Messages = Standard
Pool = Incremental
Full Backup Pool = Full
Incremental Backup Pool = Incremental
Priority = 10
Write Bootstrap = "/var/lib/bareos/%c.bsr"
}
/etc/bareos/bareos-dir.d/jobdefs/jobdefs_bak02.conf
JobDefs {
Name = "jobdefs_bak02"
Type = Backup
Level = Incremental
FileSet = "fileset_bak02"
Schedule = "schedule_AD"
Storage = "storage_AD"
Messages = Standard
Pool = Incremental
Full Backup Pool = Full
Incremental Backup Pool = Incremental
Priority = 10
Write Bootstrap = "/var/lib/bareos/%c.bsr"
}
Job
-------------
/etc/bareos/bareos-dir.d/job/job_bak01.conf
Job {
Name = "job_bak01"
Client = ad1-fd
JobDefs = "jobdefs_bak01"
}
/etc/bareos/bareos-dir.d/job/job_bak02.conf
Job {
Name = "job_bak02"
Client = ad1-fd
JobDefs = "jobdefs_bak02"
}
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
I have 2 issue when I run:
1. When Bareos run, I see in webUI, job_bak01 and job_bak02 don't run
simultaneously. First, Bareos run job_bak01 and job_bak02 is queued --> so, How
do I configure to Bareos run job simultaneously ?
2. After Bareos run Full successfully, it run incremental and have warning
this is my log:
05-Jul 17:55 bareos-dir JobId 9: Start Backup JobId 9,
Job=job_AD_Ancestry.2017-07-05_17.55.00_48
05-Jul 17:55 bareos-dir JobId 9: Created new Volume "Inc-0006" in catalog.
05-Jul 17:55 bareos-dir JobId 9: Using Device "device_bak01" to write.
05-Jul 17:54 ad1-fd JobId 9: DIR and FD clocks differ by -5 seconds, FD
automatically compensating.
05-Jul 17:55 bareos-sd JobId 9: Labeled new Volume "Inc-0006" on device
"device_bak01" (/var/lib/bareos/storage/AD).
05-Jul 17:55 bareos-sd JobId 9: Wrote label to prelabeled Volume "Inc-0006" on
device "device_bak01" (/var/lib/bareos/storage/AD)
05-Jul 17:55 bareos-dir JobId 9: Volume used once. Marking Volume "Inc-0006" as
Used.
05-Jul 17:54 ad1-fd JobId 9: Created 32 wildcard excludes from FilesNotToBackup
Registry key
05-Jul 17:54 ad1-fd JobId 9: Generate VSS snapshots. Driver="Win64 VSS",
Drive(s)="C"
05-Jul 17:54 ad1-fd JobId 9: VolumeMountpoints are not processed as onefs = yes.
05-Jul 17:54 ad1-fd JobId 9: Warning: VSS Writer "SqlServerWriter" has invalid
state. ERR=The writer vetoed the shadow copy creation process during the backup
preparation state.
05-Jul 17:55 ad1-fd JobId 9: Warning: VSS Writer "SqlServerWriter" has invalid
state. ERR=The writer vetoed the shadow copy creation process during the backup
preparation state.
05-Jul 17:55 ad1-fd JobId 9: VSS Writer (PrepareForBackup): "SqlServerWriter",
State: 0x7 (VSS_WS_FAILED_AT_PREPARE_BACKUP)
05-Jul 17:55 ad1-fd JobId 9: Warning: VSS Writer "SqlServerWriter" has invalid
state. ERR=The writer vetoed the shadow copy creation process during the backup
preparation state.
05-Jul 17:55 ad1-fd JobId 9: VSS Writer (BackupComplete): "Task Scheduler
Writer", State: 0x1 (VSS_WS_STABLE)
05-Jul 17:55 ad1-fd JobId 9: VSS Writer (BackupComplete): "VSS Metadata Store
Writer", State: 0x1 (VSS_WS_STABLE)
05-Jul 17:55 ad1-fd JobId 9: VSS Writer (BackupComplete): "Performance Counters
Writer", State: 0x1 (VSS_WS_STABLE)
05-Jul 17:55 ad1-fd JobId 9: VSS Writer (BackupComplete): "System Writer",
State: 0x1 (VSS_WS_STABLE)
05-Jul 17:55 ad1-fd JobId 9: Warning: VSS Writer (BackupComplete):
"SqlServerWriter", State: 0x7 (VSS_WS_FAILED_AT_PREPARE_BACKUP)
05-Jul 17:55 ad1-fd JobId 9: VSS Writer (BackupComplete): "ASR Writer", State:
0x1 (VSS_WS_STABLE)
05-Jul 17:55 ad1-fd JobId 9: VSS Writer (BackupComplete): "Shadow Copy
Optimization Writer", State: 0x1 (VSS_WS_STABLE)
05-Jul 17:55 ad1-fd JobId 9: VSS Writer (BackupComplete): "Registry Writer",
State: 0x1 (VSS_WS_STABLE)
05-Jul 17:55 ad1-fd JobId 9: VSS Writer (BackupComplete): "COM+ REGDB Writer",
State: 0x1 (VSS_WS_STABLE)
05-Jul 17:55 ad1-fd JobId 9: VSS Writer (BackupComplete): "NTDS", State: 0x1
(VSS_WS_STABLE)
05-Jul 17:55 ad1-fd JobId 9: VSS Writer (BackupComplete): "DFS Replication
service writer", State: 0x1 (VSS_WS_STABLE)
05-Jul 17:55 ad1-fd JobId 9: VSS Writer (BackupComplete): "WMI Writer", State:
0x1 (VSS_WS_STABLE)
05-Jul 17:55 bareos-sd JobId 9: Elapsed time=00:00:16, Transfer rate=31
Bytes/second
05-Jul 17:55 bareos-dir JobId 9: Bareos bareos-dir 16.2.4 (01Jul16):
Build OS: x86_64-redhat-linux-gnu redhat CentOS Linux release
7.0.1406 (Core)
JobId: 9
Job: job_bak01.2017-07-05_17.55.00_48
Backup Level: Incremental, since=2017-07-05 17:45:00
Client: "ad1-fd" 16.2.4 (01Jul16) Microsoft Windows Server
2012 Standard Edition (build 9200), 64-bit,Cross-compile,Win64
FileSet: "fileset_bak01" 2017-07-05 16:46:00
Pool: "Incremental" (From Job IncPool override)
Catalog: "MyCatalog" (From Client resource)
Storage: "storage_AD" (From Job resource)
Scheduled time: 05-Jul-2017 17:55:00
Start time: 05-Jul-2017 17:55:00
End time: 05-Jul-2017 17:55:16
Elapsed time: 16 secs
Priority: 10
FD Files Written: 1
SD Files Written: 1
FD Bytes Written: 0 (0 B)
SD Bytes Written: 508 (508 B)
Rate: 0.0 KB/s
Software Compression: None
VSS: yes
Encryption: no
Accurate: no
Volume name(s): Inc-0006
Volume Session Id: 1
Volume Session Time: 1499251888
Last Volume Bytes: 1,166 (1.166 KB)
Non-fatal FD errors: 1
SD Errors: 0
FD termination status: OK
SD termination status: OK
Termination: Backup OK -- with warnings
Thanks so much.
Giang
--
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 [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.