Koozali.org: home of the SME Server

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

discovery

[Contrib] MondoRescue on SME 7 (tested successful)!
« Reply #30 on: January 01, 2007, 12:03:32 AM »
Hi All!!!!  Happy New Year 2007

The link to the quick and dirty install is dead (mondo 2.0.9-1 and mindi 1.0.9-1)

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

Does anyone have a copy of the script available for download??

Cheers

Discovery

Offline mmccarn

  • *
  • 2,626
  • +10/-0
[Contrib] MondoRescue on SME 7 (tested successful)!
« Reply #31 on: January 02, 2007, 01:57:27 PM »
Here are the contents of the script written by dgerst, but this is effectively identical to the manual steps given by hancees in this post: http://forums.contribs.org/index.php?topic=31628.0.

Also, Mondo version 2.2 has been released
install_mondo.sh
Code: [Select]
# mondorescue for SME 7
# written by Daniel Gerst
# Revision 1.0

#!/bin/bash

clear

echo "-----------------------------------------------------------"
echo " Installtion script for mondorescue v1.0                    "
echo "-----------------------------------------------------------"
echo
echo "This script will install all required components to run    "
echo "mondorescue on a SME Server 7. Mondorescue was successfully"
echo "tested on a SME 7."
echo
echo
echo "Press any key to countinue or press Ctrl+C to abort        "
echo "installation."

read x

cd /root
mkdir mondorescue
cd mondorescue

echo "Downloading required files..."

wget -q http://mondorescue.linjection.org/ftp/rhel/4/mondo-2.0.9-1.rhel4.i586.rpm
wget -q http://mondorescue.linjection.org/ftp/rhel/4/mindi-1.0.9-1.rhel4.i586.rpm
wget -q http://mondorescue.linjection.org/ftp/rhel/4/afio-2.4.7-1.i586.rpm
wget -q http://mondorescue.linjection.org/ftp/rhel/4/mondo-doc-2.0.9-1.rhel4.src.rpm

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

cd ..
echo "Removing downloaded files..."
# rm -f -R mondorescue

echo "Gui will be accessable via command mondoarchive."
echo "For CronJob-Script see manpages."

PP1964

MONDO RESCUE
« Reply #32 on: January 03, 2007, 05:22:28 AM »
bonne année et bon courage:

code légèrement modifié:

# mondorescue pour SME 7
# written by Daniel Gerst
# Revision 1.0 modif pierre

#!/bin/bash

clear

echo "-----------------------------------------------------------"
echo " script d'Installtion de mondorescue v2.2                  "
echo "-----------------------------------------------------------"
echo
echo "ce script installe les fichiers nécessaire pour exécuter   "
echo "mondorescue pour SME Server 7. Mondorescue a été testé avec"
echo "sucess sur SME 7."
echo
echo
echo "Presse une touche pour countinuer ou presse Ctrl+C pour annuler"
echo "installation."

read x

cd /root
mkdir mondorescue
cd mondorescue

echo "téléchargement des fichiers..."

wget -q http://mondorescue.linjection.org/ftp/rhel/4/mondo-2.2.0-2.rhel4.i586.rpm
wget -q http://mondorescue.linjection.org/ftp/rhel/4/mindi-1.2.0-2.rhel4.i586.rpm
wget -q http://mondorescue.linjection.org/ftp/rhel/4/afio-2.4.7-1.i586.rpm
wget -q http://mondorescue.linjection.org/ftp/rhel/4/mondo-doc-2.2.0-2.rhel4.src.rpm
wget -q http://mondorescue.linjection.org/ftp/rhel/4/mindi-busybox-1.2.1-2.rhel4.i586.rpm
echo -n "Installation des fichiers téléchargés..."
echo
rpm -Uvh *.rpm

cd ..
echo "supression des fichiers téléchargés..."
# rm -f -R mondorescue

echo "Gui,interface graphique accessible par la commande mondoarchive."
echo "pour CronJob-Script regarder manpages."

pippin

[Contrib] MondoRescue on SME 7 (tested successful)!
« Reply #33 on: January 03, 2007, 08:10:33 PM »
Where is this GUI for this one?

oblooblo2000

[Contrib] MondoRescue on SME 7 (tested successful)!
« Reply #34 on: January 05, 2007, 10:54:41 AM »
hy,
so sad that no more gui are implement, however, thanks for effort!

I tried this command and got a problem, if can help, will be gratefull!

Code: [Select]
mondoarchive -OiNV -S 4200m -9 -E "/opt/backuppc/manual_backup /opt/backuppc/files/pc /home/e-smith/files/ibays /home/e-smith/files/users" -d /opt/backuppc/manual_backup/


Quote

---FATALERROR--- Failed to generate boot+data disks

Log file: /var/log/mondo-archive.log
FYI, I have gzipped the log and saved it to /tmp/MA.log.gz
Mondo has aborted.
Execution run ended; result=254
Type 'less /var/log/mondo-archive.log' to see the output log


log:

Quote

You are using Mindi-Linux v1.0.7-r460 to make boot+data disks
Analyzing dependency requirements                               Done.
Making complete dependency list                                 Done.
Analyzing your keyboard's configuration.

Adding the following keyboard mapping tables: fr.map.gz         Done.
Assembling dependency files...........................................Backing up /dev/sda's MBR

Creating /dev/boot_device (/dev/sda)

                                                                Done.
The files have been subdivided into 5 directories.                                                  Your mountlist will look like this:-
File descriptor 3 left open
File descriptor 3 left open
    Finding all volume groups
    Finding volume group "main"
File descriptor 3 left open
File descriptor 3 left open
File descriptor 3 left open
File descriptor 3 left open
File descriptor 3 left open
File descriptor 3 left open
File descriptor 3 left open
        DEVICE          MOUNTPOINT      FORMAT          SIZE (MB)
        /dev/md2        lvm             lvm               34624
        /dev/main/root  /               ext3                lvm
        /dev/md1        /boot           ext3                101
        /dev/main/swap  swap            swap                lvm
find: /dev/ida/c*d*: Aucun fichier ou répertoire de ce type
        /dev/sda1       raid            raid                101
find: /dev/ida/c*d*: Aucun fichier ou répertoire de ce type
        /dev/sdb1       raid            raid                101
find: /dev/ida/c*d*: Aucun fichier ou répertoire de ce type
        /dev/sdb2       raid            raid              69900
find: /dev/ida/c*d*: Aucun fichier ou répertoire de ce type
        /dev/sda2       raid            raid              34624
File descriptor 3 left open
File descriptor 3 left open
    Finding all volume groups
    Finding volume group "main"
