Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to grow a RAID array for increased partition size ?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
doublehp
Guru
Guru


Joined: 11 Apr 2005
Posts: 473
Location: FRANCE

PostPosted: Sun Sep 14, 2008 2:36 pm    Post subject: How to grow a RAID array for increased partition size ? Reply with quote

I have two disks hda and hdc, with many partitions. At the moment, md9 is hda9+hdc9 in RAID1.

I managed to make room after hda and hdc. So, i now can increase the size of partitions, then size of array, then filesystem. Thats ok. Filesystem is offtopic. All operations are performed on offline filesystem, but on online volumes (system does boot on hda, and / is on hda7; may require reboot to make kernel understand new size of hda9 after grow).

I have two problems:
- take care or growing the partition
- how to resize the array

1: I know that array infos are stored at the end of the volume; using fdisk to change the end sector of the partition is not a problem; but, as i will do this, i fear the RAID driver will be mistaken about the location of the table: if i move the "last sector", the driver is likely to look for descriptor "too far". I wonder how i can resize the partition without breaking any info about the slice.

2: after this, i will need to use mdadm to use the full size of partitions. And i have no clue how to do this. Because I am in a very specific and rare case where i grow the size of the volumes themselves ! and this is not a typical case we find in tutos.

Anyone can help ?
_________________
DEMAINE Benoît-Pierre (aka DoubleHP ) http://www.demaine.info/
>o_/ Coin coin coin \_o<
to contact me (MSN,ICQ, JABBER, Skype ... ) http://benoit.demaine.info/contact.png
Back to top
View user's profile Send private message
doublehp
Guru
Guru


Joined: 11 Apr 2005
Posts: 473
Location: FRANCE

PostPosted: Sun Sep 14, 2008 2:50 pm    Post subject: Oups Reply with quote

Errata: the free space is BEFORE hda9 ... i am not going to move the end of partition, but the beginning.
_________________
DEMAINE Benoît-Pierre (aka DoubleHP ) http://www.demaine.info/
>o_/ Coin coin coin \_o<
to contact me (MSN,ICQ, JABBER, Skype ... ) http://benoit.demaine.info/contact.png
Back to top
View user's profile Send private message
doublehp
Guru
Guru


Joined: 11 Apr 2005
Posts: 473
Location: FRANCE

PostPosted: Wed Sep 17, 2008 9:50 am    Post subject: Reply with quote

up :/
_________________
DEMAINE Benoît-Pierre (aka DoubleHP ) http://www.demaine.info/
>o_/ Coin coin coin \_o<
to contact me (MSN,ICQ, JABBER, Skype ... ) http://benoit.demaine.info/contact.png
Back to top
View user's profile Send private message
fangorn
Veteran
Veteran


Joined: 31 Jul 2004
Posts: 1886

PostPosted: Wed Sep 17, 2008 12:09 pm    Post subject: Reply with quote

It is a RAID1, so no problem with redundancy.

Just deactivate the RAID, resize the partition on one disk, see if it changes the partition number because of deleted partition(s) before it, resize and check the filesystem, if it is ok, resize the partition on the second drive, adjust your RAID config if necessary mark disk2 as dirty and rebuild the RAID1 from disk 1 to disk 2.
_________________
Video Encoding scripts collection | Project page
Back to top
View user's profile Send private message
doublehp
Guru
Guru


Joined: 11 Apr 2005
Posts: 473
Location: FRANCE

PostPosted: Wed Sep 17, 2008 12:20 pm    Post subject: Reply with quote

What about if the RAID zone contains informations about size ? then mdadm will just see that the volume is bigger than it should => unpredictable behaviour ...
_________________
DEMAINE Benoît-Pierre (aka DoubleHP ) http://www.demaine.info/
>o_/ Coin coin coin \_o<
to contact me (MSN,ICQ, JABBER, Skype ... ) http://benoit.demaine.info/contact.png
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum