Tag: CentOS

  • Initial Settings after installing the CentOS 7

    1) To change the hostname permanently, edit the following file: sudo vi /etc/hostname Here you can simply put the name of your system (in my case, I have assigned it CentOS-7): After that, edit the hosts file: sudo vi /etc/hosts Here add the same name, that you have added in the /etc/hostname file, after After reboot, it will display […]

  • Part-4: Restore disk from Clonezilla Auto Restore CD/DVD

    Please read the Part-1,2 and 3 before starting this tutorial, in order to get the better understanding. 1) At first, Clonezilla auto restore CD/DVD comes up with this screen just press ENTER: 2) Before starting the restoration process, Clonezilla will confirm from you TWICE, If you are sure that everything is fine, than just type […]

  • Part-3: Restore an image of a Hard drive using Clonezilla

    In this tutorial, we’ll check that how to restore an image of a hard drive using the Clonezilla, that we have created in the Part-1 and stored it on the SSH Server. Note: One of Clonezilla’s “Limitations” is that the destination disk must be the same size or larger than the source disk that we […]

  • Part-2: Creation of autorun recovery Clonezilla live CD/DVD from image

    In the first part, we have created the Clonezilla image and store it on SSH Server. In this part, we’ll create the autorun recovery Clonezilla live DVD from that image. Note: You need to go through the same process again from step 1 to until step 15, that we have performed in Part-1. 1) Select […]

  • Part-1: Creation of Hard drive image using Clonezilla

    Scenario: The scenario is really simple, in which I want to backup my Ubuntu server using the “CloneZilla Live” and also want to store it on another server which has an ip address of If you want to learn more about CloneZilla, please visit this link. Let’s start the tutorial by inserting the CloneZilla […]

  • How to reduce the root partition in LVM

    In this tutorial, I am using the CentOS6(I believe that its also applicable on other Linux distro but didn’t try yet) that has ext4 partition lv_root mounted as / and lv_swap as swap from the volume group vg_centos6 (which is default), that has two hard drives (66GB & 25GB). Due to some reasons, I want […]

  • How to extend the root partition in LVM

    In this tutorial, I am using the CentOS6(but also applicable on other Linux distro) that has ext4 partition lv_root mounted as / and lv_swap as swap from the volume group vg_centos6 (which is default), we pretend that we are running out of space in lv_root(/) and volume group (vg_centos6) doesn’t have any free space. We […]

  • How to Fix Postfix File too large error

    Today, I was getting an error from my Postfix mail server, when trying to send mysqldump file which is about 8 MB attachment. I checked the /var/log/maillog and found this: sudo tail -f /var/log/maillog To view the default settings for all the parameters of Postfix: postconf -d | grep size   These size values surprised […]

  • Fixing httpd: [warn] module php5_module is already loaded, skipping

    I have a CentOS webserver with the Apache and PHP installed on it and it works perfectly but when I restart the Apache service, I get this error: [warn] module php5_module is already loaded, skipping To solve this problem, I have to verify this module load call in two files and need to remove/comment from […]

  • How to recover deleted Apache Log

    Scenario: The server is running Apache and by mistake one of the log files gets deleted. How, we can recover it? Currently, Apache server is working perfectly: Login/Switch to as root user: Move to the httpd in log directory: cd /var/log/httpd Delete the log file: rm -f access_log So the log file has been deleted,now […]