I've a Linux PC running as fileserver. It has a software RAID1 array /dev/md0 mounted to /home which is then shared using NFS and Samba.
Now I want to move the /home from a 1TB array to a 2TB one.
- I created a new RAID1 from two 2TB drives at /dev/md1. I mounted it temporary to /media/md1.
- It's now using "rsync -a -v /home/ /media/md1/" to copy all the contents over to the new array.
The /etc/mdadm/mdadm.conf looks like this at the moment:
When the new array is synchronized and the data copy is completed, is it then as simple as removing the /dev/md0 line and modify the new one to "ARRAY /dev/md0 uuid=f64ba8cf:ce3238dd:230e0090:6fefa703", shutdown the server, remove the drives of the old 1TB array and boot it up so the new array will become /dev/md0?
The mounting line in /etc/fstab is
so if the new array can become /dev/md0 it will work without more modifications?
Now I want to move the /home from a 1TB array to a 2TB one.
- I created a new RAID1 from two 2TB drives at /dev/md1. I mounted it temporary to /media/md1.
- It's now using "rsync -a -v /home/ /media/md1/" to copy all the contents over to the new array.
The /etc/mdadm/mdadm.conf looks like this at the moment:
Code:
CREATE owner=root group=disk mode=0660 auto=yes
# automatically tag new arrays as belonging to the local system
HOMEHOST <system>
# instruct the monitoring daemon where to send mail alerts
MAILADDR root
# definitions of existing MD arrays
ARRAY /dev/md0 UUID=b14e84da:d006a11e:111cb762:714df31f
ARRAY /dev/md1 uuid=f64ba8cf:ce3238dd:230e0090:6fefa703
When the new array is synchronized and the data copy is completed, is it then as simple as removing the /dev/md0 line and modify the new one to "ARRAY /dev/md0 uuid=f64ba8cf:ce3238dd:230e0090:6fefa703", shutdown the server, remove the drives of the old 1TB array and boot it up so the new array will become /dev/md0?
The mounting line in /etc/fstab is
Code:
/dev/md0 /home auto defaults 0 0