Problem with LVM storage

maxiboom

New Member
Apr 7, 2013
2
0
1
Hi.

I have installed Proxmox Ve 2.3 with RAID 1 for system and RAID 6 for storage. Total capacity of storage is 12TB. I create LVM vm_images and mount it to the directory.

root@proxmox:~# lvs
LV VG Attr LSize Pool Origin Data% Move Log Copy% Convert
data pve -wi-ao-- 129.21g
root pve -wi-ao-- 58.00g
swap pve -wi-ao-- 29.00g
vm_images storage -wi-ao-- 10.90t

root@proxmox:~# lvdisplay
--- Logical volume ---
LV Path /dev/storage/vm_images
LV Name vm_images
VG Name storage
LV UUID PqZpGe-vaJe-VMsv-QF2b-V2Af-Lq5g-CdXcY4
LV Write Access read/write
LV Creation host, time proxmox, 2013-04-07 17:22:49 +0600
LV Status available
# open 1
LV Size 10.90 TiB
Current LE 2856956
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:1

Filesystem Size Used Avail Use% Mounted on
/dev/mapper/pve-root 58G 1.3G 53G 3% /
tmpfs 63G 0 63G 0% /lib/init/rw
udev 63G 232K 63G 1% /dev
tmpfs 63G 19M 63G 1% /dev/shm
/dev/mapper/pve-data 128G 188M 127G 1% /var/lib/vz
/dev/sda1 495M 35M 436M 8% /boot
/dev/fuse 30M 12K 30M 1% /etc/pve
/dev/mapper/storage-vm_images
11T 159M 11T 1% /storage

Then i added storage from web interface as directory. After that i saw that total capacity of storage is 10.73 Tb and it is normal. But the problem is that 558.15 Gb out of 10.73 Tb are used and i don't understand who uses them.

But! If i add storage as LVM as is described in wiki, i see 10.73 Tb and used 0.

I want to use storage as directory. Could anyone explain why 558.15Gb are used and how to avoid it ???

And second question. Do i understand correctly that i should leave 10-20% of PV unmarked when i use LVM ?
 
Those 558 gigs of missing space are consistent with the default reserved space settings of 5% for ext[234] file systems. Use tune2fs -m 1 /dev/storage/vm_images (or even -m 0). 5% does not make any sense nowadays anyway. If it's not ext3 then please post more specifics about your fs.
 

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!