Hansson IT VM image - change zpool config to LVM

During the rebuild of a Nextcloud server I used the VM version. I didn’t migrate the database, just the files, as converting from MySQL to PostgreSQL didn’t work out for me.

Using the Hansson IT VM image, I deployed the storage on a ZFS pool. In an unguarded moment, after taking a mid-migration break, I recreated the storage using LVM. No biggie, nothing lost; as the storage was empty and I’m not too fussed about ZFS versus LVM on a Proxmox VM. However, the Hansson IT menu.sh script won’t upgrade the server as it’s expecting the zpool.

Does anyone know how I might coax this machine to upgrade using menu.sh with LVM storage?

If not possible or unsuypported by menu.sh, I can manually recreate the ZFS pool, copy the data over and remove the LVM storage. There’ll be no impact to Nextcloud as it’s just a local data path. In which case, I would welcome some pointers, as I’m well-versed in LVM but not ZFS pools.

System details

  • Nextcloud Server version (e.g., 29.x.x):
    • 31.0.7
  • Operating system and version (e.g., Ubuntu 24.04):
    • Ubuntu 24.04

You might go throught he script where it is doing stuff with ZFS. It might do snapshots before running the upgrade (so you can go back to it). With LVM, you normally can also do snapshots, so you might be able to adjust the script.
Or if that is too complicated, so your regular backup, then do all the steps (except for the ZFS pool) manually.

Not sure if you can count on someone having done this already. In such a case it would be great to have the modified script.