View previous topic :: View next topic |
Author |
Message |
tuppe666 Guru


Joined: 02 Mar 2004 Posts: 423
|
Posted: Fri Mar 23, 2007 7:31 pm Post subject: migrating from raidtools to mdadm, but too scared |
|
|
raidtools has been depreciated . 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 |
|
 |
tuppe666 Guru


Joined: 02 Mar 2004 Posts: 423
|
Posted: Sat Mar 24, 2007 1:50 am Post subject: |
|
|
Does nobody use software raid |
|
Back to top |
|
 |
Darius4all Tux's lil' helper

Joined: 16 Jun 2003 Posts: 128 Location: France
|
Posted: Sat Mar 24, 2007 5:58 am Post subject: |
|
|
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
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 |
|
 |
tuppe666 Guru


Joined: 02 Mar 2004 Posts: 423
|
Posted: Tue Mar 27, 2007 1:50 pm Post subject: |
|
|
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 |
|
 |
matt2kjones Tux's lil' helper

Joined: 03 Mar 2004 Posts: 96
|
Posted: Thu Apr 19, 2007 1:51 pm Post subject: |
|
|
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 |
|
 |
tuppe666 Guru


Joined: 02 Mar 2004 Posts: 423
|
Posted: Fri Apr 20, 2007 2:30 am Post subject: |
|
|
I commented out the information in raidtab. I did my mounted home directory first just to check. |
|
Back to top |
|
 |
|