linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] Question about Physical volume
@ 2006-10-20  8:00 Thomas Marmetschke
  2006-10-20  8:18 ` Mario Verbelen
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Thomas Marmetschke @ 2006-10-20  8:00 UTC (permalink / raw)
  To: linux-lvm

Hi,

is it possible to extend a phyiscal volume?

I have a strange problem, i resized the /dev/sda4 partion (8e Linux LVM)
from 130GB to 220GB. so far so good.

But with pvdisplay i still get the 130Gb Partion :

 pvdisplay
  --- Physical volume ---
  PV Name               /dev/sda4
  VG Name               msa
  PV Size               130,98 GB / not usable 0
  Allocatable           yes
  PE Size (KByte)       4096
  Total PE              33530
  Free PE               6394
  Allocated PE          27136
  PV UUID               TnggaW-0rIL-JaRp-JiwR-ZRlP-JJ83-LOjHfg

Can i do something like a Rescan? that the Information will be updated.
The big problem is that on this server a productive data so i can�t
remove any partions.

thx!

-tom

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

* Re: [linux-lvm] Question about Physical volume
  2006-10-20  8:00 [linux-lvm] Question about Physical volume Thomas Marmetschke
@ 2006-10-20  8:18 ` Mario Verbelen
  2006-10-20  9:04 ` Choque Virtual Informations
  2006-10-20  9:25 ` Bryn M. Reeves
  2 siblings, 0 replies; 6+ messages in thread
From: Mario Verbelen @ 2006-10-20  8:18 UTC (permalink / raw)
  To: tom, LVM general discussion and development

Hi,

I had this before and what I dit was reformat and recreate the lvm
because the vgchange -ay dit nor work with me also
If thare is no data on this disk this is the a way

with "vgchange -ay" will an rescan be executed

But I suggest that you read carefully the man because I don't now what
Will happen when thare is an problem

I used vgchange -ay in the past without problems but I don't guarantee
(because of production)

You will best wait for an second opinion because I'm not that specialist
but here was my experience (of last week)
(My OS was fedora5)

Mario,

On Fri, 2006-10-20 at 10:00 +0200, Thomas Marmetschke wrote:
> Hi,
> 
> is it possible to extend a phyiscal volume?
> 
> I have a strange problem, i resized the /dev/sda4 partion (8e Linux LVM)
> from 130GB to 220GB. so far so good.
> 
> But with pvdisplay i still get the 130Gb Partion :
> 
>  pvdisplay
>   --- Physical volume ---
>   PV Name               /dev/sda4
>   VG Name               msa
>   PV Size               130,98 GB / not usable 0
>   Allocatable           yes
>   PE Size (KByte)       4096
>   Total PE              33530
>   Free PE               6394
>   Allocated PE          27136
>   PV UUID               TnggaW-0rIL-JaRp-JiwR-ZRlP-JJ83-LOjHfg
> 
> Can i do something like a Rescan? that the Information will be updated.
> The big problem is that on this server a productive data so i can´t
> remove any partions.
> 
> thx!
> 
> -tom
> 
> _______________________________________________
> 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/

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

