(ZFS) state is degraded

Status
Not open for further replies.

Zalera

Cadet
Joined
Sep 17, 2017
Messages
4
I've been trying to mess with this all day and I haven't come up with an answer. I originally had a drive go bad so I replaced it and apparently didn't know how to properly add the new drive. I went to volume manager and extend volume then selected spare. Apparently that was incorrect so I've been trying to figure out how to reverse it or use the replace command to add it to the pool.
 

Attachments

  • Screen Shot 2017-09-17 at 12.48.42 PM.png
    Screen Shot 2017-09-17 at 12.48.42 PM.png
    265.5 KB · Views: 362

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
I went to volume manager and extend volume then selected spare.
Why? And why are people allergic to reading the manual?

If the spare weren't in use, the Oracle ZFS docs make it look like it could be removed. But since it is, I'm not sure there's a way to fix this without (as @m0nkey_ says) rebuilding the pool.
 

Zalera

Cadet
Joined
Sep 17, 2017
Messages
4
Yeah I should have read the manual, but it seemed like the only option when I was looking around the UI.

Odd that there wouldn't be another way to fix this. So basically I have to backup all that data onto something else? I don't have anything else that has 18TB of space =(
 

Zalera

Cadet
Joined
Sep 17, 2017
Messages
4
Would I be able to do this?

1.) Shutdown
2.) Physically remove the drive
3.) Turn back on
4.) Use the remove option to get rid of the drive from the zpool (as it technically won't be in use anymore)
5.) Shutdown
6.) Place the drive back in
7.) Turn back on
8.) Use the replace option
 

Attachments

  • Screen Shot 2017-09-17 at 4.11.00 PM.png
    Screen Shot 2017-09-17 at 4.11.00 PM.png
    240.1 KB · Views: 320

Stux

MVP
Joined
Jun 2, 2016
Messages
4,419
The pool is not corrupt yet. It should be possible to fix this.

I just don't know how :)
 

Zalera

Cadet
Joined
Sep 17, 2017
Messages
4
I was able to fix the problem. Here's how in case anyone else comes across the same problem that I had and/or makes my mistake.

I proceeded with the process I listed above which I'll list again with the extra steps:

1.) Pull up shell and use the command "zpool offline [pool] [device]" (Might be unnecessary)
2.) Shutdown
3.) Physically remove the drive
4.) Turn back on
5.) Use the command "zpool detach [pool] [device]"
6.) Use the command "zpool remove [pool] [device]" (Can also more than likely be done through the GUI)
7.) Shutdown
8.) Place the drive back in
9.) Turn back on
10.) Go to storage --> volumes --> view disks, wipe the new drive if it resilvered
11.) Then go to storage --> volumes --> view volumes
12.) Select your pool then click the volume status button at the bottom
13.) Select the new drive, click replace at the bottom
 
Last edited:
Status
Not open for further replies.
Top