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

Re: Problem mdadm / mdstat sata raid



Tim Boneko wrote:
Hallo Fred,

Fred Jakobza schrieb:

there is a problem with mount of sata raid 1 devices after
reboot. the partitions of the raid devices are randomly
mounted in different order.


Man schpricht deutsh ;-)

Womit hast du die raid-devices erstellt? So wie ich es verstanden habe, verpasst zumindest mdadm den einzelnen devices eine Markierung, zu welchem /dev/md* es gehört. Deshalb braucht mdadm auch keine /etc/raidtab, um das Gelump zusammenzusetzen. Die ollen raidtools2 sind da etwas simpler gestrickt. Das mit dem Mounten kapiere ich nicht: Er mountet z.B. /dev/md0 als /home, obwohl es / sein sollte oder wie? Das sollte /etc/fstab definitiv verhindern... Schick mal /etc/fstab vorbei.

Nein er nimmt zum Synchronisieren mal /dev/sdbx und mal /dev/sdax

also z.B. /dev/sda1 -> /dev/sdb1 aber /dev/sdb2 -> /dev/sda2...

# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
/dev/md1        /               ext3    defaults,errors=remount-ro 0       1
/dev/md0        /boot           ext3    defaults        0       2
/dev/md4        /opt            ext3    defaults        0       2
/dev/md3        /var/log        ext3    defaults        0       2
/dev/md2        none            swap    sw              0       0
/dev/hda        /media/cdrom0   iso9660 ro,user,noauto  0       0
/dev/sdc1       /usb-storage    vfat    rw,user,noauto  0       0

Keine Ahnung warum mdadm mal sda und mal sdb zum syncen als src nimmt.

Bye Fred


--
Fred Jakobza
Software Development
EsPresto AG
Breite Str. 30-31
10178 Berlin/Germany
Tel: +49.(0)30.90 226.750
Fax: +49.(0)30.90 226.760
jakobza@espresto.com



Reply to: