Help, mirror detached.

Hiroaki

Cadet
Joined
Sep 22, 2020
Messages
2
Hello,
When I replaced the disk, I made a mistake and detached the mirror.
The new drive can connect to zpool, but I can't make a mirror.

My RAID configuration is as follows.
Stripe (mirror-0 + mirror-1) as RAID0
mirror-0(ada0, ada1) as RAID1
mirror-1(ada2, ada3) as RAID1

this time, I detach "ada1".

FROM
tank
mirror-0
ada0
ada1
mirror-1
ada2
ada3

TO
NAME STATE READ WRITE CKSUM
tank ONLINE 0 0 0
gptid/faa31326-fa5e-11ea-94a4-441ea13b7cf7 ONLINE 0 0 0 block size: 512B configured, 4096B native
mirror-1 ONLINE 0 0 0
ada2 ONLINE 0 0 0 block size: 512B configured, 4096B native
ada3 ONLINE 0 0 0 block size: 512B configured, 4096B native

And, I added new ada1 on CUI.

NAME STATE READ WRITE CKSUM
tank ONLINE 0 0 0
gptid/faa31326-fa5e-11ea-94a4-441ea13b7cf7 ONLINE 0 0 0 block size: 512B configured, 4096B native
mirror-1 ONLINE 0 0 0
ada2 ONLINE 0 0 0 block size: 512B configured, 4096B native
ada3 ONLINE 0 0 0 block size: 512B configured, 4096B native
ada1p1 ONLINE 0 0 0
( I think that gptid/faa31326-fa5e-11ea-94a4-441ea13b7cf7 as ada0.)

I want to mirror ada0 and ada1.
What should I do this case.

Best regard.
 

Attachments

  • スクリーンショット 2020-09-22 22.39.34.png
    スクリーンショット 2020-09-22 22.39.34.png
    539.8 KB · Views: 200

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
You want one pool with 2 mirrored VDEVs (VDEVs within a pool are striped together).

You need to detach ada1 from the 3-way mirror-1 that you now have (or so it seems... you didn't post in code tags, so we can't see if it's indented or not).

If you want to turn your 2 pools into 1, you need to extend the chosen pool with a new mirrored VDEV which you can create in the extend process. This will require losing the contents on the non-chosen pool, so maybe backing it up somewhere first if it won't fit into the chosen existing pool.
 

Hiroaki

Cadet
Joined
Sep 22, 2020
Messages
2
Thank you for your reply. I forgot to use CODE tag ... little bit panicked.

Originally, it was mirror-0 with ada0 and ada1 and mirror-1 with ada2 and ada3, and is striping with mirror-0 and mirror-1.
This time, when I detach ada1, the mirror-0 disappears and ada0 displays "gptid/faa31326-fa5e-11ea-94a4-441ea13b7cf7".
Now all drives from ada0 to ada3 are connect to the pool "tank".
How can I get back to the original configuration?

Code:
[FROM (original)]
tank
    mirror-0
        ada0
        ada1 <-- It needed to be replaced and detached by mistake.
    mirror-1
        ada2
        ada3

[TO]
NAME STATE READ WRITE CKSUM
tank ONLINE 0 0 0
    gptid/faa31326-fa5e-11ea-94a4-441ea13b7cf7 ONLINE 0 0 0 block size: 512B configured, 4096B native
    mirror-1 ONLINE 0 0 0
        ada2 ONLINE 0 0 0 block size: 512B configured, 4096B native
        ada3 ONLINE 0 0 0 block size: 512B configured, 4096B native

[NOW]
NAME STATE READ WRITE CKSUM
tank ONLINE 0 0 0
    gptid/faa31326-fa5e-11ea-94a4-441ea13b7cf7 ONLINE 0 0 0 block size: 512B configured, 4096B native
    mirror-1 ONLINE 0 0 0
        ada2 ONLINE 0 0 0 block size: 512B configured, 4096B native
        ada3 ONLINE 0 0 0 block size: 512B configured, 4096B native
    ada1p1 ONLINE 0 0 0
    
 
Top