expand vdev

hescominsoon

Patron
Joined
Jul 27, 2016
Messages
456
somehow when i was replacing a disk one of the mirrors got turned into a single disk vdev. How do i add an unused disk to said single disk vdev to turn it into a mirror vdev?
 

hescominsoon

Patron
Joined
Jul 27, 2016
Messages
456
Here's the current disk list:
NAME STATE READ WRITE CKSUM
Data ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
gptid/0edf7064-96d3-11ea-9b24-f01fafd2b183 ONLINE 0 0 0
gptid/0fb0f261-96d3-11ea-9b24-f01fafd2b183 ONLINE 0 0 0
mirror-1 ONLINE 0 0 0
gptid/0f8062a1-96d3-11ea-9b24-f01fafd2b183 ONLINE 0 0 0
gptid/0f8dc45e-96d3-11ea-9b24-f01fafd2b183 ONLINE 0 0 0
mirror-2 ONLINE 0 0 0
gptid/0f705837-96d3-11ea-9b24-f01fafd2b183 ONLINE 0 0 0
gptid/0f7a259c-96d3-11ea-9b24-f01fafd2b183 ONLINE 0 0 0
gptid/f3002c5c-a43d-11ea-9707-f01fafd2b183 ONLINE 0 0 0
I need to add another disk to the bottom vdev so it becomes a mirror. However it is not accepting da7 saying it is not in the pool. So in the act of replacing the disk the last pool somehow went form a two disk mirror vdev to a single disk vdev? I am really trying to figure out how i screwed it up and how to fix it..:)
 

hescominsoon

Patron
Joined
Jul 27, 2016
Messages
456
so i am also trying to find the id of the new disk. in the web interface it sees da7(the replacement disk) but i am not able to combine it with da6 to make the vdev mirrored...
 

hescominsoon

Patron
Joined
Jul 27, 2016
Messages
456
turns out it was a faulty drive....i swapped in a different drive and i was able to replace the failed drive.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
turns out it was a faulty drive....i swapped in a different drive and i was able to replace the failed drive.
Did you still need help with the repair of the mirror?

Maybe look at this post...
 

hescominsoon

Patron
Joined
Jul 27, 2016
Messages
456
once i swapped in another replacement drive I was able to use the attach command at the shell and re-establish the mirror...:)
 

Yorick

Wizard
Joined
Nov 4, 2018
Messages
1,912
Attach from shell absolutely works. In UI (TrueNAS Core 12.0, not sure what this looks like in 11.3) you can go to Storage -> Pools - Status, select the three-dot menu to the right of the single disk (your vdev), and choose extend. This will allow you to attach another disk to it. Once you have two or more disks in the mirror, the same menu offers the "detach" option.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700

hescominsoon

Patron
Joined
Jul 27, 2016
Messages
456
the problem was the attach on the cli was erroring out and in the webui it wasn't allowing me to add the drive in any way. That should have been my big clue..the first replacement drive was reporting 5.43TB free instead of 5.47TB free. The drive it turns out has apparently remapped sectors or somehting weird as it was not reporting hte correct free space...and refused wipe commands..so i swapped another disk i had on the shelf and it went right in. The r520 that gave me this issue is running 11.3u4...the truenas 12 beta test server is running ok..:)
 

Yorick

Wizard
Joined
Nov 4, 2018
Messages
1,912
Side note: The ACL fix in u4.1 is probably something you want, if you use SMB.
 

hescominsoon

Patron
Joined
Jul 27, 2016
Messages
456
Side note: The ACL fix in u4.1 is probably something you want, if you use SMB.
it's really isn't..i have my own workaround..but i am not allowed to post it..:)
 
Top