LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Lvm?? (https://www.linuxquestions.org/questions/linux-newbie-8/lvm-661172/)

your_shadow03 08-07-2008 09:39 AM

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,

b0uncer 08-07-2008 10:46 AM

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.

lazlow 08-07-2008 01:59 PM

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?

your_shadow03 08-07-2008 11:09 PM

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

lazlow 08-07-2008 11:18 PM

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


All times are GMT -5. The time now is 09:21 PM.