32.17 Insufficient Allocated Disk Space

Sometimes the allocated disk space is not enough. In that case, you can increase the disk space using one of the following ways:

32.17.1 Clearing the Log Files

  1. Search the log files using the command:

    find / -iname *.log

    And remove those files.

  2. Search the old log files like celery.log.1, uwsgi.log.1 etc. in /var/lib/docker/volumes/aaf_aucore-logs/_data/, and remove those files.

32.17.2 Expanding the Root Partition

  1. In VM machine, click Edit Setting and select VM Options.

  2. Click Boot Options and enable Force BIOS setup.

  3. Add the SUSE 12 SP4 ISO to the CD-ROM device and connect.

  4. Select the Boot tab in the PhoenixBIOS setup Utility window.

  5. Select CD-ROM Drive and press the + key to move the CD-ROM Drive to the top.

  6. Select the Exit tab and select Exit Saving Changes.

  7. Select More in the boot menu.

  8. Select Rescue System and select Language.

  9. Log in to Rescue system as the Root user.

  10. To confirm disk information, use the command:

    fdisk -l

  11. To resize and rescue disk, use the command:

    parted

  12. To get device partition information, use the command:

    print.

  13. If you need to resize device other than the one which parted selects, use the command:

    select <device name>

    For Example: select /dev/ sdb

  14. To get disk information, use the command:

    print

  15. To resize the disk space, use the command:

    resize

    And specify the partition number and required space for the selected disk.

  16. To exit, use command:

    quit

  17. Check the partition using the command:

    e2fsck -f <device name>

    For example: e2fsck -f /dev/sbdb

  18. Expand the file system on the new partition using command:

    resize2fs <device name>

    For example: resize2fs /dev/sbdb

  19. Reboot the system using command:

    -r

  20. After rebooting, check the updated size of disk using command:

    df -h or fdisk -l