Adding a LUN with multipath

When you get a WWID of a newly presented LUN you simply have to add to multipath.conf. Match WWID from previous entry. vi /etc/mutltipath.conf Restart the service : service multipathd restart Run a for loop to scan for any new hard drives : for i in 0 1 2 3 4 5 6 7 8 […]

Read More

Creating a new partition in linux

This is a very high level step by step guide to what you need to do to add a new disk to you system. Along with partitioning it and mounting it to be available on boot. root@server:~# fdisk -l Disk /dev/sda: 1288.4 GB, 1288490188800 bytes 255 heads, 63 sectors/track, 156650 cylinders Units = cylinders of […]

Read More

Add a service to chkconfig

Chkconfig controls when a service will start up or stop based on the run level of the server. To list all of the services and when they would start and stop simply run the following : If you can’t find what you’re looking for right away, use grep to sort through the list : If […]

Read More

Open up a port in IPTables

First off, CentOS uses the firewall IPTables by default. To go in and open up ports you will need to start off as root : You will be prompted for your root password. Go ahead and enter it and hit enter. It’s always a good idea to turn IPTables off before you start : Now […]

Read More

Understanding tar ball in unix

Tar or tar ball is built into every unix system. It can create and manipulate archive files. It can even extract files from a zip, ar, cpio, shar, pax, and other archives. To tar a file you simply run the following command : In the above statement, you will be creating a tar of the […]

Read More

Adding a new user in Unix

Adding a new user in Unix is extremely easy. First you will need to run the following line of code : Next you will need to set the user’s password :

Read More

Install WordPress on a Unix Server

I am going to walk you through the steps to install a working wordpress site on a unix server all via SSH. First you will need the following dependencies : Once you have everything up and running, you will need to go ahead and download wordpress. As always make SURE your source is a safe […]

Read More