Convert from LVM to ZFS script

eXtremeSHOk

Renowned Member
Mar 15, 2016
52
24
73
41
eXtremeSHOK.com :: Convert from LVM to ZFS (lvm2zfs.sh)

Converts the storage LVM into a ZFS raid 1 (mirror)
  • Uses the LVM with the path/mount of /var/lib/vz
  • Will automatically detect the required raid level and optimise
  • 1 Drive = zfs (single)
  • 2 Drives = mirror (raid1)
  • 3-5 Drives = raidz-1 (raid5)
  • 6-11 Drives = raidz-2 (raid6)
  • 11+ Drives = raidz-3 (raid7)
NOTE: WILL DESTROY ALL DATA ON /var/lib/vz

https://github.com/extremeshok/xshok-proxmox
 
  • Like
Reactions: arnaudd
I'm getting ERROR: /var/lib/vz not found after doing ./lvm-2-zfs.sh && rm lvm-2-zfs.sh

Any Tips? Executed on a Node with LVM, inside a Cluster of 3 Nodes.