All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mitch Miller <mitch@mdmiller.com>
To: LVM general discussion and development <linux-lvm@redhat.com>
Cc: Derrick Hudson <dman@dman13.dyndns.org>
Subject: Re: [linux-lvm] LVM Missing Space
Date: Wed, 20 Sep 2006 22:57:59 -0500	[thread overview]
Message-ID: <45120DC7.9080506@mdmiller.com> (raw)
In-Reply-To: <4512093F.1050802@macfadden.org>

Michael,

You're being misled -- fdisk says 639977390080 bytes ... divide that by 
1024 / 1024 / 1024 *IS* 596Gb.

Problem is the difference between Gb and Gb ... ;)  Some people just 
divide by 1 billion to get Gb, but ... others divide by 2^30, (1024 * 
1024 * 1024) to get Gb.

LVM uses 2^30 to equal 1Gb,
Fdisk uses 10^9 to equal 1Gb.

-- Mitch




Michael MacFadden wrote:
> Hello,
> 
> I have been trying to setup LVM for the first time on an RAID 5 Array.
> The problem I have is that the raid array has 640Gb of usable space, but
> when I create the LVM Physical Volume and Volume group I wind up with
> 596Gb.  I don't know where 44 gigs went to.  I am on Debian with a
> 2.6.17 kernel.
> 
> When I do fdisk -l I get this:
> 
>  fdisk -l
> 
> Disk /dev/sda: 639.9 GB, 639977390080 bytes
> 255 heads, 63 sectors/track, 77806 cylinders
> Units = cylinders of 16065 * 512 = 8225280 bytes
> 
> Disk /dev/sda doesn't contain a valid partition table
> 
> Disk /dev/hda: 163.9 GB, 163928604672 bytes
> 255 heads, 63 sectors/track, 19929 cylinders
> Units = cylinders of 16065 * 512 = 8225280 bytes
> 
>    Device Boot      Start         End      Blocks   Id  System
> /dev/hda1   *           1       19740   158561518+  83  Linux
> /dev/hda2           19741       19929     1518142+   5  Extended
> /dev/hda5           19741       19929     1518111   82  Linux swap / Solaris
> 
> 
> Here you can see /dev/sda is 639.9GB.
> 
> I then do:
> 
>  $ pvcreate /dev/sda
>   Physical volume "/dev/sda" successfully created
> $ pvdisplay /dev/sda
>   --- NEW Physical volume ---
>   PV Name               /dev/sda
>   VG Name
>   PV Size               596.03 GB
>   Allocatable           NO
>   PE Size (KByte)       0
>   Total PE              0
>   Free PE               0
>   Allocated PE          0
>   PV UUID               po9rKd-gOKR-jfmx-yjUm-R5Wl-us2j-s6qZN1
> 
> You see here I only get 596Gb.  Also if I run the lvmdiskscan utility I get:
> 
> lvmdiskscan
>   /dev/ram0  [        8.00 MB]
>   /dev/sda   [      596.03 GB] LVM physical volume
>   /dev/ram1  [        8.00 MB]
>   /dev/hda1  [      151.22 GB]
>   /dev/ram2  [        8.00 MB]
>   /dev/ram3  [        8.00 MB]
>   /dev/ram4  [        8.00 MB]
>   /dev/ram5  [        8.00 MB]
>   /dev/hda5  [        1.45 GB]
>   /dev/ram6  [        8.00 MB]
>   /dev/ram7  [        8.00 MB]
>   /dev/ram8  [        8.00 MB]
>   /dev/ram9  [        8.00 MB]
>   /dev/ram10 [        8.00 MB]
>   /dev/ram11 [        8.00 MB]
>   /dev/ram12 [        8.00 MB]
>   /dev/ram13 [        8.00 MB]
>   /dev/ram14 [        8.00 MB]
>   /dev/ram15 [        8.00 MB]
>   0 disks
>   18 partitions
>   1 LVM physical volume whole disk
>   0 LVM physical volumes
> 
> 
> Again listing 596.03Gb.  What's going on here.  Why do I seem to be
> getting less capacity in the physical volume than actually on the drive.
> I really would like to use LVM but if I am going to lose 40Gigs then its
> not really worth it.  Any help or ideas would be appreciated.
> 
> Regards,
> Michael MacFadden
> 
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
> 

      reply	other threads:[~2006-09-21  3:58 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-21  3:38 [linux-lvm] LVM Missing Space Michael MacFadden
2006-09-21  3:57 ` Mitch Miller [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=45120DC7.9080506@mdmiller.com \
    --to=mitch@mdmiller.com \
    --cc=dman@dman13.dyndns.org \
    --cc=linux-lvm@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.