Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
migrating from raidtools to mdadm, but too scared
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
tuppe666
Guru
Guru


Joined: 02 Mar 2004
Posts: 423

PostPosted: Fri Mar 23, 2007 7:31 pm    Post subject: migrating from raidtools to mdadm, but too scared Reply with quote

raidtools has been depreciated :o . I know I need to migrate to mdadm but as yet I'm a little scared by the whole procedure.

I really need to know how.
* If I can try it with *one* partition before trying with the others
* How to do it
* are the two methods *compatible*

I've not seen anyone whos tried to do this since november, and he got not reply
Back to top
View user's profile Send private message
tuppe666
Guru
Guru


Joined: 02 Mar 2004
Posts: 423

PostPosted: Sat Mar 24, 2007 1:50 am    Post subject: Reply with quote

Does nobody use software raid
Back to top
View user's profile Send private message
Darius4all
Tux's lil' helper
Tux's lil' helper


Joined: 16 Jun 2003
Posts: 128
Location: France

PostPosted: Sat Mar 24, 2007 5:58 am    Post subject: Reply with quote

hi, I switched to mdadm yesterday, I was a little scared too but all went well ;)
emerge mdadm, then just run mdadm --examine -scan /dev/sdxx to find your arrays and copy it to /etc/mdadm.conf
the lines in /etc/mdadm.conf should look like that
Code:

DEVICE /dev/sd[ab]1
DEVICE /dev/sd[ab]3
DEVICE /dev/sd[ab]4
ARRAY /dev/md0 level=raid1 num-devices=2 UUID=52800e59:f3ae9826:3240da5a:9d3ed295
ARRAY /dev/md1 level=raid0 num-devices=2 UUID=d0142730:a10e5e09:8dc58fd0:8c57b5a3
ARRAY /dev/md2 level=raid0 num-devices=2 UUID=55834dde:bfd4f518:91ff270d:cc2f5e37


I have 3 arrays as you can see, 3 lines for the devices and 3 lines for the arrays.
once you've find the lines you need, just add mdadm to your default runlevel
Code:

rc-update add mdadm default


then start mdadm too see if all goes well
Code:

/etc/init.d/mdadm start


check if everything is started
Code:

cat /proc/mdstat


unmerge raidtools and restart your computer and that's all :)
good luck
_________________
Athlon64 3700+ | GeForce 6800GS | 2Go RAM | 2*300Go/Raid 0 | Shuttle SN26P
Core2 Duo T7500 | GeForce 8700M GT | 2Go RAM | 200Go 7200rpm | Clevo M570RU
Back to top
View user's profile Send private message
tuppe666
Guru
Guru


Joined: 02 Mar 2004
Posts: 423

PostPosted: Tue Mar 27, 2007 1:50 pm    Post subject: Reply with quote

Thank you for your help

I used this line to get the information

Code:
mdadm --examine --scan -c partitions


Although for my boot partition I get this.
Quote:

md0 : active raid1 sda1[0]
128384 blocks [2/1] [U_]


So I suspect I'm not using raid for boot...and never have.
Back to top
View user's profile Send private message
matt2kjones
Tux's lil' helper
Tux's lil' helper


Joined: 03 Mar 2004
Posts: 96

PostPosted: Thu Apr 19, 2007 1:51 pm    Post subject: Reply with quote

Hi there,

I just followed the information in this post and currently, just rebooted my server and everything is going sweet and the array is resyncing.

My question is though, now that i have /etc/mdadm.conf is it safe to delete raidtab? raidtools has been unmerged.
_________________
OSST - Formally: The Linux Mirror Project
OSST - Open Source Software Downloads - Torrents for over 80 Distributions
Back to top
View user's profile Send private message
tuppe666
Guru
Guru


Joined: 02 Mar 2004
Posts: 423

PostPosted: Fri Apr 20, 2007 2:30 am    Post subject: Reply with quote

I commented out the information in raidtab. I did my mounted home directory first just to check.
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