LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial 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 03-05-2007, 03:50 PM   #1
gerhardbartsch
LQ Newbie
 
Registered: Aug 2003
Location: New Jersey
Posts: 19

Rep: Reputation: 0
How to resize the / LVM under Fedora 6, or remove the /home mount & make new one?


Ok, this is driving me nuts.

I've installed Fedora Core 6 taking the automatic defaults for the install.
The problem is now I want to expand the LVM2 group to add another 800GB.

FSTAB looks like this:

[root@lfs1 etc]# more fstab
/dev/VolGroup00/LogVol00 / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
devpts /dev/pts devpts gid=5,mode=620 0 0
tmpfs /dev/shm tmpfs defaults 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs defaults 0 0
/dev/VolGroup00/LogVol01 swap swap defaults 0 0

and a df -h shows:

[root@lfs1 etc]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
11G 2.5G 7.6G 25% /
/dev/sda1 99M 16M 78M 18% /boot
tmpfs 387M 0 387M 0% /dev/shm

When I attempt to use that LVM gui tool in Fedora, I get an error indicating that I can not unmount the / partition to perform the operation.

Ideally, I'd like to just replace the existing /home directory with this new 800GB disk that I've added. However, if I could just extend the / LVM to use the extends in the new drive that has been added to /dev/VolGroup00/LogVol00, that'd be cool.

The problem with the former, replacing the /home mount point, is that I've got no idea how to do it with this LVM stuff. There are no individual mount points listed under /dev/VolGroup00/LogVol00 that I can see.

The problem with the later is that when I create a new Logical Group and Volume, then mount it to /home, I've got two /home mounts and that causes odd functionality.

Oh wonderous Linux gurus out there, what do I do?

Gerhard
 
Old 03-05-2007, 04:14 PM   #2
Brian1
Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 61
You just create a 2nd LVM partition then create a logical volume within. Then use the lvm tools to merge the two together and configure as needed. Not an LVM user but there are many post on that here from a quick search I did.

Brian
 
Old 03-05-2007, 05:43 PM   #3
gerhardbartsch
LQ Newbie
 
Registered: Aug 2003
Location: New Jersey
Posts: 19

Original Poster
Rep: Reputation: 0
Well,

The problem I've run into is that I get an error from Fedora that indicates it can't unmount the / lvm to add the additional extends to it.

Thoughts?
 
Old 03-05-2007, 06:07 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,203

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
Add the new disk to the vg, and create a new lv for /home.
Don't see the problem - also don't understand this:
Quote:
The problem with the later is that when I create a new Logical Group and Volume, then mount it to /home, I've got two /home mounts and that causes odd functionality.
How can you have "two /home mounts" - once you mount the new one, the old one becomes unreachable (presuming no unionfs involvement). Move the data, and add an entry to fstab, and you're set.

Note, the following absolves me of any adverse consequences - stopped me replying at all for a while ....
Quote:
Originally Posted by gerhardbartsch
Oh wonderous Linux gurus out there, what do I do?
 
Old 03-05-2007, 06:23 PM   #5
gerhardbartsch
LQ Newbie
 
Registered: Aug 2003
Location: New Jersey
Posts: 19

Original Poster
Rep: Reputation: 0
Well,

First, I'm not gifted at understanding all of the various Linux file systems. Generally, I install by manually configuring things...

So, the reason I have a problem with /home mount stuff is that I'm getting and odd error when I attempt to perform a useradd. I don't remeber the specific text, but the basics are that there is some form of conflict that prevents the user files from being written.

Originally, I just created an 800GB new VG/LV and told the new volume to mount to /home... and that's when I got that error with the useradd.

So I went back to the drawing board to add the additional hard disk to the original root (/) VG/LV.

Does that make any sense?

My assumption was that for some reason the new /home mount was conflicting with the old one. However, since I don't see anything other than a / mount... I'm not really sure what you do to fix this issue...

Last edited by gerhardbartsch; 03-05-2007 at 06:40 PM.
 
Old 03-05-2007, 06:57 PM   #6
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 59
I don't know if this will help.

But when I re-installed Debian Woody recently on my old computer, it had been a long time since the last time I installed it, a few years back and forgot how to set up the partitions (not very explicit instructions). Anyway, after install I found /home was part of / and not the separate /home partition previously used/shared with other Linux distros on this multi-boot. So this web page (blog) below is what I followed to move it. First you probably know that the new drive should have a partition made and formatted. I don't believe it has to be LVM, it could be ext3fs. And an entry in fstab for the drive.

http://ubuntu.wordpress.com/2006/01/...own-partition/

Last edited by Junior Hacker; 03-05-2007 at 07:01 PM.
 
Old 03-06-2007, 06:18 AM   #7
gerhardbartsch
LQ Newbie
 
Registered: Aug 2003
Location: New Jersey
Posts: 19

Original Poster
Rep: Reputation: 0
Well guy,

I guess the simplest thing to do was to move the / based home directory. So I performed a "mv home home.old" command, and the created a new Logical Volume Group and Logical Volume. I then told the LVM manger to mount the LV to /home... and now I don't have any problems or errors when I create a new user or group.

Now, the reason I'm still using LVM is that I've got FC6 running in VMware ESX 3 off a fiber channel SAN. So if I need to add more than 800GB in the future, the LVM for the /home mount can easily be extended since I no longer would have to umount the / partition.

Live and learn I guess. I would have thought that it would be easy to extend the / volume, but it's a real PITA. I did load knoppix, but since my understanding of the actual use of the tools is limited, I opted for the easier solution above.

Thanks all for your input.

Gerhard
 
Old 03-06-2007, 07:14 AM   #8
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,203

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
LVM is made for this sort of thing.
Having multiple LVs makes a lot of sense IMHO - but that's hardly the least of Fedoras problems.
Glad you fixed it.
 
  


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
Raid array resized - Cannot mount LVM - Fedora Core 5 rimfire Linux - Software 0 11-29-2006 12:08 AM
LVM Resize - After logical resize, FS size does not match physical size. spectra Linux - Software 6 11-01-2006 11:28 AM
Is there a way to resize PVs in LVM 1.0.8? Ken-ji Linux - Software 0 02-12-2006 09:20 PM
resize LVM partition bkesting Linux - General 3 06-17-2005 09:28 AM
How to make sound works on FreeBSD & mount extended partition & ATI radeon driver Ninja_212 *BSD 3 11-02-2004 06:36 AM


All times are GMT -5. The time now is 05:00 PM.

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