Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation
User Name
Slackware - Installation This forum is for the discussion of installation issues with Slackware.


  Search this Thread
Old 10-02-2012, 04:30 AM   #1
LQ Newbie
Registered: Sep 2010
Posts: 22

Rep: Reputation: 0
Install on raid setup and /dev/md127


It's the first time i play with raid, so i can miss some obvious things.

I've followed the README-RAID.txt and i did something like that :

mdadm --stop /dev/md1
mdadm --stop /dev/md2
mdadm --stop /dev/md3

mdadm --misc --zero-superblock /dev/sda1
mdadm --misc --zero-superblock /dev/sda2
mdadm --misc --zero-superblock /dev/sda3
mdadm --misc --zero-superblock /dev/sdb1
mdadm --misc --zero-superblock /dev/sdb2
mdadm --misc --zero-superblock /dev/sdb3

dd if=/dev/zero of=/dev/sda bs=512 count=1
dd if=/dev/zero of=/dev/sdb bs=512 count=1

cat > sda_setup <<EOF
# partition table of /dev/sda
unit: sectors

/dev/sda1 : start=       63, size= 31246362, Id=fd, bootable
/dev/sda2 : start= 31246425, size=  7807590, Id=fd
/dev/sda3 : start= 39054015, size=449016750, Id=fd
/dev/sda4 : start=        0, size=        0, Id= 0

sfdisk /dev/sda < sda_setup
sfdisk /dev/sdb < sda_setup

mdadm --create /dev/md1 --level 1 --raid-devices 2 /dev/sda1 /dev/sdb1 --metadata=0.90
mdadm --create /dev/md2 --level 1 --raid-devices 2 /dev/sda2 /dev/sdb2
mdadm --create /dev/md3 --level 1 --raid-devices 2 /dev/sda3 /dev/sdb3

mkswap /dev/md2
I launch setup, edit lilo.conf at the end, then i reboot.

My root filesystem is ok and i can use the system.

But my swap (/dev/md2) and /home (/dev/md3) aren't mounted.

It seems that with the default superblock (no 0.90 metadata), there is a naming scheme that don't assign the array to the minor number we used for creating it.

For instance, i have /dev/md127 and /dev/md126 instead of /dev/md2 and /dev/md3.

I first tryed to copy the /etc/mdadm.conf of the install session on the root's /etc before leaving the installation program. But it doesn't work and more surprising, "mdadm -Db /dev/md2" give me a different id that the one present in the saved /etc/mdadm.conf.

I gived-up with the /etc/mdadm.conf and restored it to the default one.

For solving this issue, i edited the /etc/fstab for changing the /dev/mdX to /dev/md/slackware:X

What would you suggest as a better solution ?

Thank you for your help.


P.S. i've found this page usefull.


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
Linux raid / md127 pika Linux - Server 2 11-03-2013 12:33 PM
[SOLVED] Attempts to work around a mdadm bug/ mdadm cannot get exclusive access to /dev/md127 Sereph Linux - Newbie 1 08-16-2011 03:21 AM
when i use 'mdadm -S /dev/md127', it produce kernel event with no stop wwyyxx26 Linux - Kernel 1 05-01-2011 05:26 PM
Fedora 10 won't boot off a Raid 1 /dev/md0 setup?? jg167 Linux - Server 1 05-28-2009 03:15 PM
RAID setup on install? rwdaigle Slackware - Installation 2 04-14-2004 02:47 PM > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation

All times are GMT -5. The time now is 08:58 PM.

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