Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 18th August 2005, 12:42 AM
rosewood_tamper Offline
Registered User
 
Join Date: Aug 2005
Posts: 3
LVM Catch 22?

I'm very much a Linux newbie so I hope this isn't too obvious...

I'm running Fedora Core 3 on a machine with 2 drives. The default configuration after install was that everything under root is mounted as /dev/VolGroup00/LogVol00. This volume group contains both my physical partitions (/hda2 and /hdb1).

What I would like to do is create 2 Volume Groups with one physical drive in each group. This way I can use one drive as a backup in case the other drive crashes.

I tried

pvmove /dev/hdb1 /dev/hda2

but was told that I need 915 allocatable extents. Ok, I figured that I could try to make some space using:

lvreduce -l 1000 VolGroup00/LogVol00

but I got scared from the resulting warning which made me think I needed to reduce the size of the root filesystem first. So I tried:

resize2fs /dev/VolGroup00/LogVol00 8000000

figuring that would give me 8 Gigs of free space allowing me to reduce the logical volume accordingly, but of course was told that I needed to unmount the root filesystem first!

So... how can I keep working on the machine while unmounting the root filesystem? Is there some way around this? A special boot up mode for working with LVM?

Any help would be greatly appreciated.

Peter
Reply With Quote
  #2  
Old 18th August 2005, 02:15 AM
Iram Hernandez's Avatar
Iram Hernandez Offline
Registered User
 
Join Date: Apr 2005
Posts: 42
You want to use ext2online. Support for this is built into the kernel.
Reply With Quote
  #3  
Old 18th August 2005, 02:45 AM
rosewood_tamper Offline
Registered User
 
Join Date: Aug 2005
Posts: 3
Quote:
Originally Posted by Iram Hernandez
You want to use ext2online. Support for this is built into the kernel.
Thanks for the reply...but I'm a bit confused. I just did a man on ext2online and it says that you can only enlargemounted filesystems, though you can shrink or enlarge unmounted filesystems. Am I missing something?
Reply With Quote
  #4  
Old 31st October 2005, 09:09 AM
kc2005 Offline
Registered User
 
Join Date: Aug 2005
Posts: 8
Boot with a live CD or, even better, with the installation CD in rescue mode. Choose the option not to mount your hdd and you'd be able to use the resize2fs command.

Here's a link where you can find a step by step procedure:
http://www.ibiblio.org/pub/Linux/doc...#recipesplitvg
Reply With Quote
  #5  
Old 31st October 2005, 03:43 PM
rosewood_tamper Offline
Registered User
 
Join Date: Aug 2005
Posts: 3
Thanks very much - that's just what I was looking for, I think. I'll give it a try.
Reply With Quote
Reply

Tags
catch, lvm

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
If Linux Had A Catch Phrase... David Vazquez Linux Chat 26 6th January 2009 06:12 AM
Catch them when they're young... cypher543 Wibble 2 23rd October 2006 06:47 AM
irc catch 22 gnubie Servers & Networking 2 3rd February 2004 03:47 PM


Current GMT-time: 01:40 (Tuesday, 21-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat