Re: [linux-lvm] 33% of my space is missing?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sep 13, 2001  14:11 -0600, Diehl, Jeffrey wrote:
> I seem to be missing 100Gb out of a possible 300Gb!  Check it out:
> 
> [root@filmore jdiehl]# fdisk -l | grep LVM
> /dev/sdb5           226      4402  33551721   8e  Linux LVM
> /dev/sdb6          4403      8579  33551721   8e  Linux LVM
> /dev/sdb7          8580     12756  33551721   8e  Linux LVM
> /dev/sdb8         12757     15030  18265873+  8e  Linux LVM
> /dev/sdc6          7015     14028  56339923+  8e  Linux LVM
> /dev/sdc7         14029     21042  56339923+  8e  Linux LVM
> /dev/sdc8         21043     28056  56339923+  8e  Linux LVM
> /dev/sdc9         28057     30945  23205861   8e  Linux LVM
> [root@filmore jdiehl]#
> 
> Adding this space up, I get 311Gb.

But it is only 296 GiB, which is what LVM measures.

> [root@filmore jdiehl]# lvdisplay /dev/Database2/data
> --- Logical volume ---
> LV Name                /dev/Database2/data
> VG Name                Database2
> LV Write Access        read/write
> LV Status              available
> LV #                   1
> # open                 1
> LV Size                215.3 GB
> Current LE             27558
> Allocated LE           27558
> Allocation             next free
> Read ahead sectors     120
> Block device           58:0
> 
> Here we see that I only have access to 215Gb. 

What PE size are you using?  If (default) 4MiB, you would lose about 3MiB
per PV, so 3MiB * 8 = 24MiB.  If you are using LVM 1.0+ user tools you will
lose 1.5x PE size (on average) per PV, so if you have 32MiB PEs, you lose
48MiB * 8 = 384MiB.  So this is still not enough to explain your losses.

Are you sure you have added all PVs into this VG, and used all of the PEs
in this LV?  Something like pvscan would show better information.

Cheers, Andreas
-- 
Andreas Dilger  \ "If a man ate a pound of pasta and a pound of antipasto,
                 \  would they cancel out, leaving him still hungry?"
http://www-mddsp.enel.ucalgary.ca/People/adilger/               -- Dogbert




[Index of Archives]     [Gluster Users]     [Kernel Development]     [Linux Clusters]     [Device Mapper]     [Security]     [Bugtraq]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]

  Powered by Linux