Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Topic Options
#249023 - 12/02/2005 10:22 More Linux questions
StigOE
addict

Registered: 27/10/2002
Posts: 568
I have installed Fedora 3 on my laptop along with WinXP. Fedora is installed on a LVM volume, which contains two Ext3 partitions, / and /home. Now the / partition is too small and I'd like to decrease the size of /home and increase /. It there any way to do that without deleting the partitions? Preferably resonably easy and using a GUI. I have the Fedora cd which I can probably boot up in rescue mode, and also a Suse 9.2 Livecd and MandrakeMove cd.

Stig

Top
#249024 - 12/02/2005 10:30 Re: More Linux questions [Re: StigOE]
andym
carpal tunnel

Registered: 17/01/2002
Posts: 3996
Loc: Manchester UK
lvresize should do the trick. I've never used a GUI for it so I don't know if one exists. Just look at the man page for it. If wanted to do this on one of my machines i'd do this:

lvresize -L-5G /dev/vg/home

That would shave 5G off my home partition, i'd then run resize_reiserfs to make sure the fs knew the partition had changed.
_________________________
Cheers,

Andy M

Top
#249025 - 12/02/2005 11:57 Re: More Linux questions [Re: andym]
StigOE
addict

Registered: 27/10/2002
Posts: 568
I thought this would only resize the overall volume, not the partitions in it...? I did some searching and somewhere it said that I needed to unmount the partition when I decreased the size, which I guess is a bit difficult, unless I boot from a rescuedisk/livecd?

Stig

Top
#249026 - 12/02/2005 12:38 Re: More Linux questions [Re: StigOE]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14496
Loc: Canada
That's why Fedora includes a rescue CD.

Top
#249027 - 12/02/2005 20:57 Re: More Linux questions [Re: StigOE]
andym
carpal tunnel

Registered: 17/01/2002
Posts: 3996
Loc: Manchester UK
Quote:
I thought this would only resize the overall volume, not the partitions in it...?


Isn't that vgreduce? I use lvresize every time I run out of space in my videos partition. I keep about 40G unpartitioned in the volume group for situations like that.

Quote:
I did some searching and somewhere it said that I needed to unmount the partition when I decreased the size, which I guess is a bit difficult, unless I boot from a rescuedisk/livecd?


Isn't that why you're not supposed to have / in an LVM group?
_________________________
Cheers,

Andy M

Top
#249028 - 13/02/2005 00:30 Re: More Linux questions [Re: andym]
StigOE
addict

Registered: 27/10/2002
Posts: 568
Managed to fix it. I booted into Fedora rescue mode and used resize2fs to reduce the size of the /home partition and lvreduce to reduce the logical volume where /home resided and then the opposite with the volume where / was. But I had to compile and install the latest e2fsprogs, as the ones on the rescue disk didn't work.

Quote:
Isn't that why you're not supposed to have / in an LVM group?

I don't know. I just followed the advice in Linux Format magazine about using LVM...

Stig

Top
#249029 - 13/02/2005 09:28 Re: More Linux questions [Re: StigOE]
andym
carpal tunnel

Registered: 17/01/2002
Posts: 3996
Loc: Manchester UK
I just read tldp when I did my myth box that doing that was A Very Bad Thing....

I suppose my keeping / non-LVM means you could still boot the box even if the LVM volume was trashed or one of the drives containing a portion of your volume set failed.
_________________________
Cheers,

Andy M

Top
#249030 - 14/02/2005 11:23 Re: More Linux questions [Re: andym]
JBjorgen
carpal tunnel

Registered: 19/01/2002
Posts: 3584
Loc: Columbus, OH
Happy Birthday Andy!
_________________________
~ John

Top
#249031 - 14/02/2005 11:30 Re: More Linux questions [Re: JBjorgen]
andym
carpal tunnel

Registered: 17/01/2002
Posts: 3996
Loc: Manchester UK
Thank you! I was wondering whether anyone would notice.
_________________________
Cheers,

Andy M

Top
#249032 - 14/02/2005 11:32 Re: More Linux questions [Re: andym]
tman
carpal tunnel

Registered: 24/12/2001
Posts: 5528
Hey! Happy Birthday!

Top
#249033 - 14/02/2005 11:49 Re: More Linux questions [Re: tman]
andym
carpal tunnel

Registered: 17/01/2002
Posts: 3996
Loc: Manchester UK
_________________________
Cheers,

Andy M

Top
#249034 - 14/02/2005 17:04 Re: More Linux questions [Re: andym]
ashmoore
addict

Registered: 24/08/1999
Posts: 564
Loc: TX
Doh!
Here I am wondering why you have that little icon by your name.
Guess I know now then
I would guess that you got some flowers
_________________________
========================== the chewtoy for the dog of Life

Top