Submirrors swapped after metattach

We had few mirror disks e.g

d0 had two submirrors
Submirror 0: d2
Submirror 1: d1

I opened mirrors for some activity.
by command

 metadetach d0 d2

After activity I reattach mirrors with command

	metattach d0 d2

But after that strangely sumirror position is swaped

d0 had two submirrors
Submirror 0: d1
Submirror 1: d2

I need to know why submirror position has changed?
Will it impact anything?

Attached is metastat output before and after

You detached c0t4d0s0 and attached also same device. So as far as it is pointing to same device, things should be alright. No need to worry

1 Like

Previously d0 had

d2 - 1st submirror
d1 - 2nd submirror

But when you detached d2 from d0, d1 became the 1st submirror.

When you reattached d2 to d0 later, it has to become 2nd submirror since d1 is already 1st.

It won't impact anything since after reattach d2 will be synced with d1.

Hope this helps.

Regards,
Vishal

1 Like

Bundle of Thanks Vishal Aswani and solaris_1977.