How to Install Java Tomcat Apache and Centos 5

Scenario / Question: How do I install Tomcat on Centos Solution / Answer: In order to install Tomcat on Centos you first need to install Java. Both free and non-free packages are required for the installation. The non-free packages do not cost money however you must download them directly from [continue...]

How should I run fsck on a Linux file system

Scenario / Question: I need to check file system for errors using fsck. Can I run fsck on a mounted file system ? Solution / Answer: Running fsck on a mounted file system can result in data corruption. The two options are: 1) Change the running state of the system to single user mode and [continue...]

Unlink or Remove a Symbolic link in Linux

Scenario / Question: How to unlink or remove a symbolic in linux that was created with ln Solution / Answer: Use the unlink command To unlink a symbolic link file : # unlink symbolic_link_file To unlink a symbolic link to a directory : # unlink symbolic_link_dir When unlinking a directory make [continue...]

Linux NTFS Read and Write using NTFS-3G

Scenario / Question: How do I write or read from NTFS formated partition in linux Solution / Answer: Install and use the NTFS-3G Driver NTFS-3G Packages The ntfs-3g packages can be found on the NTFS-3G website NTFS-3G-Download You can also use yum to install NTFS-3G First you will need the [continue...]

How to Install Vmware Server 2.0 on Centos 5.2 Host

Scenario / Question: Install Vmware Server 2 on Centos 5.2 Host Solution / Answer: The new vmware server 2 has a new look and also the previous compile bugs that were present in the 1.0 version when installing on Centos and Fedora appear to have been fixed. Download Vmware Server 2.0 Go to [continue...]

Linux LVM Extend on Software RAID Partition

Scenario / Question: How do I extend my LVM to include another RAID Array partition Solution / Answer: Create a new Physical Volume Extend the Volume Group Extend the Logical Volume Resize the File System to the new size Display the current Physical Volumes: # pvdisplay --- Physical volume [continue...]

Linux adding and sharing a hot spare device in software RAID

Scenario / Question: How do I add a hot spare to my existing RAID Arrays and also have it shared among the RAID Arrays Solution / Answer: Use mdadm to hot add the new drive partition to the RAID Array Configure mdadm.conf to include “spare-group” setting Configure mdadm to run in [continue...]

Linux Software RAID 1 Array How to Manual Setup

Scenario / Question: Setup a RAID 1 Array in an existing system using two new hard drives. Solution / Answer: Check the Partition Table on the new drives and create a RAID partition. Create a new RAID 1 Array using the newly created partitions Create mdadm.conf configuration file for the RAID [continue...]