Koozali.org: home of the SME Server

[Contrib] MondoRescue on SME 7 (tested successful)!

d_gerst

[Contrib] MondoRescue on SME 7 (tested successful)!
« on: April 16, 2006, 08:27:28 PM »
Hello,

MondoRescue was successfully tested with SME 7 Pre4 and SME 7 RC1. You can use this script to install mondo on your SME server.

http://www.gerst.no-ip.com/SME7/mondoinstall.sh

Mondo is a very good backup tool, that back up your running system like V2i Power Protector.

Maybe mondo could be added to the section howto or contribs.

Best regards,
Daniel

Offline kmccarn

  • ***
  • 112
  • +0/-0
[Contrib] MondoRescue on SME 7 (tested successful)!
« Reply #1 on: April 17, 2006, 07:39:32 PM »
Thanks for the work.

I'm running it on a virgin install of 7.0RC1 - and it successfully creates the iso image.

But - when I try to boot and nuke - it hangs on the lvm partition stuff.

Any ideas ??
Kevin in WV 8-)......

d_gerst

[Contrib] MondoRescue on SME 7 (tested successful)!
« Reply #2 on: April 18, 2006, 07:34:30 AM »
Hello kmccarn,

I test it with a softraid 1, I will verify it on a SME 7 Pre4 and RC1 with single harddisk. Did you create custom bootimages with mindi or let mondo create standard mindi images?

Best regards,
Daniel

Offline kmccarn

  • ***
  • 112
  • +0/-0
[Contrib] MondoRescue on SME 7 (tested successful)!
« Reply #3 on: April 18, 2006, 11:52:16 AM »
Hello back at ya !

I just ran it - didn't create any anything special.

And - yes I neglected to mention that it was a single hd install.

I've used mondo on several SME 6 boxes as a disaster recovery system - and the only option that worked was "nuke" - this current version may provide additional functionality. (and might need some tweaking on the command line)

I'm not real comfortable with the LVM stuff yet anyway. (still getting used to ext3....)

 :-D
Kevin in WV 8-)......

d_gerst

[Contrib] MondoRescue on SME 7 (tested successful)!
« Reply #4 on: April 19, 2006, 10:08:06 PM »
Hello kmccarn,

I reinstall the SME 7RC1 with single hardisk on a Activy 300 (Celeron 366, 256MB, 1x 10GB HDD) and it works fine.

I used the GUI-version to create a backup, but there should be no matter if GUI or commando used.

The only thing that is different: another version of afio, but that should not be the problem. I could send you the compiled rpm.

Best regards,
Daniel

Offline hanscees

  • *
  • 267
  • +0/-0
    • nl.linkedin.com/in/hanscees/
[Contrib] MondoRescue on SME 7 (tested successful)!
« Reply #5 on: April 30, 2006, 10:53:53 PM »
This great thanks.

Making an iso is as easy as:

cd /root
mkdir mondorescue
cd mondorescue

wget ftp://ftp.mondorescue.org/rhel/4/mondo-2.0.7-460.rhel4.i386.rpm
wget ftp://ftp.mondorescue.org/rhel/4/mindi-1.0.7-460.rhel4.i386.rpm
wget ftp://ftp.mondorescue.org/rhel/4/afio-2.4.7-1.i586.rpm

echo -n "Installing downloaded files..."
echo
rpm -Uvh *.rpm


mkdir /root/mondoiso
mondoarchive -OiN -E /root/mondoiso   \
-E /home/e-smith/files/ibays/nai/ -d /root/mondoiso

#explanation:
#-O backup
#-i is iso
#-E exclude
#-N no network shares
#-d where isos are stored

#now burn iso in /root/monoiso to cd.

wow!
I will have to test if the iso works, but mondo is by far the greatest backup methode for me.

Hans-Cees
nl.linkedin.com/in/hanscees/

Offline hanscees

  • *
  • 267
  • +0/-0
    • nl.linkedin.com/in/hanscees/
[Contrib] MondoRescue on SME 7 (tested successful)!
« Reply #6 on: May 01, 2006, 10:37:50 PM »
hi,

sme7rc2 in an vmware (one disk) does not restore.
It is not clear what the trouble is really.
It cannot format the disks right.

It tries to format:
/dev/md2  on /lvm  format lvm
/dev/main/root on / format ext3
/dev/md1 on /boot format ext3
/dev/main/swap on swap swap
/dev/hda2 on raid format raid
/devhda1 on raid format raid.

But it seems it cannot make the lvm stuff

it sais for instance "mkraid not found"
and "raidstop not found" and then
"formatting md1 as ext3, failed".


pity.

When it starts up making the images it says this:


[root@sme7rc2 mondorescue]# mkdir /root/mondoiso
[root@sme7rc2 mondorescue]# mondoarchive -OiN -E /root/mondoiso   \
> -E /home/e-smith/files/ibays/nai/ -d /root/mondoiso
Initializing...
See /var/log/mondo-archive.log for details of backup run.
Checking sanity of your Linux distribution
Disk /dev/md1 doesn't contain a valid partition table
Disk /dev/md2 doesn't contain a valid partition table
You have RAID partitions but no /etc/raidtab - creating one from /proc/mdstat
FIXME - create_raidtab_from_mdstat does not allow for spare disks
FIXME - create_raidtab_from_mdstat does not allow for spare disks
Done.


The /etc/raidtab it created looks like this:

[root@sme7rc2 mondorescue]# cat /etc/raidtab
# Generated by Mondo Rescue
raiddev /dev/md2
    raid-level            1
    chunk-size            4
    nr-raid-disks         1
    nr-spare-disks        0
    persistent-superblock 1

    device                /dev/hda2
    raid-disk             0

