I tried it
Created three partitions:
/dev/sda6 636 648 104391 fd Linux raid autodetect
/dev/sda7 649 661 104391 fd Linux raid autodetect
/dev/sda8 662 674 104391 fd Linux raid autodetect
2 of them I have put in a raid1:
mdadm --create /dev/md1 --level=1 --raid-devices=2 /dev/sda6 /dev/sda7
Created fs:
mkfs.ext3 /dev/md1
Mounted:
mount /dev/md1 /mnt
Created a file:
touch /mnt/file1
Removed one disk from raid array:
mdadm /dev/md1 -f /dev/sda7
mdadm /dev/md1 -r /dev/sda7
Created a new file:
touch /mnt/file2
Unmounting fs:
umount /mnt
Removing the second "disk" (which has actually 2 files on the filesystem):
mdadm /dev/md0 -f /dev/sda6
mdadm /dev/md0 -r /dev/sda6
If this does not work use:
mdadm --stop /dev/md0
Assembling the disk again with the /dev/sda7 (which had been removed first and has only 1 file):
mdadm --assemble /dev/md0 /dev/sda7
I got this message: mdadm: /dev/md0 assembled from 1 drive - need all 2 to start it (use --run to insist).
mdadm --run /dev/md0
Now I can mount /dev/md0 again and only one file is there: file1.
This shows what you where wondering about
Lets add the first again:
mdadm /dev/md0 -a /dev/sda6
When looking in the mounted fs on /mnt:
file1
This should save your config to a file:
sudo mdadm --detail --scan | sudo tee -a /etc/mdadm.conf
Do note that you there might be some specifics to your NAS.
Hi five