LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-20-2014, 11:09 PM   #1
Ashish Sood
Member
 
Registered: Feb 2009
Location: Gwalior
Distribution: Fedora 22, RHEL 6,7
Posts: 180

Rep: Reputation: 15
Increasing PE Size


Hi All,

I am trying to increase the physical extent size of my volume group, but its seems not working for me. when i try to increase my VG size its gave me error message
New extent size is not a perfect fit

Please find the detail of my volume group

[vgdisplay]

Quote:
--- Volume group ---
VG Name test
System ID
Format lvm2
Metadata Areas 2
Metadata Sequence No 9
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 2
Open LV 0
Max PV 0
Cur PV 2
Act PV 2
VG Size 2.81 GB
PE Size 4.00 MB
Total PE 719
Alloc PE / Size 256 / 1.00 GB
Free PE / Size 463 / 1.81 GB
VG UUID VflmfG-OZPg-ADb8-3zXq-L1AX-3vsX-ykh4qE

[vgchange]

Quote:
[root@localhost ~]# vgchange -s 32M test
New extent size is not a perfect fit


Please tell me where i am wrong & what method do i need to follow to make it work.

Thanks in advance
Ashish
 
Old 03-21-2014, 05:16 AM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,348

Rep: Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748
http://linux.die.net/man/8/vgchange


Code:
 echo '719*4'|bc
2876

 echo 'scale=5;2876/32'|bc
89.87500
 
Old 03-22-2014, 12:16 PM   #3
Ashish Sood
Member
 
Registered: Feb 2009
Location: Gwalior
Distribution: Fedora 22, RHEL 6,7
Posts: 180

Original Poster
Rep: Reputation: 15
Thanks for your reply Chris,
But it will be really helpful if you explain it, I went through that link but the same manual page is there which not helpful.
 
Old 03-24-2014, 05:18 AM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,348

Rep: Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748
Quote:
New extent size is not a perfect fit
It does need to be an exact fit; you can't have a partial extent
 
Old 03-27-2014, 12:04 AM   #5
Ashish Sood
Member
 
Registered: Feb 2009
Location: Gwalior
Distribution: Fedora 22, RHEL 6,7
Posts: 180

Original Poster
Rep: Reputation: 15
Thanks for your reply Chris

My question is still there how we can calculate the PE, what's is the formula's of it.
 
Old 03-27-2014, 07:44 AM   #6
grim76
Member
 
Registered: Jun 2007
Distribution: Debian, SLES, Ubuntu
Posts: 308

Rep: Reputation: 50
I would think that it would be the space you have in MB/<size of extent>. That should give you what you are looking for.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Increasing ALSA_BUFFER size? junior-s Linux - Software 4 10-18-2013 04:30 PM
display size not increasing vikrantsingh47 Linux - Newbie 3 03-13-2012 10:36 AM
increasing the size of / rahulkya Linux - Newbie 4 02-23-2010 04:50 PM
KDE - increasing menu text size, icon size? arcanem4 Fedora 1 12-06-2007 02:08 PM
Increasing partition size?? petey *BSD 5 04-25-2002 07:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration