Question about Physical volume
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
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,
Quoted 34 lines · Thomas Marmetschke
Hi,
is it possible to extend a phyiscal volume?
I have a strange problem, i resized the
/dev/sda4partion (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-LOjHfgCan 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
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
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 <[email protected]>:
Quoted 36 lines
Hi,
is it possible to extend a phyiscal volume?
I have a strange problem, i resized the
/dev/sda4partion (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-LOjHfgCan 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
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
Signature · 13 lines
-- 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
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 7 lines · Thomas Marmetschke
Hi,
is it possible to extend a phyiscal volume?
I have a strange problem, i resized the
/dev/sda4partion (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-----
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
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 11 lines · Thomas Marmetschke
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.02xxIs 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-----