Skip to content
This repository has been archived by the owner on Feb 10, 2024. It is now read-only.

Mount zvol using PVE cluster ZFS pool name #1

Closed
iGadget opened this issue Dec 12, 2022 · 1 comment · Fixed by #2
Closed

Mount zvol using PVE cluster ZFS pool name #1

iGadget opened this issue Dec 12, 2022 · 1 comment · Fixed by #2

Comments

@iGadget
Copy link

iGadget commented Dec 12, 2022

Nice script, thanks for sharing! A small but IMHO significant improvement could be made though.
Currently, you mount the zvol to the LXC via

-mp0 /mnt/dokku-docker,mp=/var/lib/docker

In my experience, this will break snaphots and migration of the LXC using the PVE webGUI.
To avoid this, maintain the PVE disk naming scheme when creating the zvol (i.e. for LXC 104, 'vm-104-disk-1') and mount it using the PVE cluster ZFS pool name (i.e. 'local-zfs').
Combined this would look like
-mp0 local-zfs:vm-104-disk-1,mp=/var/lib/docker
Then snapshots and migration will keep working.

alexpdp7 added a commit that referenced this issue Dec 13, 2022
@alexpdp7
Copy link
Owner

Hi @iGadget , thanks a lot for opening this issue! I really appreciate that someone looks at the random stuff I push here.

Unfortunately, I'm likely to rewrite this in the immediate future, and I don't really have the time to test that this works accurately and to document it properly.

However, I think adding some docs like in #2 would be enough if other people stumble into this repo... do you think it's an OK resolution to your issue?

alexpdp7 added a commit that referenced this issue Dec 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants