Hi Sheng,
On 10/29/2015 7:01 AM, Sheng Yang wrote:
On Wed, Oct 28, 2015 at 2:40 PM, Sheng Yang <sheng@xxxxxxxxxx> wrote:
On Wed, Oct 28, 2015 at 12:56 PM, Dragan Milivojević
<galileo@xxxxxxxxxxx> wrote:
mdadm --create /dev/md/device-123 --verbose --level=mirror
--raid-devices=2 /dev/loop0 /dev/loop1
[root@eos ~]# ll /dev/md/device-123
lrwxrwxrwx 1 root root 8 Oct 28 20:53 /dev/md/device-123 -> ../md127
[root@eos ~]# mdadm --detail --scan
ARRAY /dev/md/device-123 metadata=1.2 name=device-123
UUID=03ba5df7:7c5cc933:367e19ef:384665c5
Thank Dragan! It works!
Seems it's mdadm itself create the link rather than do through kernel,
which gave me a little trouble. :D
Hi Dragan,
One more question if you don't mind:
When you do
mdadm --stop /dev/md/device-123
Would mdadm remove the broken link file /dev/md/device-123 automatically?
I found I have to remove the link file manually later...
You stopped the array. You might want to assemble it once again saying
mdadm --assemble /dev/md/device-123 /dev/loop0 /dev/loop1
Then, it would just create a new /dev/md*number* and create the link
with /dev/md/device-123.
This is my logical thought, havent looked at the mdadm code though to
confirm this.
Regards
Anugraha
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html