[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Raid-1 mit LVM



Hallo,

mein Raid 1 mit LVM will nicht so wie ich es gerne hätte. 

Die Masterplatte steht soweit. Die md-Device werden beim booten richtig
eingebunden. Diese besteht aus 3 Partitionen.
md1 = / (primary Partition)
md5 = /boot (logical Partition)
md7 = logical Partition für LVM

Auf der 2. Platte habe ich alle Partitionen gelöscht und mit 
sfdisk -d /dev/hdc | sfisk /dev/hda die Partitionen übertragen.

Anschließend mdadm -add /dev/md[157] /dev/hda[157] gemacht.
Das syncen habe ich abgewartet. 
cat /proc/mdstat ergab 

Personalities : [raid1]
md7 : active raid1 hda7[0] hdc7[1]
      116334592 blocks [2/2] [UU]

md5 : active raid1 hda5[0] hdc5[1]
      144448 blocks [2/2] [UU]

md1 : active raid1 hda1[0] hdc1[1]
      240832 blocks [2/2] [UU]

mdadm.conf gebaut mit
echo DEVICE /dev/hda[157] /dev/hdc[157] > /etc/mdadm/mdadm.conf
mdadm -D --brief -s /dev/md[157] >> /etc/mdadm/mdadm.conf

Dannn mkinitrd -o /boot/initrd-2.6.11-raid gebaut.
/etc/mkinitrd/mkinitrd.conf zuvor root=md1 angepaßt

Nun noch grub gestartet.
grub> device (hd0) /dev/hda
grub> root (hd0,4)
 Filesystem type is ext2fs, partition type 0xfd
 grub> setup (hd0)
 grub> device (hd0) /dev/hdc
 grub> root (hd0,4)
 Filesystem type is ext2fs, partition type 0xfd
 grub> setup (hd0)
 grub> quit

und den Rechner anschließend rebootet.

md1 und md5 werden korrekt eingebunden. Nur md7 nicht.
Hier der Auszug aus der boot.log
Fri Aug 19 18:53:45 2005: /dev/md1: clean, 12294/60240 files,
146530/240832 blocks
Fri Aug 19 18:53:45 2005: System time was Fri Aug 19 16:53:39 UTC 2005.
Fri Aug 19 18:53:45 2005: Setting the System Clock using the Hardware
Clock as reference...
Fri Aug 19 18:53:45 2005: System Clock set. System local time is now Fri
Aug 19 16:53:41 UTC 2005.
Fri Aug 19 18:53:45 2005: Cleaning up ifupdown...done.
Fri Aug 19 18:53:45 2005: Calculating module dependencies... done.
Fri Aug 19 18:53:45 2005: Loading modules...
Fri Aug 19 18:53:45 2005:     md
Fri Aug 19 18:53:45 2005:     raid1
Fri Aug 19 18:53:45 2005:     ide-cd
Fri Aug 19 18:53:45 2005:     ide-generic
Fri Aug 19 18:53:45 2005:     capifs
Fri Aug 19 18:53:45 2005:     ide-scsi
Fri Aug 19 18:53:45 2005: All modules loaded.
Fri Aug 19 18:53:45 2005: Creating device-mapper devices...done.
Fri Aug 19 18:53:45 2005: Starting raid devices: mdadm: /dev/md5 has
been started with 2 drives.
Fri Aug 19 18:53:45 2005: mdadm: /dev/md7 has been started with 1 drive
(out of 2).
Fri Aug 19 18:53:45 2005: done.
Fri Aug 19 18:53:45 2005: Setting up LVM Volume Groups...
Fri Aug 19 18:53:45 2005:     Logging initialised at Fri Aug 19 16:53:43
2005
Fri Aug 19 18:53:45 2005:
Fri Aug 19 18:53:45 2005:     Set umask to 0077
Fri Aug 19 18:53:45 2005:     Wiping cache of LVM-capable devices
Fri Aug 19 18:53:45 2005:     Wiping internal cache
Fri Aug 19 18:53:45 2005:   Reading all physical volumes.  This may take
a while...
Fri Aug 19 18:53:45 2005:     Finding all volume groups
Fri Aug 19 18:53:45 2005:     Finding volume group "server"
Fri Aug 19 18:53:45 2005:   Found volume group "server" using metadata
type lvm2
Fri Aug 19 18:53:45 2005:     Finding volume group "stammhuette"

Und nun komme ich nicht weiter.
Ich kann auch keine mdadm -add /dev/md7 /dev/hda7 durchführen weil
/dev/hda7 aktiv ist. pvdisplay zeigt es mir jedenfalls als einzige
Volume an.

Habe ich bei der Installation einen logischen
Fehler gemacht? Und was mich verwundert ist warum findet LVM noch das
alte Volume stammhuette noch vorhanden ist.
Beim booten bekomme ich dann auch noch die Meldung das 2 Volumes
dieselbe ID haben und hda7 anstelle von hdc7 geladen. Dabei müßte es
doch md7 sein. 

Ich hoffe ich habe mein Problem komplett beschrieben und es kann mir
jemand einen Tipp geben.


Viele Grüße aus Köln

   Ralf Schmidt





Reply to: