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

Re: How to shrink a LVM partition



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Boyd Stephen Smith Jr. wrote:
> On Sunday 24 January 2010 11:25:19 vitaminx wrote:
>> I'd like to shrink a LVM partition on my harddisk.
>>
>> Is it possible without any data loss?
> 
> Yes, but it is tricky.
> 
> Check your file systems.  Make sure they are clean before the process starts.
> 
> Take backups.
> 
> First make sure you have enough free space in your LVs.  Then use a 
> combination of pvmove and pvresize to shrink your PE that corresponds to that 
> partition.  Then shrink the partition in the partition table.

Shouldn't vitaminx first resize the underlying file system(s)???

- --
Johannes

Three nations have not officially adopted the International System
of Units as their primary or sole system of measurement: Burma,
Liberia, and the United States.

http://en.wikipedia.org/wiki/Si_units
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAktdcIoACgkQC1NzPRl9qEV5zwCfaLoEHmIwPef2HNSTMvN4onBk
uboAniI9WFx+UBuaxCjepnq55hGr7XEt
=BK/V
-----END PGP SIGNATURE-----


Reply to: