LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices

Reply
 
LinkBack Search this Thread
Old 03-21-2009, 12:04 PM   #1
dadevilx
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:
Code:
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
mesiol
Member
 
Registered: Nov 2008
Location: Lower Saxony, Germany
Distribution: CentOS, RHEL, Solaris 10, AIX, HP-UX
Posts: 731

Rep: Reputation: 137Reputation: 137
Hi,

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.
 
  


Reply

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


All times are GMT -5. The time now is 07:09 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 Google+: linuxquestions
Open Source Consulting | Domain Registration