Koozali.org: home of the SME Server

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

knuddel

[Contrib] MondoRescue on SME 7 (tested successful)!
« Reply #15 on: June 28, 2006, 11:55:04 PM »
I ask for assigning, for my bad English!

I have a little bit played with mondo!  :hammer:
I use: sme 7.0rc3,
         mondo-2.0.8-4.rhel4.i386.rpm
         mindi-1.0.8-4.rhel4.i386.rpm
         afio-2.4.7-1.i586.rpm
         mondo-doc-2.0.8-4.rhel4.noarch.rpm

My “sme” has one sata non removable disk!
I provided a Backup of “sme” on CD!
I have this Backup on another PC, with IDE non removable disk,
and same network cards back secured!
And it run!    :-x
But, that was not simple!
a few notes:  must edit /etc/mindi/deplist.txt before run mondoarchive,
                    there add binaries- libs- and module-files for raid and lvm!
                    run mondoarchive and Exclude all virtuell filesystem (proc...)
                    must boot new bootcd, and then on tty2-console
                    manually create auto-raid-partitions,
                    create mknods /dev/md1 /dev/md2, create md1 and md2,
                    format dev/md1, create lvm main on /dev/md2,
                    create lvm partitions in main, format partititions main-root
                    and main-swap, Oops activate main-root main-swap!
                    p.s. the file "i-want-my-lvm" is in /tmp
                    now you can run at tty1 manually restore!
                    no change fstab!
                    no partitions erase/create!
                    no format partitions!
                    write files back!
                    grub install has failed,
                    mount/change to directory where (sme) /boot, and type
                    grub
                    grub> root=(hd0,0)
                    grub> setup=(hd0)
                    grub> exit

Mongo has problems lvm on raid kompfortable to support!  
Also many changes, “mondo/mindi & sme” can co-operate,
even with specially features:
migration/hdd change/raid (1,0,5,10) create!

Or not, you install simply sme, afterwards mongo, afterwards mongo restore, completely (untested)  ;-)

mmccarn wrote:

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

I Say, no you must first edit deplist.txt (add dm-mod)!
mindi/mondo Say, no with one hd in raid, dont running raid!
But, it makes the steps on console tty2 easy! raid and lvm created and formatted!

knuddel

[Contrib] MondoRescue on SME 7 (tested successful)!
« Reply #16 on: July 01, 2006, 12:07:49 PM »
I ask for assigning, for my bad English!

 :oops: forget the imbecility which I yesterday said!  :oops:

Mondo is great mondo is good!  :-D

I have a little bit played more with mondo!  :hammer:

i have one Disk, so I have made
entry in
Code: [Select]

# /etc/mindi/deplist.txt
#
#-------------------------STUFF ADDED BY THE USER----------------------------
#---vvvv     vvvv     vvvv  list your stuff here!  vvvv     vvvv     vvvv
dm-mod.ko dm-crypt.ko dm-emc.ko dm-mirror.ko dm-multipath.ko dm-round-robin.ko dm-snapshot.ko dm-zero.ko linear.ko multipath.ko raid0.ko raid10.ko raid1.ko raid5.ko raid6.ko xor.ko e1000.ko 3c59x.ko
#
# foo
#
#---^^^^     ^^^^     ^^^^  list your stuff here!  ^^^^     ^^^^     ^^^^
#------------------------------------------------------------------------------



this is "ONE" line add, the importent Entry is "dm-mod.ko"

and add file:

Code: [Select]

# /etc/raidtab
raiddev /dev/md1
    raid-level            1
    nr-raid-disks         2
    persistent-superblock 1
    chunk-size            4

    device                /dev/hda1
    raid-disk             0
    device                missing
    failed-disk           1

raiddev /dev/md2
    raid-level            1
    nr-raid-disks         2
    persistent-superblock 1
    chunk-size            4

    device                /dev/hda2
    raid-disk             0
    device                missing

    failed-disk           1



This is manual Generated, mondo not correct read mdstat or so!
The important entrys are "device missing" "failed-disk 1"!


I am starting mondoarchive with
Code: [Select]

mondoarchive -OiN -E /root/images -E /proc -E /sys -E /dev/pts -E /dev/shm -E /home/e-smith/files/ibays/jukebox/files/mp3 -E /home/e-smith/files/ibays/jukebox/files/isos -d /root/images/


also not save "backupdir, virtual-kernel-dirs and my mp3 and iso data",
create isos in "/root/images/"

during the Backups report mondo errors:
    /dev/md1 has no correct Partition entry ( or so similarly )
    /dev/md2 has no correct Partition entry ( or so similarly )
    BOOT + DATA Creation failed ( or so similarly )


But, boot run from DATA-CD!

Now you burn cd, or start vmware Guest with boot from iso!
and mindi boot from DATA-CD, you say Automatic, and
mondo erase old, create Partitions, create raid 1,  create lvm, format drives, resecure your data, makes Grub-install, exit the programm!
now type exit
and tell vmware or pc  not boot cd, boot hd!

