To See GNU/Linux on all Desktops in this world.

How to setup redundant NFS using DRBD and Heartbeat on Linux Easily - Centos Fedora SuSe Redhat RHEL

Hi all, hope you are enjoying series of articles published on this website for free.. totally free.

In this article you will learn how to setup redundant NFS servers using DRBD (Distributed-Replicated-Block-Devices) Technology. Complete step-by-step procedure is listed below. It works for me so hopefully it will work for your also. No gurantees are given.

1. Two servers with similar storage disk (harddrive) setup (To create a redundant nfs server)
2. One client system/server where the nfs share will be mounted.
3. Static IPs for all servers.

Read Only filesystem to read write.

Hi all, Many time we came across systems where root (/) filesystem is mounted read only (ro) and we need to edit some configuration files but we can not until we remount it with read write (rw) priveleges.

Say for example you changed some configuration in /etc/fstab file and next time when you reboot system, it is not able to find /boot or / partitions references listed in fstab file. You are confident and knowing that your data is there on disk but system is not able to mount it correctly and refusing to boot.

script to create multiple network interface in xen host - node/xenbr0-xenbr1-xend-config

Hi all, In this article we will learn how to setup multiple network interfaces for your virtual machine using xen. by default it creates 1 interface and 1 bridge interface but when you want to create more then 1 interfaces then you need to do some work manually.

please follow steps mentioned below and you will find it working.

First of all we will create a script as /etc/xen/scripts/network-xen-custom with the following content:

    #!/bin/sh
    # network-xen-custom
    # Exit if anything goes wrong
    set -e

    # First arg is operation.
    OP=$1
    #shift

View text files (config files) without comments using grep / egrep

Hi all, here you will learn something very interesting about grep with regexp. I've been using grep since many years to trim comments out of config files. We need coments in config files to provide details but sometimes when you want to look through files quickly then comments can get in your way. I've found files hundreds of lines long which had fewer than ten active configuration lines, it's really hard to get an overview of what's going on when you have to search / walk through hundreds of lines of comments.

vim Basics

In this tutorial I will share some vim basics. Vim is a powerful text editor used in CLI (command line interface). Because gnu/linux uses a lot of configuration files which are all in clear text format, you'll often need to edit them and vim (in short vi) is a great tool to use.

vim (vi) has a particular working method. Indeed there are to main mods : command and other mods, so if you get familier with some basics then it will be a very good starting point.

Install image based guest (sparse file). image-based-guest

How to install virtual machine on image based disk ...

I will presume that you have a server running xend on it. In my case I am using CentOS 5.2 and xend 3.0.3. After your xen dom-0 server is ready we need to install dom-u on it. To install dom-u using sparse (image)file. please follow steps listed below.

How to create MySQL master-slave/master-slave chain.

Hi all, In this article I will explain how to create master-slave/master-slave chaing using mysql database server. As we know that complex data storage requirements are growing day-by-day and we need to make sure that information is available from multiple place to simplify access requirements. E.g Marketing department, billig and accoutns department, customer support etc might need to access data from database server while performing there day-to-day work. We can not rely on 1 database server for such scenario. In most of the cases most of them will need read-only copy of data.

Work faster on gnu/linux command line with this shortcuts.

Hi all. as a systems administrator or a normal user of gnu/linux, we always want some shortcuts to work quicker on your keyboard.
Here in this article I will show you some of the quick-shortcuts which will help you in your day-to-day work on gnulinux.

I assume you are on command line interface and if you press :

  1. Ctrl + a or Home key :-- with help of this your cursor will move to beginning of command line.
  2. Ctrl + e or End :-- Your cursor will move to the end of command line.

How to find GNU/Linux kernel version ?

Hi all, We know that in gnu/linux and most of all operating systems kernel is heart of Operatin Sytem. On all major linux distribution we can check linux kernel version with “uname” command.

In this article we will show you some commandline options [switches] which will be useful along with uname command. For knowing all kernel related info we can use uname -a. This command can be used on any gnu/linux.

on UBUNTU linux we can view content of file /etc/*release* to get information of installed operating system [OS] e.g.

Split large files in small chunks using "split" command

How to split big size files in small pieces in linux and unix?

I have seen sometimes while working on Linux and/or Unix system / server, we want to convert large files (big in size) into small chunks of files. Even sometimes a large file can take long time to open up. That can also increase load on server. Specially when a file is couple of GB in size and you want to debug something quickly in it, its better to split it in small chunks to speed up your work.

We can use readyily available “split” command in Linux or Unix.

Syndicate content

Back to top