ZFS Mount Volume

haglo

Member
Jul 24, 2020
16
1
8
63
Ich habe in Proxmox einen zfs pool /tank01 angelegt, und darin ein Dataset nextcloud, das ergibt dann /tank01/nextcloud.
Das funktioniert bestens.
Ich habe eine normale VM, basierend auf Ubuntu204, mit der Software Nextcloud mit der ID 103. In dieser VM will ich das ZFS-Pool-Dataset /tank01/nextlcoud mounten unter dem Mountpoint-Verzeichnis /data.

Demnach habe ich:
proxmox: /tank01/nextcloud
VM-Ubunut204-Nexcloud-ID-103: /data

Im folgenden 2 wichtige Config-Files:
proxmox:/etc/pve/qemu-server/103.conf
bootdisk: virtio0 cores: 1 ide2: none,media=cdrom memory: 8192 name: 42-canyon-nextcloud net0: virtio=72:08:BC:20:B2:FE,bridge=vmbr0,firewall=1 numa: 0 ostype: l26 scsihw: virtio-scsi-pci smbios1: uuid=986739c7-6061-46ef-b3d4-6b0e2be54dec sockets: 1 unused0: zfsdata:vm-103-disk-0 virtio0: local-lvm:vm-103-disk-0,size=50G virtio1: zfs-data:vm-103-disk-1,size=32G vmgenid: 7d591ad7-42f7-4682-986e-9401b58603b6

Wie kann ich jetzt das Verzeichnis proxmox: /tank01/nextcloud mounten in der VM-ID-103: /data

Vorzugsweise via Filebasierte Speicherbereitstellung.
 
Einfach ne NFS3/4 Freigabe am Proxmoxhost machen und in der VM einhängen. Es gibt auch die Möglichkeit Verzeichnisse vom Host in die VM zu binden, ist ein Feature von Qemu. Ist meiner Meinung nach noch zu experimentell, aber das musst du für dich selbst entscheiden.
 
Eine Frage zu LXC.
Normal sagt man dass Container (Im Docker-Umfeld) Wegwerfprodukte sind. In Proxmox scheint es mir, dass LXC-Container jedoch wie eine VM genutzt werden.
Ist das hier dann einen andere Philosophie bezüglich Containern?
 
LXC und Docker sind zwei komplett verschiedene Dinge/Technologien. Wikipedia erklärt es doch sehr ausführlich: https://de.wikipedia.org/wiki/Docker_(Software) und LXC: https://de.wikipedia.org/wiki/LXC Beides ist ne feine Sache. Wir haben auch Docker HA Cluster auf Proxmox laufen. Auf nen Cephcluster in KVM's. Ist der Hammer. Ist aber schon sehr komplex.
Ansonsten verwendet Univention auch fertige Dockercontainer, auch diese verwenden wir auf KVM auf Proxmox.
 
OHHHHH. Das habe ich nicht gewusst.
Das ist eine Überraschung.
Vielen Dank.
Muss mich jetzt zuerst in LXC einarbeiten.
 

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!