Re: add disk/partition to softRaid5
From: John-Paul Stewart (jpstewart_at_binaryfoundry.ca)
Date: 05/21/05
- Next message: Peter T. Breuer: "Re: News reader for FC3"
- Previous message: ray: "Re: Windows Succeeds where Linux fails."
- In reply to: Carsten Menke: "add disk/partition to softRaid5"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 21 May 2005 10:51:20 -0400
Carsten Menke wrote:
> Hi there,
>
> I am trying to add a partition to a 3 disk RAID5 device by using
> raidreconf and after the procedure which I describe below the filesystem
> is in a complete mess and e2fsck crashes with a segmentation fault and
> up to now I do nit figure out what I am doing wrong.
[snip]
> #!/bin/sh
> umount /mnt/raid
> raidstop /dev/md0
> cp -f /etc/raidtab1 /etc/raidtab
> fdisk /dev/sdc <myraid.fdisk
> mkraid -R /dev/md0
> raidstart /dev/md0
> sleep 5
> cat /proc/mdstat
> while grep = /proc/mdstat ; do
> sleep 2
> done
> cat /proc/mdstat
> mkfs -t ext3 /dev/md0
> mount /dev/md0 /mnt/raid
> cp /var/tmp/dump/* /mnt/raid
> umount /mnt/raid
> fsck -f /dev/md0
> raidstop /dev/md0
> cp -f /etc/raidtab /etc/raidtab.old
> cp -f /etc/raidtab.new /etc/raidtab
> raidreconf -o /etc/raidtab.old -n /etc/raidtab -m /dev/md0
> sleep 2
> cat /proc/mdstat
> while grep = /proc/mdstat ; do
> sleep 2
> done
> cat /proc/mdstat
OK. After you did the raidreconf command, if it worked, you'd then have
a larger array, but the ext3 filesystem on it is still the same size as
before. At a minimum, I expect you'll need to re-size the filesystem to
match the size of the new array. See the manpage for resize2fs for details.
Please also note the warnings in the raidreconf manpage. Resizing the
filesystem is no guarantee that things will work out either. From what
I've read about resizing software RAID-5 arrays, I wouldn't be too
surprised if this doesn't work out at all.
- Next message: Peter T. Breuer: "Re: News reader for FC3"
- Previous message: ray: "Re: Windows Succeeds where Linux fails."
- In reply to: Carsten Menke: "add disk/partition to softRaid5"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|