Hi!
I'm running a simple 1-node Proxmox 6 with 3 4TB drives in RAIDZ for system and VMs. Actually, there is only 1 VM now, an FTP server built on Debian 9 + ProFTPD + Webmin. It has 2 virtual disks - one small 32G disk for system and 6.4TB disk for FTP content. This is current layout:
As you can see, vm-100-disk-1 has grown far beyond expected 6.4TB and now actively consuming all the space. Yesterday the whole system was stuck because there was no space on rpool/ROOT/pve-1 (the size was 2.5G, used 2.5G, available 0), it was not accessible nor by web interface, nor by SSH. The only way to get it running was to log in with IPMI-KVM, free some space (I've cleaned apt-get cache) and reboot. There were some unused VM disks, I deleted them, got about 120GB of free space available on rpool and switched to other tasks. This night there were some up- and downloads from my colleagues and the system stuck again. rpool/ROOT/pve-1 has shrunk to 2.2G. I had to delete some ISO's to free some space (605M) and stop FTP service after reboot, so now the situation is stable.
The funniest part is that FTP itself is not full. It was never filled up to less than 700GB of free space.
FS is ext4 for both sda and sdb linux partitions.
Now I have to understand what's going on, how I can shrink this FTP volume down and how to prevent it from overgrowing in future. Any help is greatly appreciated!
I'm running a simple 1-node Proxmox 6 with 3 4TB drives in RAIDZ for system and VMs. Actually, there is only 1 VM now, an FTP server built on Debian 9 + ProFTPD + Webmin. It has 2 virtual disks - one small 32G disk for system and 6.4TB disk for FTP content. This is current layout:
Code:
root@ftp:~# zpool status
pool: rpool
state: ONLINE
scan: scrub repaired 0B in 0 days 09:02:28 with 0 errors on Sun Sep 8 09:26:29 2019
config:
NAME STATE READ WRITE CKSUM
rpool ONLINE 0 0 0
raidz1-0 ONLINE 0 0 0
ata-HGST_HDN724040ALE640_PK1334PBGZUA9S-part3 ONLINE 0 0 0
ata-WDC_WD4000FYYZ-01UL1B1_WD-WCC131934012-part3 ONLINE 0 0 0
ata-HGST_HDN724040ALE640_PK1334PBGYJV3S-part3 ONLINE 0 0 0
errors: No known data errors
root@ftp:~# zfs list
NAME USED AVAIL REFER MOUNTPOINT
rpool 7.04T 605M 139K /rpool
rpool/ROOT 1.60G 605M 128K /rpool/ROOT
rpool/ROOT/pve-1 1.60G 605M 1.60G /
rpool/data 7.03T 605M 128K /rpool/data
rpool/data/vm-100-disk-0 22.0G 605M 22.0G -
rpool/data/vm-100-disk-1 7.01T 605M 7.01T -
root@ftp:~# df -h
Filesystem Size Used Avail Use% Mounted on
udev 16G 0 16G 0% /dev
tmpfs 3.2G 8.9M 3.2G 1% /run
rpool/ROOT/pve-1 2.2G 1.6G 605M 74% /
tmpfs 16G 43M 16G 1% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 16G 0 16G 0% /sys/fs/cgroup
rpool 605M 256K 605M 1% /rpool
rpool/data 605M 128K 605M 1% /rpool/data
rpool/ROOT 605M 128K 605M 1% /rpool/ROOT
/dev/fuse 30M 16K 30M 1% /etc/pve
tmpfs 3.2G 0 3.2G 0% /run/user/0
As you can see, vm-100-disk-1 has grown far beyond expected 6.4TB and now actively consuming all the space. Yesterday the whole system was stuck because there was no space on rpool/ROOT/pve-1 (the size was 2.5G, used 2.5G, available 0), it was not accessible nor by web interface, nor by SSH. The only way to get it running was to log in with IPMI-KVM, free some space (I've cleaned apt-get cache) and reboot. There were some unused VM disks, I deleted them, got about 120GB of free space available on rpool and switched to other tasks. This night there were some up- and downloads from my colleagues and the system stuck again. rpool/ROOT/pve-1 has shrunk to 2.2G. I had to delete some ISO's to free some space (605M) and stop FTP service after reboot, so now the situation is stable.
The funniest part is that FTP itself is not full. It was never filled up to less than 700GB of free space.
Code:
root@debftp:~# df -h
Filesystem Size Used Avail Use% Mounted on
udev 3.9G 0 3.9G 0% /dev
tmpfs 798M 11M 788M 2% /run
/dev/sda1 28G 4.5G 22G 18% /
tmpfs 3.9G 0 3.9G 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup
/dev/sdb1 6.3T 5.0T 1.1T 83% /ftp
tmpfs 798M 4.0K 798M 1% /run/user/113
tmpfs 798M 0 798M 0% /run/user/0
root@debftp:~# fdisk -l
Disk /dev/sdb: 6.4 TiB, 6979321856000 bytes, 13631488000 sectors
Disk model: QEMU HARDDISK
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 1F5B5652-F825-7442-92D5-3378EED2CCE4
Device Start End Sectors Size Type
/dev/sdb1 2048 13631487966 13631485919 6.4T Linux filesystem
Disk /dev/sda: 32 GiB, 34359738368 bytes, 67108864 sectors
Disk model: QEMU HARDDISK
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x6e25444e
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 58720255 58718208 28G 83 Linux
/dev/sda2 58722302 67106815 8384514 4G 5 Extended
/dev/sda5 58722304 67106815 8384512 4G 82 Linux swap / Solaris
FS is ext4 for both sda and sdb linux partitions.
Now I have to understand what's going on, how I can shrink this FTP volume down and how to prevent it from overgrowing in future. Any help is greatly appreciated!