LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 02-14-2010, 03:50 AM   #1
jeyno
LQ Newbie
 
Registered: Feb 2010
Posts: 1

Rep: Reputation: 0
How to reduce RAID5 partition sizes


I have a rack of four 1TB drives all partitioned identically with three primary partitions. On each drive
- the first partition is only 64MB;
- the second is a large 900GB partition and
- the last holds all the remaining space

mdadm has been used to set up
/dev/md0 - RAID1, comprised of /dev/sda1 and /dev/sdb1
/dev/md1 - RAID5, comprised of /dev/sda2, /dev/sdb2, /dev/sdc2, /dev/sdd2
/dev/md2 - RAID5, comprised of /dev/sda3, /dev/sdb3, /dev/sdc3, /dev/sdd3

OK, so it was a silly mistake to make - but I am now need to increase the size of /dev/md0. My thinking is to reduce the size of md1 so that I can grow md0.

On md1 I have two logical volumes. I've successfully reduced the size of the volume so that I can reduce the size of md1. Now I'm at the nervous stage; I can find little written on the topic of shrinking RAID5 arrays - and even if I do this I'm unsure if I can move partitions around to regain the space I so desire.

Please I wonder if any of you can offer me some advice.
 
Old 02-14-2010, 05:16 AM   #2
hostmaster
Member
 
Registered: Feb 2007
Posts: 55

Rep: Reputation: 17
I don't think so its possible to reduce the size of RAID5 as data is distributed on all partitions and one partition can not ejected from the RAID volume, but one safe solution is to backup the 64 MB partition and then add /dev/md0 to the volume group you have already created (/dev/md1) and then create a new logical volume with the remaining space in your VG.
 
  


Reply



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
MDADM RAID5 coversion to RAID6 and drive sizes. kripz Linux - Server 2 12-03-2009 06:33 AM
How to reduce sizes of desktop icons/items? concoran Linux - Newbie 4 03-21-2008 02:48 AM
How to reduce LVM partition ^ Guillaume777 Linux - Software 1 08-27-2007 05:01 AM
Reduce LV -> Partition table corrupt dubya Fedora 5 06-17-2005 10:35 PM
can I reduce the partition for Suse? Saulo Linux - Distributions 4 06-06-2003 11:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:08 AM.

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