now its booting SME7.0rc3! :-D

During resecuring, mondo report some errors :
    Couldnt set attributes from fileset## ( or so similary )
    Error repeat three times for fileset## see logfile... (or so similar )


and after resecure you become error disk not correct shutdown (or so similar )  :-D

knuddel

[Contrib] MondoRescue on SME 7 (tested successful)!
« Reply #17 on: July 01, 2006, 01:16:49 PM »
still another error after back safety device:

mdadm -D /dev/md1
mdadm -D /dev/md2

results raid1 with one disk, one disk in raid are online!

at the old system:

mdadm -D /dev/md1
mdadm -D /dev/md2

results raid1 with two disk, one disk in raid are online, one disk in raid are removed!

But it's running!  8-)

d_gerst

[Contrib] MondoRescue on SME 7 (tested successful)!
« Reply #18 on: August 08, 2006, 09:16:56 PM »
Hello,

With the new version of mondorescue (mondo 2.0.9-1 and mindi 1.0.9-1) everything works fine (fixed the lvm2 problems). This should work for single disk and softraid, cause single disk is used as a softraid 1 with one active hdd.

New quick and dirty script available:
http://www.gerst.no-ip.com/SME7/mondo/install_mondo.sh


If someone could verify this and report failure or success, this would be nice.

Best regards,
Daniel

jcoleman

[Contrib] MondoRescue on SME 7 (tested successful)!
« Reply #19 on: August 11, 2006, 04:05:57 PM »
Quote
If someone could verify this and report failure or success, this would be nice.


Daniel,

Just tried this out on a fresh VM install.  Restored to another fresh VM install and while there where a few error messages, it seems to have worked correctly.  

Nice job.

-jeff

d_gerst

[Contrib] MondoRescue on SME 7 (tested successful)!
« Reply #20 on: August 11, 2006, 06:57:16 PM »
Hi Jeff,

Which kind of error message did you get? Do you test it with Softraid 1 or single disk?

Best regards,
Daniel

jcoleman

[Contrib] MondoRescue on SME 7 (tested successful)!
« Reply #21 on: August 11, 2006, 07:19:24 PM »
Hi Daniel,

Sorry, but I didn't record the errors as the scrolled on the gui screen.  My test environment was a VM with 1 hd so SME installed as a soft array.

I will test on another vm with multiple drives and report back.

-jeff

Offline psoren

  • *
  • 371
  • +0/-0
[Contrib] MondoRescue on SME 7 (tested successful)!
« Reply #22 on: August 13, 2006, 12:18:00 PM »
Quote from: "jcoleman"
Hi Daniel,

Sorry, but I didn't record the errors as the scrolled on the gui screen.  My test environment was a VM with 1 hd so SME installed as a soft array.

I will test on another vm with multiple drives and report back.

-jeff


I have tested with VMWare and a RAID1 (two drives), that doesn't work. I also see error scrolling over the screen.
I tried both using the GUI and the command line.

Per

Offline hanscees

  • *
  • 267
  • +0/-0
    • nl.linkedin.com/in/hanscees/
[Contrib] MondoRescue on SME 7 (tested successful)!
« Reply #23 on: August 26, 2006, 04:02:04 PM »
I tested sme7 on vmware with the latets mondo and mindi and that worked. With 1 disk.

Lets test some more please!

Here's what I did:

cd /root
mkdir mondorescue
cd mondorescue

08-2006:
wget ftp://ftp.mondorescue.org/rhel/4/mindi-1.0.9-2.rhel4.i586.rpm
wget ftp://ftp.mondorescue.org/rhel/4/mondo-2.0.9-2.rhel4.i586.rpm
wget ftp://ftp.mondorescue.org/rhel/4/afio-2.4.7-1.i586.rpm


rpm -Uvh *.rpm


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

Pretty cool

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 #24 on: September 25, 2006, 08:50:11 PM »
Have tested mondo but there is a bug when resizibg to a smaller disk.
However when restoring to the same disk it seems to work.
We need more people to test with real hardware to be safe!

I did this:

cd /root
mkdir mondorescue
cd mondorescue

wget ftp://ftp.mondorescue.org/rhel/4/mindi-1.0.9-2.rhel4.i586.rpm
wget ftp://ftp.mondorescue.org/rhel/4/mondo-2.0.9-2.rhel4.i586.rpm
wget ftp://ftp.mondorescue.org/rhel/4/afio-2.4.7-1.i586.rpm
rpm -Uvh *.rpm

mkdir /root/mondoiso

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

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

xware

[Contrib] MondoRescue on SME 7 (tested successful)!
« Reply #25 on: September 27, 2006, 05:29:52 PM »
Quote from: "hanscees"
Have tested mondo but there is a bug when resizibg to a smaller disk.
However when restoring to the same disk it seems to work.
We need more people to test with real hardware to be safe!

