컴퓨터/Unix&Linux

proxmox subvolume 사이즈 줄이기

Subi Lee 2026. 4. 20.
반응형

https://forum.proxmox.com/threads/shrinking-zfs-filesystem-for-lxc-ct.40876/

 

Shrinking ZFS filesystem for LXC CT

Howdy, I have given Proxmox on ZFS a test run recently (having used Proxmox for many users without ZFS). I was hoping that Proxmox on ZFS would allow LXC containers to have their disk allocation both extended and shrunk. However, the Proxmox GUI does not s

forum.proxmox.com

 

 

 

서브볼륨이 rpool/data/subvol-120-disk-1 일 경우:

# optional: stop the container first
pct shutdown 120

# verify current usage/quota
zfs list rpool/data/subvol-120-disk-1
zfs get refquota,used,available rpool/data/subvol-120-disk-1

# shrink to 32G
zfs set refquota=32G rpool/data/subvol-120-disk-1

# refresh Proxmox's view
pct rescan


# check
zfs get refquota,used,available rpool/data/subvol-120-disk-1
df -h /rpool/data/subvol-120-disk-1

 

반응형

댓글