Mondorescue et RAID5

Forum dédié à la distribution du même nom et que vous pourrez télécharger sur http://www.contribs.org. La nouvelle version de cette distribution se nomme SME Server

Modérateur: modos Ixus

Mondorescue et RAID5

Messagepar Naoru » 27 Avr 2005 13:04

Salut à tous

Quelqu'un peut il m'éclairer sur ce problème:

Je tente depuis 1 semaine de monter un serveur sous SME 6.0.1 qui doit héberger pas mal de choses..
Donc avant de le mettre en prod, je finiole mon systeme de sauvegarde et de restauration système:
projet:

backupcustom pour les données et Mondorescue pour le systeme. Merci Argenlos :wink:
Le systeme est sur un IDE 80Go et les données sur un RAID5 SCSI (/home/e-smith/files sur /dev/sda1)

Mon souci est que lors de la restauration du systeme via le CD image iso de mondo, il me formate /dev/sda1 (RAID5) alors que j'ai exclu le repertoire /home/e-smith/files qui est le seul monté sur le RAID.
Et après reboot, ça bloque au montage de partition root:

checking root file system
couldn't find matching file system: LABEL=/1
[FAILED]
*** An error ocurred during the File system checck.
*** Dropping you to shell; the system will reboot.........blabla....

Merci pour votre aide
S'attacher à l'arme de l'ennemi, c'est s'attacher à la blessure. Morihei UYESHIBA
Avatar de l’utilisateur
Naoru
Second Maître
Second Maître
 
Messages: 26
Inscrit le: 01 Oct 2003 00:00
Localisation: Toulouse (31)

Messagepar guytou » 27 Avr 2005 13:49

Salut


apres ta restoration tu tapes le mot de passe de root pour passer en mode maintenance puis


e2label /dev/sda3 /

et
e2label /dev/sda1 /boot

puis un petit reboot


A+
Et pourtant elle tourne . (galilée)
Avatar de l’utilisateur
guytou
Contre-Amiral
Contre-Amiral
 
Messages: 438
Inscrit le: 02 Oct 2002 00:00
Localisation: haute-savoie

Messagepar Naoru » 27 Avr 2005 14:44

Merci pour ton aide mais c'est déjà fait et cela ne change rien :?
S'attacher à l'arme de l'ennemi, c'est s'attacher à la blessure. Morihei UYESHIBA
Avatar de l’utilisateur
Naoru
Second Maître
Second Maître
 
Messages: 26
Inscrit le: 01 Oct 2003 00:00
Localisation: Toulouse (31)

Messagepar Naoru » 27 Avr 2005 16:11

Voici le log de restauration de mondo pour ceux qui sauront y voir quelques causes de mon pu*!§#@ de problème :arrow:
Oui je sais il est un peu long :oops: mais j'ai mis en rouge ce qui me parait bizarre:

