[OpenIndiana-discuss] ZFS pool move from one server to another?
John D Groenveld
groenveld at acm.org
Sun Feb 2 21:21:25 UTC 2025
In message <b36efce8-34f2-43c8-b8a5-1e8f1c91f8f1 at bl.echidna.id.au>, Carl Brewer
via openindiana-discuss writes:
>I have an OI box from a couple of years ago with a raidz array that's
>full. I got some new, bigger HDDs and set them up on a new OI instance
>(new hardware), did a recent install (2410 I think?), created a new
>raidz with the new, bigger HDDs, rsync'ed everything over.
>
>Labels : the old raidz : "pond"
>
>the new raidz : "bigfish"
>
>What I'd like to do :
>
>detach the raidz array "bigfish" from the new box, pull the drives out.
newbox# zpool export bigfish
oldbox# init 5
>Detach the old raidz array "pond" on the old box, shut it down, remove
>the old HDDs
oldbox# zpool export pond
oldbox# init 5
>Physically install the new drives in the old box
>
>Attach bigfish (zpool attach?)
>
>Will this "just work"? Any caveats? I think the ZFS version should be
>ok, does ZFS care about the device names? I don't expect
>/dev/dsk/cXtYdZ's to match, but I don't think that matters once an array
>is created? zpool attach will "just do it"?
oldbox# zpool import bigfish
ALL CAPS CAVEAT: before you perform this dance, what version of ZFS and
features does oldbox OI support and what version of ZFS and features
were enabled on newbox's bigfish?
oldbox# zpool get all pond
newbox# zpool get all bigfish
Assuming oldbox supports all the features of newbox's bigfish pool,
oldbox should be able to import it regardless of the disk device names.
John
groenveld at acm.org
More information about the openindiana-discuss
mailing list