Hello, recently I worked about RAID (soft Raid), I use mdadm command. There are some questions, for example:
1, I make a RAID named /dev/md0.
mdadm -C -v /dev/md0 -l1 -n2 -x1 /dev/hda1 /dev/hdb1 /dev/hdc1
2, Then I stop it.
mdadm -S /dev/md0
3, Then I make another RAID also named /dev/md0, and I can do it.
mdadm -C -v /dev/md0 -l0 -n2 /dev/hda2 /dev/hdb2
4, Then I use "/dev/hda1 /dev/hdb1 /dev/hdc1" which belong the old md0 be stopped to make a new RAID named /dev/md1. I can do it, but just I need say "yes".
localhost:~/mkraid # mdadm -C -v /dev/md1 -l1 -n2 -x1 /dev/hda1 /dev/hdb1 /dev/hdc1
mdadm: layout defaults to left-symmetric
mdadm: chunk size defaults to 64K
mdadm: /dev/hda1 appears to be part of a raid array:
level=raid1 devices=2 ctime=Wed Sep 8 09:08:47 2010
mdadm: /dev/hdb1 appears to be part of a raid array:
level=raid5 devices=2 ctime=Wed Sep 8 09:08:47 2010
mdadm: /dev/hdc1 appears to be part of a raid array:
level=raid5 devices=2 ctime=Wed Sep 8 09:08:47 2010
mdadm: size set to 97216K
Continue creating array? yes
mdadm: array /dev/md1 started.
One:
I hope to know, I made new RAID named same as an old RAID be stopped, and used devices belong to the old RAID be stopped like what I said above. Is it allright? There are any affect? How could I deal with the old RAID be stopped except active it?
Two:
I am writing a program and I need to get the message of old partition has exist. I don't know how to deal with the message of old be stopped RAID. Don't touch it just show it has been stopped wait for deal later or don't care about it just deal it as the devices which can be used as usual?
Thank you very much for your help.