-------- first line ---------
Hi there
Extracted additional /dev entries OK.
Successfully mounted dynamic /tmp ramdisk
find-and-mount-cdrom --- starting
Trying /dev/hda
It's not in /dev/hda; I'll keep looking
Trying /dev/hdb
It's not in /dev/hdb; I'll keep looking
Trying /dev/hdc
/dev/hdc has a CD-ROM in it
CD-ROM found at /dev/hdc
/dev/hdc is where the Mondo CD lives.
CD-ROM found and mounted at /dev/hdc
find-and-mount-cdrom --- leaving (0)
OK, I am running on a CD-ROM. Good.
Starting install-additional-tools
PLEASE WAIT. Untarring and softlinking disk #1
PLEASE WAIT. Untarring and softlinking disk #2
PLEASE WAIT. Untarring and softlinking disk #3
PLEASE WAIT. Untarring and softlinking disk #4
/bin/gawk (248 KB) restored. 2 slices.
/lib/libc-2.2.5.so (1320 KB) restored. 7 slices.
/sbin/fsck.ext2 (560 KB) restored. 3 slices.
/sbin/fsck.ext3 (560 KB) restored. 3 slices.
/usr/lib/libncurses.so.5.2 (288 KB) restored. 2 slices.
/usr/lib/libslang.so.1.4.5 (416 KB) restored. 3 slices.
/usr/local/share/mondo/mondorestore (320 KB) restored. 2 slices.
/lib/modules/2.4.20-18.7/kernel/fs/reiserfs/reiserfs.o (216 KB) restored. 2 slices.
Resolving softlinks
Exiting install-additional-tools
klogd and syslogd have been started.
LVM's have been started.
OK, we've found /mnt/cdrom/archives/*; great.
Re-jigging mondo-restore.cfg because you backed up to ISOs and then burned them to CDs
Done re-jigging. Yay.
backup-media-type is specified in config file - great.
Calling post-init
/dev/hda3 / ext3 77778697
/dev/hda1 /boot ext3 104391
/dev/hda2 swap swap 265064
/dev/sda1 /home/e-smith/files ext3 107426623
mondorestore found; cool...
mount-me found
unmount-me found
mondorestore found
-------------------NUKE MODE-------------------
-------------- Mondo Restore v1.67 -------------
root is mounted at /dev/root
I believe I am running on a ramdisk.
root is mounted at /dev/root
I believe I am running on a ramdisk.
root is mounted at /dev/root
I believe I am running on a ramdisk.
I am in disaster recovery mode
FYI, MOUNTLIST_FNAME=/tmp/mountlist.txt
Backup medium is CD-R[W]
differential var = '0'
This is a regular (full) backup
Loading mountlist...
/dev/hda3 / ext3 77778697
/dev/hda1 /boot ext3 104391
/dev/hda2 swap swap 265064
/dev/sda1 /home/e-smith/files ext3 107426623
Mountlist loaded successfully.
4 entries in mountlist
Raidtab is very small or non-existent. Ignoring it.
nuke_mode --- starting
I'm thinking...
mountpt=/tmp/tmpfs/mondo.tmp.1569/mount.bootdisk
------ dd if=/dev/fd0u1722 of=/dev/null bs=1k count=1 2> /dev/null ------
dd: opening `/dev/fd0u1722': No such device or address
--------------------------------end of output------------------------------
...ran with errors.
Calling mount_cdrom now :)
-------------------------- mount | grep cdrom --------------------------
--------------------------------end of output------------------------------
...ran with errors.
(mount_cdrom) --- command = mount /dev/cdrom -t iso9660 -o ro /mnt/cdrom
Mounted CD-ROM drive OK
OK, plan C...
tar -zxvf /mnt/cdrom/images/all.tar.gz tmp/mountlist.txt tmp/mondo-restore.cfg tmp/biggielist.txt tmp/filelist.full
tmp/mondo-restore.cfg
tmp/mountlist.txt
tmp/filelist.full
tmp/biggielist.txt
--------------------------------end of output------------------------------
...ran just fine. :-)
Recovered mondo-restore.cfg
cp -f /tmp/tmpfs/mondo.tmp.1569/tmp/mondo-restore.cfg /tmp/tmpfs/mondo.tmp.1569/tmp/mondo-restore.cfg
cp: `/tmp/tmpfs/mondo.tmp.1569/tmp/mondo-restore.cfg' and `/tmp/tmpfs/mondo.tmp.1569/tmp/mondo-restore.cfg' are the same file
--------------------------------end of output------------------------------
...ran with errors.
root is mounted at /dev/root
I believe I am running on a ramdisk.
---------------------- mount /dev/cdrom /mnt/cdrom ----------------------
mount: block device /dev/cdrom is write-protected, mounting read-only
--------------------------------end of output------------------------------
...ran just fine. :-)
--------------------------- umount /mnt/cdrom ---------------------------
--------------------------------end of output------------------------------
...ran just fine. :-)
Re-jigging configuration AGAIN. CD-R, not ISO.
Backup medium is CD-R[W]
differential var = '0'
This is a regular (full) backup
Making list of drives
Made list of drives
Expanding entries to suit drive /dev/hda (76319 MB)
Disk was 76314 MB; is now 76319 MB; factor = 1.000066
Changing /dev/hda3 from 77778697 KB to 77783800 KB
Changing /dev/hda1 from 104391 KB to 104397 KB
Changing /dev/hda2 from 265064 KB to 265081 KB

