LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-07-2009, 03:03 AM   #1
jrosenzw
LQ Newbie
 
Registered: May 2008
Posts: 21

Rep: Reputation: 15
Using LVM on an existing filesystem


Hi

I'd like to use LVM on my linux debian system installed (without any LVM tool). I have 3 hard disks:

hda: hda1(in NTFS) containing Windows install with 9 GB free space(FS) and hda2(ext3) containing debian lenny (/, /home, /usr, opt, ...)

hdb: With single partition in Vfat and 100 GB FS

hdc also with single partition(NTFS) and 150 GB FS.

I have 4 primary partitions so I can't get more, I think. I want more space for linux /opt and /usr witch has not enough space any more. I have readen that LVM can be the approriate tool I need with device-mapper, and LVM2 : Tutorial LVM.

My questions are this: If I can use LVM on this so like configuration from the FS availaible on hdb and hdc, how Can I add some part of those FS to linux partition witout chaninging nothnig or without new partitionning? Do I really need to compile my kernel? Do I need to "Download the development source via CVS" or just appropriate files included in the giving link?

Thanks for more claification(?) for me before I process this task.
 
Old 05-07-2009, 03:25 AM   #2
dibi58
Member
 
Registered: Sep 2007
Distribution: fedora (x86, alpha, sparc, ppc) debian (x86, x64, mips, hp-pa, ppc) suse (x64) slackware (x86, ppc)
Posts: 59

Rep: Reputation: 18
Smile

Quote:
Originally Posted by jrosenzw View Post
Hi

I'd like to use LVM on my linux debian system installed (without any LVM tool). I have 3 hard disks:

hda: hda1(in NTFS) containing Windows install with 9 GB free space(FS) and hda2(ext3) containing debian lenny (/, /home, /usr, opt, ...)

hdb: With single partition in Vfat and 100 GB FS

hdc also with single partition(NTFS) and 150 GB FS.

I have 4 primary partitions so I can't get more, I think. I want more space for linux /opt and /usr witch has not enough space any more. I have readen that LVM can be the approriate tool I need with device-mapper, and LVM2 : Tutorial LVM.

My questions are this: If I can use LVM on this so like configuration from the FS availaible on hdb and hdc, how Can I add some part of those FS to linux partition witout chaninging nothnig or without new partitionning? Do I really need to compile my kernel? Do I need to "Download the development source via CVS" or just appropriate files included in the giving link?

Thanks for more claification(?) for me before I process this task.
Hi,

I would not do anything like that. I have been very unlucky using LVM partitions.

What I have done in your same situation on a fedora system, was:

-installed another disk
-created a linux partition and formatted ext3 (fdisk, mkfs)
-copied the whole /usr directory (cp -R)
-created an entry in the fstab to mount the new /usr partition
-renamed the current /usr to something (mv)
-create the /usr mountpoint with the right permissions

Would suggest to consult the documentation online before attempting, I have done this quite a while ago, and I don't remember if I listed all the steps. Also, keep the older (renamed) usr directory for a while, to be sure you have all the pieces, or at least compare the two filesystems.

Make sure to have at least a working live CD to be able to boot and fix whatever may have gone wrong.

hope it may help, but with no guarantees

Last edited by dibi58; 05-07-2009 at 03:26 AM.
 
  


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
Existing LVM filesystem to software RAID 0 (mirroring) hellowe Linux - Server 8 11-25-2009 07:28 AM
New kernel and existing Luks/Lvm ? brodo Slackware 3 09-14-2008 09:44 AM
Create a partition on existing lvm cghcgh Linux - Enterprise 12 04-14-2008 01:34 AM
how to mount an LVM to existing system? fc3_fan Linux - General 6 08-04-2006 05:32 PM
How to extend an existing partition without LVM james.reid Linux - Software 14 06-02-2006 12:48 AM

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

All times are GMT -5. The time now is 05:01 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