Page 1 of 1

Create/delete directories for VMs: Pre/Post handlers ?

Posted: 28. Aug 2016, 22:11
by mabra
Hello !

I try to use VBox on ZFS filesystems, but do not want to use VDev (volumes) for the machines.
Instead, it would be best for me to have handlers to catch, on create/delete of the directories
for the VMs. In this case I could call a script, which creates/deletes a filesystem on the zfs-pool.
This way would give much more flexibility to assign properties to the machine specific filesystem
and it would give more control over the storage - independent from the mountpoint.
Haveing filesystems allows to take snapshots and copy deltas of it to a backup server.

Everything else is more work: Shutdown the machine. Rename the directory. Create zfs filesystem
with mountpoint to the original directory. Copy all files.

To mention: Even this can only be seen as a workaround. Have ZFS directly integrated with
VBox, would make more sense: It could mange this with the usal commands.

I hope, I made this clear.

Thanks anyway and best regards,
Manfred