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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
07-22-2017, 02:07 PM
|
#1
|
LQ Newbie
Registered: Jul 2017
Posts: 19
Rep:
|
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.
|
|
|
07-22-2017, 02:29 PM
|
#2
|
Senior Member
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,211
|
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.
|
|
|
07-22-2017, 06:10 PM
|
#3
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,253
|
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.
|
|
|
07-30-2017, 01:34 PM
|
#4
|
LQ Newbie
Registered: Jul 2017
Posts: 19
Original Poster
Rep:
|
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
|
|
|
07-30-2017, 04:31 PM
|
#5
|
Senior Member
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,792
|
Quote:
Originally Posted by syg00
Try a "vgscan -ay", or if that doesn't do the trick, use pvchange to make it allocatable.
|
Did you mean " vgchange -ay"?
|
|
|
07-30-2017, 08:30 PM
|
#6
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,253
|
Oops, yep.
Sorry about that.
|
|
|
08-06-2017, 06:57 PM
|
#7
|
Member
Registered: Jun 2016
Distribution: any&all, in VBox; Ol'UnixCLI; NO GUI resources
Posts: 999
|
@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.
|
|
|
All times are GMT -5. The time now is 10:22 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|