View Issue Details

IDProjectCategoryView StatusLast Update
0000449bareos-corestorage daemonpublic2015-05-27 13:07
Reporterqwerty Assigned To 
PriorityhighSeveritymajorReproducibilityalways
Status closedResolutionnot fixable 
PlatformSlackware 14.1OSanyOS Version3
Product Version14.2.4 
Summary0000449: VirtualFull from device A to device B not working.
DescriptionI'm trying to do a VirtualFull from device "diskfile"
to device "usbmedia".
"usbmedia" is an auto-mounted usb-disk.
"diskfile" is on an internal harddrive.

First run of VirtualFull works.
Second is not working (see "Error messages")

See "Points to note" for a summary of what differs
between the devices "diskfile" and "usbmedia".

The ordinary full/incremental/differental backups to
device "diskfile" is working.

This may be related to 0000283. (?)
Steps To ReproduceIn bconsole
run job="Allmh_server_VirtualFull" NextPool="VirtualFull"
This first run works.
Repeat the command "run job=..."
This give error.

Work around
===========

purge volume="Virtual_Full-0035"
This will leave volumes "Virtual_Full-0035, and the
next volume the usb-disk.
Then purge this new volume. And the VirtualFull backup
will reuse volume "Virtual_Full-0035" the next time.
Additional Informationbareos-sd.conf
==============
# usb media for virtual full. (Secundary backup)
Device {
  Name = usbmedia
  Description = "USB media"
  Autochanger = no;
  DeviceType = File
  # MediaType = AllmhFile
  MediaType = AllmhVirtual
  ArchiveDevice = "/mnt/bareos/usb-media_1/"
  RemovableMedia = yes;
  RandomAccess = yes;
  LabelMedia = yes
  AutomaticMount = yes;
}

# Backup saved on built-in disk (not removable). (Primary backup)
Device {
  Name = diskfile
  Description = "Save to files under /opt/bareos/working/filestorage"
  Autochanger = no;
  DeviceType = File
  MediaType = AllmhFile
  ArchiveDevice = "/opt/bareos/working/filestorage/"
  RemovableMedia = no;
  RandomAccess = yes;
  LabelMedia = yes
  AutomaticMount = yes;
}

-----------------------------------------------------------
bareos-dir.conf
===============
# Storage on local built-in disk
Storage {
  Name = "LocalFile"
  MediaType = AllmhFile
  Maximum Concurrent Jobs = 10
  Device = diskfile
  Autochanger = no;
  .
  .
  .
}
# Storage on local usb-disk (Virtual Full)
Storage {
  Name = "usbmedia"
  # MediaType = AllmhFile
  MediaType = AllmhVirtual
  Maximum Concurrent Jobs = 10
  Device = usbmedia
  .
  .
  .
}
----------
Job {
  Name = "Allmh_server_VirtualFull"
  JobDefs = "DefaultBackupJob"
  Level = "VirtualFull"
  Pool = "Allmh Pool Full"
  Client = "server-fd"
  FileSet = "Allmh server Full"
  Priority = 31
  Accurate = yes
  Enabled = no
}
---------
Pool {
  Name = "Allmh Pool Full"
  PoolType = Backup
  Recycle = yes
  AutoPrune = yes
  VolumeRetention = 2 year
  MaximumVolumeBytes = 400M
  MaximumVolumes = 50
  LabelFormat = "Allmh-Full-"
  Storage = "LocalFile"
  #NextPool="VirtualFull"
}

Pool {
  Name = "VirtualFull"
  PoolType = Backup
  Recycle = yes
  AutoPrune = yes
  VolumeRetention = 1 month
  LabelFormat = "Virtual_Full-"
  MaximumVolumeBytes = 0
  MaximumVolumes = 21
  Storage = "usbmedia"
}

===================================================
bconsole
========
run job="Allmh_server_VirtualFull" NextPool="VirtualFull"

===================================================
Points to note
==============
Test 1
------
Device {
  Name = usbmedia
  MediaType = AllmhFile
  ArchiveDevice = "/mnt/bareos/usb-media_1/"

Device {
  Name = diskfile
  MediaType = AllmhFile
  ArchiveDevice = "/opt/bareos/working/filestorage/"

Here "ArchiveDevice" differ.
Test 2
------
Device {
  Name = usbmedia
  MediaType = AllmhVirtual
  ArchiveDevice = "/mnt/bareos/usb-media_1/"

Device {
  Name = diskfile
  MediaType = AllmhFile
  ArchiveDevice = "/opt/bareos/working/filestorage/"

Here "ArchiveDevice" and "MediaType" differ.


===================================================
Error messages
==============
Test 1
------
31-mar 09:23 Allmh-dir JobId 103: Using Device "diskfile" to read.
31-mar 09:23 Allmh-dir JobId 103: Created new Volume "Virtual_Full-0040" in catalog.
31-mar 09:23 Allmh-dir JobId 103: Using Device "usbmedia" to write.
31-mar 09:24 vchanger JobId 103: Warning: acquire.c:226 Read open device "diskfile" (/opt/bareos/working/filestorage/) Volume "Virtual_Full-0039" failed: ERR=dev.c:616 Could not open: /opt/bareos/working/filestorage/Virtual_Full-0039, ERR=Filen eller katalogen finns inte (File or catalog don't exist)

31-mar 09:24 vchanger JobId 103: Please mount read Volume "Virtual_Full-0039" for:

Note
----
Trying to open "/opt/bareos/working/filestorage/Virtual_Full-0039",
but the location is "/mnt/bareos/usb-media_1/Virtual_Full-0039".


Test 2
------
30-mar 15:20 Allmh-dir JobId 98: Using Device "diskfile" to read.
30-mar 15:20 Allmh-dir JobId 98: Recycled volume "Virtual_Full-0031"
30-mar 15:20 Allmh-dir JobId 98: Using Device "usbmedia" to write.
30-mar 15:20 vchanger JobId 98: acquire.c:114 Changing read device. Want Media Type="AllmhVirtual" have="AllmhFile"
  device="diskfile" (/opt/bareos/working/filestorage/)
30-mar 15:20 vchanger JobId 98: Fatal error: acquire.c:169 No suitable device found to read Volume "Virtual_Full-0035"

Note
----
Just to see what happend if I changed MediaType.




TagsNo tags attached.

Activities

pstorz

pstorz

2015-03-31 10:53

administrator   ~0001660

The Virtual Full Backup always consolidates a former full backup with additional incrementals or differentials.

As you say yourself, it works the first time. If you want it to work the next time again, you need to somehow move the new full backup to your source pool.

You can do that either with a copy job or by moving the volume that contains the full backup to your source pool.
 
qwerty

qwerty

2015-03-31 15:15

reporter   ~0001671

OK, thanks.
I got a bit confused.
You can close this issue.

Issue History

Date Modified Username Field Change
2015-03-31 10:40 qwerty New Issue
2015-03-31 10:53 pstorz Note Added: 0001660
2015-03-31 10:53 pstorz Assigned To => pstorz
2015-03-31 10:53 pstorz Status new => acknowledged
2015-03-31 14:56 pstorz Assigned To pstorz =>
2015-03-31 15:15 qwerty Note Added: 0001671
2015-05-27 13:07 joergs Status acknowledged => closed
2015-05-27 13:07 joergs Resolution open => not fixable