raiddev /dev/md1
    raid-level            1
    chunk-size            4
    nr-raid-disks         1
    nr-spare-disks        0
    persistent-superblock 1

    device                /dev/hda1
    raid-disk             0
nl.linkedin.com/in/hanscees/

jcoleman

[Contrib] MondoRescue on SME 7 (tested successful)!
« Reply #7 on: May 02, 2006, 07:11:15 PM »
Quote
sme7rc2 in an vmware (one disk) does not restore.
It is not clear what the trouble is really.
It cannot format the disks right.


I had the same result using the latest Vmware Wkstn 5.x

-jeff

Offline hanscees

  • *
  • 267
  • +0/-0
    • nl.linkedin.com/in/hanscees/
[Contrib] MondoRescue on SME 7 (tested successful)!
« Reply #8 on: May 02, 2006, 09:45:39 PM »
Seeing all the posts above I would not rely on these versions of mondo at all. Chances are your backup won't work.
Is there a place we can get help or should we just conclude that it is not reliable?

Hans-Cees
nl.linkedin.com/in/hanscees/

oddo

[Contrib] MondoRescue on SME 7 (tested successful)!
« Reply #9 on: May 04, 2006, 10:51:41 AM »
restore failed on SME 7 RC2

Code: [Select]

Initialising RAID device /dev/md1
Stopping /dev/md1
Formatting /dev/md1 as ext3 ... failed
Configuring LVM
Failed to initialize LVM

bcornec

mondorescue support
« Reply #10 on: May 05, 2006, 01:18:38 AM »
Hello,

Please refer to http://www.mondorescue.org/support.shtml for mondorescue support issues. The dev will NOT monitor this firum, but IS monitorng the ML to try to solve users' issues.

TIA,
Bruno.

Offline kmccarn

  • ***
  • 112
  • +0/-0
[Contrib] MondoRescue on SME 7 (tested successful)!
« Reply #11 on: May 05, 2006, 12:02:21 PM »
This is from the Mondo Wiki:

9.8.6. >Q: I can't nuke-restore my LVM or RAID or LVM-on-RAID setup. I have to do it manually. What now?

A: You said it yourself. You have to do it manually. :) Sorry but that's about it. At least you have all the tools to do it. I assume you know how. If you don't, look at i-want-my-lvm (a script on the ramdisk) if you're using LVM. It should give you a few clues. RAID is harder but in general Mondo's RAID support is good. After you've prepped and formatted your drives, run mondorestore again but say 'no' when asked if you want Mondo to prep or format your drives.

I'll test next week and if it works - post a HOWTO
Kevin in WV 8-)......

Offline hanscees

  • *
  • 267
  • +0/-0
    • nl.linkedin.com/in/hanscees/
[Contrib] MondoRescue on SME 7 (tested successful)!
« Reply #12 on: May 05, 2006, 09:54:37 PM »
Quote from: "kmccarn"
This is from the Mondo Wiki:

9.8.6. >Q: I can't nuke-restore my LVM or RAID or LVM-on-RAID setup. I have to do it manually. What now?

A: You said it yourself. You have to do it manually. :) Sorry but that's about it. At least you have all the tools to do it. I assume you know how. If you don't, look at i-want-my-lvm (a script on the ramdisk) if you're using LVM. It should give you a few clues. RAID is harder but in general Mondo's RAID support is good. After you've prepped and formatted your drives, run mondorestore again but say 'no' when asked if you want Mondo to prep or format your drives.

I'll test next week and if it works - post a HOWTO


I can't find the i-want-my-lvm script. I did read that faq.

Bruno has responded to me that lvm2 (what sme7 uses) will be supported in mondo 2.08. So we will have to wait for that.

If someone can do a restore manually and can write that down that would be good in the mean time!

Hans-Cees
nl.linkedin.com/in/hanscees/

Offline mmccarn

  • *
  • 2,626
  • +10/-0
[Contrib] MondoRescue on SME 7 (tested successful)!
« Reply #13 on: May 25, 2006, 02:25:56 PM »
kmccarn wrote:
Quote
A: You said it yourself. You have to do it manually. :) Sorry but that's about it. At least you have all the tools to do it. I assume you know how. If you don't, look at i-want-my-lvm (a script on the ramdisk) if you're using LVM. It should give you a few clues. RAID is harder but in general Mondo's RAID support is good. After you've prepped and formatted your drives, run mondorestore again but say 'no' when asked if you want Mondo to prep or format your drives.


Would it work to run the SME setup in order to partition and prepare the hard disk, then
Quote
run mondorestore again but say 'no' when asked if you want Mondo to prep or format your drives.
?

Sadly, I have no safe/easy way to test this...

Offline hanscees

  • *
  • 267
  • +0/-0
    • nl.linkedin.com/in/hanscees/
[Contrib] MondoRescue on SME 7 (tested successful)!
« Reply #14 on: June 04, 2006, 08:55:43 PM »
Quote from: "mmccarn"
kmccarn wrote:
Quote
A: You said it yourself. You have to do it manually. :) Sorry but that's about it. At least you have all the tools to do it. I assume you know how. If you don't, look at i-want-my-lvm (a script on the ramdisk) if you're using LVM. It should give you a few clues. RAID is harder but in general Mondo's RAID support is good. After you've prepped and formatted your drives, run mondorestore again but say 'no' when asked if you want Mondo to prep or format your drives.


Would it work to run the SME setup in order to partition and prepare the hard disk, then
Quote
run mondorestore again but say 'no' when asked if you want Mondo to prep or format your drives.
?

Sadly, I have no safe/easy way to test this...


you could use vmware....
nl.linkedin.com/in/hanscees/