View previous topic :: View next topic |
Author |
Message |
cartmanidis n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 04 Feb 2006 Posts: 5
|
Posted: Sat Feb 11, 2006 7:27 pm Post subject: Unable to expand RAID 5 with EVMS (a.k.a EVMS headbanger!) |
|
|
I have installed gentoo onto a new computer, in order to make a RAID5 file server with samba so as to keep my files safely, and away from Windows For RAID i chose EVMS, due to its gui and mainly due to its stated ability to expand RAID 5 arrays. That would enable me to begin with a 3 drive RAID and gradualy expand it to an 8 drive one. So, when the time came to expand my raid volume, i bought 2 drives, installed them and then tried to do the expand. I followed every kind of instruction i could find on g$$gle, as EVMS's documentation is not clear about this situation.
The problem is that whatever i do, the "expand" option does not appear over my md-raid 5 region, or the jfs volume.
Here is what i am doing:
i tab to 5=disk segments screen, go to the freespace of my 2 new drives, and create a 277.7GB segment on them, just as i did when i created the raid.
[img=http://img356.imageshack.us/img356/5124/5disksegments0xk.th.gif]
(if anybody knows how to make screenshots appear on the post directly plz tell it)
then they appear on 1=Available objects screen
[img=http://img384.imageshack.us/img384/9824/1availableobjects2he.th.gif]
i then save and quit. i unmount my jfs raid5 volume, and move the jfs lib away from /lib/evms/2.5.4 as evms.sourceforge.net/faq.html suggests. then i fire up evmsn again.
[img=http://img303.imageshack.us/img303/4646/0logicalvolumesnojfs8br.th.gif]
then i deactivate the volume, and after that i deactivate the md/md0 storage region and save
[img=http://img412.imageshack.us/img412/8564/3storageregions8fj.th.gif]
then i press enter and see that my available options do not include the expand one. (in the screenshot the region appears to be active, i tried both ways). Also in the actions menu i cannot find anything that has something to do with resizing the region, except for the actions->expand menu, but anything that appears there does not have my raid region as an option.
[img=http://img384.imageshack.us/img384/3997/3storageregionsoptions9xf.th.gif]
my logical disks are:
[img=http://img356.imageshack.us/img356/4099/6logicaldisks4ti.th.gif]
i have tried many many things, activating, deactivating disks, moving back and forth the jfs lib and anything else i could find on the web and irc. 2 days now i an trying to solve the problem but to no avail. so please help me.
i have Gentoo AMD64, kernel is 2.6.12-gentoo-r10 with everything that should be enabled for raid and evms. my hardware is an AMD Sempron 2800+, ASUS K8N4-E Deluxe with Nforce4 (or CK804 as linux sees it) with 4 sata ports, and 4 more sata ports on a SiI 3114 onboard controller. Hard disks are 4 maxtor sata's and one maxtor sataII, all of them 300GB (the sataII maxtor is on the sil controller because i have read it is incompatible with nforce4)
EVMS version was 2.5.3-r1 when i made the raid (followed the instructions for evms on the wiki), and i tried to expand the raid with 2.5.3 and 2.5.4 versions. also tried the livecd 2005.1
i have created the raid by creating 3 277.7GB segments, then created a MD RAID 5 region over them, then made an evms volume over it and finaly made a jfs filesystem over it. i didnt use lvm |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
flash49 Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/222057813429263a6275c4.jpg)
Joined: 12 Feb 2005 Posts: 233
|
Posted: Sat Feb 11, 2006 8:36 pm Post subject: |
|
|
I haven't done this myself, but soon i'll have to do it.
Have you checked the menu? Does "Action->Expand->Storage Object" show your raidset? The raidset mußt be deactivated and the jfs evms-driver mußt be disabled, if I remember correctly. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
cartmanidis n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 04 Feb 2006 Posts: 5
|
Posted: Sat Feb 11, 2006 8:40 pm Post subject: |
|
|
unfortunately it only shows my 2 new disks. i tried it again now following your instructions |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
cartmanidis n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 04 Feb 2006 Posts: 5
|
Posted: Sat Feb 11, 2006 11:57 pm Post subject: |
|
|
also been trying with small 1 GB partitions. it seems that raid 5 md partitions are not resizable, or i am doing something terribly wrong |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Angrybob Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/35621032241461d1e2f77c.gif)
Joined: 19 Apr 2003 Posts: 575
|
Posted: Sat Feb 25, 2006 12:38 pm Post subject: |
|
|
has anyone solved this? I just created a raid5 region with 3 200Gb disks and I want to add another one, I've deactivated the region and it now gives me the option of adding a spare disk but thats not what i want... i want to add another proper disk
[edit]
doh, silly me i found out how to do it... when i went expand > storage container it brought up a window showing my lvm2 volume but then when i clicked next it gave me the option of expanding the raid array below it
it seems to think it will take over ten hours?!?!?! I hope thats wrong because that's just crap |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Sachankara l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/20654153364410b1c04b571.png)
Joined: 11 Jun 2004 Posts: 696 Location: Stockholm, Sweden
|
Posted: Sat Feb 25, 2006 1:26 pm Post subject: |
|
|
Angrybob wrote: | it seems to think it will take over ten hours?!?!?! I hope thats wrong because that's just crap | Change the default sync value by changing this: Code: | /proc/sys/dev/raid/speed_limit_min | For example: Code: | echo 30000 > /proc/sys/dev/raid/speed_limit_min | This will result in a sync speed of ~30 MiB/s... _________________ Gentoo Hardened Linux 2.6.21 + svorak (Swedish dvorak) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Angrybob Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/35621032241461d1e2f77c.gif)
Joined: 19 Apr 2003 Posts: 575
|
Posted: Sat Feb 25, 2006 2:35 pm Post subject: |
|
|
Sachankara wrote: | Angrybob wrote: | it seems to think it will take over ten hours?!?!?! I hope thats wrong because that's just crap | Change the default sync value by changing this: Code: | /proc/sys/dev/raid/speed_limit_min | For example: Code: | echo 30000 > /proc/sys/dev/raid/speed_limit_min | This will result in a sync speed of ~30 MiB/s... |
oh ok... but is it safe to do that while it's already running? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Sachankara l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/20654153364410b1c04b571.png)
Joined: 11 Jun 2004 Posts: 696 Location: Stockholm, Sweden
|
Posted: Sat Feb 25, 2006 2:36 pm Post subject: |
|
|
Yep, it's quite "dynamic"... ![Smile :)](images/smiles/icon_smile.gif) _________________ Gentoo Hardened Linux 2.6.21 + svorak (Swedish dvorak) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Angrybob Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/35621032241461d1e2f77c.gif)
Joined: 19 Apr 2003 Posts: 575
|
Posted: Sat Feb 25, 2006 2:41 pm Post subject: |
|
|
hmm... tried setting both min and max very high but the speed hasn't changed at all, still only 20% done and 8 hours to go ![Sad :(](images/smiles/icon_sad.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Sachankara l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/20654153364410b1c04b571.png)
Joined: 11 Jun 2004 Posts: 696 Location: Stockholm, Sweden
|
Posted: Sat Feb 25, 2006 2:43 pm Post subject: |
|
|
Hmm... What does "cat /proc/mdstat" say? Maybe your hardware is already at its peak performance and it's impossible to get it faster without new hardware...
Keep speed_limit_max at 200000 (which is the default). _________________ Gentoo Hardened Linux 2.6.21 + svorak (Swedish dvorak) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Angrybob Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/35621032241461d1e2f77c.gif)
Joined: 19 Apr 2003 Posts: 575
|
Posted: Sat Feb 25, 2006 2:48 pm Post subject: |
|
|
Code: |
Personalities : [raid5]
unused devices: <none>
|
also, not sure if this is relevant but if i run top i can see evmsgui using about 30% cpu but i dont see anything like md_raid running, and I'm pretty sure that last night when i initially setup the raid there was some kernel md_raid thing running and using cpu.
evmsgui says "Expanding raid5 region md/md0" in its status bar so I'm guessing its doing something useful ..... |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Angrybob Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/35621032241461d1e2f77c.gif)
Joined: 19 Apr 2003 Posts: 575
|
Posted: Sat Feb 25, 2006 2:51 pm Post subject: |
|
|
the computer is an athlon xp 2400 with a gig of ram... not great but i would have thought it would be a bit quicker than this |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Angrybob Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/35621032241461d1e2f77c.gif)
Joined: 19 Apr 2003 Posts: 575
|
Posted: Sat Feb 25, 2006 11:40 pm Post subject: |
|
|
ok after 10 hours of evms gui supposedly expanding my raid array it finally finished, and now when i look at /proc/mdstat i see that the real work is being done..... what the hell was evms gui doing all that time??!?!?!?!?!?!
Code: |
Personalities : [raid5]
md0 : active raid5 dm-5[3] dm-2[2] dm-1[1] dm-0[0]
586063872 blocks level 5, 4096k chunk, algorithm 0 [4/4] [UUUU]
[>....................] resync = 2.4% (4779840/195354624) finish=147.0min speed=21603K/sec
unused devices: <none>
|
is evmsgui just broken? should i stick to the commandline tools or what?!.... now that I've expanded the md5 region I'll need to expand the lvm2 region and the ext3 fs on top of that... hopefully that wont take 10 hourse as well |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
thyrihad n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/4000038383eef2841c9626.gif)
Joined: 17 Jun 2003 Posts: 45
|
Posted: Fri Mar 31, 2006 1:08 pm Post subject: |
|
|
Expanding a RAID5 array is complex and requires mass moving of data and resizing of filesystems.
EVMS spent 10 hours doing that. Your RAID subsystem decided a re-sync was called for after EVMS was done.
By the way, you don't need MD kernel support for RAID volumes if you use EVMS. EVMS has it's own RAID support - maybe you will get faster expansion performance when using it. Remove CONFIG_BLK_DEV_MD from your kernel to use it. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
bilan n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 21 Jul 2003 Posts: 17
|
Posted: Mon Sep 18, 2006 1:05 pm Post subject: |
|
|
Thyrihad did u sucess adding active or spare disk ?
I created a 2-disks mirroring raid and a 3-disks raid5.
When I click "enter" on md/md0 disk it it propose me to add spare or active object. But not when I click on the raid5 md/md1
I did not create any volume, and no fs at all, at the moment.
Please, help me. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|