Re: How to shrink a LVM partition

2010-01-25 Thread Johannes Wiedersich
-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

Re: How to shrink a LVM partition

2010-01-25 Thread Boyd Stephen Smith Jr.
On Monday 25 January 2010 04:20:58 Johannes Wiedersich wrote: 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. First make sure you have enough free space in your LVs. Then use a combination of pvmove and

Re: How to shrink a LVM partition

2010-01-25 Thread vitaminx
Am Montag, den 25.01.2010, 10:45 -0600 schrieb Boyd Stephen Smith Jr.: LVs in my message, but Johannes Wiedersich correeccted me.) I don't allocate all my space to LVs immediately, and grow filesystems as needed -- if the OP has been doing that, he may alr Hi, from my understanding

Re: How to shrink a LVM partition

2010-01-25 Thread Boyd Stephen Smith Jr.
On Monday 25 January 2010 11:02:41 vitaminx wrote: I've tried to shrink the PV with pvresize which didn't throw errors - Good. but fdisk still shows me the same LVM partition size as before. That's normal. pvresize just updates the PV header and VG metadata. So I guess the partition table

Re: How to shrink a LVM partition

2010-01-25 Thread Tom H
I'd like to shrink a LVM partition on my harddisk. 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

How to shrink a LVM partition

2010-01-24 Thread vitaminx
Hello, I'd like to shrink a LVM partition on my harddisk. My current setup is like that: NameFlags Part Type FS Type [Label] Size (MB) -- sda1BootPrimary Linux ext3

Re: How to shrink a LVM partition

2010-01-24 Thread Boyd Stephen Smith Jr.
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

Re: How to shrink a LVM partition

2010-01-24 Thread Tony Nelson
On 10-01-24 14:27:21, 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