Resizing PVs (was: Installation Impressions)

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

 



Sam Sharpe <lists.redhat@xxxxxxxxxxxxx> writes:
> On 5 February 2011 20:53, Nikolaus Rath <Nikolaus@xxxxxxxx> wrote:
>> JFTR, unfortunately PVs cannot be made smaller. The whole idea of LVM is
>> to do all the resize operations *within* the containers.
>
> JFTR, unfortunately, you'll need to raise a bug against the  pvresize
> manpage then...
>
> http://linux.die.net/man/8/pvresize
>
> ---
> Shrink the PV on /dev/sda1 prior to shrinking the partition with fdisk
> (ensure that the PV size is appropriate for your intended new
> partition size):
>
> pvresize --setphysicalvolumesize 40G /dev/sda1
> ---
>
> When filing the report, please state why your assertion "for the
> record" is correct over the maintainer's.

You can shrink a PV, but you will loose the extents that are stored in
the space that you have truncated. I don't consider that resizing.

>From the same manpage that you looked up:

,----
| pvresize will refuse to shrink PhysicalVolume if it has allocated
| extents after where its new end would be. In the future, it should
| relocate these elsewhere in the volume group if there is sufficient free
| space, like pvmove does. 
`----

Unfortunately, pvmove can only move extends to other PVs but not to a
different location in the same PV.


Why so aggressive?


   -Nikolaus

-- 
 ÂTime flies like an arrow, fruit flies like a Banana.Â

  PGP fingerprint: 5B93 61F8 4EA2 E279 ABF6  02CF A9AD B7F8 AE4E 425C
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux