In this example, md3 is the old array and md4 was created to be the new array. We’ve moved the data over to md4 already and now we want to rename md4 to be md3 from this point forward.
First, remove md3 completely (after dismounting the filesystem):
1 2 | mdadm --stop /dev/md3 mdadm --remove /dev/md3 |
3 4 | mdadm --stop /dev/md4 mdadm --assemble /dev/md3 /dev/sd[abcdefghijk]1 --update=name |
Backup /etc/mdadm.conf and then update it with new info:
mdadm --examine --scan > /etc/mdadm.conf
Check detailed status of raid:
mdadm --detail /dev/md3
Update /etc/fstab to point to correct disk and mount point
Another good example can be found on: http://www.cyberciti.biz/faq/linux-server-rename-an-mdadm-raid-array/
No comments:
Post a Comment