I did this:

cd /root
mkdir mondorescue
cd mondorescue

wget ftp://ftp.mondorescue.org/rhel/4/mindi-1.0.9-2.rhel4.i586.rpm
wget ftp://ftp.mondorescue.org/rhel/4/mondo-2.0.9-2.rhel4.i586.rpm
wget ftp://ftp.mondorescue.org/rhel/4/afio-2.4.7-1.i586.rpm
rpm -Uvh *.rpm

mkdir /root/mondoiso

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

Hans-Cees


I did exactly this but it generates some stuff with md0 and md1 (I have only one ATA disk... No RAID..) that makes impossible to restore as, of course, I try to restore on an single ATA disk..

This is what I get when I type that :

[root@webcube mondoiso]# mondoarchive -OiNF -E /root/mondoiso -E /home/e-smith/files/ibays/setup -d /root/mondoiso
Initializing...
See /var/log/mondo-archive.log for details of backup run.
Checking sanity of your Linux distribution
Disque /dev/md1 ne contient pas une table de partition valide (means in french : /dev/md1 has no valid partition table)
Disque /dev/md2 ne contient pas une table de partition valide (idem for /dev/md2)
Done.

The backups generates an iso, but the iso cannot recreate the md1 and md2 and fails..

Any idea?

Offline hanscees

  • *
  • 267
  • +0/-0
    • nl.linkedin.com/in/hanscees/
[Contrib] MondoRescue on SME 7 (tested successful)!
« Reply #26 on: September 27, 2006, 09:04:29 PM »
Quote from: "xware"
Quote from: "hanscees"
Have tested mondo but there is a bug when resizibg to a smaller disk.
However when restoring to the same disk it seems to work.
We need more people to test with real hardware to be safe!

I did this:

cd /root
mkdir mondorescue
cd mondorescue

wget ftp://ftp.mondorescue.org/rhel/4/mindi-1.0.9-2.rhel4.i586.rpm
wget ftp://ftp.mondorescue.org/rhel/4/mondo-2.0.9-2.rhel4.i586.rpm
wget ftp://ftp.mondorescue.org/rhel/4/afio-2.4.7-1.i586.rpm
rpm -Uvh *.rpm

mkdir /root/mondoiso

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

Hans-Cees


I did exactly this but it generates some stuff with md0 and md1 (I have only one ATA disk... No RAID..) that makes impossible to restore as, of course, I try to restore on an single ATA disk..

This is what I get when I type that :

[root@webcube mondoiso]# mondoarchive -OiNF -E /root/mondoiso -E /home/e-smith/files/ibays/setup -d /root/mondoiso
Initializing...
See /var/log/mondo-archive.log for details of backup run.
Checking sanity of your Linux distribution
Disque /dev/md1 ne contient pas une table de partition valide (means in french : /dev/md1 has no valid partition table)
Disque /dev/md2 ne contient pas une table de partition valide (idem for /dev/md2)
Done.

The backups generates an iso, but the iso cannot recreate the md1 and md2 and fails..

Any idea?


Are you using sme7, and not beta version?

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

xware

[Contrib] MondoRescue on SME 7 (tested successful)!
« Reply #27 on: September 29, 2006, 12:11:14 PM »
No, I am using no beta..

Don't ask me why.. I reattempted to generate an iso, and it worked this time..  :oops:

There are some erros in restoring, but I presume it's due to the omitting of some ibays in the set.. I'll check the log and see.

Thanks anyway.

Offline dadoudidon

  • *
  • 84
  • +0/-0
[Contrib] MondoRescue on SME 7 (tested successful)!
« Reply #28 on: October 18, 2006, 03:32:18 PM »
hello,
sme7 and 1 ata hard drive

i did

cd /root
mkdir mondorescue
cd mondorescue

wget ftp://ftp.mondorescue.org/rhel/4/mindi-1.0.9-2.rhel4.i586.rpm
wget ftp://ftp.mondorescue.org/rhel/4/mondo-2.0.9-2.rhel4.i586.rpm
wget ftp://ftp.mondorescue.org/rhel/4/afio-2.4.7-1.i586.rpm
rpm -Uvh *.rpm

mondoarchive
i choose hard drive
700Mo size
save all

It seems to work find creating isos. I would like to know if there is special command line to type after restoring ( as it was with sme6)?

thks for your help
dave

Offline Teviot

  • *
  • 610
  • +0/-0
[Contrib] MondoRescue on SME 7 (tested successful)!
« Reply #29 on: December 15, 2006, 03:52:29 AM »
Has someone created a interface to go into server-manager?

I think this would be good.  I would create one myself but don't know how to put code together.

Maybe even an install script or rpm that installs all required contribs to do this.
Regards
M0GLJ
......................................................
I am new to SAIL SME Server v8b6 and have been using SME for many years.
I have already done some research and only ask questions if I still can't work it out.