Losing 4Gb on Debian LVM?
Hello all,
I'm creating LVM in the following way, pvcreate /dev/sdc (a virtual disk of 275G) Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
mkfs.ext4 /dev/mapper/vg_test-lv_test (everything OK) and when i mount it... /dev/mapper/vg_test-lv_test 271G 63M 257G 1% /mnt Why do i loose 4 GB in the process? is this normal? 4 GB? It's a LOT of space... I tried creating a partition of 275GB with the same results..I'm just confused Cheers!! |
df shows space available to non-privileged users. The default is to reserve some space for privileged use. For example:
Code:
df |grep home |
To elaborate on the above 5% is reserved for root when ext2/3/4 filesystems are created. That 5% is not included in the output of the df command so the numbers do not add up. 5% is 13GB.
The difference in the logical volume size versus filesystem size is overhead i.e. metadata. 1.5-2% for ext4 if I remember correctly is normal. |
And for a data filesystem, the reserved is pointless - set it to zero using tune2fs.
Note if you plan on running the filesystem really full (95% say) all the time and actively adding/deleting files (all the time) maybe you need some reserved. Never needed to in real life. |
You also loose space to support the inode list, block allocation maps, and the journal.
These are necessary to manage files in the filesystem and recover from system crashes/power failures. |
All times are GMT -5. The time now is 05:00 PM. |