How to shrink HDD

Discussion in 'HOWTO-Related Questions' started by noaptus, Jan 18, 2013.

  1. noaptus

    noaptus New Member

    Hi you all.

    I am in need of assistan, I have an 400 GB HDD on my CentOS 6 Server
    and I need to create an extra partition on that drive without loosing any data.

    When I do df -l i get this.

    Code:
    Filesystem            Size  Used Avail Use% Mounted on
    /dev/sda1             359G  1.4G  340G   1% /
    tmpfs                 1.5G     0  1.5G   0% /dev/shm
    And when I do this fdisk -l

    Code:
    Disk /dev/sda: 400.1 GB, 400088457216 bytes
    255 heads, 63 sectors/track, 48641 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x000da106
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1   *           1       47598   382322688   83  Linux
    /dev/sda2           47598       48642     8387584   82  Linux swap / Solaris
    What i'm intend to do is that I need 280GB extra and create LVM Group for that extra space.

    This is my dedicated server and I have Solusvm on that server that is a slave server.

    Can somone please tel me step by step how to do this.

    To be really honest I am little bit scared to do this without a proper knowledge, I do have search the internet but I would rather have somone who know's this realy good.

    So I really appreciate all the assistant.

    Regards

    Noaptus
     
  2. falko

    falko Super Moderator ISPConfig Developer

Share This Page