SOLVED Mirror-0 demirrored - remirror again

Yves_

Dabbler
Joined
Jun 4, 2020
Messages
11
Hi there,

Sorry for this post, but I did something really stupid when I tried to replace my slower 5400rpm drives with faster 7200drives.

The issue
I am stuck with the hot-pool having mirror-1, mirror-2, mirror-3, etc. but mirror-0 is gone rough. And its only this one drive da1 (gptid/61e38bde-fc24-11eb-a3a3-002590982d14) right now. As you can see here:

Code:
  pool: hot-pool
state: ONLINE
config:

        NAME                                            STATE     READ WRITE CKSUM
        hot-pool                                        ONLINE       0     0     0
          gptid/61e38bde-fc24-11eb-a3a3-002590982d14    ONLINE       0     0     0
          mirror-1                                      ONLINE       0     0     0
            gptid/308f2444-fcdd-11eb-a3a3-002590982d14  ONLINE       0     0     0
            gptid/0b5227d4-fdd9-11eb-a3a3-002590982d14  ONLINE       0     0     0
          mirror-2                                      ONLINE       0     0     0
            gptid/d67c88c1-fe84-11eb-a3a3-002590982d14  ONLINE       0     0     0
            gptid/aa807c2b-fe9a-11eb-a3a3-002590982d14  ONLINE       0     0     0
          mirror-3                                      ONLINE       0     0     0
            gptid/b8f19ff1-b9ef-11ea-a3a3-002590982d14  ONLINE       0     0     0
            gptid/ba6e8315-b9ef-11ea-a3a3-002590982d14  ONLINE       0     0     0
          mirror-5                                      ONLINE       0     0     0
            gptid/6bbabb94-ba04-11ea-a3a3-002590982d14  ONLINE       0     0     0
            gptid/6bd6b34e-ba04-11ea-a3a3-002590982d14  ONLINE       0     0     0
        logs
          nvd0p1                                        ONLINE       0     0     0
        cache
          nvd0p2                                        ONLINE       0     0     0

errors: No known data errors


The goal
Add da0 back into mirror-0 together with (gptid/61e38bde-fc24-11eb-a3a3-002590982d14) which is da1 so I get back mirror-0.

The history (for those who are interested in it)
What I have done to create this issue was, I wanted to replace the 5400rpm drives with 7200rpm drives. So by mistake I somehow unmirrored da0 and da1...

Thanks a lot for your help

Cheers
Yves
 
Last edited:

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
Have a look at the process here:

That applies to the pool you have also, where you will "Extend" the disk on its own (gptid/61e38bde-fc24-11eb-a3a3-002590982d14) to make it into a mirror.
 

Yves_

Dabbler
Joined
Jun 4, 2020
Messages
11
maybe its me... but I only have Edit, Offline, Replace in this menu...

A7EqrEn.png
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
Your pool thinks it's resilvering... maybe that's true.

You can't do another operation like adding a mirror while that's the case.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
Which version are you running?
 

Yves_

Dabbler
Joined
Jun 4, 2020
Messages
11
Yeah at that point some resilvering was actually running. Sorry, about that.

Currently running FreeNAS-11.3-U3.2

Update: Resilvering is done now. But this option is still not available. Might it be because of my "older" Version? CLI possible?
 
Last edited:

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
That option is only there in 12.

You can do it in CLI.

Search for posts by me with zpool attach, mirror and gpart in them, I have described the CLI process several times already.
 

Yves_

Dabbler
Joined
Jun 4, 2020
Messages
11
Okay, I thought so.

Sorry, not want to get on your nervs. Just to make sure since it is a productive envoirment... You are refering to this post from you I think.

So the steps to take would be

Make sure nothing is on the disk
gpart destroy -F /dev/da0
Set the disk partitioning table to gpt
gpart create -s gpt /dev/da0
Create the swap
gpart add -s 2G -t freebsd-swap /dev/da0
and data partitions
gpart add -t freebsd-zfs /dev/da0
Get the gptid of the new zfs partition
gpart list -a da0
Attach the the hot-pool
zpool attach hot-pool gptid/61e38bde-fc24-11eb-a3a3-002590982d14 gptid/<from the command up for the zfs probably da0p2>
Check status if worked out
zpool status -v

Correct?

Update
I have already done it. WORKED FLAWLESS! @sretalla i owe you at least a beer! since you are swiss as well maybe I can once invite you for one! THANKS A LOT

IqVIiGJ.png
 
Last edited:
Top