LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-14-2005, 11:39 AM   #1
Sabre_X
LQ Newbie
 
Registered: Aug 2005
Posts: 1

Rep: Reputation: 0
Shrinking an LVM partition


I have WinXP installed on hda and i got a new hard drive and installed Fedora 4 on hdb. Well, now the LVM partition is taking up the entirety of the hard drive, and i cant figure out how to shrink it so i can have an NTFS partition on there. My original purpose for buying a new hard drive was to increase storage from windows, since i was running out of room. I dont want to have to wipe linux and repartition from scratch. I tried using PartitionMagic but it refuses to do anything but delete the 8E (LVM) partition. I looked around here for a while but couldnt find anything about shrinking LVM partitions. If i missed it, i apologize and would appreciate a link. Thanks in advance to anyone who helps this linux newbie.
 
Old 08-15-2005, 05:06 AM   #2
malcart
LQ Newbie
 
Registered: Apr 2004
Distribution: RH
Posts: 4

Rep: Reputation: 0
Hi,

I don't think you're actually going to be able to do what you want to.

You haven't stated how you partitioned the second hard drive or how you setup the LVM.

In theory, provided you have multiple partitions on your drive, you will need to shrink the filesystem on the logical volume, then shrink the volume to free up space.

What filesystem are you using?

Are all of your files in one volume?

If you let me know I'll see if I can help.
 
Old 09-22-2005, 03:23 PM   #3
jwhibdon
LQ Newbie
 
Registered: Aug 2003
Location: Texas
Distribution: KUBUNTU 7.04
Posts: 28

Rep: Reputation: 15
I have the same kind of problem except I want to install another Linux OS (Debian). I have two 120 gig hard drives. NTFS on hda and I installed FC4 on hdb. I told it to take over the entire drive. (at that point I had never heard of LVM) FC4 created a small boot partition and the rest of the drive is LVM. When I decided FC4 and I were mostly not meant for each other I wanted to install and try some different linux os's. I found out about LVM and can't figure any way to resize it. I have been reading about LVM for several days now and I guess I am to stupid to understand it. I know less now than before I started. Is there a simple fix or do I have to dump FC4 and start over.

Last edited by jwhibdon; 09-22-2005 at 03:30 PM.
 
Old 09-26-2005, 08:38 AM   #4
malcart
LQ Newbie
 
Registered: Apr 2004
Distribution: RH
Posts: 4

Rep: Reputation: 0
Question

Hi there,

You shouldn't need to dump FC4, but it may be less painful if you do.

You say that FC4 created a small boot partition, how big is it? (this will determine whether you can install another kernel image in that partition).

How many logical disks is the LVM partition split into? (if it is just one big partition then your job is so much easier)

and what filesystem is being used on the disks? (i haven't kept upto date with FC so I don't know if they default to EXT3 or reiser)
 
Old 09-26-2005, 01:29 PM   #5
jwhibdon
LQ Newbie
 
Registered: Aug 2003
Location: Texas
Distribution: KUBUNTU 7.04
Posts: 28

Rep: Reputation: 15
Hi.

The boot partition is 102 Meg and is a ext3 partition type.

The LVM is all one partition as far as I can tell. As far as what type it just says 08(LVM). I have tried to use Acronis partition manager but it does not support that type partition.

Thanks
 
Old 09-27-2005, 09:17 AM   #6
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,699
Blog Entries: 4

Rep: Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947
Pocket-sized USB 2.0 disk drives are a wonderous thing. I use one from DataStor. About $100. Also works with USB-1. Holds about 60 to 100 gig.

Buying a second disk-drive is also very, very handy and not too expensive, either. Many motherboards routinely have two disk-drive controllers built in, so it's really just a matter of cables and screws to install it.
 
Old 09-30-2005, 11:13 PM   #7
jwf
LQ Newbie
 
Registered: Sep 2005
Location: Canada
Posts: 1

Rep: Reputation: 0
Hi Folks,
I've been struggling with this same LVM issue. I want to install suse 9.3 without removing my Suse 9.1 install.
My Partitions look like:
Code:
Device              Size             F  Type
________________________________________________________
/dev/hda                   152.6 GB     6Y160P0       
/dev/hda1                   10.5 GB     Win95 FAT32 LBA
/dev/hda2                  101.9 MB     Linux native
/dev/hda3                  121.3 GB     Linux LVM     
/dev/hda4                   20.6 GB     Extended     
/dev/hda5                  502.0 MB     Linux swap   
/dev/hda6                   20.1 GB     Linux native 
/dev/hdb                    37.2 GB     6L040L2       
/dev/hdb1                   31.4 MB     Dell Utility
/dev/hdab2                  37.2 GB     HPFS/NTFS       
/dev/VolGroup00            121.3 MB     LVM2 VolGroup00     
/dev/VolGroup00/LogVol00   120.7 GB     LV     
/dev/VolGroup00/LogVol01   512.0 MB     LV
Yast wants to load the install on /dev/hda6 - That's where suse 9.1 is installed and I'd like to keep that.
I'd like to know how to install suse 9.3 on /dev/hda3, but first Yast needs to have the Linux LVM removed from the
Volume group (/dev/VolGroup00) before it will format it. Is this possible?
 
  


Reply



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
LVM and shrinking the root filesystem coreychch Linux - Newbie 5 11-22-2015 10:35 PM
Shrinking the Windows partition trainee Linux - Software 8 07-06-2005 09:37 PM
Shrinking an extended partition lobo78 Linux - General 1 12-02-2004 11:59 AM
Shrinking Linux Partition w/ Partition Magic jrdioko Linux - Newbie 11 12-21-2003 03:46 PM
partition or shrinking? M@tt Linux - Newbie 2 11-12-2001 09:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:19 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration