[SOLVED] Node shows wrong USB disk size

awado

Active Member
Mar 2, 2020
34
7
28
53
Hi! This is something, I did not see anywhere else. I've got PVE 7.1-7 with a single node. For backup purposes an 8TB USB HDD is attached. "Disks" shows /dev/dsde and sde1 as 8 TB (it's one single EXT4 partition). When I click on that Volume (listed below the node's VMs), the summary shows 4.24 TB as a directory. Where are the missing 4 TB?

Thanks for any hints.
 
Code:
sde        8:64   0  7.3T  0 disk
└─sde1     8:65   0  7.3T  0 part

Strangely its the same with the main volume. Its a ZRAID with 4 x 4TB HDDs. The node says under Disks/ZFS: size = 16 TB, free = 3.5 TB, allocated = 12.5 TB. But under summary: HD space 2.46 of 3.86 TB
 
Can you post the full output of lsblk and of df -h?
 
Code:
# lsblk
NAME     MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sda        8:0    0  3.6T  0 disk
├─sda1     8:1    0 1007K  0 part
├─sda2     8:2    0  512M  0 part
└─sda3     8:3    0  3.6T  0 part
sdb        8:16   0  3.6T  0 disk
├─sdb1     8:17   0 1007K  0 part
├─sdb2     8:18   0  512M  0 part
└─sdb3     8:19   0  3.6T  0 part
sdc        8:32   0  3.6T  0 disk
├─sdc1     8:33   0 1007K  0 part
├─sdc2     8:34   0  512M  0 part
└─sdc3     8:35   0  3.6T  0 part
sdd        8:48   0  3.6T  0 disk
├─sdd1     8:49   0 1007K  0 part
├─sdd2     8:50   0  512M  0 part
└─sdd3     8:51   0  3.6T  0 part
sde        8:64   0  7.3T  0 disk
└─sde1     8:65   0  7.3T  0 part
zd16     230:16   0    3T  0 disk
├─zd16p1 230:17   0  200M  0 part
└─zd16p2 230:18   0    3T  0 part
zd32     230:32   0   32G  0 disk
├─zd32p1 230:33   0 27.7G  0 part
└─zd32p2 230:34   0  4.3G  0 part
zd48     230:48   0    8G  0 disk
├─zd48p1 230:49   0  7.6G  0 part
├─zd48p2 230:50   0    1K  0 part
└─zd48p5 230:53   0  383M  0 part

# df -h
Filesystem        Size  Used Avail Use% Mounted on
udev               63G     0   63G   0% /dev
tmpfs              13G  1.2M   13G   1% /run
rpool/ROOT/pve-1  3.9T  2.5T  1.4T  64% /
tmpfs              63G   46M   63G   1% /dev/shm
tmpfs             5.0M  4.0K  5.0M   1% /run/lock
rpool             1.4T  256K  1.4T   1% /rpool
rpool/ROOT        1.4T  256K  1.4T   1% /rpool/ROOT
rpool/data        1.4T  256K  1.4T   1% /rpool/data
/dev/fuse         128M   20K  128M   1% /etc/pve
tmpfs              13G     0   13G   0% /run/user/0
 
Code:
# zfs list
NAME                        USED  AVAIL     REFER  MOUNTPOINT
rpool                      5.53T  1.39T      140K  /rpool
rpool/ROOT                 2.46T  1.39T      140K  /rpool/ROOT
rpool/ROOT/pve-1           2.46T  1.39T     2.46T  /
rpool/data                 3.06T  1.39T      140K  /rpool/data
rpool/data/vm-100-disk-0   1.28G  1.39T     1.28G  -
rpool/data/vm-100-disk-1   3.05T  1.39T     3.05T  -
rpool/data/vm-1000-disk-0  6.63G  1.39T     6.63G  -
 
Okay, got it. The USB HDD was not mounted and what was shown was the bare directory of the root file system. Mounting the HDD shows the correct size for it. Why doesn't proxmox remount USB file systems at reboot? Does it have to be manually added in fstab?

But the issue with the root disks size stays.
 
Last edited:
Why doesn't proxmox remount USB file systems at reboot?
How did you create that disk? Via Proxmox VE itself? (Node->Disk->Directory) or by yourself?

If you do it via Proxmox VE, it will create a systemd mount unit so it gets mounted again.

Code:
# cat /etc/systemd/system/mnt-pve-foo.mount
[Install]
WantedBy=multi-user.target

[Mount]
Options=defaults
Type=ext4
What=/dev/disk/by-uuid/21cb3571-fff0-4635-9d28-8b95fab37cd9
Where=/mnt/pve/foo

[Unit]
Description=Mount storage 'foo' under /mnt/pve
 

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!