I used to use my FreeNAS-11.3-RELEASE with an hardware-raid and 1 USB-key as boot-pool, now I managed to change the boot-pool to 2 mirrored SSD’s by installing FreeNAS on both without deleting the configuraton of my FreeNAS.
I had 2 identic 2TB WD red HDD’s on an hardware-raid.
Than, because a lot of ppl told me to not use the hardware-raid, I removed it and I got 1 of the HDD’s as the pool, like it was before.
Than I wanted to creade an mirror and I checked for some How-To Videos on YT, but the one I found and used, was only to add a disc to an existing (mirrored) pool. So what happend is that I added now the second disc (which should be the mirror of the first) as an extension of the first. So, yeah I f*cked up Now instead of a mirrored 2TB pool I have a non mirrored 4TB pool…
So yeah, do I have the possibility now, to get back from 2 discs to 1, so that i can create and mirrored vdev and add the second as a mirror of the first?
Or do I have to delete the hole pool and begin from new with the 2 “blank” discs?
If there is enough room on the original 2-TiB HDD, you can “remove” the other single-drive stripe, which will evacuate any data on it and relocate it to the first drive.
Ok,
Thx for the answers.
Sounds good and not good.
We will see what is possible.
This is the boot-pool surely mirror
freenas-boot
mirror-0
da1p2
da0p2
this is the other:
nas
gptid/…
gptid/…
so it looks not mirrored, and of course the size in the pool section shows that it is the double and not mirrored.
I hope now, that it is possible… Space should be enough, the discs have both near 2TB and i have less than 450GB data.
But please be very specific with the commands, i’m not that good in IT and i don’t want to destroy it even more than it is…
Here is the disk section to see the names.
ada0 nas 1.82 TiB
ada1 nas 1.82 TiB
da1 Boot Pool 232.89 GiB
thx and greets
Roy
PS:
I tried to post pictures, but it says that it is not possible here, and FreeNAS don’t let’s me copy/paste from the ssh section.
I mean the GUI Shell, with putty over ssh he don’t wants my root password, so it says it’s wrong but it’s the one i use for root in the GUI, that’s why i can’t login over putty…
Just tell me what you need, i’ll try whatever you say me
It looks like the device you want to remove is: gptid/81a0fa36-c75d-11ef-ab86-94de8073836e
That means in the command-line you can issue:
zpool remove nas gptid/81a0fa36-c75d-11ef-ab86-94de8073836e
It will “evacuate” the data to the other device. Since it’s only a few MiB, it should finish quickly.
After you confirm it is finished (with zpool list -v nas, you can then proceed to attach the drive to the other drive, to make it a 2-way mirror. This can be done in the GUI.
In the GUI, go to Pools → locate your pool → click the cogwheel → Status → use the “Extend” option on the existing single-drive device to upgrade it to a 2-way mirror.
I think it’s worded “Extend”? I forget.
Scratch that. It become a feature in the GUI for TrueNAS Core 12. Not available in 11.3.
You’ll have to use the command-line:
zpool attach -s nas gptid/d9893e93-5657-11ea-8c2c-94de8073836e gptid/81a0fa36-c75d-11ef-ab86-94de8073836e