LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
LinkBack Search this Thread
Old 06-02-2008, 09:03 AM   #1
nibbiodagliocchiali
LQ Newbie
 
Registered: Jun 2008
Posts: 3

Rep: Reputation: 0
Growing a RAID 1+0 configuration


Hi

I'd like to assemble a home file server based on Kubuntu with software RAID (using mdadm command)


Operating system on disk (/boot, /var, /home, /swap and so on..)

/dev/sda


Storage space, formatted with XFS filesystem, composed by a RAID 1+0 as follows
(here I assume only a single disk is attached to any SATA port, for reliability reasons)

Code:
               RAID 0
                   md2
                    |
     /---------------
     |              |            
   RAID 1         RAID 1        
    md0             md1           
  /------\       /------\       
  |      |       |      |       
500GB  500GB   500GB  500GB   
 sdc    sdd     sde    sdf

Now my doubt:

Ok, imagine a scenario such that after some time I implemented the above, I would like to add another RAID 1 with the aim of making more room available at the top level md2.
At this stage I would like to reach the following situation, without losing or having to backup somewhere else the data
already stored by the RAID array

Code:
           RAID 0
                   md2
                    |
     /-----------------------------\
     |              |              |
   RAID 1         RAID 1         RAID 1
    md0             md1            md3
  /------\       /------\       /------\
  |      |       |      |       |      |
500GB  500GB   500GB  500GB   500GB  500GB 
 sdc    sdd    sde    sdf      sdg    sdh

A similar question has already been answered, however I'd like not to split (if possible) my RAID as suggested here:

http://www.linuxquestions.org/questi...highlight=RAID


Instead, can anyone of you guys confirm the following is possible?

1. create RAID 1 of the two newly installed sata disks and call it md3
Code:
	mknod /dev/md3 b 9 1
	mdadm --create /dev/md3 --level=1 --raid-devices=2 /dev/sd[gh]
	mke2fs -j /dev/md3

2. add md3 to md2.... Data already stored on md2 should remain safe at all times and available storage space reported by md2 should expand by a further 500GB seamlessly....... am I correct????
Code:
 	mdadm --add /dev/md2 /dev/md3

Any comments are really welcome!

Cheers

Last edited by nibbiodagliocchiali; 06-02-2008 at 09:13 AM.
 
Old 06-03-2008, 06:49 AM   #2
ChrisAbela
Member
 
Registered: Mar 2008
Location: Malta
Distribution: Slackware 13.37
Posts: 382

Rep: Reputation: 74
I am not sure why you are asking these questions. Did you try it out before posting this question?
 
Old 06-03-2008, 05:25 PM   #3
nibbiodagliocchiali
LQ Newbie
 
Registered: Jun 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by ChrisAbela View Post
I am not sure why you are asking these questions. Did you try it out before posting this question?

yes, you are right, I should have explained why I am asking these questions.

Basically I would like to build a home storage server, but I'd like to check that the above proposed solution is feasible/likely to work before start buying motherboard, memory, hard drives, power supply and chassis

In other words I'm seeking opinion of experienced linux users before buying all the hardware (and spending around 1000 Euros), only to discover that maybe my understanding was wrong and no, sorry you can't do that...

Cheers
 
Old 06-04-2008, 01:31 AM   #4
ChrisAbela
Member
 
Registered: Mar 2008
Location: Malta
Distribution: Slackware 13.37
Posts: 382

Rep: Reputation: 74
You do not need your server to try it out. You only need any Linux Box. I hope that I am not insulting your intelligence if I were to tell you that you may create a RAID on partitions of the same disk (for experimental purposes only). Even a Live CD will do, the only hardware you need is any Computer, a Live CD and a disposable Partition.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Growing a Linux Software RAID 5 completely online LXer Syndicated Linux News 0 07-12-2007 04:01 PM
X utilaziion is growing and growing amirb Linux - Desktop 2 05-28-2007 03:55 AM
raid 5 configuration Eppo Linux - Software 1 05-16-2007 10:05 AM
Automatic recoginiton of new hard drives and growing in new space in raid array lewt Linux - Hardware 0 05-31-2006 11:29 PM
Can this be done (raid configuration) RaceTM Linux - Hardware 8 03-04-2004 07:56 AM


All times are GMT -5. The time now is 04:55 PM.

Main Menu
 
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
Open Source Consulting | Domain Registration