LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-07-2008, 10:39 AM   #1
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,461
Blog Entries: 6

Rep: Reputation: 51
Lvm??


Hello Guys,

I have the following partition being made on the Linux System:
Code:
Filesystem            Size  Used Avail Use% Mounted on
/dev/hda6             5.7G  5.5G     0 100% /
/dev/hda5             494M  8.2M  461M   2% /boot
tmpfs                 314M     0  314M   0% /dev/shm
/dev/hda9             251M  251M     0 100% /home
/dev/hda8             494M   65M  405M  14% /var


LABEL=/                 /                       ext2    defaults        1 1
LABEL=/boot             /boot                   ext2    defaults        1 2
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
tmpfs                   /dev/shm                tmpfs   defaults        0 0
LABEL=/home             /home                   ext2    defaults        1 2
proc                    /proc                   proc    defaults        0 0
sysfs                   /sys                    sysfs   defaults        0 0
LABEL=/var              /var                    ext3    defaults        1 2
LABEL=SWAP-hda7         swap                    swap    defaults        0 0
How can I create LVM on top of that?
Pls Help with the steps by steps.

Thanks in advance,
 
Old 08-07-2008, 11:46 AM   #2
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
The default way to go (and the only one I know) with LVM is that you first create LVM system with logical volumes and so on, and then create the partitions inside the LVM setup, not the other way around.

Your easiest start with LVM would be to reinstall your operating system, selecting manual partitioning option and creating LVM that way. Anything else is probably more difficult.

Note: some distributions offer an option to automatically partition using Logical Volume Management. That way you don't have to touch the partitioning tool manually if you are fine with the default options. In addition the setup of some distributions (Ubuntu alternate setup disc?) might offer an option to create a disk-encrypted LVM-based installation.
 
Old 08-07-2008, 02:59 PM   #3
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 172Reputation: 172
While LVM can be useful when one needs contiguous space spanning multiple drives most of its other features can be done without it. IF it fails it can be a real bear to recover. What exactly are you trying to accomplish by switching to LVM?
 
Old 08-08-2008, 12:09 AM   #4
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,461
Blog Entries: 6

Original Poster
Rep: Reputation: 51
Can You please help with the steps by steps of LVM commands.
As I am new to the Linux,I want to be in safe place without screwing up my system
I have already posted the partitions.Just need your Help to create LVM partitions as:
Code:
Filesystem            Size  Used Avail Use% Mounted on

/dev/mapper/VolGroup00-LogVol00

                       12G  598M   11G   6% /

/dev/cciss/c0d0p1      99M   15M   80M  16% /boot

none                  3.9G     0  3.9G   0% /dev/shm

/dev/mapper/VolGroup00-LogVol02

                      5.1G  745M  4.1G  16% /home

/dev/mapper/VolGroup00-LogVol07

                      2.0G   36M  1.9G   2% /opt

/dev/mapper/VolGroup00-LogVol03

                      2.0G   36M  1.9G   2% /tmp

/dev/mapper/VolGroup00-LogVol04

                      7.1G  2.2G  4.6G  32% /usr

/dev/mapper/VolGroup00-LogVol06

                      2.0G   40M  1.9G   3% /usr/local

/dev/mapper/VolGroup00-LogVol05

                      6.8G  128M  6.3G   2% /var
Pls Help

Last edited by your_shadow03; 08-08-2008 at 12:10 AM.
 
Old 08-08-2008, 12:18 AM   #5
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 172Reputation: 172
Since you are new to linux I will ask again. What are you trying to accomplish by switching to LVM?
 
  


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
Possible to change non-LVM to LVM? darthfoolish Linux - Software 2 08-01-2008 04:47 AM
LVM and multiple iSCSI disks performance of LVM xxx_anuj_xxx Linux - Server 4 05-01-2008 01:26 PM
LXer: Managing LVM with the LVM Manager LXer Syndicated Linux News 0 03-16-2008 12:10 PM
LXer: Back Up (And Restore) LVM Partitions With LVM Snapshots LXer Syndicated Linux News 0 04-17-2007 12:16 PM
Lvm.... IwantLINUX Linux - Newbie 2 06-25-2006 08:32 PM


All times are GMT -5. The time now is 10:33 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration