what use is it if one disk fails… and half of the swap area goes lost and you can not resync the disks because some system-processes are failing….
# switch off swap space swapoff -a # check out what software raid to switch off cat /etc/mdadm/mdadm.conf # switch it off mdadm --stop /dev/md/2 # remove it mdadm --remove /dev/md2 mdadm --zero-superblock /dev/sda5 mdadm --zero-superblock /dev/sdb5 # recreate it mdadm --create /dev/md/2 --level=1 --raid-devices=2 /dev/sda5 /dev/sdb5 # save config mdadm --detail --scan >> /etc/mdadm/mdadm.conf # reactivate swap space mkswap /dev/md/2 swapon /dev/md/2 # Watch them resync and wait until complete. watch cat /proc/mdstat
- only together we can create a truly free world
- plz support dwaves to keep it up & running!
- (yes the info on the internet is (mostly) free but beer is still not free (still have to work on that))
- really really hate advertisement
- contribute: whenever a solution was found, blog about it for others to find!
- talk about, recommend & link to this blog and articles
- thanks to all who contribute!