Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
RAID problem: Doesn't start on boot, but can be started manu
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
thedude0001
Arch/Herd Tester
Arch/Herd Tester


Joined: 16 Jan 2005
Posts: 69

PostPosted: Sun Sep 11, 2005 2:08 am    Post subject: RAID problem: Doesn't start on boot, but can be started manu Reply with quote

This started after a lightning storm with several power outages:

I have a 3 disk software RAID 5 (md0: hdb1, hdc1, hdd1) running with mdadm. Besides that there are 3 more RAID 1 (md1-md3 on hda & hde). After the power outages the RAID 5 doesn't start up on boot. dmesg gives me this:

Code:
md: raid1 personality registered as nr 3
md: md driver 0.90.1 MAX_MD_DEVS=256, MD_SB_DISKS=27
NET: Registered protocol family 2
IP: routing cache hash table of 1024 buckets, 8Kbytes
TCP: Hash tables configured (established 16384 bind 32768)
ip_conntrack version 2.1 (1535 buckets, 12280 max) - 300 bytes per conntrack
ip_tables: (C) 2000-2002 Netfilter core team
ipt_recent v0.3.1: Stephen Frost <sfrost@snowman.net>.  http://snowman.net/projects/ipt_recent/
arp_tables: (C) 2002 David S. Miller
Initializing IPsec netlink socket
NET: Registered protocol family 1
NET: Registered protocol family 17
md: Autodetecting RAID arrays.
md: autorun ...
md: considering hde4 ...
md:  adding hde4 ...
md: hde3 has different UUID to hde4
md: hde1 has different UUID to hde4
md: hdd1 has different UUID to hde4
md: hdc1 has different UUID to hde4
md: hdb1 has different UUID to hde4
md:  adding hda4 ...
md: hda3 has different UUID to hde4
md: hda1 has different UUID to hde4
md: created md4
md: bind<hda4>
md: bind<hde4>
md: running: <hde4><hda4>
raid1: raid set md4 active with 2 out of 2 mirrors
md: considering hde3 ...
md:  adding hde3 ...
md: hde1 has different UUID to hde3
md: hdd1 has different UUID to hde3
md: hdc1 has different UUID to hde3
md: hdb1 has different UUID to hde3
md:  adding hda3 ...
md: hda1 has different UUID to hde3
md: created md3
md: bind<hda3>
md: bind<hde3>
md: running: <hde3><hda3>
raid1: raid set md3 active with 2 out of 2 mirrors
md: considering hde1 ...
md:  adding hde1 ...
md: hdd1 has different UUID to hde1
md: hdc1 has different UUID to hde1
md: hdb1 has different UUID to hde1
md:  adding hda1 ...
md: created md1
md: bind<hda1>
md: bind<hde1>
md: running: <hde1><hda1>
raid1: raid set md1 active with 2 out of 2 mirrors
md: considering hdd1 ...
md:  adding hdd1 ...
md:  adding hdc1 ...
md:  adding hdb1 ...
md: created md0
md: bind<hdb1>
md: bind<hdc1>
md: bind<hdd1>
md: running: <hdd1><hdc1><hdb1>
md: personality 4 is not loaded!
md: do_md_run() returned -22
md: md0 stopped.
md: unbind<hdd1>
md: export_rdev(hdd1)
md: unbind<hdc1>
md: export_rdev(hdc1)
md: unbind<hdb1>
md: export_rdev(hdb1)
md: ... autorun DONE.
ReiserFS: md1: found reiserfs format "3.6" with standard journal
ReiserFS: md1: using ordered data mode
ReiserFS: md1: journal params: device md1, size 8192, journal first block 18, max trans len 1024, max batch 900, max commit age 30, max trans age 30
ReiserFS: md1: checking transaction log (md1)
ReiserFS: md1: Using r5 hash to sort names
VFS: Mounted root (reiserfs filesystem) readonly.
Freeing unused kernel memory: 160k freed
Adding 489972k swap on /dev/hde2.  Priority:-1 extents:1
Adding 489972k swap on /dev/hda2.  Priority:-2 extents:1
raid5: automatically using best checksumming function: pIII_sse
   pIII_sse  :  1960.000 MB/sec
raid5: using function: pIII_sse (1960.000 MB/sec)
md: raid5 personality registered as nr 4
md: md0 stopped.


After booting it is no problem to start the array manually by using
Code:
server ~ # mdadm --assemble /dev/md0 /dev/hdb1 /dev/hdc1 /dev/hdd1
mdadm: /dev/md0 has been started with 3 drives.


dmesg gives me on that:
Code:
md: md0 stopped.
md: md0 stopped.
md: bind<hdd1>
md: bind<hdc1>
md: bind<hdb1>
raid5: device hdb1 operational as raid disk 0
raid5: device hdc1 operational as raid disk 2
raid5: device hdd1 operational as raid disk 1
raid5: allocated 3154kB for md0
raid5: raid level 5 set md0 active with 3 out of 3 devices, algorithm 2
RAID5 conf printout:
 --- rd:3 wd:3 fd:0
 disk 0, o:1, dev:hdb1
 disk 1, o:1, dev:hdd1
 disk 2, o:1, dev:hdc1


After that the array works just fine...

Any ideas?
_________________
Das Schlimme auf dieser Welt ist
daß die Dummen so selbstsicher sind
und die Gescheiten so voller Zweifel.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum