Hi b1gnas,
ok, so now all seems to be ok except for the controller issue (we will see this point later)
to include a new member in a raid, you need to do this sequence,
- first, I'd rather you work with the raid umounted (we go to resize its fs)
- Code: Select all
umount /dev/md0
Note: fvdw content is now no longer available
- Unmount sda8
- Code: Select all
umount /dev/sda8
- Change the fs type on sda8 fd instead of 83 (use fdisk and the command you well known now ;) )
fdisk /dev/sda -> t -> 8 -> fd ->w
- To add the 5th disk, after making the raid5 with 4 devices, in a root terminal do :
Note: include only sda8 if all disks are active in the raid5 otherwise mdadm will replace a faulty disk by sda8 and you won't be able to increase the raid (It is the purpose of yesterday step).
*Include the device in the raid array
- Code: Select all
mdadm --manage /dev/md0 --add /dev/sda8
(sda8 is then a spare device)
* Increase the raid size
- Code: Select all
mdadm --grow /dev/md0 --raid-devices=5
Post the outputs of
- Code: Select all
cat /proc/mdstat
mdadm --detail /dev/md0
* extend the file system
- Code: Select all
resize2fs /dev/md0
* save the new raid configuration
- Code: Select all
cat /etc/mdadm.0 > /etc/mdadm.conf
mdadm --detail --scan >> /etc/mdadm.conf
Note: if you included previously sda8 in a raid you need to clear its superblok before adding it. (but this should not be the case as you have reformatted sda- Code: Select all
mdadm --zero-superblock /dev/sda8
Then after rebooting you should have a raid5 with 5 members