All of lore.kernel.org
 help / color / mirror / Atom feed
* RE: [linux-lvm] half my space lost
@ 2003-12-06  9:09 Koch, Steffen
  2003-12-06 15:51 ` Ronan-Yann Lorin
  0 siblings, 1 reply; 5+ messages in thread
From: Koch, Steffen @ 2003-12-06  9:09 UTC (permalink / raw)
  To: 'linux-lvm@sistina.com'

Hello again,

> Thank you for this explanation which sounds very clear.
> 
> One more question please. I do not understand why I can not 
> extend my VG with the second RAID partition: [root@fw root]# 
> pvdisplay /dev/md/8 pvdisplay -- "/dev/md/8" is a new 
> physical volume of 125.38 MB
> 
> [root@fw root]# vgextend secured /dev/md/8
> vgextend -- INFO: maximum logical volume size is 2 Terabyte 
> vgextend -- ERROR: physical volume "/dev/md/8" too small for 
> physical extent siz e of volume group "secured"
Seems that the extent size of your other vg is larger than the available
size of your new md8.

A question I have: Why do you want to extend your 17 GB VG with 2*128 MB??
Doesn't make much sense to me...

^ permalink raw reply	[flat|nested] 5+ messages in thread
* RE: [linux-lvm] half my space lost
@ 2003-12-05  8:26 Ronan-Yann Lorin
  0 siblings, 0 replies; 5+ messages in thread
From: Ronan-Yann Lorin @ 2003-12-05  8:26 UTC (permalink / raw)
  To: linux-lvm

Thank you for this explanation which sounds very clear.

One more question please. I do not understand why I can not extend my VG with the
second RAID partition:
[root@fw root]# pvdisplay /dev/md/8
pvdisplay -- "/dev/md/8" is a new physical volume of 125.38 MB

[root@fw root]# vgextend secured /dev/md/8
vgextend -- INFO: maximum logical volume size is 2 Terabyte
vgextend -- ERROR: physical volume "/dev/md/8" too small for physical extent siz
e of volume group "secured"

Thanks in advance.

Koch, Steffen (steffen.koch@sphinx-electronics.de) wrote*:
>
>Hello,
>
>> [root@fw root]# vgcreate secured /dev/md/7
>> vgcreate -- INFO: using default physical extent size 32 MB
>> vgcreate -- INFO: maximum logical volume size is 2 Terabyte
>> vgcreate -- doing automatic backup of volume group "secured"
>> vgcreate -- volume group "secured" successfully created and activated
>As it is stated here an extent is 32 MB, and one extent is always lost at
>the beginning of the md (partition, disk, etc.) for metadata information.
>This should leave you with 125 MB - 32 MB = 93 MB.
>LVM volumes have to be a multiple of the extent size. So 32MB, 64 MB, 96 MB.
>As you can see your remaining space is 3 MB too little for a 3 extent
>volume, leaving you with a 2 extent volume with 2 * 32 MB = 64 MB
>
>> The size of the partition get shrink by half:
>>
>> [root@fw root]# pvscan
>> pvscan -- reading all physical volumes (this may take a while...)
>> pvscan -- ACTIVE   PV "/dev/md/7"
>>   of VG "secured"
>> [64 MB / 64 MB free]
>> pvscan -- inactive PV "/dev/md/8"
>>   is in no VG
>> [125.38 MB]
>> pvscan -- ACTIVE   PV
>> "/dev/ide/host0/bus1/target0/lun0/part13" of VG "lvm1"
>> [17 GB / 16.97 GB fr
>> pvscan -- total: 3 [17.28 GB] / in use: 2 [17.16 GB] / in no
>> VG: 1 [125.38 MB]
>>
>> Is this a known/solved problem?
>> Did I made a mistake?
>>
>> Thanks in advance for your help.
>> Regards.
>
>Hope the explanation helped.
>
>_______________________________________________
>linux-lvm mailing list
>linux-lvm@sistina.com
>http://lists.sistina.com/mailman/listinfo/linux-lvm
>read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>
>

--
R.Y. Lorin
mailto:ryl@free.fr
http://les-lorin.webhop.net/

^ permalink raw reply	[flat|nested] 5+ messages in thread
* RE: [linux-lvm] half my space lost
@ 2003-12-05  8:10 Koch, Steffen
  0 siblings, 0 replies; 5+ messages in thread
From: Koch, Steffen @ 2003-12-05  8:10 UTC (permalink / raw)
  To: 'linux-lvm@sistina.com'

Hello,

> [root@fw root]# vgcreate secured /dev/md/7
> vgcreate -- INFO: using default physical extent size 32 MB 
> vgcreate -- INFO: maximum logical volume size is 2 Terabyte 
> vgcreate -- doing automatic backup of volume group "secured" 
> vgcreate -- volume group "secured" successfully created and activated
As it is stated here an extent is 32 MB, and one extent is always lost at
the beginning of the md (partition, disk, etc.) for metadata information.
This should leave you with 125 MB - 32 MB = 93 MB.
LVM volumes have to be a multiple of the extent size. So 32MB, 64 MB, 96 MB.
As you can see your remaining space is 3 MB too little for a 3 extent
volume, leaving you with a 2 extent volume with 2 * 32 MB = 64 MB

> The size of the partition get shrink by half:
> 
> [root@fw root]# pvscan
> pvscan -- reading all physical volumes (this may take a while...)
> pvscan -- ACTIVE   PV "/dev/md/7"                             
>   of VG "secured"
> [64 MB / 64 MB free]
> pvscan -- inactive PV "/dev/md/8"                             
>   is in no VG
> [125.38 MB]
> pvscan -- ACTIVE   PV 
> "/dev/ide/host0/bus1/target0/lun0/part13" of VG "lvm1"
> [17 GB / 16.97 GB fr
> pvscan -- total: 3 [17.28 GB] / in use: 2 [17.16 GB] / in no 
> VG: 1 [125.38 MB]
> 
> Is this a known/solved problem?
> Did I made a mistake?
> 
> Thanks in advance for your help.
> Regards.

Hope the explanation helped.

^ permalink raw reply	[flat|nested] 5+ messages in thread
* [linux-lvm] half my space lost
@ 2003-12-05  7:19 Ronan-Yann Lorin
  0 siblings, 0 replies; 5+ messages in thread
From: Ronan-Yann Lorin @ 2003-12-05  7:19 UTC (permalink / raw)
  To: linux-lvm

Hi,

I'm using LVM 1.0.7 on Linux 2.4.22 (Mandrake 9.2).
I'm triyng to setup a VG build on RAID 1 partitions.
When the parition is added to the VG, half of it space mysteriously disapear.

for example:

my RAID 1 partitions are /dev/md/7 and /dev/md/8 and are about 128Mb size.

[root@fw root]# pvscan
pvscan -- reading all physical volumes (this may take a while...)
pvscan -- inactive PV "/dev/md/7"                               is in no VG
[125.38 MB]
pvscan -- inactive PV "/dev/md/8"                               is in no VG
[125.38 MB]
pvscan -- ACTIVE   PV "/dev/ide/host0/bus1/target0/lun0/part13" of VG "lvm1" [17
GB / 16.97 GB free]
pvscan -- total: 3 [17.28 GB] / in use: 1 [17.04 GB] / in no VG: 2 [250.75 MB]

I create one VG using one of the RAID 1 partitions:

[root@fw root]# vgcreate secured /dev/md/7
vgcreate -- INFO: using default physical extent size 32 MB
vgcreate -- INFO: maximum logical volume size is 2 Terabyte
vgcreate -- doing automatic backup of volume group "secured"
vgcreate -- volume group "secured" successfully created and activated

The size of the partition get shrink by half:

[root@fw root]# pvscan
pvscan -- reading all physical volumes (this may take a while...)
pvscan -- ACTIVE   PV "/dev/md/7"                               of VG "secured"
[64 MB / 64 MB free]
pvscan -- inactive PV "/dev/md/8"                               is in no VG
[125.38 MB]
pvscan -- ACTIVE   PV "/dev/ide/host0/bus1/target0/lun0/part13" of VG "lvm1"
[17 GB / 16.97 GB fr
pvscan -- total: 3 [17.28 GB] / in use: 2 [17.16 GB] / in no VG: 1 [125.38 MB]

Is this a known/solved problem?
Did I made a mistake?

Thanks in advance for your help.
Regards.

--
R.Y. Lorin
mailto:ryl@free.fr
http://les-lorin.webhop.net/

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-12-06 15:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-12-06  9:09 [linux-lvm] half my space lost Koch, Steffen
2003-12-06 15:51 ` Ronan-Yann Lorin
  -- strict thread matches above, loose matches on Subject: below --
2003-12-05  8:26 Ronan-Yann Lorin
2003-12-05  8:10 Koch, Steffen
2003-12-05  7:19 Ronan-Yann Lorin

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.