> > From: Scott Robbins <scottro11 at gmail.com> > Date: May 06, 2016 12:32:55 PM > To: CentOS mailing list <centos at centos.org> > Subject: Re: [CentOS] resize lvm > > On Fri, May 06, 2016 at 06:19:35PM +0000, Wes James wrote: > > I have a laptop that I put centos 7 on and I started out with a 30gigpartition. I resized the other part of the disk to allow more space for centos. I then created an unformated partition in the available space, ran> > > > pvcreate /dev/sda4 > > > > > vgextend lvname /dev/sda4 > > > > > lvextend -L 184.46G /dev/lvname/root > > > > I find it easiest to do lvextend -l 100%VG /dev/lvname/rootI find it > easiest to do lvextend -l 100%VG /dev/lvname/root. > (Then, if practical, and since it's a laptop, I'm guessing it's not a > production machine), reboot from a livecd or whatever and doing e2fsk -f > /dev/lvmname/root > > I don't know if it will solve your issue, but may be worth trying.I found this: # lvextend -l +100%FREE /dev/myvg/testlv doing a search. What's the difference between 100%VG and 100%FREE? Thanks, -wes
On 05/06/2016 02:15 PM, Wes James wrote:> I found this: > > # lvextend -l +100%FREE /dev/myvg/testlv > > doing a search. What's the difference between 100%VG and 100%FREE?For the special case of "100%" there is no difference. For values less than 100% with a non-empty VG, the two are quite different, e.g., (50% of VG) != (50% of the free space in VG). -- Bob Nichols "NOSPAM" is really part of my email address. Do NOT delete it.
On Sat, May 7, 2016 at 7:57 AM, Robert Nichols <rnicholsNOSPAM at comcast.net> wrote:> On 05/06/2016 02:15 PM, Wes James wrote: > >> I found this: >> >> # lvextend -l +100%FREE /dev/myvg/testlv >> >> doing a search. What's the difference between 100%VG and 100%FREE? >> > > For the special case of "100%" there is no difference. For values > less than 100% with a non-empty VG, the two are quite different, > e.g., (50% of VG) != (50% of the free space in VG). >Thanks. This is the first time I'm worked with the lvm commands. I thought VG was a typo for GB, but I see in the help commands for lvm: lvdisplay and vgdisplay - vg is volume group. -wes