Re: resize LVM partition

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 2008-10-26 at 21:49 -0800, Aldo Foot wrote:
> On Sun, Oct 26, 2008 at 4:33 AM, Gilboa Davara <gilboad@xxxxxxxxx> wrote:
> > On Sat, 2008-10-25 at 20:37 +0200, David Hláčik wrote:
> >> Hello guys,
> >>
> >> i have removed sda1 partition with Windows , now i have free space on
> >> disk
> >>
> >> There is
> >>
> >> sda1 - now free space
> >> sda2 - /boot
> >> sda3 - LVM
> >>
> >> Now i want to resize sda3 to take free space over sda1. Is this
> >> possible? as there is sda2 in way before ...

You have two options - resize or simply add sda1 it to the VG.

> >> Is the best solution to just create sda1 with LVM and then resize my
> >> volume group to sda1 also?

There really isn't much of a difference. LVM isn't contiguous at the
onset. The premise of LVM is that it doesn't have to be. 


> > AFAIK you cannot re-size the LVM (can you?) but you can add a second
> > (sda1) physical volume (partition in this case) to an existing LVM.
> >
> > E.g.
> >
> > $ vgextend VolGroupName /dev/sda1

You can resize all 3 layers. pvresize, vgextend, lvresize. 

> You're correct LVs cannot be resized, but Volume Groups do by adding
> or removing partitions as you describe. The lvextend command must be used
> in addition to vgextend.

Isn't lvextend a resize? But yes, just by adding more space to a VG
doesn't change the size of the LVs. Just as adding a new harddrive
doesn't change the partition layout.

> At any rate, the OP had the right approach, which is to use sda1 to extend
> his logical volume.

Use sda1 to extend the group, then extend the LVs.

-- 
Peter Larsen <plarsen@xxxxxxxxxxxxxxxxxxxxxxx>

Attachment: signature.asc
Description: This is a digitally signed message part

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux