LVM to ZFS with NVME Raid

chencho

Well-Known Member
Nov 25, 2010
92
9
48
Hi all.

I'm with OVH and from templates only have Proxmox 6 (without ZFS)

My initial setup is with 2 nvme disks in raid 1

I have /var/lib/vz into /dev/nvme0n1p4 Raid

Code:
pvdisplay
  --- Physical volume ---
  PV Name               /dev/nvme0n1p4
  VG Name               vg
  PV Size               <932,37 GiB / not usable <3,34 MiB
  Allocatable           yes (but full)
  PE Size               4,00 MiB
  Total PE              238685
  Free PE               0
  Allocated PE          238685
  PV UUID               YomZul-OVNc-EgGB-wV1k-vW3e-75xq-f70mmW

Code:
pvs
  PV             VG Fmt  Attr PSize   PFree
  /dev/nvme0n1p4 vg lvm2 a--  932,36g    0

Then I umount the LVM and deleted it.

Code:
umount /dev/vg/data
lvremove /dev/vg/data

And finally create de zpool

Code:
zpool create rpool /dev/nvme0n1p4 -f

¿Have any sense add Raid device to zpool? ¿Is this the correct way to change lvm 2 zfs?
 
The post you link don’t have any information to use .

I asked about create zpool with “single” raid 1

two disks
1 raid
1 pool

And if this way is the best to migrate from lvm to zfs
 
Hello! The link explains how to create a zpool with a disk, and then add another to the pool. It's not what I'm asking. Perhaps I have put it wrong.

The first thing I ask, is if the best way to go from LVM to ZFS is done with the steps I have followed.

The second thing I ask is if it makes sense to pool a disk in RAID1. It is a server at OVH, I will never be able to add a second or third disk to it, since I do not have access to it physically.

Obviously, we have not understood each other. But thanks for the trouble in answering. Happy (next) new year!
 
Well, this is not the correct way :(

After reboot the server hungs.

I try to do

Code:
mkfs.ext4 /dev/nvme0n1p4
wipefs -a /dev/nvme0n1p4

Then, when I create the pool I don't need to put -f flag.

But it hungs again after reboot.

Any way to change /var/lib/vz partition from LVM to ZFS? It's a fresh install, no matter the current data
 

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!