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… Continue reading How to reduce the root partition in LVM

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… Continue reading How to extend the root partition in LVM

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… Continue reading Fixing httpd: [warn] module php5_module is already loaded, skipping

Time synchronization on CentOS 6.2 using NTP

To install the ntp, just enter this command at the terminal: sudo yum install ntp To make the ntpd start at boot time, use this commands: sudo chkconfig ntpd on After installation, edit the default ntp configuration: sudo nano /etc/ntp.conf Commented out/remove the default CentOS servers,you can add your own time-servers here to synchronize with,… Continue reading Time synchronization on CentOS 6.2 using NTP

How to install VNC server on CentOS 6

VNC is a protocol that is used to share the desktop with other users/computers over the network/Internet.In order to share a desktop, VNC server must be install and configure on the computer and VNC client must be run on the computer that will access the shared desktop. When we install the minimal copy of CentOS… Continue reading How to install VNC server on CentOS 6