I just consolidated 2 12-bay chassis into one 24 bay and kind of forgot that I named both pools the same on the two separate instances of SCALE.
Now I have my main pool that auto imported because the hardware was practically the same - the remaining 12 disks show in the GUI as having the correct (but same) name as the currently online and usable pool with (exported) on the end - I googled and saw you can rename during an import. But with both names being the same can I specify a GUID instead and how would I get it?
Or is ZFS smart enough to recognize the un-imported pool?
Just specify an extra argument for the new name:
zpool import -d /dev/disk/by-partuuid -R /mnt <id> mynewpool
1 Like
I ended up having to do things a little different as I also forgot this dataset was set to read only for replication.
This may not technically be the correct order of operations (if you know what you’re doing) but what I did was
zpool import -f
zfs set readonly=off mynewpoolname
zpool export mynewpoolname
then I was able to import using the GUI without issue. prior when i simply imported it, I was getting errors about read-only and no path found because it wasn’t mounted.
i know none of that was mentioned in the OP, but just knowing that was able to rename it on the import was really the most important thing saving me from having to swap all of the gear back over to the other install. thanks!
not sure why editing isn’t allowed unless im blind and dont see the button. either way, adding the less/greather formatting the text into nothingness.
the zpool import -f command should read
zpool import -f pool_id mynewname