Find the answer to your Linux question:
Results 1 to 10 of 10
Hi everyone, I am like very new to Linux. I have been asked to install a RedHat Linux server and in it, to create a filesystem in logical volume manager ...
  1. #1
    Just Joined!
    Join Date
    Mar 2010
    Posts
    8

    installing RedHat with logical volume

    Hi everyone, I am like very new to Linux. I have been asked to install a RedHat Linux server and in it, to create a filesystem in logical volume manager called test. I have a couple of question and i'd appreciate if one you wizzards assist me here:

    1- I am installing this server on a virtual machine. So I am booting to an ISO image. Right at the start, I am asked if I want to do the install in a graphical mode or text linux mode? Which way should I go in order to have the ability to create a filesystem in a logical volume?

    2- No matter which way I go, will creation of a filesystem on a logical volume, be something that I get prompted for during the install or is it something that I can/ should do after the install?

    Could you please be specific in your answers? i.e provide step by step answers if possible?

    Thanks a lot in advance,

    Kass

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Hi and Welcome !

    Both Graphical and Text Modes work fine. You are installing Linux first time so I would suggest you go for Graphical Mode only.
    You will have a choice to create Logical Volume or other Linux filesystems in Partition Section during installation. Make sure to select Manual Partitioning in that section and create LVM for Linux installation.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Just Joined!
    Join Date
    Mar 2010
    Posts
    8
    Thanks for trying to assist. Since I didnt get any replies for a while, I went through with installation choosing almost all the default settings and now I just have a linux server. Is it too late to try to create the LVM?

  4. #4
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    We have to check partition structure first.
    Execute fdisk -l command in Terminal and post output here.
    Code:
    su -
    /sbin/fdisk -l
    * Its small L in fdisk -l.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  5. #5
    Just Joined!
    Join Date
    Mar 2010
    Posts
    8
    Thanks again for getting back to me so quickly. My linux server is a virtual machine created in ESX but I am sure it won't matter. I ran teh command that you posted and in return I got the following:

    Disk /dev/sda: 21.4 GB, 21474836480 bytes
    255 heads, 63 sectors/track, 2610 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes

    Device Boot Start End Blocks ID System
    /dev/sda1 * 1 13 104391 83 Linux
    /dev/sda2 14 2610 20860402+ 8e Linux LVM

  6. #6
    Just Joined!
    Join Date
    Mar 2010
    Posts
    8
    Sorry the last post messed up my alignment. Here is what I got:

    Disk /dev/sda: 21.4 GB, 21474836480 bytes
    255 heads, 63 sectors/track, 2610 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes

    Device Boot Start End Blocks ID System
    /dev/sda1 * 1 13 104391 83 Linux
    /dev/sda2 14 2610 20860402+ 8e Linux LVM

  7. #7
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    As you can see in the output, installer has created LVM only. No need to change anything.

    First partition ( /dev/sda1 ) is for /boot having kernel and boot loader configuration files. Second (/dev/sda2) is LVM having root filesystem.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  8. #8
    Just Joined!
    Join Date
    Mar 2010
    Posts
    8
    Casper, thanks again. Hmm I wonder if LVM was created because my server was built as a virtual machine. Too bad, because I really wanted to go through creating a new LVM. Is there anyway to do that? I mean I have given almost 20 GB to my server, so is there anyway to create for example a new 10 GB LVM? If so, could you maybe walk me through it? Graphic or command, doesnt matter

  9. #9
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    LVM has nothing to do with virtual machine. Its default filesystem for RHEL. Most of the users prefer ext3/ext4 partitions in Virtual Machine as well as regular installation because its very easy to manage ext3/ext4 partition and none of the Partition Manager supports LVM yet.

    If you want to learn LVM Management, I would suggest you to go for regular install instead of virtual machine.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  10. #10
    Just Joined!
    Join Date
    Mar 2010
    Posts
    8
    Hi Casper,
    I finally figured out that I need to use pvcreate in order to create a filesystem on my LVM volume. For more info see our [revious conversations on this forum. However now when I run $pvcreate -ff /dev/sda2 I get the following:

    Can't open /dev/sda2 exclusively. Mounted filesystem?

    What does it mean and how can I get around it. I just want to create a filesystem of size 10 on my LVM which is the size of 20. I have no problem re-initializng the LVM since I don't have any data on it. Please shed some light. Thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...