Existing lxc migrate to split zfs dataset into 2

Kodey

Member
Oct 26, 2021
113
5
23
I have a turnkey mediaserver and it sits on a zfs dataset with all the media.
I want to clone or make copies of the install without the data since it works so well.

How do I change the zfs dataset so that the boot drive is separated from the huge media store in /srv/storage ?
I can remove all the snapshots for this dataset and I think I can split the dataset in 2 along the /srv boundary maybe.
Then I'd need to update proxmox and the lxc conf with the new configuration somehow.

The other possibility would be to create a new media server lxc and rewrite the existing install excluding the media store with rsync.
Then I could make the entire existing dataset into a subset of the new one and wipe the existing installation removing top level directories.

Is there a guide for this or any better suggestions?