HDD shows only 18.08GB of space, when the disk contains 93GB

juan.mg

New Member
Jul 13, 2020
4
0
1
Argentina
Hi, im farly new with proxmox, recently partitioned and added those partitions as "directory" disks from the command line. I did it creating .mount files in /etc/systemd/system/, the console is showing them, but 2 out of 4 shows only 18GB avaible from the 80GB or 100GB that they have, which is exactly the same as "local" disk, and lsblk dont show them mounted (as opposed to the other 2 working fine).

I did the exact same thing with the 4 partitions, so i dont know what this is not working.

The ones not working right are HDD1 (sda1) and HDD3 (sda3), while HDD2 (sda2) and HDD4 (sda4) are working fine

Some outputs:

lsblk
Code:
NAME               MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda                  8:0    0 465.8G  0 disk
├─sda1               8:1    0  74.5G  0 part
├─sda2               8:2    0 111.8G  0 part /mnt/pve/HDD2
├─sda3               8:3    0  93.1G  0 part
└─sda4               8:4    0 186.4G  0 part /mnt/pve/HDD4
sdb                  8:16   0  74.5G  0 disk
├─sdb1               8:17   0  1007K  0 part
├─sdb2               8:18   0   512M  0 part
└─sdb3               8:19   0    74G  0 part
  ├─pve-swap       253:0    0     4G  0 lvm  [SWAP]
  ├─pve-root       253:1    0  18.5G  0 lvm  /
  ├─pve-data_tmeta 253:2    0     1G  0 lvm
  │ └─pve-data     253:4    0  40.3G  0 lvm
  └─pve-data_tdata 253:3    0  40.3G  0 lvm
    └─pve-data     253:4    0  40.3G  0 lvm

fdisk -l
Code:
Disk /dev/sda: 465.8 GiB, 500107862016 bytes, 976773168 sectors
Disk model: WDC WD5000AAKX-0
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: A72E9309-4101-47CB-8E27-8BA4F8668C6E

Device         Start       End   Sectors   Size Type
/dev/sda1       2048 156250000 156247953  74.5G Linux filesystem
/dev/sda2  156250112 390625279 234375168 111.8G Linux filesystem
/dev/sda3  390625280 585936895 195311616  93.1G Linux filesystem
/dev/sda4  585936896 976773119 390836224 186.4G Linux filesystem

Here are some screenshots from the console:

Bad working disk
1594669249653.png
Local disk
1594669269409.png

Working disk
1594669663688.png

Datacenter Storage:

1594671364992.png

Thanks for the help
 
Last edited:
In the first output you see that only 2 out of the 4 are mounted.

When creating a Directory storage on a path that is mounted from outside PVE itself, you should add the following to lines to that storage:
Code:
is_mountpoint 1
mkdir 0

Otherwise it will just use the directories you specify and doesn't know that it should wait until something is mounted there.
 
  • Like
Reactions: juan.mg
Storag
In the first output you see that only 2 out of the 4 are mounted.

When creating a Directory storage on a path that is mounted from outside PVE itself, you should add the following to lines to that storage:
Code:
is_mountpoint 1
mkdir 0

Otherwise it will just use the directories you specify and doesn't know that it should wait until something is mounted there.


Thanks, so how would be the correct way to mount the partition with pvesm? I tried
Code:
pvesm add dir HDD1 -path /mnt/pve/HDD1 --is_mountpoint yes
but is throwing an error create storage failed: error with cfs lock 'file-storage_cfg': unable to activate storage 'HDD1' - directory is expected to be a mount point but is not mounted: '/mnt/pve/HDD1', the documentation is not really well explained on how to use it.

I'll keep trying and if i can do it ill post the answer here
 
In your lsblk output you can see that only sda2 and sda4 are actually mounted. Make sure those are mounted as well and everything should work.


I am curious, why do you even want to split up the disk in 4 partitions?
 
  • Like
Reactions: juan.mg
In your lsblk output you can see that only sda2 and sda4 are actually mounted. Make sure those are mounted as well and everything should work.

I mounted the 4 of them the same way (which is not the right way, since i copied files and modified the partitions) thats what surprises me, i dont understand why 2 are working and other 2 are not.
Another thing to have in mind is that i used mount /dev/sda1 /mnt/pve/HDD1 and it worked (in the web GUI it appeared with his 80GB), but just once, after i rebooted the machine and tried again it didnt work, and also when i wrote it on /etc/fstab it crashed the machine.


I am curious, why do you even want to split up the disk in 4 partitions?

To have a better management of the things in them, and also the tutorials i saw use different disks for isos/vms, etc. Should i use everything in a single partition?
 
To have a better management of the things in them, and also the tutorials i saw use different disks for isos/vms, etc. Should i use everything in a single partition?
I would only use one partition. With the different partitions you complicate the setup beyond what is necessary and limit yourself as to how much space is available for things like ISOs and VMs by the partition size which cannot be changed easily later on.
 
I would only use one partition. With the different partitions you complicate the setup beyond what is necessary and limit yourself as to how much space is available for things like ISOs and VMs by the partition size which cannot be changed easily later on.

Okay will do, thanks for the help
 

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!