DarkDust
Cadet
- Joined
- Feb 2, 2019
- Messages
- 2
Hi folks,
tl;dr: Want to do modification to pool with System Dataset that aren't support by the GUI. Want to so do without breaking my system a second time.
I've got a pool that had two 1TB disks, mirrored. I wanted it to grow using two 3TB disks. Unfortunately, "attach" is not supported by FreeNAS GUI and I read I had to export it, import in shell, modify it, export again and import in GUI again.
I used the GUI to "Detach" that pool… and the system was broken. GUI stopped. I still had an SSH session open but none of the commands worked any more, not even "ls". Couldn't re-import the pool since "zpool" wasn't found either. Reboot showed nasty error about ld-elf.so.1 not being found and the system didn't come back up again. My guess is that the System Dataset being on that pool is what caused this bug (really, that shouldn't have left me with a completely broken system). Long story short, I reinstalled the system.
While I was at it, I did my modifications to the pool via the shell provided by the installer. To replace the disks in the pool, I did it like this:
After resilvering finished, I detached the two 1TB devices and now the pool is 3TB. Great. Finished re-installation and set the system up again.
Now that my system is up and running again, I notice that these devices seem to lack a GPT. "glabel status" doesn't list them and "gpart list /dev/da0" doesn't work either. Here's what "zpool status hel2" is showing me:
Since I've got a spare 3TB disk I figured I could do a little dance to get GPT back: attach third disk to the pool, this time with GPT, detach one disk, add GPT to that disk and reattach, detach the second "raw" disk. Et voila, two disks with GPT.
BUT. I don't like breaking my system again. So how can I modify this pool, that has the System Dataset, without breaking FreeNAS again?
If there's no good way of doing that, are there any downsides to having the disks attached "raw" without GPT?
tl;dr: Want to do modification to pool with System Dataset that aren't support by the GUI. Want to so do without breaking my system a second time.
I've got a pool that had two 1TB disks, mirrored. I wanted it to grow using two 3TB disks. Unfortunately, "attach" is not supported by FreeNAS GUI and I read I had to export it, import in shell, modify it, export again and import in GUI again.
I used the GUI to "Detach" that pool… and the system was broken. GUI stopped. I still had an SSH session open but none of the commands worked any more, not even "ls". Couldn't re-import the pool since "zpool" wasn't found either. Reboot showed nasty error about ld-elf.so.1 not being found and the system didn't come back up again. My guess is that the System Dataset being on that pool is what caused this bug (really, that shouldn't have left me with a completely broken system). Long story short, I reinstalled the system.
While I was at it, I did my modifications to the pool via the shell provided by the installer. To replace the disks in the pool, I did it like this:
Code:
zpool attach mypool gptid/b8b979e8-259f-11e9-bca1-002590e891fc /dev/da0 zpool attach mypool gptid/7c2763b1-5778-0e4b-9141-814812e238fa /dev/da6
After resilvering finished, I detached the two 1TB devices and now the pool is 3TB. Great. Finished re-installation and set the system up again.
Now that my system is up and running again, I notice that these devices seem to lack a GPT. "glabel status" doesn't list them and "gpart list /dev/da0" doesn't work either. Here's what "zpool status hel2" is showing me:
Code:
[root@hub ~]# zpool status hel2 pool: hel2 state: ONLINE scan: resilvered 1.51T in 0 days 02:30:23 with 0 errors on Sat Feb 2 12:33:59 2019 config: NAME STATE READ WRITE CKSUM hel2 ONLINE 0 0 0 mirror-0 ONLINE 0 0 0 da0 ONLINE 0 0 0 da6 ONLINE 0 0 0 errors: No known data errors
Since I've got a spare 3TB disk I figured I could do a little dance to get GPT back: attach third disk to the pool, this time with GPT, detach one disk, add GPT to that disk and reattach, detach the second "raw" disk. Et voila, two disks with GPT.
BUT. I don't like breaking my system again. So how can I modify this pool, that has the System Dataset, without breaking FreeNAS again?
If there's no good way of doing that, are there any downsides to having the disks attached "raw" without GPT?