System Monitoring With sar And ksar

sar is one of the old and famous commandline utilities, which is often overlooked. It provides a wealth of information when you have kind of performance bottlenecks. By itself it only provides lengthy columns of numerical data, kind of hard to interpret. sar exists on most Linux distributions, for example Ubuntu, Debian, CentOS, Gentoo, and is also available on Solaris, AIX, and other commercial Unices.

ksar, on the other hand, is a Java based front end for sar’s numerical data. It produces friendly graphs which could be exported to .pdf

Preliminary Note + Disclaimer
you should be familiar using a shell, at least some basic knowledge is advantageous.

The following tutorial is a kind of cooking receipe using sar and ksar. It should easily be adoptable to nearly any kind of Linux or Unix, where the prerequisites are available

1. sar
sar is commandline driven. It is in a package named like sysstat (Ubuntu, Debian, CentOS, Gentoo, to name some). You should install it using your favourite package manager (apt-get, yum, synaptic, yumex, emerge, ..). Favourably sar could and should be used in conjunction with cron, so you may have a look into /etc/cron.d/sysstat or a similar named file
Continue reading “System Monitoring With sar And ksar” »

Be the first to comment - What do you think?  Posted by Aniruddh - November 25, 2011 at 2:53 am

Categories: Filesystem   Tags:

Lessfs 1.5 On CentOS 5

There is plenty of tuning to be done based on volume size, file types, and compression choices.

The latest lessfs required more recent versions of fuse and tokyocabinet than was in the CentOS repository, so I chose to install most of this from source.

1 Install dependencies:

need ‘gcc’ packages or others to compile

yum install mhash-devel pkgconfig zlib-devel bzip2-devel

2 Install Fuse from source

tar xzvf fuse-2.8.5.tar.gz
cd fuse-2.8.5
./configure && make && make install
cd ..

3 Install TokyoCabinet from source

tar xzvf tokyocabinet-1.4.47.tar.gz
cd tokyocabinet-1.4.47
./configure && make && make install
cd ..

4 Install LessFS from source

export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
tar xzvf lessfs-1.5.4.tar.gz
cd lessfs-1.5.4
./configure && make && make install

5 Configure lessfs

cp etc/lessfs.cfg /etc/

5.1 Edit /etc/lessfs.cfg
the kernel is less than version 2.6.26

Continue reading “Lessfs 1.5 On CentOS 5” »

Be the first to comment - What do you think?  Posted by Aniruddh - November 9, 2011 at 9:38 pm

Categories: CentOS, Filesystem   Tags:

Moving Files Between Linux Systems With SCP

To show how it works, I will move files from my HDD to a virtual machine running on VirtualBox. There is Linux Mint 11 installed on both drives.

1 Preliminary Note
I will do, but move them to any server on the world as well. You only have to know that server’s IP adress and the passwords needed to access it.

2 Configuring the Virtual Machine’s System
you first need to have some specific configuration. Open VirtualBox, select the virtual machine you have your target system running on and open Settings > Network. Select the correct Adapter tab (the first one if you haven’t done any changes yet) and select Bridged Adapter from the Attached to: dropdown menu. Run your virtual machine afterwards. Once started

sudo apt-get install openssh-server

ifconfig will show

[ccINb_bash width="700"]
ctest@ctest-System-Product-Name ~ $ ifconfig
eth0 Link encap:Ethernet HWaddr f4:6d:04:94:8f:17
inet addr: Bcast: Mask:
inet6 addr: fe80::f66d:4ff:fe94:8f17/64 Scope:Link
RX packets:234392 errors:0 dropped:0 overruns:0 frame:0
TX packets:128835 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:332109021 (332.1 MB) TX bytes:11758082 (11.7 MB)
Interrupt:43 Base address:0×6000

Continue reading “Moving Files Between Linux Systems With SCP” »

Be the first to comment - What do you think?  Posted by Aniruddh - November 6, 2011 at 8:39 pm

Categories: Filesystem   Tags:

Back Up Files With Deja Dup

how to back up your files with the file based back-up program duplicity’s Graphical User Interface déjà dup.
1 Preliminary Note
the tutorial on the Linux Mint 11 distribution, but it should work fine with all other Ubuntu based distributions
2 Install Deja Dup
that is why you can easily download it via Synaptic Package Manager by entering deja-dup into the search bar. Another way to download it is by doing so in a terminal. Simply log in as root and enter

apt-get install deja-dup

3 Backup Files
On first startup of the main program you will be presented with a very simplistic menu, consisting of a system toolbar and two large buttons for backing up and restoring file systems
Continue reading “Back Up Files With Deja Dup” »

Be the first to comment - What do you think?  Posted by Aniruddh - November 3, 2011 at 8:01 pm

Categories: Backup, Filesystem   Tags: