Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • 1
    I just tried to resize a PV with Gparted v. 0.33.0 on CentOS 7.6, and indeed, it worked fine. Commented Jun 10, 2019 at 16:58
  • 1
    To add to this, if pvresize fails because of allocated extents, and free space not being contiguous (as can be seen with pvs -v --segments), try: pvmove --alloc anywhere /dev/sda1 Commented May 16, 2023 at 12:17
  • 1
    @Soruk Note that --alloc anywhere will allow placing e.g. two copies of a RAID1 stripe to the same physical volume. If that PV then fails, your supposedly-fault-tolerant logical volume now has a hole in it, as all copies of that stripe are lost.Yes, pvmove --alloc anywhere can be powerful, but it also allows doing some very stupid things that should normally be avoided. If you use it, you should definitely have a detailed understanding of what you are doing. Commented May 16, 2023 at 12:28