LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 10-14-2006, 03:46 PM   #1
crofty13
LQ Newbie
 
Registered: Feb 2005
Location: Thailand
Posts: 28

Rep: Reputation: 15
Expanding a Raid 1


I created my raid 1 array using a kickstart script. Unfortunatley I set the size of the disks to 500GB instead of 750Gb.

Is there a way to expand a 500Gb Raid 1 to 750Gb?

I tried removing them one by one and expanding the partitions but when I add them back and run;

mdadm /dev/md0 --grow size=MAX

but it has no effect.

Anyone has this problem?
 
Old 10-14-2006, 04:18 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,397

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
can you give more details about your disks please? raid1 is a mirror, so you have two disks and have the same on both. what do you expect to expand this with?
 
Old 10-14-2006, 04:44 PM   #3
crofty13
LQ Newbie
 
Registered: Feb 2005
Location: Thailand
Posts: 28

Original Poster
Rep: Reputation: 15
Thumbs down

I have two 750GB Drives with the following setup:


sda::
sda1 500GB /
sda2 100mb /boot
sda3 1GB Swap
249GB free space

sdb::
sdb2 500GB /
250GB free space

sda1 and sdb1 are in raid 1 formation on /dev/md0 and holds all the server data that I need to keep.

I simply want to add the remaining 249GB to the RAID which is currently not being used as I inititally setup the raid with the wrong sizes.
 
Old 10-15-2006, 02:59 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,397

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
you're running a 500GB root partition? that's just awful... you really really should look at changing your partitioning layout. personally i'd sugegst reinstalling and partitioning more sensibly. now 750GB of space is presumably for video's and other large media right? that has absolutely no place in the same partition as your core operating system. keep / seperate from /var/my_documents as it were... if you want to keep these files in your /home than making /home 750GB is fine too at a push, but you'll come unstuck sooner or later with a system like that. at the very least change it to this:

sda1 - 100GB /boot
sda2 - 10GB /
sda3 - 1gb swap
sda4 - 740GB /home or /var/share or something

sdb1 - 740GB /home

i would also look at possibly using that asymetric space that md0 can't use as maybe an area to keep a direct copy of /boot and maybe a raid1 version of / seperately...
 
Old 10-15-2006, 03:51 AM   #5
crofty13
LQ Newbie
 
Registered: Feb 2005
Location: Thailand
Posts: 28

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by acid_kewpie
you're running a 500GB root partition? that's just awful... you really really should look at changing your partitioning layout. personally i'd sugegst reinstalling and partitioning more sensibly. now 750GB of space is presumably for video's and other large media right? that has absolutely no place in the same partition as your core operating system. keep / seperate from /var/my_documents as it were... if you want to keep these files in your /home than making /home 750GB is fine too at a push, but you'll come unstuck sooner or later with a system like that. at the very least change it to this:

sda1 - 100GB /boot
sda2 - 10GB /
sda3 - 1gb swap
sda4 - 740GB /home or /var/share or something

sdb1 - 740GB /home

i would also look at possibly using that asymetric space that md0 can't use as maybe an area to keep a direct copy of /boot and maybe a raid1 version of / seperately...
Ok I am going to setup my partitions like so:

sda1 - 100MB /boot
sda2 - 10GB /
sda3 - 1GB swap
sda4 - 740 /DATA (this is where I keep all my movies, linux installs etc.)

I am still confused at how I can resize the RAID 1 on MD0 or can I not? would I have to delete all the data and start again as I cannot loose the data on this drive.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Expanding my experiance Michael_aust Linux - Newbie 5 06-15-2006 07:16 PM
Help Expanding RAID 4 or 5? bydgoszcz Linux - General 0 06-08-2006 03:23 PM
RHEL 3: Steps of expanding file system (add new SCSI disks) to existing SW RAID & LVM atman1974 Linux - General 2 01-12-2006 09:49 PM
expanding / michael_mead Linux - General 3 09-03-2003 02:22 PM
Expanding a partition echid Linux - General 1 08-12-2002 10:21 AM


All times are GMT -5. The time now is 10:34 AM.

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 Google+: linuxquestions
Open Source Consulting | Domain Registration