How to install GlusterFS with a replicated high availability storage volume on Ubuntu Linux 16.04 LTS

Posted on in Categories , , , , last updated March 7, 2017

I want to share my web server DocumentRoot /var/www/html/ across 2 Apache web server. Both of my web servers are behind load balanced reverse proxy powered by Nginx. How do I setup and install GlusterFS (“distributed storage”) which is a scalable network filesystem on Ubuntu Linux 16.04 LTS server?

How to wipe a signature from a disk device on Linux with wipefs command

Posted on in Categories , , , , , , last updated February 27, 2017

I recently decommissioned Debian Linux based nas server and moved disk from my nas server to Linux-powered desktop. However, when I run fdisk command, I am getting the following error:
    /dev/sdb: device contains a valid ‘LVM2_member’ signature; it is strongly recommended to wipe the device with wipefs(8) if this is unexpected, in order to avoid possible collisions
What is a wipefs and how do I use it on Linux?

How to find all hard links in a directory on Linux

Posted on in Categories , , , , , , , , , last updated February 25, 2017

I have a file named /etc/passwd i and I would like to find all hard links to this file in a directory. How do I find out all other hard links to the /etc/passwd in /backups/ directory? How can find all hard links to a given file using Linux or Unix command line option?

How to add an extra second hard drive on Linux LVM and increase the size of storage

Posted on in Categories , , , , , , last updated February 22, 2017

I have 250GB disk installed on my home Linux server. I just bought a brand new 250GB SATA disk and I want to add a new disk to my existing LVM volume to increase its size total size to 500GB. How do I add a disk to LVM and extend an LVM volume on Linux operating system?