ZFS Disk verkleinern

Tdreissi

Active Member
May 21, 2019
38
3
28
47
Servus,

Mein Ziel ist es eine zweite Disk "disk-1" von einer Linux VM zu verkleinern - ohne Datenverlust.
Beim anlegen damals war eine "0" zu viel - den Speicher hätte ich gern zurück.
Die Disk liegt in einem ZFS Pool.

Test mit Windows VM:
Windows boot disk von 300G auf 150G verkleinert.
Soweit hat alles geklappt - nur im Windows zeigt er immer noch die "alte" Größe an.
Proxmox CLI und GUI zeigt neue Größe an.

VM shutdown
zfs set volsize=150G SSD/vm-200-disk-0
Danach die "conf" editiert
vim /etc/pve/local/qemu-server/200.conf
virtio0: SSD:vm-200-disk-0,cache=writeback,size=150G

Test mit Linux VM:

Linux boot disk von 100G auf 80G verkleinert
Linux bootet nicht mehr ... zfs snapshot rollback war aber erfolgreich.

zfs set volsize=80G SSD/vm-300-disk-0
Danach die "conf" editiert
vim /etc/pve/local/qemu-server/300.conf
virtio0: SSD:vm-300-disk-0,size=80G


Ideen wie ich es am Prod System am besten hinbekomme die "disk-1" zu verkleinern?
 

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!