Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 03-21-2009, 12:04 PM   #1
LQ Newbie
Registered: Mar 2009
Distribution: debian, ubuntu
Posts: 1

Rep: Reputation: 0
Resizing/growing RAID partition

My RAID-5 array consists of the first partition of 4 identical disks and is formatted as XFS (no LVM). This array is running out of space and I'm trying to resize it. The disks all have 2 partitions on them (md0 for the first partition and md1 for the second).

This is what one of my disks look like:
Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sdd1               1       97281   781409601   fd  Linux raid autodetect
/dev/sdd2           97282      121601   195350400   fd  Linux raid autodetect

Basically I want to grow the first partition and shrink (or delete and add probably) the second, which can be deleted if necessary. However, I haven't found any method of growing the first partition. Is it even possible? (without rebuilding the array 4 times)?
Old 03-22-2009, 02:41 AM   #2
Registered: Nov 2008
Location: Lower Saxony, Germany
Distribution: CentOS, RHEL, Solaris 10, AIX, HP-UX
Posts: 731

Rep: Reputation: 137Reputation: 137

from my point of view there is no secure way to resize your partitions without the risk of data loss. The problem is, that your RAID has checksum information distributed over all disks, so i'm not sure if they will get corrupted when doing changes on partition level.

The secure way will be:

- create a fullbackup (or better two)
- recreate the RAID with new disks
- add LVM on top of RAID to prevent from the same problem in future

Yes i know there are dozens of tools for resizing and repartitioning, but the all have a risk to loose data and they are made to resize physical OS partitions and not RAID partitions.


partition, raid, resize

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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Growing a RAID 1+0 configuration nibbiodagliocchiali Linux - Server 3 06-04-2008 01:31 AM
Need help growing partition wslyhbb Linux - General 5 01-24-2008 03:55 PM
LXer: Growing a Linux Software RAID 5 completely online LXer Syndicated Linux News 0 07-12-2007 04:01 PM
Automatic recoginiton of new hard drives and growing in new space in raid array lewt Linux - Hardware 0 05-31-2006 11:29 PM
Simple question: Growing an ext2 partition dogsbody Slackware 4 08-16-2004 10:41 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:18 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration