Discussion:
[bareos-users] big catastrophe, recover without bootstrap
Sven Gehr
2018-10-16 11:50:02 UTC
Permalink
***@all,

I do my to write my unlucky situation in english ... I have an UCS virtualation host with ucs VM's. The KVM-Host work as bareos-backup-server. I have a separate raid5-volume as backup-destination:

/backup/bareos/storage

I configure this with rhe ucs config reg. The virtual disk from the vm's storage in:

/var/lib/libvirt/images/vmname.qcow2

but this files ar not in the backup-job. I install the bareos client on the vm.

Now my kvmhost / backupserver is crasht. I can't access to the storage :-(

When I look in the backup-volume I found there the files like:

- Full-00223
- Diff-00116
- Incr-00045
....

but no bootstrab file. Is it possible to restore my system with this files?

maybe there is someone in the area karslruhe who can help me there? of course I pay for it.

with best
sven
--
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 post to this group, send email to bareos-***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Alejandro Hamann
2018-10-16 17:57:15 UTC
Permalink
Post by Sven Gehr
/backup/bareos/storage
/var/lib/libvirt/images/vmname.qcow2
but this files ar not in the backup-job. I install the bareos client on the vm.
Now my kvmhost / backupserver is crasht. I can't access to the storage :-(
- Full-00223
- Diff-00116
- Incr-00045
....
but no bootstrab file. Is it possible to restore my system with this files?
maybe there is someone in the area karslruhe who can help me there? of course I pay for it.
with best
sven
Hello sven.

I do not really understand what you are describing.
But the package "bareos-tools" contains some utilities that can be of help. For example:
bls - Bareos's 'Volume LS'
bextract - Bareos's 'Extract from volume'
bcopy - Bareos's 'Copy from volume'
and some other few more ...

So, if you can access the files that you describe from your backup-volume (Full-00223, Diff-00116, Incr-00045 ...), you can use the described tools to recover (I think that mainly "bextract" will help you ). You can see the manpages of these utilities for syntax and usage examples.

Regards!
--
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 post to this group, send email to bareos-***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
j.echter
2018-10-16 18:32:36 UTC
Permalink
Post by Sven Gehr
/backup/bareos/storage
/var/lib/libvirt/images/vmname.qcow2
but this files ar not in the backup-job. I install the bareos client on the vm.
Now my kvmhost / backupserver is crasht. I can't access to the storage :-(
- Full-00223
- Diff-00116
- Incr-00045
....
but no bootstrab file. Is it possible to restore my system with this files?
maybe there is someone in the area karslruhe who can help me there? of course I pay for it.
with best
sven
Hi,

you should check where you're bareos setup saves bootstrap files.

These files don't have to be necessarily where your backup files are.

Good luck

JÃŒrgen
--
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 post to this group, send email to bareos-***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Sven Gehr
2018-10-20 15:02:45 UTC
Permalink
I explained it badly. I have a disaster recovery situation an no catalog-db ans no bootstrap-file. I must reconstruct my catalog from my volumes with bscan.

I have install & configure a new bareos-server. Empty but it work's. My volumes are stored on:

/backup/bareos/storage

Filenames:

Full-XXXX
Differential-XXXX
Incremental-XXXX

My planed bscan command:

bscan -B postgresql -n bareos -u bareos -P 'secret' -v -s -m -V [Media] /backup/bareos/storage/

In the documentation I read how to specify the media:

-V Full-0012|Full-0013|....

It is possible to use a wildcard like:

-V Full-*|Differential-*|Incremental-*

Or is it required all volumes seperately?

with best
sven
--
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 post to this group, send email to bareos-***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Sven Gehr
2018-10-20 16:56:39 UTC
Permalink
My second porolem is that I can not connect to the database. I use an UCS-Server (4,3).

bconsole, selftest and webui works .... but empty.

the connection paramter are in /etc/bareos/bareos-dir.d/catalog/MyCatalog.conf:

Catalog {
Name = MyCatalog
#dbdriver = "postgresql"
dbdriver = postgresql
dbname = bareos
dbuser = bareos
dbpassword = secret
}

the volume-files are in:

/backup/bareos/storage

when I try to add the volume to a new catalog I get the error:

***@kvm02:~# bscan -B postgresql -n bareos -u bareos -P 'secret' -v -s -m -V Full-0046 /backup/bareos/storage
bscan: butil.c:273-0 Using device: "/backup/bareos/storage" for reading.
20-Okt 18:49 bscan JobId 0: Ready to read from volume "Full-0046" on device "FileStorage" (/backup/bareos/storage).
bscan: ERROR TERMINATION at bscan.c:341
postgresql.c:253 Unable to connect to PostgreSQL server. Database=bareos User=bareos
Possible causes: SQL server not running; password incorrect; max_connections exceeded.

Can anybody tell me what the problem is?

with best
sven
--
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 post to this group, send email to bareos-***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Eero Volotinen
2018-10-20 17:01:50 UTC
Permalink
Well. is the postgres server up and running?

Error sounds like that. Fix issue and try again?

You could also try command strace -f -s -o logfile current_command
Post by Sven Gehr
My second porolem is that I can not connect to the database. I use an UCS-Server (4,3).
bconsole, selftest and webui works .... but empty.
the connection paramter are in
Catalog {
Name = MyCatalog
#dbdriver = "postgresql"
dbdriver = postgresql
dbname = bareos
dbuser = bareos
dbpassword = secret
}
/backup/bareos/storage
-m -V Full-0046 /backup/bareos/storage
bscan: butil.c:273-0 Using device: "/backup/bareos/storage" for reading.
20-Okt 18:49 bscan JobId 0: Ready to read from volume "Full-0046" on
device "FileStorage" (/backup/bareos/storage).
bscan: ERROR TERMINATION at bscan.c:341
postgresql.c:253 Unable to connect to PostgreSQL server. Database=bareos User=bareos
Possible causes: SQL server not running; password incorrect;
max_connections exceeded.
Can anybody tell me what the problem is?
with best
sven
--
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
For more options, visit https://groups.google.com/d/optout.
--
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 post to this group, send email to bareos-***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Sven Gehr
2018-10-20 17:57:21 UTC
Permalink
I found the solution ...

First step:

su -s /bin/bash - bareos

...

when I run the command I get errors like this:

bscan: bscan.c:779-0 Could not find Job for SessId=12 SessTime=1536138886 record.
bscan: bscan.c:779-0 Could not find Job for SessId=12 SessTime=1536138886 record.
bscan: bscan.c:779-0 Could not find Job for SessId=12 SessTime=1536138886 record.
bscan: bscan.c:779-0 Could not find Job for SessId=12 SessTime=1536138886
....

When I run the command without the option -s no error ist postst but:

***@kvm02:~$ /usr/sbin/bscan -B postgresql -n bareos -u bareos -P 'secret' -v -m -V Full-0046 /backup/bareos/storage
bscan: butil.c:273-0 Using device: "/backup/bareos/storage" for reading.
20-Okt 19:48 bscan JobId 0: Ready to read from volume "Full-0046" on device "FileStorage" (/backup/bareos/storage).
bscan: bscan.c:345-0 Using Database: bareos, User: bareos
bscan: bscan.c:537-0 Pool record for Full found in DB.
bscan: bscan.c:551-0 Pool type "Backup" is OK.
bscan: bscan.c:563-0 Media record for Full-0046 found in DB.
bscan: bscan.c:582-0 Media type "File" is OK.
bscan: bscan.c:595-0 VOL_LABEL: OK for Volume: Full-0046
20-Okt 19:52 bscan JobId 0: End of Volume at file 12 on device "FileStorage" (/backup/bareos/storage), Volume "Full-0046"
bscan (0): bscan.c:382-0 ========== JobId=0 ========
bscan: bscan.c:1166-0 Updated Media record at end of Volume: Full-0046
20-Okt 19:52 bscan JobId 0: End of all volumes.
bscan: bscan.c:1166-0 Updated Media record at end of Volume: Full-0046
bscan: bscan.c:767-0 End of all Volumes. VolFiles=12 VolBlocks=0 VolBytes=53,657,095,658
Records would have been added or updated in the catalog:
1 Media
1 Pool
0 Job
0 File
0 RestoreObject

No job, no file ... why?
--
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 post to this group, send email to bareos-***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...