Même erreur.
Pas de soucis jusqu’à hier quand /dev/sda est décédé. Transparence complète sur la production grâce au RAID. Avant de rebooter pour changer le disque je m’assure que grub soit installé sur /dev/sdb… et là, la cata commence.
# cat /proc/cmdline
root=/dev/mapper/vg01-root ro quiet
[quote]Qu’en est-il de /boot ? Voyant qu’il s’agit d’une debian squeeze, nous imaginons que /boot devait se trouver en une partition propre.
Voir si /boot est monté à travers [mono]mount[/mono],[mono]df -hT[/mono][/quote]
# mount
/dev/mapper/vg01-root on / type reiserfs (rw)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
procbususb on /proc/bus/usb type usbfs (rw)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
/dev/md0 on /boot type ext2 (rw)
/dev/mapper/vg01-datas on /datas type reiserfs (rw)
/dev/mapper/vg01-home on /home type reiserfs (rw)
/dev/mapper/vg01-tmp on /tmp type reiserfs (rw)
/dev/mapper/vg01-var on /var type reiserfs (rw)
# df -hT
Sys. de fich. Type Tail. Occ. Disp. %Occ. Monté sur
/dev/mapper/vg01-root
reiserfs 3,8G 856M 2,9G 23% /
tmpfs tmpfs 4,0G 0 4,0G 0% /lib/init/rw
udev tmpfs 10M 808K 9,3M 8% /dev
tmpfs tmpfs 4,0G 0 4,0G 0% /dev/shm
/dev/md0 ext2 89M 30M 55M 36% /boot
/dev/mapper/vg01-datas
reiserfs 70G 48G 23G 69% /datas
/dev/mapper/vg01-home
reiserfs 952M 164M 789M 18% /home
/dev/mapper/vg01-tmp
reiserfs 3,8G 33M 3,7G 1% /tmp
/dev/mapper/vg01-var
reiserfs 3,8G 654M 3,1G 18% /var
# ls -alh /boot/
total 28M
drwxr-xr-x 4 root root 1,0K janv. 21 14:50 .
drwxr-xr-x 25 root root 720 avril 15 2011 ..
-rw-r--r-- 1 root root 90K juin 21 2010 config-2.6.26-2-686
-rw-r--r-- 1 root root 84K nov. 25 2010 config-2.6.26-2-amd64
drwxr-xr-x 3 root root 4,0K janv. 22 11:54 grub
-rw-r--r-- 1 root root 7,0M juil. 5 2010 initrd.img-2.6.26-2-686
-rw-r--r-- 1 root root 7,7M janv. 21 14:50 initrd.img-2.6.26-2-amd64
-rw-r--r-- 1 root root 7,5M janv. 4 2011 initrd.img-2.6.26-2-amd64.bak
drwxr-xr-x 2 root root 12K juil. 5 2010 lost+found
-rw-r--r-- 1 root root 908K juin 21 2010 System.map-2.6.26-2-686
-rw-r--r-- 1 root root 1,2M nov. 25 2010 System.map-2.6.26-2-amd64
-rw-r--r-- 1 root root 1,5M juin 21 2010 vmlinuz-2.6.26-2-686
-rw-r--r-- 1 root root 1,7M nov. 25 2010 vmlinuz-2.6.26-2-amd64
[quote]Si /boot a été perdu à cause de la défaillance de /dev/sda, tu pourrais le recréer en /dev/sdb.
Est-ce que tu pourrais remplacer le disque défaillant ?[/quote]
Oui j’ai bien prévu de le remplacer. Mais je sais que si j’arrête la machine (qui n’est pas hotplug), il ne redémarrera pas… c’est pour ça que j’essaie de corriger l’erreur tant qu’il n’est pas éteint.
[quote]
Qu’en est-il de RAID (type, /boot, UUUU, UU_U, U__U )? [mono]cat /proc/mdstat[/mono][/quote]
C’est un RAID1 mirroring. le /boot est sur md0. Après le crash de /dev/sda, j’ai retiré /dev/sda de /dev/md0 et /dev/md1.
[code]# cat /proc/mdstat
Personalities : [raid1]
md1 : active raid1 sdb2[0]
100000000 blocks [2/1] [U_]
md0 : active raid1 sdb1[0]
96256 blocks [2/1] [U_]
unused devices:
[/code]
[quote]
Qu’en est-il de LVM ? [mono]lvs;pvs;vgs[/mono]
[mono]lvs[/mono](lv:logical volume)
[mono]pvs[/mono] (pv :physical volume)
[mono]vgs[/mono] (vg : volume group)
Comment se combinent RAID et LVM ?
RAID sur LVM ?[/quote]
Justement, même dans les lors des commandes display de LVM il me balance des erreurs sur le /dev/sda alors qu’il est sur un RAID… je ne comprend pas.
[code]# pvdisplay
/dev/sda: read failed after 0 of 4096 at 0: Erreur d’entrée/sortie
Incorrect metadata area header checksum
/dev/sda1: read failed after 0 of 2048 at 0: Erreur d’entrée/sortie
/dev/sda2: read failed after 0 of 2048 at 0: Erreur d’entrée/sortie
/dev/sda: read failed after 0 of 4096 at 150039822336: Erreur d’entrée/sortie
/dev/sda: read failed after 0 of 4096 at 150039937024: Erreur d’entrée/sortie
/dev/sda: read failed after 0 of 4096 at 4096: Erreur d’entrée/sortie
/dev/sda1: read failed after 0 of 512 at 98566144: Erreur d’entrée/sortie
/dev/sda1: read failed after 0 of 512 at 98660352: Erreur d’entrée/sortie
/dev/sda1: read failed after 0 of 512 at 0: Erreur d’entrée/sortie
/dev/sda1: read failed after 0 of 512 at 4096: Erreur d’entrée/sortie
/dev/sda2: read failed after 0 of 512 at 149938503680: Erreur d’entrée/sortie
/dev/sda2: read failed after 0 of 512 at 149938618368: Erreur d’entrée/sortie
/dev/sda2: read failed after 0 of 512 at 0: Erreur d’entrée/sortie
/dev/sda2: read failed after 0 of 512 at 4096: Erreur d’entrée/sortie
— Physical volume —
PV Name /dev/md1
VG Name vg01
PV Size 100,00 GiB / not usable 4,00 MiB
Allocatable yes
PE Size 4,00 MiB
Total PE 25599
Free PE 2198
Allocated PE 23401
PV UUID eiSdzo-fvdz-p3qw-e9MV-Ubty-Crmc-2TH4gc
“/dev/md0” is a new physical volume of “94,00 MiB”
— NEW Physical volume —
PV Name /dev/md0
VG Name
PV Size 94,00 MiB
Allocatable NO
PE Size 0
Total PE 0
Free PE 0
Allocated PE 0
PV UUID hlkJ5d-LepQ-83pc-L5o1-OMAY-JZyg-Vx3DkO
[/code]
# vgdisplay
/dev/sda: read failed after 0 of 4096 at 0: Erreur d'entrée/sortie
Incorrect metadata area header checksum
/dev/sda1: read failed after 0 of 2048 at 0: Erreur d'entrée/sortie
/dev/sda2: read failed after 0 of 2048 at 0: Erreur d'entrée/sortie
--- Volume group ---
VG Name vg01
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 18
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 6
Open LV 6
Max PV 0
Cur PV 1
Act PV 1
VG Size 100,00 GiB
PE Size 4,00 MiB
Total PE 25599
Alloc PE / Size 23401 / 91,41 GiB
Free PE / Size 2198 / 8,59 GiB
VG UUID Dc8eza-olES-Cwav-fCoB-hGsG-Fqui-HGnTOj
[code]# lvdisplay
/dev/sda: read failed after 0 of 4096 at 0: Erreur d’entrée/sortie
Incorrect metadata area header checksum
/dev/sda1: read failed after 0 of 2048 at 0: Erreur d’entrée/sortie
/dev/sda2: read failed after 0 of 2048 at 0: Erreur d’entrée/sortie
— Logical volume —
LV Name /dev/vg01/home
VG Name vg01
LV UUID Km9BAP-0U8K-52ZB-g0SH-cH4y-bz03-PYPxoA
LV Write Access read/write
LV Status available
open 2
LV Size 9,31 GiB
Current LE 2384
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:0
— Logical volume —
LV Name /dev/vg01/var
VG Name vg01
LV UUID IAxbk8-g34z-KWVa-f1Bz-ZMDM-Qyl8-SSo1SD
LV Write Access read/write
LV Status available
open 2
LV Size 3,72 GiB
Current LE 953
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:1
— Logical volume —
LV Name /dev/vg01/tmp
VG Name vg01
LV UUID SUEAc2-N2qV-769K-yKxg-JS3v-MAaj-f8R57w
LV Write Access read/write
LV Status available
open 2
LV Size 3,72 GiB
Current LE 953
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:2
— Logical volume —
LV Name /dev/vg01/swap
VG Name vg01
LV UUID 1ihS0U-G4I1-5mdE-U2oi-xYAS-CyHm-fXzkkO
LV Write Access read/write
LV Status available
open 2
LV Size 952,00 MiB
Current LE 238
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:3
— Logical volume —
LV Name /dev/vg01/root
VG Name vg01
LV UUID jxewpf-lFei-0CkI-2Z4z-8yEO-QWMt-1XN8vW
LV Write Access read/write
LV Status available
open 2
LV Size 3,72 GiB
Current LE 953
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:4
— Logical volume —
LV Name /dev/vg01/datas
VG Name vg01
LV UUID OYkblX-FRgC-2Qex-L9FN-Fd72-TWxh-46XK9Z
LV Write Access read/write
LV Status available
open 2
LV Size 70,00 GiB
Current LE 17920
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:5
[/code]
[quote]Un fil traitant d’un problème approchant :
debian-fr.org/probleme-grub … 50566.html[/quote]
Merci de ton aide, sincèrement.