File descriptor 3 left open
File descriptor 3 left open
File descriptor 3 left open
File descriptor 3 left open
File descriptor 3 left open
File descriptor 3 left open
File descriptor 3 left open
Tarring and zipping the groups................../usr/sbin/mindi: line 2875: 4200m/mondo.scratch.10321/mondo.scratch.32751/images/all.tar.gz: Aucun fichier ou répertoire de ce type
du: ne peut accéder `4200m/mondo.scratch.10321/mondo.scratch.32751/images/all.tar.gz': Aucun fichier ou répertoire de ce type
/usr/sbin/mindi: line 2876: [: : integer expression expected
                                                                Done.
Creating data disk #1...#2...#3...#4...#5...                    Done.
Making 1722KB boot disk.........................../usr/sbin/mindi: line 2014: 4200m/mondo.scratch.10321/mondo.scratch.32751/images/mindi-bootroot.1722.img: Aucun fichier ou répertoire de ce type
Fatal error. Cannot dd blank file

Please e-mail a copy of /tmp/mindi.err.25849.tgz to the mailing list.

See http://www.mondorescue.org for more information.

WE CANNOT HELP unless you enclose that file.

Mindi failed to create your boot+data disks.
Fatal error. Cannot dd blank file
[Main] newt-specific.c->fatal_error#366: Fatal error received - 'Failed to generate boot+data disks'
                [Main] newt-specific.c->fatal_error#384: OK, I think I'm the main PID.
        [Main] newt-specific.c->fatal_error#392: I'm going to do some cleaning up now.
                        [Main] newt-specific.c->fatal_error#393: killall mindi 2> /dev/null
running: kill `ps wax | grep "/mondo/do-not" | awk '{print $1;}' | grep -vx "\?"` > /tmp/mondo-run-prog-thing.tmp 2> /tmp/mondo-run-prog-thing.err
--------------------------------start of output-----------------------------
--------------------------------end of output------------------------------
...ran with res=15
running: kill `ps wax | grep "tmp.mondo" | awk '{print $1;}' | grep -vx "\?"` > /tmp/mondo-run-prog-thing.tmp 2> /tmp/mondo-run-prog-thing.err
--------------------------------start of output-----------------------------
--------------------------------end of output------------------------------
...ran with res=15
running: kill `ps wax | grep "ntfsclone" | awk '{print $1;}' | grep -vx "\?"` > /tmp/mondo-run-prog-thing.tmp 2> /tmp/mondo-run-prog-thing.err
--------------------------------start of output-----------------------------
--------------------------------end of output------------------------------
...ran with res=15
        [Main] newt-specific.c->fatal_error#401: Waiting for child processes to terminate
        [Main] newt-specific.c->fatal_error#401: Waiting for child processes to terminate
        [Main] newt-specific.c->fatal_error#401: Waiting for child processes to terminate
        [Main] newt-specific.c->fatal_error#401: Waiting for child processes to terminate
        [Main] newt-specific.c->fatal_error#401: Waiting for child processes to terminate
        [Main] newt-specific.c->fatal_error#401: Waiting for child processes to terminate
        [Main] newt-specific.c->fatal_error#401: Waiting for child processes to terminate
        [Main] newt-specific.c->fatal_error#401: Waiting for child processes to terminate
        [Main] newt-specific.c->fatal_error#401: Waiting for child processes to terminate
        [Main] newt-specific.c->fatal_error#401: Waiting for child processes to terminate
        [Main] libmondo-files.c->register_pid#812: Unregistering PID
        [Main] libmondo-files.c->register_pid#812: Unregistering PID
        [Main] libmondo-files.c->register_pid#814: Error unregistering PID
running: umount /mnt/cdrom > /tmp/mondo-run-prog-thing.tmp 2> /tmp/mondo-run-prog-thing.err
--------------------------------start of output-----------------------------
umount: /mnt/cdrom: n'est pas mont
--------------------------------end of output------------------------------
...ran with res=256
running: rm -Rf /mondo.scratch.* /tmp.mondo.* > /tmp/mondo-run-prog-thing.tmp 2> /tmp/mondo-run-prog-thing.err
--------------------------------start of output-----------------------------
--------------------------------end of output------------------------------
...ran just fine. :-)
running: rm -Rf /Disponible/tmp.mondo.990/tmp.mondo.11256 4200m/mondo.scratch.10321/mondo.scratch.32751 > /tmp/mondo-run-prog-thing.tmp 2> /tmp/mondo-run-prog-thing.err
--------------------------------start of output-----------------------------
--------------------------------end of output------------------------------
...ran just fine. :-)
        [Main] libmondo-tools.c->do_libmondo_global_strings_thing#1580: libmondo-tools.c, do_libmondo_global_strings_thing, 1580: Freeing globals



I'm looking why, then tried to upgrade to the latest version !!

oblooblo2000

[Contrib] MondoRescue on SME 7 (tested successful)!
« Reply #35 on: January 05, 2007, 03:46:32 PM »
ok, I update my config without problem, however, I've got error with this command:

Code: [Select]


 mondoarchive -OiNVL -S 4200m -9 /opt/phpldapadmin -d /opt/backuppc/manual_backup/mondo/ -T /tmp



j'ai
Quote
/var/log/mondo-archive.log


running: dmesg -n1 > /tmp/mondo-run-prog-thing.tmp 2> /tmp/mondo-run-prog-thing.err
--------------------------------start of output-----------------------------
--------------------------------end of output------------------------------
...ran just fine. :-)
Mondo Archive v2.0.7-460 --- http://www.mondorescue.org
running on i386 architecture
-----------------------------------------------------------
NB: Mondo logs almost everything, so don't panic if you see
some error messages.  Please read them carefully before you
decide to break out in a cold sweat.    Despite (or perhaps
because of) the wealth of messages. some users are inclined
to stop reading this log. If Mondo stopped for some reason,
chances are it's detailed here.  More than likely there's a
message at the very end of this log that will tell you what
is wrong. Please read it!                          -Devteam
-----------------------------------------------------------
Zero...
[Main] main.c->welcome_to_mondoarchive#179: One...
        [Main] main.c->welcome_to_mondoarchive#180: Two...
             [Main] main.c->welcome_to_mondoarchive#181: Three...
              [Main] main.c->welcome_to_mondoarchive#182: Four...
        [Main] main.c->distro_specific_kludges_at_start_of_mondoarchive#199: Unmounting old ramdisk
s if necessary
running: umount `mount | grep shm | grep mondo | cut -d' ' -f3` > /tmp/mondo-run-prog-thing.tmp 2>
/tmp/mondo-run-prog-thing.err
--------------------------------start of output-----------------------------
Usage: umount [-hV]
umount -a [-f] [-r] [-n] [-v] [-t type-vfs] [-O opts]
umount [-f] [-r] [-n] [-v] scial | noeud...
--------------------------------end of output------------------------------
...ran with res=512
running: mount | grep cdrom | grep super > /tmp/mondo-run-prog-thing.tmp 2> /tmp/mondo-run-prog-thi
ng.err
--------------------------------start of output-----------------------------
--------------------------------end of output------------------------------
...ran with res=256
running: mount | grep floppy | grep super > /tmp/mondo-run-prog-thing.tmp 2> /tmp/mondo-run-prog-th
ing.err
--------------------------------start of output-----------------------------
--------------------------------end of output------------------------------
...ran with res=256
[Main] libmondo-tools.c->mount_boot_if_necessary#1387: Started sub
              [Main] libmondo-tools.c->mount_boot_if_necessary#1388: About to set g_boot_mountpt[0]
 to '\0'
              [Main] libmondo-tools.c->mount_boot_if_necessary#1390: Done. Great. Seeting command t
o something
              [Main] libmondo-tools.c->mount_boot_if_necessary#1393: Cool. Command = 'grep -v ":" /
etc/fstab | grep -vx "#.*" | grep -w "/boot" | tr -s ' ' ' ' | cut -f1 | head -n1'
              [Main] libmondo-tools.c->mount_boot_if_necessary#1395: tmp = '/dev/md1'
        [Main] libmondo-tools.c->mount_boot_if_necessary#1397: /boot is at /dev/md1 according to /e
tc/fstab
             [Main] libmondo-tools.c->mount_boot_if_necessary#1407: command = mount | grep -w "/dev
/md1"
[Main] libmondo-tools.c->mount_boot_if_necessary#1429: Ended sub
[Main] libmondo-tools.c->get_kernel_version#394: g_kernel_version = 2.690000
[Main] libmondo-tools.c->reset_bkpinfo#948: Hi
root is mounted at /dev/mapper/main-root

No, Schlomo, that doesn't mean /dev/mapper/main-root is the root partition. It's just a debugging m
essage. Relax. It's part of am_I_in_disaster_recovery_mode().
[Main] libmondo-devices.c->am_I_in_disaster_recovery_mode#363: Is this a ramdisk? result = 0
running: rm -Rf /tmp/changed.files* > /tmp/mondo-run-prog-thing.tmp 2> /tmp/mondo-run-prog-thing.er
r
--------------------------------start of output-----------------------------
--------------------------------end of output------------------------------
...ran just fine. :-)
Checking sanity of your Linux distribution
        [Main] libmondo-tools.c->some_basic_system_sanity_checks#1082: Free space on given partitio
n = 23599 MB
running: grep ramdisk /proc/devices > /tmp/mondo-run-prog-thing.tmp 2> /tmp/mondo-run-prog-thing.er
r
--------------------------------start of output-----------------------------
1 ramdisk
--------------------------------end of output------------------------------
...ran just fine. :-)
running: mount | grep -w vfat | grep -v /dev/fd | grep -v nexdisk > /tmp/mondo-run-prog-thing.tmp 2
> /tmp/mondo-run-prog-thing.err
--------------------------------start of output-----------------------------
--------------------------------end of output------------------------------
...ran with res=256
running: mount | grep -w dos | grep -v /dev/fd | grep -v nexdisk > /tmp/mondo-run-prog-thing.tmp 2>
 /tmp/mondo-run-prog-thing.err
--------------------------------start of output-----------------------------
--------------------------------end of output------------------------------
...ran with res=256
              [Main] libmondo-files.c->find_home_of_exe#431: find_home_of_exe () --- Found cmp at /
usr/bin/cmp
running: mindi -V > /tmp/mondo-run-prog-thing.tmp 2> /tmp/mondo-run-prog-thing.err
--------------------------------start of output-----------------------------
mindi v1.0.7-r460
--------------------------------end of output------------------------------
...ran just fine. :-)
running: parted2fdisk -l | grep -i raid > /tmp/mondo-run-prog-thing.tmp 2> /tmp/mondo-run-prog-thin
g.err
--------------------------------start of output-----------------------------
/dev/sda1   *           1          13      104391   fd  Linux raid autodetect
/dev/sda2              14        4427    35455455   fd  Linux raid autodetect
/dev/sdb1   *           1          13      104391   fd  Linux raid autodetect
/dev/sdb2              14        8924    71577607+  fd  Linux raid autodetect
--------------------------------end of output------------------------------
...ran just fine. :-)
Done.
        [Main] libmondo-devices.c->sensibly_set_tmpdir_and_scratchdir#2542: bkpinfo->tmpdir is bein
g set to /Disponible/tmp.mondo.8517
        [Main] libmondo-devices.c->sensibly_set_tmpdir_and_scratchdir#2546: bkpinfo->scratchdir is
being set to /Disponible/mondo.scratch.5235
Invalid arg -- /opt/phpldapadmin

             [Main] mondo-cli.c->handle_incoming_parameters#266: Switches:-
             [Main] mondo-cli.c->handle_incoming_parameters#270: -9
             [Main] mondo-cli.c->handle_incoming_parameters#270: -L
             [Main] mondo-cli.c->handle_incoming_parameters#270: -N
             [Main] mondo-cli.c->handle_incoming_parameters#270: -O
             [Main] mondo-cli.c->handle_incoming_parameters#270: -S 4200m
             [Main] mondo-cli.c->handle_incoming_parameters#270: -T /tmp
             [Main] mondo-cli.c->handle_incoming_parameters#270: -V
             [Main] mondo-cli.c->handle_incoming_parameters#270: -d /opt/backuppc/manual_backup/mon
do/
             [Main] mondo-cli.c->handle_incoming_parameters#270: -i
[Main] main.c->main#430: Mondoarchive will now exit.
        [Main] libmondo-files.c->register_pid#812: Unregistering PID
running: umount /mnt/cdrom > /tmp/mondo-run-prog-thing.tmp 2> /tmp/mondo-run-prog-thing.err
--------------------------------start of output-----------------------------
umount: /mnt/cdrom: n'est pas mont
--------------------------------end of output------------------------------
...ran with res=256
running: rm -Rf /mondo.scratch.* /tmp.mondo.* > /tmp/mondo-run-prog-thing.tmp 2> /tmp/mondo-run-pro
g-thing.err
--------------------------------start of output-----------------------------
--------------------------------end of output------------------------------
...ran just fine. :-)
running: rm -Rf /Disponible/tmp.mondo.8517 /Disponible/mondo.scratch.5235 > /tmp/mondo-run-prog-thi
ng.tmp 2> /tmp/mondo-run-prog-thing.err
--------------------------------start of output-----------------------------
--------------------------------end of output------------------------------
...ran just fine. :-)
        [Main] libmondo-tools.c->do_libmondo_global_strings_thing#1580: libmondo-tools.c, do_libmon
do_global_strings_thing, 1580: Freeing globals



if someone got idea !!!

Offline hanscees

  • *
  • 267
  • +0/-0
    • nl.linkedin.com/in/hanscees/
[Contrib] MondoRescue on SME 7 (tested successful)!
« Reply #36 on: January 06, 2007, 08:48:16 PM »
Hi,
I have tried the latest mondo (2.2.1) and could not restore into a vmware.
Below what I did.

Someone backuped an sme7 recently and restored correctly?
I have entered a bug report to mondo.

Hans-Cees



cd /root
mkdir mondorescue
cd mondorescue

01012007
wget ftp://ftp.mondorescue.org/rhel/4/afio-2.4.7-1.i586.rpm
wget ftp://ftp.mondorescue.org/rhel/4/mindi-1.2.1-1.rhel4.i586.rpm
wget ftp://ftp.mondorescue.org/rhel/4/mindi-busybox-1.2.2-
1.rhel4.i586.rpm     
 wget ftp://ftp.mondorescue.org/rhel/4/mondo-2.2.1-1.rhel4.i586.rpm

rpm -Uvh mindi-busybox-1.2.2-1.rhel4.i586.rpm
rpm -Uvh mindi-1.2.1-1.rhel4.i586.rpm
rpm -Uvh mondo-2.2.1-1.rhel4.i586.rpm


mkdir /root/mondoiso

mondoarchive -OiN -E "/root/mondoiso   \
 /home/e-smith/files/ibays/nai/"  -d /root/mondoiso
nl.linkedin.com/in/hanscees/

oblooblo2000

[Contrib] MondoRescue on SME 7 (tested successful)!
« Reply #37 on: January 11, 2007, 02:41:58 PM »
Ok, look's like not really working easily with sata, scsi... or else...

I downloaded slax, and knoppix liveCd. I think that the best is to boot on these liveCD, copy all files of the desired partition, burn it on DVD, then restore in the same way.
I stop with backupMondoRescue, tired...

Offline hanscees

  • *
  • 267
  • +0/-0
    • nl.linkedin.com/in/hanscees/
[Contrib] MondoRescue on SME 7 (tested successful)!
« Reply #38 on: January 11, 2007, 09:03:12 PM »
Quote from: "oblooblo2000"
Ok, look's like not really working easily with sata, scsi... or else...

I downloaded slax, and knoppix liveCd. I think that the best is to boot on these liveCD, copy all files of the desired partition, burn it on DVD, then restore in the same way.
I stop with backupMondoRescue, tired...


I usually just use backup and restore into a new install. Works best for me.
nl.linkedin.com/in/hanscees/

Offline TheMonk

  • 14
  • +0/-0
[Contrib] MondoRescue on SME 7 (tested successful)!
« Reply #39 on: January 13, 2007, 06:11:50 PM »
After having read through this thread I'm a bit puzzeled about the "Tested Successful" headline

Can someone explain  :?:
......

oblooblo2000

[Contrib] MondoRescue on SME 7 (tested successful)!
« Reply #40 on: January 22, 2007, 07:38:15 AM »
Quote from: "hanscees"


I usually just use backup and restore into a new install. Works best for me.

Not working for me, too much data for the save process... with not cutting it in little part... or excludind some directory...

The solution I will implement will be:

1/ booting with a live CD and a backup hdd (no mount of partitions)
2/
save
dd if=/dev/hda | gzip | dd of=/path_to/save.gz
restore
gzip -dc /path_to/saave.gz | dd of=/dev/hda


To clone the two disks (hda is main, hdb is the backup)
dd if=/dev/hda of=/dev/hdb
dd if=/dev/hda of=/dev/hdb bs=512 count=1 (for the mbr)

oblooblo2000


Offline dadoudidon

  • *
  • 84
  • +0/-0
[Contrib] MondoRescue on SME 7 (tested successful)!
« Reply #42 on: May 10, 2007, 03:55:58 PM »
does anyone reports a good restore with mondo on sme7?

Offline mmccarn

  • *
  • 2,626
  • +10/-0
[Contrib] MondoRescue on SME 7 (tested successful)!
« Reply #43 on: May 11, 2007, 03:12:32 PM »
I was able to restore from a mondo image last fall using SME 7.0, identical computers and IDE hard drives.

Offline dadoudidon

  • *
  • 84
  • +0/-0
[Contrib] MondoRescue on SME 7 (tested successful)!
« Reply #44 on: May 16, 2007, 11:59:02 AM »
thks mmccarn,

Can you explain plz the rpm's you have installed? and how?
I have sme7.1.3 and 1 ide drive
I would like to backup all my system to iso files (and restore using cds in case)
Is it the way you have used Mondo?

David