March 2014
M T W T F S S
 12
3456789
10111213141516
17181920212223
24252627282930
31  

Categories

March 2014
M T W T F S S
 12
3456789
10111213141516
17181920212223
24252627282930
31  

Sar , mpstat , vmstat , iostat

[root@localhost optback]# sar -b 1 Linux 3.10.0-54.0.1.el7.x86_64 (localhost.localdomain) 17/03/14 _x86_64_ (1 CPU)

23:02:44 tps rtps wtps bread/s bwrtn/s 23:02:45 0.00 0.00 0.00 0.00 0.00 23:02:46 0.00 0.00 0.00 0.00 0.00 23:02:47 0.00 0.00 0.00 0.00 0.00 23:02:48 0.00 0.00 0.00 0.00 0.00 23:02:49 0.00 0.00 0.00 0.00 0.00 23:02:50 0.00 0.00 0.00 0.00 0.00 23:02:51 […]

RedHat Enterprise Linux 7.0 XFS File System

[root@localhost ~]# pvcreate /dev/sdb /dev/sdc /dev/sdd Physical volume “/dev/sdb” successfully created Physical volume “/dev/sdc” successfully created Physical volume “/dev/sdd” successfully created

  pvs [root@localhost ~]# pvs PV VG Fmt Attr PSize PFree /dev/sda2 rhel lvm2 a– 39.51g 0 /dev/sdb lvm2 a– 20.00g 20.00g /dev/sdc lvm2 a– 20.00g 20.00g /dev/sdd lvm2 a– 20.00g 20.00g

 

 

[…]

Create a local DVD repository for YUM

he software repositories created during the installation will point only the Red Hat online and will require your subscription code. Installing from the online repositories will always ensure that you are working with the latest software versions but for testing the beta in a non-live environment may not be required. We will use the DVD […]

Red Hat Enterprise Linux 7 BETA 1 Install Step by Step

 

Red Hat Enterprise Linux 7 BETA 1 Install and overview | A good thing even better Red Hat is the leader in development, deployment, and management of Linux and open-source solutions for Internet infrastructure – ranging from embedded devices to secure web servers. The company was founded in 1994 by visionary entrepreneurs Bob Young […]

Netstat for windows

netstat -ano -p tcp | findstr “18812” netstat -ano -p tcp | findstr /R /C:”TCP[ ]*[0-9.]*:3099 ” netstat -ano -p tcp | findstr “.*:18812.*”

DRBD

db1.rmohan.com 192.168.1.105 db2.rmohan.com 192.168.1.106 Add a hard disk

fdisk /dev/sdb wget http://elrepo.org/elrepo-release-6-4.el6.elrepo.noarch rpm -ivUh elrepo-release-6-4.el6.elrepo.noarch.rpm

vi /etc/yum.repos.d/elrepo.repo

Edit /etc/yum.repos.d/elrepo.repo ( change line #8 ‘enable=0′ ) yum –enablerepo=elrepo install drbd83-utils kmod-drbd83 yum -y install parted

partprobe /dev/sdb1

pvcreate /dev/sdb1

vgcreate vg_db /dev/sdb1 lvcreate -n lv_db -L +50G vg_db lvcreate -n lv_meta -L +10G vg_db groupadd haclient […]

GLUSTER ON CENTOS 6.5

cat /etc/hosts

127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 192.168.1.45 cluster1.rmohan.com cluster1 192.168.1.41 cluster2.rmohan.com cluster2 192.168.1.42 cluster3.rmohan.com cluster3

 

rpm –import /etc/pki/rpm-gpg/RPM-GPG-KEY*

rpm –import https://fedoraproject.org/static/0608B895.txt cd /tmp wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm rpm -ivh epel-release-6-8.noarch.rpm yum install yum-priorities vi /etc/yum.repos.d/epel.repo

priority=10 [epel] name=Extra Packages for Enterprise Linux 6 – $basearch #baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch failovermethod=priority enabled=1 priority=10 […]