[rear-users] rear mkbackup on domU (xen) doesn't really work

Oliver Hoffmann oliver at g.dom.de
Tue Oct 20 18:07:00 CEST 2015


Thank you for the explanation. I am still new to rear ;)

I only have the following in my File Set:
boot
etc
root
home

Hence I need to add bin, sbin, tmp and so on, right?

Oliver

On 20 October 2015 at 17:10, Schlomo Schapiro <schlomo at schapiro.org> wrote:

> The backup (regardless of the method) has to recover the complete OS as
> ReaR will *not* copy anything into the recovered system.
>
> We have a strict separation of concerns:
> * ReaR takes care of preparing the recovery server, formatting disks,
> mounting filesystems, making the disk bootable and reconfiguring the
> recovered system to work with the potentially changed hardware
> * A backup software recoveres all the files into the recovered file system
> structure that ReaR prepared. If you don't have your own backup software
> then ReaR includes several very simple backup methods. In any case it is
> the responsability of the backup solution to actually recover *all*
> required files.
>
> On 20 October 2015 at 17:06, Oliver Hoffmann <oliver at g.dom.de> wrote:
>
>> OK, step by step now.
>> 1. recover myhost from the boot menue
>> 2. rear recover
>> 3. Bareos says restore job finished
>> 4. ls /mnt/local:
>> boot
>> etc
>> home
>> lost+found
>> root
>> usr
>>
>> 5. chroot doesn't work as there is no bin or sbin.
>>
>> So that is the problem. Where comes sbin and so on come from? What has to
>> be in the bareos backup and what is covered by creating an ISO?
>>
>> Thanks,
>>
>> Oliver
>>
>> On 20 October 2015 at 16:53, Schlomo Schapiro <schlomo at schapiro.org>
>> wrote:
>>
>>> Hi Oliver,
>>>
>>> if /sbin/init is missing: Was it actually restored?
>>>
>>> A good check is also "chroot /mnt/local bash -i"
>>>
>>> Regards,
>>> Schlomo
>>>
>>> On 20 October 2015 at 16:43, Oliver Hoffmann <oliver at g.dom.de> wrote:
>>>
>>>> Well, everything to the point of rebooting after the whole recovery.
>>>> Everything in /mnt/local looked good. Seemingly, because while booting I
>>>> get: Target file system doesn't have requested /sbin/init No init and so on.
>>>>
>>>> Automatic recover is even worse:
>>>>
>>>> Cannot set terminal process group: Inappropriate ioctl device
>>>>
>>>> Then again after rear recover it says You cannot run rear from within
>>>> the Relax-and-Recover shell!
>>>>
>>>> What went wrong?
>>>>
>>>> Cheers,
>>>>
>>>> Oliver
>>>>
>>>>
>>>> On 20 October 2015 at 15:26, Oliver Hoffmann <oliver at g.dom.de> wrote:
>>>>
>>>>> I just saw the mingetty issue. After installing that everything works
>>>>> as expected! Thank you!!
>>>>>
>>>>> Oliver
>>>>>
>>>>> On 20 October 2015 at 15:20, Oliver Hoffmann <oliver at g.dom.de> wrote:
>>>>>
>>>>>> Thank you, Rob. I tried BACKUP=REQUESTRESTORE but it drops me to * *
>>>>>> * Rescue system is ready * * * as well. No login. Furthermore I see
>>>>>> modprobe: FATAL: Module xenblk not found.
>>>>>>
>>>>>> Cheers,
>>>>>>
>>>>>> Oliver
>>>>>>
>>>>>> On 9 October 2015 at 16:16, Robert Owens <rowens at fdrinnovation.com>
>>>>>> wrote:
>>>>>>
>>>>>>> I'm new to ReaR as well, but I think you need to specify a backup
>>>>>>> method in local.conf.  The default is BACKUP=REQUESTRESTORE.  'man rear'
>>>>>>> refers to this as "Not really a backup method at all..."  It seems its
>>>>>>> purpose is to do just what you've seen:  provide a rescue system and leave
>>>>>>> the backup/restore up to you.
>>>>>>>
>>>>>>> Take a look at the section of the man page titled "BACKUP SOFTWARE
>>>>>>> INTEGRATION".  There is a list of both commercial and open source backup
>>>>>>> software that you can choose to use for your backup and restore.
>>>>>>>
>>>>>>> -Rob
>>>>>>>
>>>>>>>
>>>>>>> On 10/8/2015 10:13 AM, Oliver Hoffmann wrote:
>>>>>>>
>>>>>>>> Hi list,
>>>>>>>>
>>>>>>>>
>>>>>>>> I am new to rear. Alas there's not too much to find on the
>>>>>>>> net or in the documentation given that you try to do something
>>>>>>>> special.
>>>>>>>>
>>>>>>>> So, I did rear -v mkbackup on a dumU (Ubuntu 14.04.3 LTS) which runs
>>>>>>>> on Xenserver 6.2. I did get an iso but problems are:
>>>>>>>>
>>>>>>>> -apparently it just creates a rescue system without the data
>>>>>>>> -I can boot from that iso but then there is no data
>>>>>>>> -if I do rear recover it says something like "You cannot run recover
>>>>>>>>   from this shell"
>>>>>>>>
>>>>>>>> My local.conf:
>>>>>>>>
>>>>>>>> BACKUP_PROG_COMPRESS_OPTIONS="--gzip"
>>>>>>>> BACKUP_PROG_COMPRESS_SUFFIX=".gz"
>>>>>>>> OUTPUT=ISO
>>>>>>>>
>>>>>>>> The goal is to create a bootable iso with all the data and put that
>>>>>>>> somewhere. Let's say on nfs or maybe even on a Bacula/Bareos server.
>>>>>>>>
>>>>>>>> Is that even possible? All I found was this:
>>>>>>>>
>>>>>>>>
>>>>>>>> http://webcache.googleusercontent.com/search?q=cache:tXhGLDXHGJYJ:sourceforge.net/p/rear/mailman/message/27980017/+&cd=4&hl=de&ct=clnk&gl=de
>>>>>>>>
>>>>>>>> Cheers,
>>>>>>>>
>>>>>>>> chillax
>>>>>>>> _______________________________________________
>>>>>>>> rear-users mailing list
>>>>>>>> rear-users at lists.relax-and-recover.org
>>>>>>>> http://pikachu.3ti.be/mailman/listinfo/rear-users
>>>>>>>>
>>>>>>>> Email secured by Check Point
>>>>>>>>
>>>>>>>>
>>>>>>> --
>>>>>>> Rob Owens
>>>>>>> Innovation Data Processing
>>>>>>> 973-890-7300
>>>>>>> rowens at fdrinnovation.com
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> rear-users mailing list
>>>>>>> rear-users at lists.relax-and-recover.org
>>>>>>> http://pikachu.3ti.be/mailman/listinfo/rear-users
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>
>>>> _______________________________________________
>>>> rear-users mailing list
>>>> rear-users at lists.relax-and-recover.org
>>>> http://pikachu.3ti.be/mailman/listinfo/rear-users
>>>>
>>>>
>>>
>>> _______________________________________________
>>> rear-users mailing list
>>> rear-users at lists.relax-and-recover.org
>>> http://pikachu.3ti.be/mailman/listinfo/rear-users
>>>
>>>
>>
>> _______________________________________________
>> rear-users mailing list
>> rear-users at lists.relax-and-recover.org
>> http://pikachu.3ti.be/mailman/listinfo/rear-users
>>
>>
>
> _______________________________________________
> rear-users mailing list
> rear-users at lists.relax-and-recover.org
> http://pikachu.3ti.be/mailman/listinfo/rear-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://pikachu.3ti.be/pipermail/rear-users/attachments/20151020/b2062dbf/attachment.html>


More information about the rear-users mailing list