How to set exactly the partition size in Debianż
Hi all,
I'm doing a lab with LVM and i want 10G for root I tried with 10G and 10000000K and this is the result Quote:
Quote:
Cheers |
There is no G or K, there is GB and kB and there is GiB and KiB. Check it out: http://physics.nist.gov/cuu/Units/binary.html
|
BIOS hard disk geometry is set suchwise that if you want good performance the partitions have to be aligned correctly. The smallest increment of a disk partition is a cylinder. You cannot have a partition with a fraction of a cylinder in it. That means that the partition cannot be any size. The partitioner will round up or round down to the nearest size to the desired size that lines up properly with the disk geometry
|
Quote:
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert lv_root vg_debian -wi-ao---- 9.31g lv_swap vg_debian -wi-ao---- 1.86g I set root 10GB and swap 2GB thanks though |
Quote:
|
Quote:
Yes, there are alignment considerations, the principal ones being the alignment of 512-byte LBA addresses with 4096-byte physical sectors, and the (unspecified) size of SSD erase blocks. Neither of these has anything to do with CHS addressing. Modern partitioning tools align partitions on 1 MiB boundaries, ignoring CHS completely. |
OP, can you please paste the exact pvcreate, vgcreate and lvcreate commands that you used.
Also, the output from pvdisplay, vgdisplay and lvdisplay. Thanks. By the way, 10000000K is not the same as 10G. |
It may seem nonsensical, but there are compelling reasons why cylinders are still used. The drives are LBA, but partitioning schemes are just now advancing to fully use LBA.
|
This
Code:
Filesystem Size Used Avail Use% Mounted on 1. There is an overhead of structuring the disk block layout ie it needs to use some space from the raw (see also the GB v GiB above) and also default 4k block for the top dir inode. 2. Default reserved space for recent mkfs eg mkfs.ext4 is 5% http://linux.die.net/man/8/mkfs.ext4 Observe: Code:
lsblk |
All times are GMT -5. The time now is 08:22 PM. |