* [linux-lvm] Reclaim free space
@ 2003-12-18 15:32 Ian Burrell
2003-12-18 15:44 ` Ian Burrell
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Ian Burrell @ 2003-12-18 15:32 UTC (permalink / raw)
To: linux-lvm
How do I reclaim the free space when a logical volume is reduced? I am
using a volume group on one physical volume and three logical volumes.
I wanted to split off /usr/local and give it some space from reducing
another volume. I shrank the existing logical volume with "ext2fsadm".
After, the volume group had the same amount of free space as before.
I went ahead and created the new LV in that free space but would like to
make it bigger. Now "vgdisplay" shows the volume group as being
completely full. Except the allocated space for the logical volumes are
less than the total space.
- Ian
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [linux-lvm] Reclaim free space
2003-12-18 15:32 [linux-lvm] Reclaim free space Ian Burrell
@ 2003-12-18 15:44 ` Ian Burrell
2003-12-18 15:51 ` Chris Cox
2003-12-18 16:06 ` Heinz J . Mauelshagen
2 siblings, 0 replies; 4+ messages in thread
From: Ian Burrell @ 2003-12-18 15:44 UTC (permalink / raw)
To: linux-lvm
Ian Burrell wrote:
> How do I reclaim the free space when a logical volume is reduced? I am
> using a volume group on one physical volume and three logical volumes.
>
I figured out my problem. I had a test logical volume that was taking
up the space. I removed it and everything is working fine.
- Ian
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [linux-lvm] Reclaim free space
2003-12-18 15:32 [linux-lvm] Reclaim free space Ian Burrell
2003-12-18 15:44 ` Ian Burrell
@ 2003-12-18 15:51 ` Chris Cox
2003-12-18 16:06 ` Heinz J . Mauelshagen
2 siblings, 0 replies; 4+ messages in thread
From: Chris Cox @ 2003-12-18 15:51 UTC (permalink / raw)
To: linux-lvm
Ian Burrell wrote:
> How do I reclaim the free space when a logical volume is reduced? I am
> using a volume group on one physical volume and three logical volumes.
>
> I wanted to split off /usr/local and give it some space from reducing
> another volume. I shrank the existing logical volume with "ext2fsadm".
> After, the volume group had the same amount of free space as before. I
> went ahead and created the new LV in that free space but would like to
> make it bigger. Now "vgdisplay" shows the volume group as being
> completely full. Except the allocated space for the logical volumes are
> less than the total space.
1. Shrink the filesystem (sounds like you've done this).
2. Shrink the lv (lvreduce)... be careful!!
3. Expand the filesystem to fill any gap (error) in the lvreduce.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [linux-lvm] Reclaim free space
2003-12-18 15:32 [linux-lvm] Reclaim free space Ian Burrell
2003-12-18 15:44 ` Ian Burrell
2003-12-18 15:51 ` Chris Cox
@ 2003-12-18 16:06 ` Heinz J . Mauelshagen
2 siblings, 0 replies; 4+ messages in thread
From: Heinz J . Mauelshagen @ 2003-12-18 16:06 UTC (permalink / raw)
To: linux-lvm
On Thu, Dec 18, 2003 at 01:31:13PM -0800, Ian Burrell wrote:
> How do I reclaim the free space when a logical volume is reduced? I am
> using a volume group on one physical volume and three logical volumes.
>
> I wanted to split off /usr/local and give it some space from reducing
> another volume. I shrank the existing logical volume with "ext2fsadm".
Hi Ian,
did e2fsadm display some error ?
That would explain that you didn't get more free space in the VG,
because the LV won't be reduced in that case.
I guess with 'allocated space' you mean the sum of the filesystem space.
Check with "tune2fs -l ..." what the actual filesystem sizes are
and how that fits the LV sizses (vgdisplay -v / lvdisplay -v /dev/VG/LV).
> After, the volume group had the same amount of free space as before.
> I went ahead and created the new LV in that free space but would like to
> make it bigger. Now "vgdisplay" shows the volume group as being
> completely full. Except the allocated space for the logical volumes are
> less than the total space.
>
> - Ian
>
>
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@sistina.com
> http://lists.sistina.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
--
Regards,
Heinz -- The LVM Guy --
*** Software bugs are stupid.
Nevertheless it needs not so stupid people to solve them ***
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Heinz Mauelshagen Sistina Software Inc.
Senior Consultant/Developer Am Sonnenhang 11
56242 Marienrachdorf
Germany
Mauelshagen@Sistina.com +49 2626 141200
FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-12-18 16:06 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-12-18 15:32 [linux-lvm] Reclaim free space Ian Burrell
2003-12-18 15:44 ` Ian Burrell
2003-12-18 15:51 ` Chris Cox
2003-12-18 16:06 ` Heinz J . Mauelshagen
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.