final_size = 76319 MB
Expanding entries to suit drive /dev/sda (104910 MB)
Disk was 104908 MB; is now 104910 MB; factor = 1.000019
Changing /dev/sda1 from 107426623 KB to 107428672 KB final_size = 104910 MB
Mountlist adjusted to suit current hard drive(s)
save_mountlist_to_disk() --- saving to /tmp/mountlist.txt
Restoring Automatically
partition_everything() --- starting
Partitioning hard drives
Making list of drives
Made list of drives
Partitioning drive /dev/hda
Found partition /dev/hda1 in mountlist
Wiping /dev/hda's partition table
---------- dd if=/dev/zero of=/dev/hda seek=446 count=64 bs=1 ----------
64+0 records in
64+0 records out
--------------------------------end of output------------------------------
...ran just fine. :-)
partition_device('/dev/hda', 1, 0, 'ext3', 104397) --- starting
Partitioning device /dev/hda1 (101 MB)
Setting /dev/hda1's type to ext3 (83)
Partition /dev/hda1 created+configured OK
partition_device() --- leaving
Found partition /dev/hda2 in mountlist
partition_device('/dev/hda', 2, 1, 'swap', 265081) --- starting
Partitioning device /dev/hda2 (258 MB)
Setting /dev/hda2's type to swap (82)
Partition /dev/hda2 created+configured OK
partition_device() --- leaving
Found partition /dev/hda3 in mountlist
partition_device('/dev/hda', 3, 2, 'ext3', 77783800) --- starting
Partitioning device /dev/hda3 (75960 MB)
Vaccum-packing
partition_device('/dev/hda', 3, 2, 'ext3', -1) --- starting
Partitioning device /dev/hda3 (max size)
Setting /dev/hda3's type to ext3 (83)
Returning from a successful vacuum-pack
partition_device() --- leaving
Setting /dev/hda3's type to ext3 (83)
Partition /dev/hda3 created+configured OK
partition_device() --- leaving
Partitioning drive /dev/sda
Found partition /dev/sda1 in mountlist
Wiping /dev/sda's partition table
---------- dd if=/dev/zero of=/dev/sda seek=446 count=64 bs=1 ----------
64+0 records in
64+0 records out
--------------------------------end of output------------------------------
...ran just fine. :-)
partition_device('/dev/sda', 1, 0, 'ext3', 107428672) --- starting
Partitioning device /dev/sda1 (104910 MB)
Vaccum-packing
partition_device('/dev/sda', 1, 0, 'ext3', -1) --- starting
Partitioning device /dev/sda1 (max size)
Setting /dev/sda1's type to ext3 (83)
Returning from a successful vacuum-pack
partition_device() --- leaving
Setting /dev/sda1's type to ext3 (83)
Partition /dev/sda1 created+configured OK
partition_device() --- leaving
Done.
format_everything (mountlist, interactively = false
Formatting partitions
Formatting soft-RAIDs
Formatting LVMs
Formatting regulars
Formatting /dev/hda3 as ext3...OK
Formatting /dev/hda1 as ext3...OK
Formatting /dev/hda2 as swap...OK
Formatting /dev/sda1 as ext3...OK
Done.
format_everything () - finished successfully
Mounting devices
Mounting device /dev/hda3
Mounting device /dev/hda1
Mounting device /dev/sda1
Mounting device /dev/hda2
--------------------------------- df -m ---------------------------------
Filesystem 1M-blocks Used Available Use Mounted on
rootfs 28 10 18 37 /
/dev/ram0 28 10 18 37 /
/dev/shm 48 2 46 3 /tmp
/dev/hda3 74755 32 70926 0 /mnt/RESTORING
/dev/hda1 99 4 90 4 /mnt/RESTORING/boot
/dev/sda1 103262 32 97984 0 /mnt/RESTORING/home/e-smith/files
--------------------------------end of output------------------------------
...ran just fine. :-)
All partitions were mounted OK.
Done.
--------------------------------- df -m ---------------------------------
Filesystem 1M-blocks Used Available Use Mounted on
rootfs 28 10 18 37 /
/dev/ram0 28 10 18 37 /
/dev/shm 48 2 46 3 /tmp
/dev/hda3 74755 32 70926 0 /mnt/RESTORING
/dev/hda1 99 4 90 4 /mnt/RESTORING/boot
/dev/sda1 103262 32 97984 0 /mnt/RESTORING/home/e-smith/files
--------------------------------end of output------------------------------
...ran just fine. :-)
restore_everything() --- starting
restoring everything
Preparing to read your archives
Restoring OS and data from CD
-------------------------- mount | grep cdrom --------------------------
--------------------------------end of output------------------------------
...ran with errors.
(mount_cdrom) --- command = mount /dev/cdrom -t iso9660 -o ro /mnt/cdrom
Mounted CD-ROM drive OK
Restoring from archives
Insisting on 1st CD, so that I can have a look at LAST-FILELIST-NUMBER
Restoring from CD #1
Fileset #0 processed OK
Fileset #1 processed OK
Fileset #2 processed OK
Fileset #3 processed OK
Fileset #4 processed OK
Fileset #5 processed OK
Fileset #6 processed OK
Fileset #7 processed OK
Fileset #8 processed OK
Fileset #9 processed OK
Fileset #10 processed OK
Fileset #11 processed OK
Fileset #12 processed OK
Fileset #13 processed OK
Fileset #14 processed OK
Fileset #15 processed OK
Fileset #16 processed OK
Fileset #17 processed OK
Fileset #18 processed OK
Fileset #19 processed OK
Fileset #20 processed OK
Fileset #21 processed OK
Fileset #22 processed OK
Fileset #23 processed OK
Fileset #24 processed OK
Fileset #25 processed OK
Fileset #26 processed OK
Fileset #27 processed OK
Fileset #28 processed OK
Fileset #29 processed OK
Fileset #30 processed OK
Fileset #31 processed OK
Fileset #32 processed OK
Fileset #33 processed OK
Fileset #34 processed OK
Fileset #35 processed OK
Done.
I think there are 1 total slices
Reassembling large files
OK, no biggielist; not restoring biggiefiles
restore_everything() --- leaving
run_boot_loader: device='/dev/sda', name='LILO'
Running LILO...
--------------------- chroot /mnt/RESTORING lilo -L ---------------------
Added SMEServer-smp *
Added SMEServer-up
Ignoring entry 'lba32'
--------------------------------end of output------------------------------
...ran just fine. :-)
Done.
Your boot loader ran OK

