GUI shows wrong capacity of external storage

ReQntar

New Member
Aug 25, 2018
6
2
1
27
Hello everyone,

I've noticed that on every external storage (NFS, USB storage) is only 93.99 GB of total space. This value is wrong, because every storage has much more amount of space.
2.PNG

Proxmox see mounted disk with right capacity.
1.PNG

Also fdisk says that everything is ok.
3.PNG

I was searching the internet for few hours and found really nothing. How's it possible that noone had this problem before? This strange bug(?) can be seen only in web GUI. Local-lvm storage works fine, I can see exact amount of space.

Please help me solve the problem, thanks in advance.
 
Last edited:
If you refering to /dev/sdb, the output of 1.46 TiB in the PVE GUI is correct, just calculate it yourself. I don't know why fdisk calculates it wrong.
 
The problem is when external drive is mounted as storage in proxmox gui, it says that I have only 93.99gb total space for backups (see first screenshot). But it's not true. Fdisk calculates it correctly, because my drive has 1,5tb total Space. I want have the same amount in storage in gui.

I tried to backup 200gb vm to external drive, error occured logs were saying, that there's no more space left on device.
 
Fdisk calculates it correctly, because my drive has 1,5tb total Space.

No, it's wrong. TiB is binary bytes, so it refers to a base of 1024 instead of 1000, so you have

Code:
1603128614912 / 1024^4 = 1,458036982 TiB

The problem is when external drive is mounted as storage in proxmox gui, it says that I have only 93.99gb total space for backups (see first screenshot).

I think you mean second screenshot. What about the partition scheme of your disk? Please post that part of the fdisk output, or directly use

Code:
lsblk --bytes | grep -v zd
 
I meant first screenshot. I noticed in my first post that I've mistaken order of attached images. I edited it just after posting second post :)

the output of lsblk:

Code:
root@pve:~# lsblk --bytes | grep -v zd
NAME                                           MAJ:MIN RM          SIZE RO TYPE MOUNTPOINT
sda                                              8:0    0 1999844147200  0 disk
├─sda1                                           8:1    0       1048576  0 part
├─sda2                                           8:2    0     268435456  0 part
└─sda3                                           8:3    0 1999573597696  0 part
  ├─pve-swap                                   253:0    0    8589934592  0 lvm  [SWAP]
  ├─pve-root                                   253:1    0  103079215104  0 lvm  /
  ├─pve-data_tmeta                             253:2    0     117440512  0 lvm
  │ └─pve-data-tpool                           253:4    0 1870726692864  0 lvm
  │   ├─pve-data                               253:5    0 1870726692864  0 lvm
  │   ├─pve-vm--101--disk--1                   253:6    0  214748364800  0 lvm
  │   ├─pve-vm--102--disk--1                   253:7    0  107374182400  0 lvm
  │   ├─pve-vm--106--disk--1                   253:8    0 1099511627776  0 lvm
  │   ├─pve-vm--100--disk--1                   253:9    0   34359738368  0 lvm
  │   ├─pve-vm--107--disk--1                   253:10   0  214748364800  0 lvm
  │   ├─pve-vm--101--state--backup             253:12   0    4819255296  0 lvm
  │   ├─pve-vm--101--state--backup_poataku     253:13   0    4819255296  0 lvm
  │   ├─pve-vm--109--disk--2                   253:14   0    2147483648  0 lvm
  │   ├─pve-vm--110--disk--1                   253:15   0   68719476736  0 lvm
  │   └─pve-vm--101--state--backup_del_certbot 253:16   0    4819255296  0 lvm
  └─pve-data_tdata                             253:3    0 1870726692864  0 lvm
    └─pve-data-tpool                           253:4    0 1870726692864  0 lvm
      ├─pve-data                               253:5    0 1870726692864  0 lvm
      ├─pve-vm--101--disk--1                   253:6    0  214748364800  0 lvm
      ├─pve-vm--102--disk--1                   253:7    0  107374182400  0 lvm
      ├─pve-vm--106--disk--1                   253:8    0 1099511627776  0 lvm
      ├─pve-vm--100--disk--1                   253:9    0   34359738368  0 lvm
      ├─pve-vm--107--disk--1                   253:10   0  214748364800  0 lvm
      ├─pve-vm--101--state--backup             253:12   0    4819255296  0 lvm
      ├─pve-vm--101--state--backup_poataku     253:13   0    4819255296  0 lvm
      ├─pve-vm--109--disk--2                   253:14   0    2147483648  0 lvm
      ├─pve-vm--110--disk--1                   253:15   0   68719476736  0 lvm
      └─pve-vm--101--state--backup_del_certbot 253:16   0    4819255296  0 lvm
