a perfect partition

Discussion in 'Installation/Configuration' started by abibib, Jun 26, 2010.

  1. abibib

    abibib New Member

    hello
    I'm new to linux and managing servers.
    I want to install ubuntu server 10 on my server with 1 TB hard disk and 6 GB RAM.
    ( I want to install ISPconfig 3 then but I think choose " Guided - use entire disk and set up LVM" that said here :
    http://www.howtoforge.com/perfect-se...ispconfig-3-p2 ,
    in ubuntu server installation step is not so good for a perfect server ).


    what's your idea ? would you please suggest a good partition ?
     
  2. falko

    falko Super Moderator

    I think
    /boot
    /
    /var
    is a good partitioning scheme. ISPConfig "dumps" most of its data in subdirectories of /var. It's a good idea to use LVM for / and /var. If you habe two identical hard drives, you could also set up RAID1.
     
  3. John Ford

    John Ford New Member

  4. falko

    falko Super Moderator

    What are the outputs of
    Code:
    vgdisplay
    and
    Code:
    lvdisplay
    ?
     
  5. John Ford

    John Ford New Member

    vgdisplay

    --- Volume group ---
    VG Name hashbox3
    System ID
    Format lvm2
    Metadata Areas 1
    Metadata Sequence No 3
    VG Access read/write
    VG Status resizable
    MAX LV 0
    Cur LV 2
    Open LV 2
    Max PV 0
    Cur PV 1
    Act PV 1
    VG Size 297.85 GB
    PE Size 4.00 MB
    Total PE 76249
    Alloc PE / Size 4767 / 18.62 GB
    Free PE / Size 71482 / 279.23 GB
    VG UUID 5X6WCE-7b7r-6HJ3-w7YW-W7h0-baeI-3xj1l0

    lvdisplay

    --- Logical volume ---
    LV Name /dev/hashbox3/root
    VG Name hashbox3
    LV UUID 13e2iX-inoc-7qQl-YzzV-x5yL-LjbA-v4SAEQ
    LV Write Access read/write
    LV Status available
    # open 1
    LV Size 17.80 GB
    Current LE 4558
    Segments 1
    Allocation inherit
    Read ahead sectors auto
    - currently set to 256
    Block device 252:0

    --- Logical volume ---
    LV Name /dev/hashbox3/swap_1
    VG Name hashbox3
    LV UUID m5ssVm-ofKt-jodf-UVsE-36OW-QmJJ-Fs1a6C
    LV Write Access read/write
    LV Status available
    # open 2
    LV Size 836.00 MB
    Current LE 209
    Segments 1
    Allocation inherit
    Read ahead sectors auto
    - currently set to 256
    Block device 252:1
     
  6. falko

    falko Super Moderator

    Ok, there's free space left on your hard drive, so you can extend /dev/hashbox3/root. Take a look here: http://www.howtoforge.com/linux_lvm_p4
    Since this is your / partition, you will have to do this from a rescue system (e.g. Knoppix).
     
  7. John Ford

    John Ford New Member

    I think I have a disconnect on the live knoppix cd. I can boot my system into the live cd but I don't know how to access the hard drive on my current system to implement extending the filesystem. Is there a tutorial on how to utilize the knoppix cd? All I seem to be able to read is the knoppix cd itslef.
     
  8. falko

    falko Super Moderator

    Within Knoppix, start LVM...
    Code:
    /etc/init.d/lvm start 
    ... and then try again.
     
  9. John Ford

    John Ford New Member

    I had to use
    Code:
    /etc/init.d/lvm2 start
    It wouldn't work unless I was root. How do I read what's in the volume that I want to change. I can only read what Knoppix provides. How do I get into and read what is on my system? I'm sorry I'm such a newb.
     
  10. falko

    falko Super Moderator

    You can mount your LV as follows in Knoppix and then use it as if it was a part of Knoppix:
    Code:
    mount /dev/hashbox3/root /mnt
     
  11. John Ford

    John Ford New Member

    That was the code key that I needed :D
    That partition is resized now to accommodate more files. Thanks for all your help.
    I followed the tutorial that you wrote on LVM and increasing the size of the logical volume worked great
     
    Last edited: Jul 5, 2010

Share This Page