The number of cylinders for this disk is set to 9729.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): Partition number (1-4):
Command (m for help): The partition table has been altered!

Calling ioctl() to re-read partition table.

WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
The kernel still uses the old table.
The new table will be used at the next reboot.
Syncing disks.
------------------ make-me-bootable /tmp/mountlist.txt ------------------
--------------------------------end of output------------------------------
...ran just fine. :-)
Partition(s) made bootable OK
---------------- touch /mnt/RESTORING/var/account/pacct ----------------
touch: /mnt/RESTORING/var/account/pacct: No such file or directory
--------------------------------end of output------------------------------
...ran with errors.
cd /mnt/RESTORING; for i in `ls home/`; do echo "Moving $i's spurious files to $i/.disabled"; mkdir $i/.disabled ; mv -vf $i/.DCOP* $i/.MCOP* $i/.*authority $i/.kde/tmp* $i/.kde/socket* $i/.disabled/ ; done
Moving e-smith's spurious files to e-smith/.disabled
Moving httpd's spurious files to httpd/.disabled
mkdir: Cannot create directory `e-smith/.disabled': No such file or directory
mv: illegal option -- v
BusyBox v0.60.5 (2003.05.04-07:15+0000) multi-call binary
Usage: mv SOURCE DEST
or: mv SOURCE... DIRECTORY
mkdir: Cannot create directory `httpd/.disabled': No such file or directory
mv: illegal option -- v
BusyBox v0.60.5 (2003.05.04-07:15+0000) multi-call binary
Usage: mv SOURCE DEST
or: mv SOURCE... DIRECTORY
--------------------------------end of output------------------------------
...ran with errors.
- rm -vf /mnt/RESTORING/var/run/*.pid /mnt/RESTORING/var/lock/subsys/* -
rm: illegal option -- v

--------------------------------end of output------------------------------
...ran just fine. :-)
--------------------------------- df -m ---------------------------------
Filesystem 1M-blocks Used Available Use Mounted on
rootfs 28 10 18 37 /
/dev/ram0 28 10 18 37 /
/dev/shm 48 2 46 3 /tmp
/dev/hda3 74755 572 70386 1 /mnt/RESTORING
/dev/hda1 99 14 80 15 /mnt/RESTORING/boot
/dev/sda1 103262 32 97984 0 /mnt/RESTORING/home/e-smith/files
/dev/cdrom 291 291 0 100 /mnt/cdrom
--------------------------------end of output------------------------------
...ran just fine. :-)
Unmounting devices
-------------- ps ax | grep buffer | grep -v "grep buffer" --------------
--------------------------------end of output------------------------------
...ran with errors.

A priori il y a quelque chose qui cloche avec le RAID matériel pourtant bien reconnu par la SME:?
Merci encore pour votre aide
Si argenlos passe par là... :lol:
S'attacher à l'arme de l'ennemi, c'est s'attacher à la blessure. Morihei UYESHIBA
Avatar de l’utilisateur
Naoru
Second Maître
Second Maître
 
Messages: 26
Inscrit le: 01 Oct 2003 00:00
Localisation: Toulouse (31)

Messagepar Naoru » 27 Avr 2005 19:50

Toujours personne pour m'aider!
Je vais finir par croire que j'ai la peste!
:up:
S'attacher à l'arme de l'ennemi, c'est s'attacher à la blessure. Morihei UYESHIBA
Avatar de l’utilisateur
Naoru
Second Maître
Second Maître
 
Messages: 26
Inscrit le: 01 Oct 2003 00:00
Localisation: Toulouse (31)


Retour vers E-Smith / SME Server

Qui est en ligne ?

Utilisateur(s) parcourant actuellement ce forum : Aucun utilisateur inscrit et 1 invité

cron