Pulled wrong drive - Now doesn't show as part of pool?

SouthSeaPirate

Dabbler
Joined
Jul 31, 2018
Messages
10
Ok so I had another drive starting to get some sector errors.
Since I had a couple drives still left in the server I pulled it from, decided to go ahead and replace before failure.
Unfortunately, I pulled from the wrong pool.
It was one (of two) of my main 8TB drives.
Just a simple mirrored set.

I quickly placed the back in same bay.
Issue is that it isnt showing correctly in the volume status, even tho, FreeNAS sees the drive.
Id just use replace, like I did successfully with the drive I actually had intended to replace, but the drives are encrypted.
Id like to remove the encryption eventually so if that is part of the path to fix, Im happy to do so now.

99.PNG


33.PNG


Code:
% zpool status
  pool: NAS_Vol01
 state: DEGRADED
status: One or more devices could not be opened.  Sufficient replicas exist for
        the pool to continue functioning in a degraded state.
action: Attach the missing device and online it using 'zpool online'.
   see: http://illumos.org/msg/ZFS-8000-2Q
  scan: scrub repaired 0 in 0 days 09:01:41 with 0 errors on Sun Nov 18 09:01:42 2018
config:

        NAME                                                STATE     READ WRITE CKSUM
        NAS_Vol01                                           DEGRADED     0     0     0
          mirror-0                                          DEGRADED     0     0     0
            15295172811505211304                            UNAVAIL      0     0     0  was /dev/gptid/7466fc72-8ef2-11e8-bf15-000c29e41035.eli
            gptid/74f7bf31-8ef2-11e8-bf15-000c29e41035.eli  ONLINE       0     0     0

errors: No known data errors

  pool: NAS_Vol02
 state: ONLINE
  scan: scrub repaired 0 in 0 days 00:00:00 with 0 errors on Thu Dec  6 17:43:33 2018
config:

        NAME                                            STATE     READ WRITE CKSUM
        NAS_Vol02                                       ONLINE       0     0     0
          mirror-0                                      ONLINE       0     0     0
            gptid/eb8b95ce-9c2f-11e8-ad9f-000c29e41035  ONLINE       0     0     0
            gptid/58af6ab9-f9a8-11e8-89f0-000c29e41035  ONLINE       0     0     0

errors: No known data errors

  pool: freenas-boot
 state: ONLINE
  scan: scrub repaired 0 in 0 days 00:00:05 with 0 errors on Thu Dec  6 03:45:05 2018
config:

        NAME        STATE     READ WRITE CKSUM
        freenas-boot  ONLINE       0     0     0
          da0p2     ONLINE       0     0     0

errors: No known data errors
 
Last edited:
D

dlavigne

Guest
Were you able to resolve this? If not, does a reboot restart the resilvering process?
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
You should be able to just Online the disk through the GUI. If that doesn't do it, a reboot should.

Id like to remove the encryption eventually
That's possible, but it's all CLI work. The way you'd do it would be:
  • Offline one disk in each pool
  • Destroy the partition table using gpart destroy
  • Repartition the disk (this resource includes instructions)
  • zpool replace poolname 15295172811505211304 gptid/whatever
  • Once resilvering completes, repeat with the other disk
 

SouthSeaPirate

Dabbler
Joined
Jul 31, 2018
Messages
10
No reboots worked. Even shutdown the entire host.
I don't know of any place where I can just select online.
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
I don't know of any place where I can just select online.
When you click on that missing disk in the GUI, you should see a series of buttons at the bottom. One of them should be "online". If you don't see that, try zpool online NAS_Vol01 gptid/7466fc72-8ef2-11e8-bf15-000c29e41035.eli at the CLI.
 

SouthSeaPirate

Dabbler
Joined
Jul 31, 2018
Messages
10
When you click on that missing disk in the GUI, you should see a series of buttons at the bottom. One of them should be "online". If you don't see that, try zpool online NAS_Vol01 gptid/7466fc72-8ef2-11e8-bf15-000c29e41035.eli at the CLI.

I have edit and wipe as options for any disks.

321.PNG
 

SouthSeaPirate

Dabbler
Joined
Jul 31, 2018
Messages
10
can I just re-partition (dont know how) the drive and make a new unencrypted pool of one disk?
Then do the same on the current, working, disk but add it to the new unecrypted pool?
danb, I think this is what youre trying to tell me, but I couldnt follow that mess in the resource.

Or if I have to give up entirely, can the disk be salvaged and reused elsewhere?
If so, how?
 

SouthSeaPirate

Dabbler
Joined
Jul 31, 2018
Messages
10
Well finally decided to go ahead and use the replace option. I feared the re-key process wouldn't work correctly considering the disk was not previously taken offline (per the document requirements).
I was ready to follow the process here, which also helped me decide to move forward as it was the only thread I could find with pretty much the same scenario.
Turns out it worked even without needing to do so.
I just did the procedure as normal (here) and each point was successful. Well at least no errors.
Ive got geli_recovery.key and geli.key.

Do I need to worry about anything else? Is there a way to confirm?
 
Top