sdb                                              8:16   0 1603128614912  0 disk
 
It seems that you do not have any partitions on the disk. Have you mounted it properly? Please post the output of pvesm status
 
Emm.. I thought that I formatted disk in ext4.

The output of pvesm:
Code:
root@pve:~# pvesm status
storage 'vm-backup' is not online
Name             Type     Status           Total            Used       Available        %
backup            dir     active        98559220        30456324        63053348   30.90%
local             dir     active        98559220        30456324        63053348   30.90%
local-lvm     lvmthin     active      1826881536      1547368660       279512875   84.70%
usb-disk          dir     active        98559220        30456324        63053348   30.90%
vm-backup         nfs   inactive               0               0               0    0.00%
 
I've posted fdisk output before:
Code:
root@pve:~# fdisk -l /dev/sdb
Disk /dev/sdb: 1.5 TiB, 1603128614912 bytes, 3131110576 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

df output:
Code:
root@pve:~# df -h /dev/sdb
Filesystem      Size  Used Avail Use% Mounted on
udev             16G     0   16G   0% /dev

And last one:
Code:
root@pve:~# grep usb-disk -A8 /etc/pve/storage.cfg
dir: usb-disk
        path /media/usb-dysk
        content images,rootdir,iso,backup,vztmpl
        maxfiles 10
        shared 0
 
  • Like
Reactions: amomp3
I've posted fdisk output before:
Code:
root@pve:~# fdisk -l /dev/sdb
Disk /dev/sdb: 1.5 TiB, 1603128614912 bytes, 3131110576 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Yes, I know. I only want to be sure, that there are no hidden partitions or a crippled output ...

df output:
Code:
root@pve:~# df -h /dev/sdb
Filesystem      Size  Used Avail Use% Mounted on
udev             16G     0   16G   0% /dev

And last one:
Code:
root@pve:~# grep usb-disk -A8 /etc/pve/storage.cfg
dir: usb-disk
        path /media/usb-dysk
        content images,rootdir,iso,backup,vztmpl
        maxfiles 10
        shared 0

This seems that you do not have mounted the disk. Please post:

Code:
df -h /media/usb-dysk

How do you mount the disk? Have you created an appropriate fstab-entry or do you use some udev rule for automount?
 
  • Like
Reactions: amomp3
Code:
root@pve:~# df -h /media/usb-dysk
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/pve-root   94G   30G   61G  33% /
I've created new folder /media/usb-dysk, then mounted hard drive by command mount. Nothing special.
 
  • Like
Reactions: amomp3
But it is not automatically mounted and that is shown here. We now know also where the 95 GB comes from.

Please add an entry to your fstab and mount your disk again.
 
  • Like
Reactions: amomp3
Same problem with me also.. I have mount external hard disk and made an entry in fstab file .df -hT showing correct output but in gui it showing 99 percent storage full
 
Have this same problem, after having to unplug the 256 GB removable backup drive and repluging it, only seeing latest 712 MB backup of 1 LXC... but the gui shows 27% full...

Now i had the GUI show the other 5 backups that really were there but even from the Console the files were not listing.

i manage to fix it using this commands:

systemctl daemon-reload
mount -a

is there anyway that i can unplug the drive when i need and then replug it and not needing to go to the Console and type this commands manually ?

Thank You!
 

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!