Re: Shrinking a LVM physical volume

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

 



On Tuesday, 2009-03-24 at 07:59:09 -0700, Drew wrote:

> I have a system that I dual boot Windows and Debian from. Due to a
> minor mistake on my part when carving out the space on my drive for my
> linux partition, I now find myself with insufficient space on my
> windows partition.

> How do you shrink a physical volume on lvm?

Since nobody with real experience doing that has answered, I'll supply
my fewer than 2 Eurocents...

According to its manpage, it should be safe to use
  pvresize --setphysicalvolumesize <newsize> <pvdevice>
prior to resizing the partition. It should complain if there are extents
in use beyond <newsize>.

I say "it should" because I never tried it. So make a backup, blahblah,
etcetera...

> And then once that's done,
> how safe is it to move the lvm partition around on the drive?

That is up to somebody with more knowledge to answer.

HTH,
Lupe Christoph
-- 
| There is no substitute for bad design except worse design.                   |
| /me                                                                          |

_______________________________________________
linux-lvm mailing list
linux-lvm@redhat.com
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

[Index of Archives]     [Gluster Users]     [Kernel Development]     [Linux Clusters]     [Device Mapper]     [Security]     [Bugtraq]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]

  Powered by Linux