Resize disk space

Discussion in 'General' started by rasco, Jun 12, 2015.

  1. rasco

    rasco New Member

    Hi guys,
    I am running Ispconfig 3 in VM
    • Os: Debian7.6 wheezy
    • I increase the disk space for my VM to 120gig
    • when i enter fdisk -l i get 120gigs but in ispconfig is only reconising 76g
    • how to increase diskspace in ispconfig?

    *****disk status ispconfi****************
    Filesystem Type Size Used Available Use% Mounted on
    rootfs rootfs 76G 36G 37G 50% /
    udev devtmpfs 10M 0 10M 0% /dev
    tmpfs tmpfs 405M 232K 405M 1% /run
    /dev/disk/by-uuid/db0d86cf-6ef5-4ef0-bd8a-84a84798f37e ext4 76G 36G 37G 50% /
    tmpfs tmpfs 5.0M 4.0K 5.0M 1% /run/lock
    tmpfs tmpfs 1.5G 0 1.5G 0% /run/shm
     
    Last edited: Jun 12, 2015
  2. florian030

    florian030 Well-Known Member HowtoForge Supporter

    The diskspace is not checked in real-time. you must wait some minutes.
     
  3. rasco

    rasco New Member

    Hi Florian030
    I had waited 3 days and diskspace stays the same is there away to force ispconfig 3 to update the disk space status.?
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    ISPConfig shows you the output of the df command. Check with:

    df -h

    if it shows the correct disk size.
     
  5. rasco

    rasco New Member

    DF -H

    root@cpanel:~# df -h
    Filesystem Size Used Avail Use% Mo
    unted on
    rootfs 76G 36G 36G 50% /
    udev 10M 0 10M 0% /d
    ev
    tmpfs 405M 236K 405M 1% /r
    un
    /dev/disk/by-uuid/db0d86cf-6ef5-4ef0-bd8a-84a84798f37e 76G 36G 36G 50% /
    tmpfs 5.0M 4.0K 5.0M 1% /r
    un/lock
    tmpfs 1.5G 0 1.5G 0% /r
    un/shm
    /dev/disk/by-uuid/db0d86cf-6ef5-4ef0-bd8a-84a84798f37e 76G 36G 36G 50% /v
    ar/www/clients/client0/web1/log
    /dev/disk/by-uuid/db0d86cf-6ef5-4ef0-bd8a-84a84798f37e 76G 36G 36G 50% /v
    ar/www/clients/client0/web2/log
    /dev/disk/by-uuid/db0d86cf-6ef5-4ef0-bd8a-84a84798f37e 76G 36G 36G 50% /v
    ar/www/clients/client2/web4/log
    /dev/disk/by-uuid/db0d86cf-6ef5-4ef0-bd8a-84a84798f37e 76G 36G 36G 50% /v
    ar/www/clients/client3/web5/log
    /dev/disk/by-uuid/db0d86cf-6ef5-4ef0-bd8a-84a84798f37e 76G 36G 36G 50% /v
    ar/www/clients/client0/web6/log
    /dev/disk/by-uuid/db0d86cf-6ef5-4ef0-bd8a-84a84798f37e 76G 36G 36G 50% /v
    ar/www/clients/client5/web10/log
    /dev/disk/by-uuid/db0d86cf-6ef5-4ef0-bd8a-84a84798f37e 76G 36G 36G 50% /v
    ar/www/clients/client0/web14/log
    /dev/disk/by-uuid/db0d86cf-6ef5-4ef0-bd8a-84a84798f37e 76G 36G 36G 50% /v
    ar/www/clients/client0/web15/log
    /dev/disk/by-uuid/db0d86cf-6ef5-4ef0-bd8a-84a84798f37e 76G 36G 36G 50% /v
    ar/www/clients/client0/web16/log
    /dev/disk/by-uuid/db0d86cf-6ef5-4ef0-bd8a-84a84798f37e 76G 36G 36G 50% /v
    ar/www/clients/client0/web19/log
    /dev/disk/by-uuid/db0d86cf-6ef5-4ef0-bd8a-84a84798f37e 76G 36G 36G 50% /v
    ar/www/clients/client0/web21/log
    /dev/disk/by-uuid/db0d86cf-6ef5-4ef0-bd8a-84a84798f37e 76G 36G 36G 50% /v
    ar/www/clients/client0/web27/log
    root@cpanel:~#

    FDISK -L
    root@cpanel:~# fdisk -l

    Disk /dev/sda: 161.1 GB, 161061273600 bytes
    255 heads, 63 sectors/track, 19581 cylinders, total 314572800 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x000e33b4

    Device Boot Start End Blocks Id System
    /dev/sda1 2048 160884733 80441343 83 Linux
    /dev/sda2 160884734 167770111 3442689 5 Extended
    /dev/sda5 160884736 167770111 3442688 82 Linux swap / Solaris
    root@cpanel:~#​
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    So ispconfig shows the correct values (the size of the filesystem of your server). Most likely you just resized the partition size but not the filesystem with resize2fs size yet?
     
  7. rasco

    rasco New Member

    What would be the correct syntax for rezising?

    • root@cpanel:~# resize2fs /dev/disk/by-uuid/db0d86cf-6ef5-4ef0-bd8a-84a84798f37e ?
     
  8. rasco

    rasco New Member

  9. rasco

    rasco New Member

    Data from: 2015-06-16 10:10
    ISpconfig Disk usage" DISPLAYS 76G
    Filesystem Type Size Used Available Use% Mounted on
    rootfs rootfs 76G 36G 36G 50% /
    udev devtmpfs 10M 0 10M 0% /dev
    tmpfs tmpfs 405M 232K 405M 1% /run
    /dev/disk/by-uuid/db0d86cf-6ef5-4ef0-bd8a-84a84798f37e ext4 76G 36G 36G 50% /
    tmpfs tmpfs 5.0M 4.0K 5.0M 1% /run/lock
    tmpfs tmpfs 1.5G 0 1.5G 0% /run/shm

    ######info SDA ######## I HAVE 161.1GB
    Disk /dev/sda: 161.1 GB, 161061273600 bytes
    255 heads, 63 sectors/track, 19581 cylinders, total 314572800 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x000e33b4
    Device Boot Start End Blocks Id System
    /dev/sda1 2048 160884733 80441343 83 Linux
    /dev/sda2 160884734 167770111 3442689 5 Extended
    /dev/sda5 160884736 167770111 3442688 82 Linux swap / Solaris

    ##################

    I am trying to resize File system :

    resize2fs /dev/disk/by-uuid/db0d86cf-6ef5-4ef0-bd8a-84a84798f37e 150G

    what am i doing wrong? can someone guide me.
    thanks,
     
  10. florian030

    florian030 Well-Known Member HowtoForge Supporter

    what about resize2fs -p /dev/sda2 105G?
     
  11. rasco

    rasco New Member

  12. rasco

    rasco New Member

    Ok finally i got it to work.
    . I had to boot from Live cd i used the centos version 6
    .I run fdisk /dev/sda1
    deleted all the partion and was able to detect the 150g
    rebooted
    run command df -h and i see it now the 150 gigs.

    i did notice that ispconfig still displayed the 76g
    So i run
    resize2fs -p /dev/sda1

    that worked fine!!

    thanks guys.!!
     

Share This Page