* Re: [linux-lvm] Question about Physical volume
  2006-10-20  8:00 [linux-lvm] Question about Physical volume Thomas Marmetschke
  2006-10-20  8:18 ` Mario Verbelen
@ 2006-10-20  9:04 ` Choque Virtual Informations
  2006-10-20  9:25 ` Bryn M. Reeves
  2 siblings, 0 replies; 6+ messages in thread
From: Choque Virtual Informations @ 2006-10-20  9:04 UTC (permalink / raw)
  To: tom, LVM general discussion and development

[-- Attachment #1: Type: text/plain, Size: 1906 bytes --]

HI Thomas
I normally create a vg with vgcreate, with these steps:
1) Create the physical volume:
    pvcreate /dev/sdb
    pvcreate /dev/sdc
2) Then create the Volume Group:
    vgcreate vg00 /dev/sdb /dev/sdc
3) Create the lv
    lvcreate -L 40960M -n lvxpto /dev/vg00
4) then mke2fs -j /dev/vg00/lvxpto
5) This way, if you need more space to create new lv or to extende lvxpto,
you nedd to extend the vg00 with vgextend

I Hope that this helps you
Gonçalo

2006/10/20, Thomas Marmetschke <thomas.marmetschke@nethinks.com>:
>
> Hi,
>
> is it possible to extend a phyiscal volume?
>
> I have a strange problem, i resized the /dev/sda4 partion (8e Linux LVM)
> from 130GB to 220GB. so far so good.
>
> But with pvdisplay i still get the 130Gb Partion :
>
> pvdisplay
> --- Physical volume ---
> PV Name               /dev/sda4
> VG Name               msa
> PV Size               130,98 GB / not usable 0
> Allocatable           yes
> PE Size (KByte)       4096
> Total PE              33530
> Free PE               6394
> Allocated PE          27136
> PV UUID               TnggaW-0rIL-JaRp-JiwR-ZRlP-JJ83-LOjHfg
>
> Can i do something like a Rescan? that the Information will be updated.
> The big problem is that on this server a productive data so i can´t
> remove any partions.
>
> thx!
>
> -tom
>
> _______________________________________________
> 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/
>



-- 
-- 
Gonçalo José do Casal Ribeiro Mendes Ramos
System Administrator

Choque Virtual - Tecnologias de Informação Unipessoal, LDA
Edificio Colombo I
Rua Dr. Mário Sacramento, Nº 177 1ºK
3810-106 Aveiro
Portugal
www.choque-virtual.pt
Phone: (+351) 234 194 518
Fax:     (+351) 234 194 515
Mobile Phone: (+351) 936 987 583

[-- Attachment #2: Type: text/html, Size: 4435 bytes --]

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

* Re: [linux-lvm] Question about Physical volume
  2006-10-20  8:00 [linux-lvm] Question about Physical volume Thomas Marmetschke
  2006-10-20  8:18 ` Mario Verbelen
  2006-10-20  9:04 ` Choque Virtual Informations
@ 2006-10-20  9:25 ` Bryn M. Reeves
  2006-10-20 10:08   ` Thomas Marmetschke
  2 siblings, 1 reply; 6+ messages in thread
From: Bryn M. Reeves @ 2006-10-20  9:25 UTC (permalink / raw)
  To: tom, LVM general discussion and development

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Thomas Marmetschke wrote:
> Hi,
> 
> is it possible to extend a phyiscal volume?
> 
> I have a strange problem, i resized the /dev/sda4 partion (8e Linux LVM)
> from 130GB to 220GB. so far so good.
> 

Hi Thomas,

Depending on how recent your version of LVM2 is, you can use pvresize to
do this:

# pvresize /dev/hda2

This will autodetect the new size of the PV and grow it accordingly. One
thing I noticed was that after fdisking the partition, a reboot was
needed to get kernel to see the new size - partprobe does not seem to be
sufficient.

That might have been a quirk though - check the partition sizes in
/proc/partitions to be sure.

Thanks,

Bryn.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFFOJYf6YSQoMYUY94RAuw3AJ9WIBaHGASEcJiIentE+nTJ89nRzwCgh6PD
Aw822Rs8DA7VsQGTaIms4z0=
=80Uw
-----END PGP SIGNATURE-----

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

* Re: [linux-lvm] Question about Physical volume
  2006-10-20  9:25 ` Bryn M. Reeves
@ 2006-10-20 10:08   ` Thomas Marmetschke
  2006-10-20 10:27     ` Bryn M. Reeves
  0 siblings, 1 reply; 6+ messages in thread
From: Thomas Marmetschke @ 2006-10-20 10:08 UTC (permalink / raw)
  To: linux-lvm

Hi,

many thanks for your mail.

Got Version 2.01.04-5 on debian stable.
pvresize exist in the unstable tree of debian with Verson 2.02xx

Is there any other chance to resize the pv without pvresize?

-tom

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

* Re: [linux-lvm] Question about Physical volume
  2006-10-20 10:08   ` Thomas Marmetschke
@ 2006-10-20 10:27     ` Bryn M. Reeves
  0 siblings, 0 replies; 6+ messages in thread
From: Bryn M. Reeves @ 2006-10-20 10:27 UTC (permalink / raw)
  To: tom, LVM general discussion and development

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Thomas Marmetschke wrote:
> Hi,
> 
> many thanks for your mail.
> 
> Got Version 2.01.04-5 on debian stable.
> pvresize exist in the unstable tree of debian with Verson 2.02xx
> 
> Is there any other chance to resize the pv without pvresize?
> 
> -tom
> 

The pvresize tool is the right way to do this. You'd need to hack the
metadata by hand otherwise - updating your LVM2 tools even temporarily
to allow you to do this is probably an easier path.

Cheers,

Bryn.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFFOKSO6YSQoMYUY94RAr1JAKDgFDzTD/QBe+b3BeqruUBuJNmSjwCdGL+O
GPzpI/MPG+7DfX1VXdU/GiU=
=OqfJ
-----END PGP SIGNATURE-----

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

end of thread, other threads:[~2006-10-20 10:27 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-20  8:00 [linux-lvm] Question about Physical volume Thomas Marmetschke
2006-10-20  8:18 ` Mario Verbelen
2006-10-20  9:04 ` Choque Virtual Informations
2006-10-20  9:25 ` Bryn M. Reeves
2006-10-20 10:08   ` Thomas Marmetschke
2006-10-20 10:27     ` Bryn M. Reeves

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).