The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Change CentOS Disk Partitioning

Discussion in 'General Discussion' started by aff25768, Oct 18, 2011.

  1. aff25768

    aff25768 Registered

    Joined:
    Oct 18, 2011
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi Guys,

    I would like to change my default disk partitioning for Centos 5.6

    # df -h

    Filesystem Size Used Avail Use% Mounted on
    ----------------------------------------------------
    /dev/sda3 190G 1.4G 179G 1% /
    /dev/sda6 1.9G 35M 1.8G 2% /tmp
    /dev/sda2 696G 197M 660G 1% /home
    /dev/sda1 99M 14M 80M 15% /boot
    tmpfs 3.9G 0 3.9G 0% /dev/shm



    to

    /dev/sda3 190G 1.4G 179G 1% /
    swap 2 X Memory was already setup when i partitioned the disk (Dell PE R210 machine got 8GB Ram)
    /vz All Available Space

    I don't have access to the DC, but i do have root SSH access.

    We would like to install a virtual environment and then install cpanel VPS licenses.

    Any help will be much appreciated.
     
  2. aff25768

    aff25768 Registered

    Joined:
    Oct 18, 2011
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    One 1TB drive the other one is mirrored but the OS can't see it. I only need to change the drive i can see in CentOS.

    # fdisk -l | grep '^Disk'

    Disk /dev/sda: 999.6 GB, 999653638144 bytes

    # vi /etc/fstab

    LABEL=/ / ext3 defaults 1 1
    LABEL=/tmp /tmp ext3 defaults 1 2
    LABEL=/home /home ext3 defaults 1 2
    LABEL=/boot /boot ext2 defaults 1 2
    tmpfs /dev/shm tmpfs defaults 0 0
    devpts /dev/pts devpts gid=5,mode=620 0 0
    sysfs /sys sysfs defaults 0 0
    proc /proc proc defaults 0 0
    LABEL=SWAP-sda5 swap swap defaults 0 0

    Any help if someone's looking at this post - please
     
Loading...

Share This Page