[PVE-User] Proxmox 5 to root on ZFS

Jonny Proud jonny at lemonjuice.tk
Mon Dec 16 16:30:35 CET 2019


I'd say your better off with one big pool and do a Raidz1, so you have 3
drives of storage and 1 parity drive.

There's a trick you can do with the Debian rescue, to be able to use any
ISO installer you want without needing to order the silly priced KVM.

If you run the following commands, you can then use VNC viewer to
connect in and do the graphical installer.
Note: you might need to change the drives bit if you've got less or more
drives.

I got the idea from here
https://rinaldojonathan.com/en/cara-buat-virtual-kvm-di-server-ovh-kimsufi-soyoustart/


    wget https://youriso.com/youriso.iso -O /tmp/install.iso

    qemu-system-x86_64 -net nic -net user,hostfwd=tcp::2222-:22 -m
    20240M -localtime -enable-kvm \
    -drive file=/dev/sda,if=virtio \
    -drive file=/dev/sdb,if=virtio \
    -drive file=/dev/sdc,if=virtio \
    -cdrom /tmp/install.iso  \
     -vnc 0.0.0.0:0 -boot d -smp threads=7 -cpu host


Thanks both for quickly answering my message.
If you want to use KVM in soyoustart you need to pay. They offer pretested Proxmox templates so I used their default Proxmox template with LVM since they don´t have ZFS yet (maybe that will change in the near future).
I asked about it would be worth in case of perfomance, but If you say I am fine with OS running on LVM RAID1 and keep other partitions with ZFS, It´s fine with me.
My idea is to create a second pool for the 2 SATA drives so I can run some VMs separating the OS on the SSD ZFS pool and the data of the VM on the SATA ZFS pool.
Thanks!
Miguel

    En lunes, 16 de diciembre de 2019 1:05:37 CET, Jonny via pve-user <pve-user at pve.proxmox.com> escribió:  
 
 Hey,

I've not long setup 2 OVH (SoYouStart) Servers myself, with Fully 
encrypted ZFS with Proxmox.
I think the best approach personally is to reinstall either using 
proxmox installer ISO via KVM. Then you can install with ZFS as you 
want. Then you can setup RAIDZ1 etc, allowing for one disk failure.

If you want ZFS and full disk encryption, then its a much longer process 
but doable. See links below.

Is there a reason you didn't use the KVM and install from ISO to start 
with?

I followed these two guides: (tweaked bits here and there though)
https://github.com/zfsonlinux/zfs/wiki/Debian-Buster-Root-on-ZFS
https://pve.proxmox.com/wiki/Install_Proxmox_VE_on_Debian_Buster

Jonny

On 15/12/2019 23:30, Gianni Milo wrote:

> Don't have experience with OVH, but depending on the situation, it might be
> possible to "transfer" the existing OS installation to a ZFS backed setup.
>
> To do so, it will be required to have an additional hdd, partition it,
> create a ZFS pool on it with proper datasets (rpool/ROOT/pve-1 etc..), set
> the appropriate zfs options for each dataset (you can use an existing root
> on zfs installation as a reference) and rsync the existing PVE (lvm)
> installation onto it. Then chroot into the zfs installation and make the
> required changes in grub, initramfs,fstab etc etc, finally boot from the
> system from the zfs disk. It will require some effort, but should be
> doable.
>
> What are the benefits? Unless you want to benefit from the zfs snapshots
> for rolling back your system after an unwanted system update, I don't see
> any.
>
> Is it worth it? Don't think so, especially since this is a backup system.
> Since you've managed to create a zfs pool for storing your VMs (pve-zsync
> target), that should be enough in my opinion.
>
> B.R.
> G.
>
>
>
> On Sun, 15 Dec 2019 at 20:16, Miguel González via pve-user <
> pve-user at pve.proxmox.com> wrote:
>
>> ---------- Forwarded message ----------
>> From: "Miguel González" <miguel_3_gonzalez at yahoo.es>
>> To: "pve-user at pve.proxmox.com" <pve-user at pve.proxmox.com>
>> Cc:
>> Bcc:
>> Date: Sun, 15 Dec 2019 21:16:27 +0100
>> Subject: Proxmox 5 to root on ZFS
>> Hi,
>>
>>     I have a new dedicated server on OVH with two sets of SSD and SATA
>> drives (4 in total). Template from OVH only installs Proxmox 5 without
>> ZFS on a LVM soft RAID1. I have used this tool to create a ZFS pool:
>>
>>     https://github.com/extremeshok/xshok-proxmox
>>
>>     But I´m wondering if It would be worth the effort to try move the OS
>> too to ZFS. What are the benefits? I am using this machine for disaster
>> recovery VM (pve-zsync) and run backups.
>>
>>     If It is worth it, any advice on how to do it? I can´t find a proper
>> procedure, I just have a rescue system from OVH (not possible to use
>> specific ISO or KVM)
>>
>>     Thanks!
>>
>>     Miguel
>>
>>
>>
>>
>>
>> ---------- Forwarded message ----------
>> From: "Miguel González via pve-user" <pve-user at pve.proxmox.com>
>> To: "pve-user at pve.proxmox.com" <pve-user at pve.proxmox.com>
>> Cc: "Miguel González" <miguel_3_gonzalez at yahoo.es>
>> Bcc:
>> Date: Sun, 15 Dec 2019 21:16:27 +0100
>> Subject: [PVE-User] Proxmox 5 to root on ZFS
>> _______________________________________________
>> pve-user mailing list
>> pve-user at pve.proxmox.com
>> https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user
>>
> _______________________________________________
> pve-user mailing list
> pve-user at pve.proxmox.com
> https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user

-- Jonny

-- 
Jonny



More information about the pve-user mailing list