Hello All,
FYI: I'm running FreeNAS-11.3-U4.1 (want to do some hardware upgrades before I jump to the next version)
So I'm upgrading the main pool on my system to some larger disks. Good news is I can get both the old and the new online at the same time. (barely)
I did this once before but I don't remember exactly what I did and I'm having some issues.
The original pool was named "pool0".
Using the GUI I created a new pool from the new disks and named it "NewPool0"
I then used some shell commands to create a snapshot of pool0 and send it to NewPool0
zfs snapshot -r pool0@01
zfs send -R pool0@01 | zfs receive -Fdvu NewPool0
Yay, all data is copied to the new pool.
I had some issues creating a second snapshot but the first was only a couple hours old and the server was not being used in that time so I figured I'd just rely on the first.
I tried to move the pools around now
zpool export pool0
Error about device busy.
did some umount commands for some shares mounted inside a jail and changed the system dataset to NewPool0 in the GUI and then the command then worked
zpool export pool0
zpool import pool0 old_pool0
Here's where things really went wrong no old_pool0 showed up, nor could I import it in the GUI. pool0 was still there but not functional. I disconnected pool0 in the GUI and couldn't reimport it. (there was no checkbox for destroy data, only the other two.) I rebooted the system and no change. As far as I can tell pool0 is gone
I still have all the data on Pool0New but I still want to rename it to pool0 (so all links/configs/scripts work correctly) but I'm afraid of the command line I did before at this point as I don't have another copy (we'll I do but it's off box and would be a massive pain to restore).
I can create a fresh pool from the old disks and was thinking about using it as an experiment for renaming pools but figured I'd just ask here before I do anything else and mess things up worse.
Thanks in advance for any help
David
FYI: I'm running FreeNAS-11.3-U4.1 (want to do some hardware upgrades before I jump to the next version)
So I'm upgrading the main pool on my system to some larger disks. Good news is I can get both the old and the new online at the same time. (barely)
I did this once before but I don't remember exactly what I did and I'm having some issues.
The original pool was named "pool0".
Using the GUI I created a new pool from the new disks and named it "NewPool0"
I then used some shell commands to create a snapshot of pool0 and send it to NewPool0
zfs snapshot -r pool0@01
zfs send -R pool0@01 | zfs receive -Fdvu NewPool0
Yay, all data is copied to the new pool.
I had some issues creating a second snapshot but the first was only a couple hours old and the server was not being used in that time so I figured I'd just rely on the first.
I tried to move the pools around now
zpool export pool0
Error about device busy.
did some umount commands for some shares mounted inside a jail and changed the system dataset to NewPool0 in the GUI and then the command then worked
zpool export pool0
zpool import pool0 old_pool0
Here's where things really went wrong no old_pool0 showed up, nor could I import it in the GUI. pool0 was still there but not functional. I disconnected pool0 in the GUI and couldn't reimport it. (there was no checkbox for destroy data, only the other two.) I rebooted the system and no change. As far as I can tell pool0 is gone
I still have all the data on Pool0New but I still want to rename it to pool0 (so all links/configs/scripts work correctly) but I'm afraid of the command line I did before at this point as I don't have another copy (we'll I do but it's off box and would be a massive pain to restore).
I can create a fresh pool from the old disks and was thinking about using it as an experiment for renaming pools but figured I'd just ask here before I do anything else and mess things up worse.
Thanks in advance for any help
David