LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-22-2017, 02:07 PM   #1
Robbot
LQ Newbie
 
Registered: Jul 2017
Posts: 19

Rep: Reputation: Disabled
Vgextend Not Extending


Hello,

Sorry for the noob question on RHEL7.3. I have an sdc1 (5mb) partition that does not extend my volume group. I ran pvcreate on it, and it shows ok on pvs (psize and pfree match). However, when I vgextend VG /dev/sdc1, though it shows successful, it does not extend it at all. It still says 0 free space. The partition shows up when I run vgdisplay -v (though sdc1 shows Allocatable=no). I then removed it from VG and tried vgcreate NEWVG /dev/sdc1, and that works just fine. The same thing is happening to sdc2 and sdc3 partitions. Any idea as to what could be the issue here? Thanks.

Last edited by Robbot; 07-22-2017 at 02:10 PM.
 
Old 07-22-2017, 02:29 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora 33
Posts: 3,573

Rep: Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006
When you are using LVM there's not much reason to have multiple partitions on the disk. Make one partition sdc1 using the whole disk. Use parted or your favorite fdisk flavor and make one VG on it. Then make multiple LVs for the spaces that you need. Once created, it's hard to change partition sizes. That's why LVM is easier.

You need multiple partitions if you are booting multiple OS.
 
Old 07-22-2017, 06:10 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 19,710

Rep: Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548
LVM abstracts the partitioning - perfect use case in this case. Try a "vgscan -ay", or if that doesn't do the trick, use pvchange to make it allocatable.
 
Old 07-30-2017, 01:34 PM   #4
Robbot
LQ Newbie
 
Registered: Jul 2017
Posts: 19

Original Poster
Rep: Reputation: Disabled
Thanks. It doesn't look like that worked though. I ran vgscan -y ( a was not recognized) before and after adding /dev/sdc1, but the VG still shows as 0 Free PE. I had tried the pvchange to make it allocatable before, but that also failed with the below error:

Allocatability not supported by orphan lvm2 format PV /dev/sdc1
Physical volume /dev/sdc1 not changed
0 physical volumes changed / 1 physical volume not changed
 
Old 07-30-2017, 04:31 PM   #5
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 4,547

Rep: Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082
Quote:
Originally Posted by syg00 View Post
Try a "vgscan -ay", or if that doesn't do the trick, use pvchange to make it allocatable.
Did you mean "vgchange -ay"?
 
Old 07-30-2017, 08:30 PM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 19,710

Rep: Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548
Oops, yep.
Sorry about that.
 
Old 08-06-2017, 06:57 PM   #7
Jjanel
Member
 
Registered: Jun 2016
Distribution: any&all, in VBox; Ol'UnixCLI; NO GUI resources
Posts: 999
Blog Entries: 12

Rep: Reputation: 363Reputation: 363Reputation: 363Reputation: 363
@OP: did you get it to work? How? Please note: it's important to bring closure, so others can benefit too!

Did you mean "sdc1 (5mb)"? Is 5mb too small (for lvm)? 1cyl? Or was it 5Gb?

http://www.linuxquestions.org/questi...ml#post5669556 (my fav LQhow2):
Quote:
Write for the future, simply because you are! Many years hence, someone may well encounter your post. Make your post a targeted information resource for them. ...

(therefore ...) Bring closure. "Your future footsteps-follower, many years hence," will only be frustrated by a cryptic follow-up of "I solved it." Having opened your can-of-worms, be sure to close it with a follow-up summary post detailing exactly what you did. And, mark the post as "[SOLVED]" to further identify it as a thread which bears a solution.
Best wishes! WELCOME to LQ! ENJOY your learning! p.s. I wanna learn too!

Last edited by Jjanel; 08-06-2017 at 07:08 PM.
 
  


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
[SOLVED] extending pv/vg on same disk in VM PoleStar Linux - Newbie 5 06-25-2014 11:06 AM
extending volume group vs extending physical volume which is better ? Gil@LQ Linux - Server 2 08-19-2013 10:13 AM
vgextend - lvm resizing pedenski Linux - Newbie 3 05-25-2013 12:35 AM
[LVM] Difference between vgimport e vgextend antolepore Linux - Software 1 07-13-2012 01:40 AM
Extending a raid 5 JJX Linux - Server 5 04-15-2008 05:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:34 PM.

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