xfs
[Top] [All Lists]

Success with software RAID5 / XFS resizing

To: linux-xfs <linux-xfs@xxxxxxxxxxx>
Subject: Success with software RAID5 / XFS resizing
From: Simon Matter <simon.matter@xxxxxxxxxxxxxxxx>
Date: Tue, 04 Mar 2003 10:07:47 +0100
Organization: Sauter AG, Basel
Sender: linux-xfs-bounce@xxxxxxxxxxx
First I want to thank everybody involved with XFS development for the
ongoing effort producing a really high quality filesystem for Linux!

I have successfully upgraded my home server from 4x15G disks to 4x60G. I
was afraid first but everything went so easy that I wanted to let other
people know how I did it.
Word of WARNING: Doing backups is strongly recommended!! This has worked
for me, YMMV!!
Here we go:

The four 15G disks were partitioned with several small partitions for
system on RAID1 and one big partition for /home on RAID5 with external
v1 log on a RAID1. The RAID5 consisted of four 11G partitions located
'at the end' of each disk, resulting in a ~33G RAID5 volume. I have now
replaced disk1, partitioned the new disk, and did a raidhotadd for every
partition. After all volumes were synced, I replaced the same steps for
disk 2-4. Now I had all disks replaced but with the same RAID and XFS
volumes on it. Now I did

umount /home
xfs_check /dev/md8
raidstop /dev/md8

Then I used fdisk to delete the 11G partition on every disk and replaced
it with a new partition with the full size but the same starting point.
A reboot ensured that all partition tables were reread. (Note: one must
_not_ change the chunk size or anything else in /etc/raidtab at this
point!!) Now I simply did the following:

mkraid /dev/md8
mount /home
xfs_growfs /home

and voila, /home is now 168G in size with all data in place!

Simon


<Prev in Thread] Current Thread [Next in Thread>
  • Success with software RAID5 / XFS resizing, Simon Matter <=