LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices



Reply
 
Search this Thread
Old 11-08-2004, 12:25 PM   #1
DigitalSmash
LQ Newbie
 
Registered: Mar 2004
Posts: 17

Rep: Reputation: 0
raid mdadm reiser, possibly boot order?


I've tried doing this a few ways, and tried a few solutions (some which have been successful for me in the past), however nothing. If anyone could help me I'd be very greatful. Thanks in advance.

Dave
----
When I boot with the following line in fstab:

Code:
/dev/md0       /data           reiserfs        defaults        0       1
I get errors on startup:

Code:
# dmesg |grep reiser:
ReiserFS: md0: warning: sh-2021: reiserfs_fill_super: can not find reiserfs on md0
ReiserFS: md0: warning: sh-2021: reiserfs_fill_super: can not find reiserfs on md0
ReiserFS: md0: warning: sh-2021: reiserfs_fill_super: can not find reiserfs on md0
ReiserFS: md0: warning: sh-2021: reiserfs_fill_super: can not find reiserfs on md0
ReiserFS: md0: found reiserfs format "3.6" with standard journal
If I boot without the line in fstab however startup is fine, however no md0 on /data. However few things I noticed:

Code:
# cat /proc/mdstat
Personalities : 
unused devices: <none>
# mdadm -As
mdadm: /dev/md0 has been started with 2 drives.
# mount -t reiserfs /dev/md0 /data
# cat /proc/mdstat
Personalities : [raid0] 
md0 : active raid0 sda[0] sdb[1]
      312581632 blocks 64k chunks
      
unused devices: <none>
Now everything is how I want it, but need it on boot. I think this might be useful:

Code:
# ls /etc/rcS.d
README              S10checkroot.sh       S25raid2          S36discover     S40hostname.sh  S48console-screen.sh  S70nviboot
S02mountvirtfs      S18hwclockfirst.sh    S26checkfs.sh     S36mountvirtfs  S40hotplug      S50hwclock.sh
S05bootlogd         S20module-init-tools  S30etc-setserial  S38pppd-dns     S40networking   S51ntpdate
S05initrd-tools.sh  S20modutils           S30procps.sh      S39dns-clean    S45mountnfs.sh  S55bootmisc.sh
S05keymap.sh        S25mdadm-raid         S35mountall.sh    S39ifupdown     S46setserial    S55urandom
# cat /etc/modules
# /etc/modules: kernel modules to load at boot time.
#
# This file should contain the names of kernel modules that are
# to be loaded at boot time, one per line.  Comments begin with
# a "#", and everything on the line after them are ignored.

reiserfs
sata_sil
ide-cd
ide-generic
Thanks again.
 
Old 11-08-2004, 08:11 PM   #2
mritch
Member
 
Registered: Nov 2003
Location: austria
Distribution: debian
Posts: 667

Rep: Reputation: 30
afaik reiserfs can't be checked for a valid filesystem at bootup - or better say fs-checking is done at every mount by the libs itself.
replace the fs passno (last field in fstab) with a zero so no attempt is made to check that fs.

sl mritch.
 
Old 11-09-2004, 07:14 AM   #3
DigitalSmash
LQ Newbie
 
Registered: Mar 2004
Posts: 17

Original Poster
Rep: Reputation: 0
Thanks mritch, it boots fine now, however I'm now getting:

Code:
# dmesg |grep reiser
ReiserFS: md0: warning: sh-2021: reiserfs_fill_super: can not find reiserfs on md0
# mount -t reiserfs /dev/md0 /data
mount: wrong fs type, bad option, bad superblock on /dev/md0,
       or too many mounted file systems
       (could this be the IDE device where you in fact use
       ide-scsi so that sr0 or sda or so is needed?)
Any ideas?
 
Old 11-09-2004, 07:19 AM   #4
DigitalSmash
LQ Newbie
 
Registered: Mar 2004
Posts: 17

Original Poster
Rep: Reputation: 0
Ooops, sorry! If I go:

Code:
# mdadm -As
mdadm: /dev/md0 has been started with 2 drives.
# mount -t reiserfs /dev/md0 /data
It works fine, so I'm guessing mdadm isn't starting on boot? It's in /etc/init.d, and all the /etc/rc*.d.
I did notice in /etc/init.d there is both mdadm and mdadm-raid is this correct?

Thanks again,
D
 
Old 11-09-2004, 04:40 PM   #5
mritch
Member
 
Registered: Nov 2003
Location: austria
Distribution: debian
Posts: 667

Rep: Reputation: 30
hi

can you post your fstab & raidtab and be sure your harddisk partitions the raid is on set to raid-autodetect. check this with a tool like parted (set minor to "raid").
raid-doc's are in /usr/share/doc, is mdadm necessary at all yet?

mritch.
 
Old 11-10-2004, 04:26 AM   #6
DigitalSmash
LQ Newbie
 
Registered: Mar 2004
Posts: 17

Original Poster
Rep: Reputation: 0
I can't see any raid doc's, there is a mdadm dir, but it's just examples.. will have a look online for them, is raid-doc for raidtools2 or mdadm? Anyway the config you asked for...

Code:
# cat /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
/dev/hda2       /               ext3    defaults,errors=remount-ro 0       1
/dev/hda1       none            swap    sw              0       0
/dev/hdc        /media/cdrom0   iso9660 ro,user,noauto  0       0
/dev/fd0        /media/floppy0  auto    rw,user,noauto  0       0
/dev/md0        /data           reiserfs        defaults        0       0
# cat /etc/mdadm/mdadm.conf
DEVICE  /dev/sda /dev/sdb
ARRAY   /dev/md0 level=raid0 num-devices=2 
        UUID=097bf278:5162c361:da9f00c8:301d04ec
        devices=/dev/sda,/dev/sdb
Once I run these two on boot everything is fine..

Code:
# mdadm -As
# mount /data
...if I'm correct /etc/init.d/mdadm-raid should do the first bit and fstab the latter? And from my small knowledge of the linux run levels these look correct (infact, I should probably have put Kill in 6?)...

Code:
# ls /etc/rc*.d/|grep 'mdadm-raid'
S50mdadm-raid
S24mdadm-raid
S24mdadm-raid
S24mdadm-raid
S24mdadm-raid
S50mdadm-raid
S25mdadm-raid
# ls /etc/rc*.d/|grep 'mount'
S31umountnfs.sh
S40umountfs
S31umountnfs.sh
S40umountfs
S02mountvirtfs
S35mountall.sh
S36mountvirtfs
S45mountnfs.sh
Thanks,
D
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Why can't I mount this md0 raid? (mdadm and software raid) cruiserparts Linux - Software 35 01-05-2013 04:35 PM
Linux raid with mdadm eyt Linux - Newbie 6 02-07-2006 06:26 AM
Mdadm Raid question stefaandk Linux - General 12 08-16-2005 03:11 AM
Mailing with MDADM RAID rootking Linux - Hardware 1 07-26-2005 05:47 PM
mdadm mail with software RAID brucehohl Linux - Software 1 12-20-2003 07:17 AM


All times are GMT -5. The time now is 05:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration