* [linux-lvm] 33% of my space is missing?
@ 2001-09-13 20:11 Diehl, Jeffrey
2001-09-13 20:38 ` Andreas Dilger
0 siblings, 1 reply; 4+ messages in thread
From: Diehl, Jeffrey @ 2001-09-13 20:11 UTC (permalink / raw)
To: 'linux-lvm@sistina.com'
Hi all.
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:
[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.
Where is the rest of my space?
Mike Diehl.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [linux-lvm] 33% of my space is missing?
2001-09-13 20:11 [linux-lvm] 33% of my space is missing? Diehl, Jeffrey
@ 2001-09-13 20:38 ` Andreas Dilger
0 siblings, 0 replies; 4+ messages in thread
From: Andreas Dilger @ 2001-09-13 20:38 UTC (permalink / raw)
To: linux-lvm
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [linux-lvm] 33% of my space is missing?
@ 2001-09-13 20:40 Kevin M Corry
0 siblings, 0 replies; 4+ messages in thread
From: Kevin M Corry @ 2001-09-13 20:40 UTC (permalink / raw)
To: linux-lvm
Hi Mike,
As I recall from your previous emails, you added a few of these
drives below as new PVs to your VG. You now need to do an
lvextend on the existing logical volume to make use of this
additional space in the volume group. AFTER the lvextend, you
will need to expand the filesystem so it makes use of the
new space as well. If you are using ext2 (I can't remember
if you are using Reiser), then there is an LVM tool (e2fsadm)
which should do both the lvextend and the fs extend. If you
are using Reiser or XFS, they will have their own tools for
doing the fs extend.
The other option is to create a second logical volume in that
group, with a new filesystem. If you need a single filesystem
for all that space, then you will need the procedure above.
-Kevin
----------------------------------
Hi all.
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:
[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.
Where is the rest of my space?
Mike Diehl.
_______________________________________________
linux-lvm mailing list
linux-lvm@sistina.com
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: [linux-lvm] 33% of my space is missing?
@ 2001-09-13 20:53 Diehl, Jeffrey
0 siblings, 0 replies; 4+ messages in thread
From: Diehl, Jeffrey @ 2001-09-13 20:53 UTC (permalink / raw)
To: 'Kevin M Corry ', 'linux-lvm@sistina.com '
Ok, I found my space. I did something stupid. Kevin, you were right.
Now I feel pretty dumb. I'll get over it.
Thanx,
Mike Diehl.
-----Original Message-----
From: Kevin M Corry
To: linux-lvm@sistina.com
Sent: 9/13/2001 2:40 PM
Subject: Re: [linux-lvm] 33% of my space is missing?
Hi Mike,
As I recall from your previous emails, you added a few of these
drives below as new PVs to your VG. You now need to do an
lvextend on the existing logical volume to make use of this
additional space in the volume group. AFTER the lvextend, you
will need to expand the filesystem so it makes use of the
new space as well. If you are using ext2 (I can't remember
if you are using Reiser), then there is an LVM tool (e2fsadm)
which should do both the lvextend and the fs extend. If you
are using Reiser or XFS, they will have their own tools for
doing the fs extend.
The other option is to create a second logical volume in that
group, with a new filesystem. If you need a single filesystem
for all that space, then you will need the procedure above.
-Kevin
----------------------------------
Hi all.
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:
[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.
Where is the rest of my space?
Mike Diehl.
_______________________________________________
linux-lvm mailing list
linux-lvm@sistina.com
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html
_______________________________________________
linux-lvm mailing list
linux-lvm@sistina.com
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2001-09-13 20:53 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-09-13 20:11 [linux-lvm] 33% of my space is missing? Diehl, Jeffrey
2001-09-13 20:38 ` Andreas Dilger
-- strict thread matches above, loose matches on Subject: below --
2001-09-13 20:40 Kevin M Corry
2001-09-13 20:53 Diehl, Jeffrey
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox