LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 11-21-2010, 10:30 AM   #1
DaRkBoDoM
Member
 
Registered: Oct 2007
Location: Italy
Distribution: Ubuntu
Posts: 84

Rep: Reputation: 17
Unable to resize software raid


Hi!

I have a software raid5 device that spawns across 4 sata drives:
Code:
root@transylvania:~ 0 986# cat /proc/mdstat | grep -b 1 md8
md8 : active raid5 sdf1[4] sde1[3] sdd1[1] sdc1[0]
      1757831936 blocks super 1.2 level 5, 64k chunk, algorithm 2 [4/4] [UUUU]
Those devices are equally partitioned:
Code:
root@transylvania:~ 0 987# fdisk -l /dev/sdc

Disco /dev/sdc: 1000.2 GB, 1000204886016 byte
255 testine, 63 settori/tracce, 121601 cilindri
Unità = cilindri di 16065 * 512 = 8225280 byte
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Identificativo disco: 0xb96f03c6

Dispositivo Boot      Start         End      Blocks   Id  System
/dev/sdc1               1      121500   975948718+  fd  Autorilevamento raid di Linux
/dev/sdc2          121501      121601      811282+   0  Vuoto
I've recently changed the size of partition 1 of every disk, growing it of about 100GB: now the problem is that I'm unable to grow my raid md8 partition too.

The size of the four phisical partitions is 975948718:
Code:
root@transylvania:~ 130 990# cat /proc/partitions | grep 'sd[c|d|e|f]1'
   8       33  975948718 sdc1
   8       49  975948718 sdd1
   8       65  975948718 sde1
   8       81  975948718 sdf1
while the size of the raid device is
Code:
root@transylvania:~ 0 991# cat /sys/class/block/md8/size
3515663872
I was expecting 975948718 * 4 = 3903794872 instead.

May you please help me recover those about 400Gb of "lost" space?

Thank you
 
Old 11-21-2010, 02:05 PM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
Expanding existing partitions in software RAID arrays.
 
Old 11-21-2010, 07:44 PM   #3
DaRkBoDoM
Member
 
Registered: Oct 2007
Location: Italy
Distribution: Ubuntu
Posts: 84

Original Poster
Rep: Reputation: 17
I'm following your advice.

It will take about 2 days to complete.
 
Old 11-23-2010, 01:40 PM   #4
DaRkBoDoM
Member
 
Registered: Oct 2007
Location: Italy
Distribution: Ubuntu
Posts: 84

Original Poster
Rep: Reputation: 17
It worked! Thank you!
 
  


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
how to resize software RAID partitions? garydale Linux - Server 3 08-25-2009 02:34 PM
LXer: How To Resize RAID Partitions (Shrink & Grow) (Software RAID) LXer Syndicated Linux News 1 05-01-2009 12:02 PM
Adding an old software-RAID array to a software-RAID installation.. Boot problems GarethM Linux - Hardware 2 05-05-2008 03:16 PM
Software RAID-1 unable to boot degraded keithk23 Linux - Server 2 09-27-2006 08:52 AM
Unable to boot dump / restore from software raid jkotran Linux - General 0 01-12-2005 05:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:31 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