Convert from LVM to ZFS script

eXtremeSHOk

Well-Known Member
Mar 15, 2016
51
21
48
40
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
Very nice! Any way that OS also runs on ZFS?

I have a server without a ZFS template
 
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.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!