LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 02-03-2008, 02:53 PM   #1
BobNutfield
Senior Member
 
Registered: Dec 2005
Location: United Kingdom
Distribution: Fedora , Ubuntu, Slackware-Current
Posts: 1,477

Rep: Reputation: 51
Resizing Logical Volume Partition


Hello Everyone,

Goodness, being away from Linux for a long time has made me forget a lot that I thought I already knew. I have FC8 installed on a 40GB dirve (The only drive in the machine.) The last FC I used did not use LVM and I am not familiar with how it handles partitions. I want to partition this drive and add a partition to put Slackware 12 on using Gparted. I want to leave 15GB for Fedora and create a 12GB partition for Slack, plus an additional 2GB swap partition.

My question is: Can I use Gparted to resize the Fedora partion the way I used to when the partitions were called hda (and so forth)? Are there any special consequences I must be aware of before I attempt this, as I do not want to damage my FC8 installation?

I will use my Grub installation in Fedora to add the boot information for Slack, I am assuming (hoping) that I can just add it's boot location (hd01 in Grub speak.)

Any help is appreciated.

Bob
 
Old 02-03-2008, 04:10 PM   #2
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,151

Rep: Reputation: 330Reputation: 330Reputation: 330Reputation: 330
No, you must use the LVM tools to resize the LVs. The Fedora / and swap "partitions" are inside the LV partition, so you can't change their logical sizes using tools designed for physical devices. Look at the man lvm for suggestions on how to do it, or search for LVM tutorials in the "tutorials" section. (See the button in the top line on the page you're currently reading.)

If you've just installed Fedora 8, you could choose to re-install without using the default LV setup. Logical Volumes, in my opinion, make very little sense for a simple "home" installation, although they are quite useful for Linux installation handling hundreds of hard drives in multiple RAID configurations.
 
Old 02-03-2008, 04:18 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,318

Rep: Reputation: 1033Reputation: 1033Reputation: 1033Reputation: 1033Reputation: 1033Reputation: 1033Reputation: 1033Reputation: 1033
Nope - Gparted (libparted) doesn't have that.
Fedora should have tools to do (most of) it - but basically I'd expect you have to shrink the filesystem, then the lv, then the vg, then the partition.
That last one will have to be partition delete/reallocate from something like [c]fdisk I'd expect.
There's a user guide on tldp.org.

Virtualizers always seem to be based on the premise you will always want to add resources, not take them away.
(BTW, that'd be "hd0,1" in grubspeak)
 
Old 02-03-2008, 04:27 PM   #4
BobNutfield
Senior Member
 
Registered: Dec 2005
Location: United Kingdom
Distribution: Fedora , Ubuntu, Slackware-Current
Posts: 1,477

Original Poster
Rep: Reputation: 51
Thank you, PTrenhome, for your reply, and I am glad I didn't attempt to do this. Unfortunately, I have been running FC8 for a number of weeks and have spent hours updating and fine tuning, so I don't want to reinstall and have to do all of that again. I honestly don't recall being given an option during the install as to what kind of partitioning I wanted. The LVM seemed to be installed by default in Fedora.

I have read a number of manuals and tutorials on LVM, and quite frankly they confuse me. I will re-read the tutorials here and see what I can do. If it means that I cannot now install Slack, then so be it, because I don't want to distro hop anymore. I only wanted Slack on this machine because it is old (PIII 1Ghz) and FC8 runs a little slow on it. I have been told that Slack 12 is still pretty fast on a PIII machine.

Anyway, thank your for your help.

Bob
 
Old 02-03-2008, 05:56 PM   #5
BobNutfield
Senior Member
 
Registered: Dec 2005
Location: United Kingdom
Distribution: Fedora , Ubuntu, Slackware-Current
Posts: 1,477

Original Poster
Rep: Reputation: 51
Thank you, Syg00.

Yes, noted my error about hd0,1 as soon as I posted it. Since read PTrenholme's post I have read the man lvm pages, the LVM how to, and a number of posts in LQ forums. Its clear to me after reading these that the LVM tools I would need to use are way over my head having never seen them before. I will keep reading, but so far I haven't a clue how to begin to do this.

If I am not a ble to figure it out (i.e. find a step by step tutorial somewhere or a similar post in the forums) I will just have to give up on installing Slack until I can add a second hard drive. I assume I could do it that way and the FC8 installation on the first drive would not be affected.

In any case, thank your for your help.

Bob
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
superblock error after resizing logical volume austin_it Linux - General 3 11-29-2007 03:56 AM
How to move a logical volume to another vg Doomhammer AIX 1 08-15-2007 03:23 PM
Root partition on logical volume and kernel without module support CedrX Linux - Server 1 03-02-2007 11:26 AM
resizing a logical volume nicentral AIX 2 06-11-2005 04:03 PM
Can create logical volume after ext3 partition setup finished? lewkh Linux - Newbie 0 11-17-2004 01:00 AM


All times are GMT -5. The time now is 03:30 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration