tag:blogger.com,1999:blog-56322358675261294002024-03-23T03:14:19.853-07:00...................LinuxFor those who love Linux....Ansilhttp://www.blogger.com/profile/07287558007793912931noreply@blogger.comBlogger22125tag:blogger.com,1999:blog-5632235867526129400.post-40322171661054789782017-12-10T12:39:00.000-08:002017-12-10T12:39:08.074-08:00Ansil4Linux Blog Moving to new site https://linxlabs.com/<div dir="ltr" style="text-align: left;" trbidi="on">
<br />I've been studying new topics for some time and decided to start a new website<br />
<br />
Site is now live and can be accessed at https://linxlabs.com/<br />
<br />
Many articles were already posted on "Golang" <br />
<br />
Suscribe and follow me on below places <br />
<br />
YouTube : https://www.youtube.com/channel/UCCA7cWxxqOC95VR8JPEFn_w<br />
<br />
FB : https://www.facebook.com/OpenLinuxLabs<br />
<br />
Google+ : https://plus.google.com/communities/109444869997457310738</div>
Ansilhttp://www.blogger.com/profile/07287558007793912931noreply@blogger.com0tag:blogger.com,1999:blog-5632235867526129400.post-38909342506439405032017-07-23T06:27:00.000-07:002017-09-27T13:37:22.920-07:00LVM thin provisioning - file system usage and pool usage dosn't match <div dir="ltr" style="text-align: left;" trbidi="on">
When I was demonstrating LVM thin provisioning to new batch of campus hires ; they pointed out an important mismatch between thin pool usage and actual file system usage.<br />
<br />
I thought , it would be worthy to give it a try to find the cause.<br />
<br />
So here we go; I created a thin pool with size of 100MB and thin volume of 1GB<br />
<br />
Thin volume formatted with ext4 and mounted over /test_fs<br />
<br />
Everything was going smooth as per the plan until we did a tar backup of /usr over /test_fs.<br />
<br />
Here we go ;<br />
<br />
* Created vg001 - size 12GB<br />
<br />
<div style="text-align: left;">
<span style="font-family: "courier new" , "courier" , monospace;"><span style="font-size: x-small;">[root@ol7-san ~]# vgdisplay vg001</span></span></div>
<div style="text-align: left;">
<span style="font-family: "courier new" , "courier" , monospace;"><span style="font-size: x-small;"> --- Volume group ---</span></span></div>
<div style="text-align: left;">
<span style="font-family: "courier new" , "courier" , monospace;"><span style="font-size: x-small;"> VG Name vg001</span></span></div>
<div style="text-align: left;">
<span style="font-family: "courier new" , "courier" , monospace;"><span style="font-size: x-small;"> System ID</span></span></div>
<div style="text-align: left;">
<span style="font-family: "courier new" , "courier" , monospace;"><span style="font-size: x-small;"> Format lvm2</span></span></div>
<div style="text-align: left;">
<span style="font-family: "courier new" , "courier" , monospace;"><span style="font-size: x-small;"> Metadata Areas 1</span></span></div>
<div style="text-align: left;">
<span style="font-family: "courier new" , "courier" , monospace;"><span style="font-size: x-small;"> Metadata Sequence No 12</span></span></div>
<div style="text-align: left;">
<span style="font-family: "courier new" , "courier" , monospace;"><span style="font-size: x-small;"> VG Access read/write</span></span></div>
<div style="text-align: left;">
<span style="font-family: "courier new" , "courier" , monospace;"><span style="font-size: x-small;"> VG Status resizable</span></span></div>
<div style="text-align: left;">
<span style="font-family: "courier new" , "courier" , monospace;"><span style="font-size: x-small;"> MAX LV 0</span></span></div>
<div style="text-align: left;">
<span style="font-family: "courier new" , "courier" , monospace;"><span style="font-size: x-small;"> Cur LV 0</span></span></div>
<div style="text-align: left;">
<span style="font-family: "courier new" , "courier" , monospace;"><span style="font-size: x-small;"> Open LV 0</span></span></div>
<div style="text-align: left;">
<span style="font-family: "courier new" , "courier" , monospace;"><span style="font-size: x-small;"> Max PV 0</span></span></div>
<div style="text-align: left;">
<span style="font-family: "courier new" , "courier" , monospace;"><span style="font-size: x-small;"> Cur PV 1</span></span></div>
<div style="text-align: left;">
<span style="font-family: "courier new" , "courier" , monospace;"><span style="font-size: x-small;"> Act PV 1</span></span></div>
<div style="text-align: left;">
<span style="font-family: "courier new" , "courier" , monospace;"><span style="font-size: x-small;"> VG Size 12.00 GiB</span></span></div>
<div style="text-align: left;">
<span style="font-family: "courier new" , "courier" , monospace;"><span style="font-size: x-small;"> PE Size 4.00 MiB</span></span></div>
<div style="text-align: left;">
<span style="font-family: "courier new" , "courier" , monospace;"><span style="font-size: x-small;"> Total PE 3071</span></span></div>
<div style="text-align: left;">
<span style="font-family: "courier new" , "courier" , monospace;"><span style="font-size: x-small;"> Alloc PE / Size 0 / 0</span></span></div>
<div style="text-align: left;">
<span style="font-family: "courier new" , "courier" , monospace;"><span style="font-size: x-small;"> Free PE / Size 3071 / 12.00 GiB</span></span></div>
<div style="text-align: left;">
<span style="font-family: "courier new" , "courier" , monospace;"><span style="font-size: x-small;"> VG UUID kroGDG-Rs8L-1c0e-WBjJ-g0OG-4u8k-T4yaJl</span></span></div>
<div style="text-align: left;">
<span style="font-family: "courier new" , "courier" , monospace;"><span style="font-size: x-small;">[root@ol7-san ~]#</span></span></div>
<br />
* Created a thin pool with size of 100MB<br />
<span style="font-family: "courier new" , "courier" , monospace;"><br /></span>
<span style="font-family: "courier new" , "courier" , monospace;">[root@ol7-san ~]# lvcreate -L 100M -T vg001/mythinpool<br /> Logical volume "mythinpool" created.<br />[root@ol7-san ~]#</span><br />
<br />
* Created a thin volume of size 1GB<br />
<span style="font-family: "courier new" , "courier" , monospace;"><br /></span>
<span style="font-family: "courier new" , "courier" , monospace;">[root@ol7-san ~]# lvcreate -V1G -T vg001/mythinpool -n thinvolume<br /> Logical volume "thinvolume" created.<br />[root@ol7-san ~]#</span><br />
<br />
* Formatted thinvolume with ext4<br />
<br />
<span style="font-family: "courier new" , "courier" , monospace;">[root@ol7-san ~]# mkfs.ext4 /dev/vg001/thinvolume<br />mke2fs 1.42.9 (28-Dec-2013)</span><b><br /></b><span style="font-family: "courier new" , "courier" , monospace;">..(snipped)...</span><br />
<span style="font-family: "courier new" , "courier" , monospace;">Writing superblocks and filesystem accounting information: done<br /><br />[root@ol7-san ~]#</span><br />
<br />
* Mounted the file system over directory /test_fs<br />
<br />
<span style="font-family: "courier new" , "courier" , monospace;">[root@ol7-san ~]# mount /dev/vg001/thinvolume /test_thin<br />[root@ol7-san ~]# df -h /test_thin/<br />Filesystem Size Used Avail Use% Mounted on<br />/dev/mapper/vg001-thinvolume 976M 2.6M 907M 1% /test_thin<br />[root@ol7-san ~]#</span><br />
<br />
* Everything is good and lets do a tar backup<br />
<br />
<span style="font-family: "courier new" , "courier" , monospace;">[root@ol7-san test_thin]# tar -cf usr_bkp.tar /usr<br />tar: Removing leading `/' from member names<br />tar: Removing leading `/' from hard link targets</span><br />
<br />
* Lets check the FS usage<br />
<br />
<span style="font-family: "courier new" , "courier" , monospace;">[root@ol7-san ~]# df -h /test_thin/<br />Filesystem Size Used Avail Use% Mounted on<br />/dev/mapper/vg001-thinvolume 976M 312M 597M 35% /test_thin<br />[root@ol7-san ~]#</span><br />
<br />
* Lets check the thinpool usage as well<br />
<br />
<span style="font-size: xx-small;"><span style="font-family: "courier new" , "courier" , monospace;">[root@ol7-san test_thin]# lvs<br /> LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert<br /> mythinpool vg001 twi-aotz-- 100.00m <span style="background-color: yellow;">100.00</span> 1.95<br /> thinvolume vg001 Vwi-aotz-- 1.00g mythinpool 9.77<br />[root@ol7-san test_thin]#</span></span><br />
<br />
Pool is 100% utilized and it clearly shows its size of 100MB<br />
<br />
SUPERSIZE..!!! :) File system usage shows 312MB , but our thin pool is only 100MB.<br />
<br />
So where is the remaining 212MB stored ???<br />
<br />
* ) I pressed Ctrl+C on tar as its hung and tried to do a sync<br />
<br />
<span style="font-family: "courier new" , "courier" , monospace;">[root@ol7-san test_thin]# sync</span><br />
<br />
It hung..!!! Gotcha.. the contents were stored in cache in memory and not really written to disk.<br />
<br />
So that solves the mystery of file system usage and pool usage mismatch.<br />
<br />
You may extend the pool after breaking tar to get the sync commit all dirty page to disk and return to terminal. <br />
<br />
One more catch - removing file won't release thin pool usage ; you need to execute fstrim over the file system to get the space back to the pool <br />
<br />
<br />
<br />
<br /></div>
Ansilhttp://www.blogger.com/profile/07287558007793912931noreply@blogger.com1tag:blogger.com,1999:blog-5632235867526129400.post-17051310201694933502016-08-12T04:13:00.002-07:002016-08-12T04:13:25.209-07:00<div dir="ltr" style="text-align: left;" trbidi="on">
<b>SFTP auto login without keys / without password</b><br />
<br />
sftp command doesn't have option to specify password for auto login.<br />
<br />
Recently faced this issue while writing a script on SUSE Linux for transferring system performance report to a central location, which is also a SuSE system.<br />
<br />
We can accomplish this with "lftp" or "expect" command, but SLES doesn't install those binaries default.<br />
<br />
I've to live with what I got, so let’s try how we can accomplish this with sftp command.<br />
<br />
<br />
The idea is<br />
<br />
1.Set "SSH_ASKPASS" environment variable and force "sftp" command to read password from there.<br />
<br />
2."sftp" will always ask password if its executing from a terminal, so we need to daemonize sftp command with "setsid" command<br />
<br />
<br />
Below code snippets will give some idea how we get it to the solution<br />
<br />
pathnames.h<br />
<br />
/* Default path to ASKPASS program */<br />
<br />
#define _PATH_SSH_ASKPASS_DEFAULT "/usr/X11R6/bin/ssh-askpass" <br />
<br />
ssh.h<br />
<br />
/*<br />
* Environment variable for overwriting the default location of askpass<br />
*/<br />
#define SSH_ASKPASS_ENV "SSH_ASKPASS"<br />
<br />
readpass.c<br />
<br />
...<br />
...<br />
<br />
if (use_askpass && getenv("DISPLAY")) {<br />
if (getenv(SSH_ASKPASS_ENV))<br />
askpass = getenv(SSH_ASKPASS_ENV);<br />
...<br />
...<br />
<br />
execlp(askpass, askpass, msg, (char *) 0); <br />
...<br />
...<br />
<br />
<br />
<br />
So here we have all parts in place and we need to assemble it.<br />
<br />
Now let’s start the real work<br />
<br />
1.User name is "testvsftp" and password is "pass123"<br />
2.echo "echo pass123" >/tmp/pass.sh<br />
3.chmod 755 /tmp/pass.sh<br />
4.export SSH_ASKPASS=/tmp/pass.sh<br />
5.export DISPLAY=":0" # As mentioned in readpass.c code , askpass = getenv(SSH_ASKPASS_ENV); will execute only if we have "DISPLAY" variable set.<br />
6.setsid sftp -o StrictHostKeyChecking=no testvsftp@hostname << EOF<br />
pwd<br />
ls<br />
EOF<br />
<br />
That’s it..!!!..Now you know how to automate sftp login in scripts<br />
<br />
Note:- “StrictHostKeyChecking=no” option in sftp command is to accept keys from SFTP server automatically , otherwise if you are accessing the server first time, it may wait and ask for accepting the keys , eventually your script won’t continue from there.</div>
Ansilhttp://www.blogger.com/profile/07287558007793912931noreply@blogger.com0tag:blogger.com,1999:blog-5632235867526129400.post-12970509151782033472012-03-18T12:50:00.000-07:002012-03-22T11:43:22.072-07:00Linux OS backup and Restoration using ReaR – Relax & Recover<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<div class="MsoNoSpacing">
<b style="mso-bidi-font-weight: normal;">ReaR – Relax and Recover is an Opensource tool for backing up your OS.</b></div>
<div class="MsoNoSpacing">
<b style="mso-bidi-font-weight: normal;">The Physical to Virtual and Virtual to Physical migration of OS is also possible with ReaR</b></div>
<div class="MsoNoSpacing">
<b style="mso-bidi-font-weight: normal;">You can also integrate your favorite backup tools like IBM TSM or HP Data Protector with ReaR to backup the OS to External Storage</b></div>
<div class="MsoNoSpacing">
<br /></div>
<div class="MsoNoSpacing">
<b style="mso-bidi-font-weight: normal;">Here is the setup I used</b></div>
<div class="MsoNoSpacing">
<br /></div>
<div class="MsoNoSpacing">
<b style="mso-bidi-font-weight: normal;">OS :openSuSE 11.4</b></div>
<div class="MsoNoSpacing">
<b style="mso-bidi-font-weight: normal;">ReaR package: rear-1.10.0-23.1.noarch</b></div>
<div class="MsoNoSpacing">
<b style="mso-bidi-font-weight: normal;">Pre-requisites 1:</b></div>
<div class="MsoNoSpacing">
<span style="mso-tab-count: 1;"> </span>RPMs</div>
<div class="MsoNoSpacing" style="margin-left: 1in;">
mingetty</div>
<div class="MsoNoSpacing" style="margin-left: 1in;">
binutils</div>
<div class="MsoNoSpacing" style="margin-left: 1in;">
iputils</div>
<div class="MsoNoSpacing" style="margin-left: 1in;">
tar</div>
<div class="MsoNoSpacing" style="margin-left: 1in;">
gzip</div>
<div class="MsoNoSpacing" style="margin-left: 1in;">
ethtool</div>
<div class="MsoNoSpacing" style="margin-left: 1in;">
syslinux</div>
<div class="MsoNoSpacing" style="margin-left: 1in;">
iproute2</div>
<div class="MsoNoSpacing" style="margin-left: 1in;">
lsb</div>
<div class="MsoNoSpacing" style="margin-left: 1in;">
genisoimage</div>
<div class="MsoNoSpacing" style="margin-left: 1in;">
nfs-client</div>
<div class="MsoNoSpacing" style="margin-left: 1in;">
rpcbind</div>
<div class="MsoNoSpacing" style="margin-left: 1in;">
rpmlib(PayloadFilesHavePrefix) <= 4.0-1</div>
<div class="MsoNoSpacing" style="margin-left: 1in;">
rpmlib(CompressedFileNames) <= 3.0.4-1</div>
<div class="MsoNoSpacing" style="margin-left: 1in;">
/bin/bash</div>
<div class="MsoNoSpacing" style="margin-left: 1in;">
rpmlib(PayloadIsLzma) <= 4.4.6-1</div>
<div class="MsoNoSpacing">
<br /></div>
<div class="MsoNoSpacing">
<b style="mso-bidi-font-weight: normal;">Pre-requisite 2:</b></div>
<div class="MsoNoSpacing">
<span style="mso-tab-count: 1;"> </span>NFS server ( I used RHEL5 )with a share /rear/backup and the share must have write permission </div>
<div class="MsoNoSpacing">
<span style="mso-tab-count: 1;"> </span>/etc/exports</div>
<div class="MsoNoSpacing">
<span style="mso-tab-count: 1;"> </span>/rear/backup<span style="mso-tab-count: 1;"> </span>*(rw,no_root_squash)</div>
<div class="MsoNoSpacing">
<span style="mso-tab-count: 1;"> </span>service nfs start</div>
<div class="MsoNoSpacing">
<span style="mso-tab-count: 1;"> </span>showmount –e</div>
<div class="MsoNoSpacing">
<span style="mso-tab-count: 1;"> </span>----------------------------------------------</div>
<div class="MsoNoSpacing">
<span style="mso-tab-count: 1;"> </span><b style="mso-bidi-font-weight: normal;">If yor NFS server is already running, then</b></div>
<div class="MsoNoSpacing">
<span style="mso-tab-count: 1;"> </span>Add “/rear/backup<span style="mso-tab-count: 1;"> </span>*(rw,no_root_squash)” to /etc/exports</div>
<div class="MsoNoSpacing">
<span style="mso-tab-count: 1;"> </span>exportfs –a</div>
<div style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; mso-element: para-border-div; padding-bottom: 1pt; padding-left: 0in; padding-right: 0in; padding-top: 0in;">
<div class="MsoNoSpacing" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; mso-border-bottom-alt: double windowtext 2.25pt; mso-padding-alt: 0in 0in 1.0pt 0in; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;">
<span style="mso-tab-count: 1;"> </span>showmount –e</div>
</div>
<div class="MsoNoSpacing">
<br /></div>
<div class="MsoNoSpacing">
<b style="mso-bidi-font-weight: normal;">The main configuration file is /etc/rear/local.conf</b></div>
<div class="MsoNoSpacing">
<b style="mso-bidi-font-weight: normal;">Make sure below entries are present on file</b></div>
<div class="MsoNoSpacing" style="background: black; mso-background-themecolor: text1;">
<span style="mso-tab-count: 1;"> <span style="color: white;"> </span></span><span style="color: white;">OUTPUT=ISO</span></div>
<div class="MsoNoSpacing" style="background: black; color: white;">
<span style="mso-tab-count: 1;"> </span>BACKUP=NETFS</div>
<div class="MsoNoSpacing" style="background: black; color: white; text-indent: 0.5in;">
NETFS_URL=nfs://ip.of.nfs.server<ip nfs="" of="" server="" your=""><ip.of.nfs.server>/rear/backup</ip.of.nfs.server></div>
<div class="MsoNoSpacing">
<br /></div>
<div class="MsoNoSpacing">
<br /></div>
<div class="MsoNoSpacing">
Then execute rear to create a backup with bootable ISO which can be used for booting incase of system crash and using that file we can restore OS from NFS partition</div>
<div class="MsoNoSpacing">
<br /></div>
<div class="MsoNoSpacing">
You can also configure a PXE boot server to recover the OS without making ISO to DVD for booting</div>
<div class="MsoNoSpacing" style="background: black; mso-background-themecolor: text1;">
<br /></div>
<div class="MsoNoSpacing" style="background: black; mso-background-themecolor: text1;">
<span style="color: white; mso-themecolor: background1;">mysql01:~ # rear mkbackup</span></div>
<div class="MsoNoSpacing" style="background: black; mso-background-themecolor: text1;">
<span style="color: white; mso-themecolor: background1;">Relax & Recover Version 1.10.0 / 2011-02-20</span></div>
<div class="MsoNoSpacing" style="background: black; mso-background-themecolor: text1;">
<br /></div>
<div class="MsoNoSpacing" style="background: black; mso-background-themecolor: text1;">
<span style="color: white; mso-themecolor: background1;">WARNING ! The NETFS backup method should not be your primary</span></div>
<div class="MsoNoSpacing" style="background: black; mso-background-themecolor: text1;">
<span style="color: white; mso-themecolor: background1;">backup solution, because it does not fulfill the requirements</span></div>
<div class="MsoNoSpacing" style="background: black; mso-background-themecolor: text1;">
<span style="color: white; mso-themecolor: background1;">of a professional backup solution !</span></div>
<div class="MsoNoSpacing" style="background: black; mso-background-themecolor: text1;">
<br /></div>
<div class="MsoNoSpacing" style="background: black; mso-background-themecolor: text1;">
<span style="color: white; mso-themecolor: background1;">The preparation phase<span style="mso-spacerun: yes;"> </span>OK</span></div>
<div class="MsoNoSpacing" style="background: black; mso-background-themecolor: text1;">
<span style="color: white; mso-themecolor: background1;">Physical devices that will be recovered: /dev/sda</span></div>
<div class="MsoNoSpacing" style="background: black; mso-background-themecolor: text1;">
<span style="color: white; mso-themecolor: background1;">Creating root FS layout<span style="mso-spacerun: yes;"> </span>OK</span></div>
<div class="MsoNoSpacing" style="background: black; mso-background-themecolor: text1;">
<span style="color: white; mso-themecolor: background1;">WARNING: To login as root via ssh you need to setup an authorized_keys file in /root/.ssh</span></div>
<div class="MsoNoSpacing" style="background: black; mso-background-themecolor: text1;">
<span style="color: white; mso-themecolor: background1;">Copy files and directories<span style="mso-spacerun: yes;"> </span>OK</span></div>
<div class="MsoNoSpacing" style="background: black; mso-background-themecolor: text1;">
<span style="color: white; mso-themecolor: background1;">Copy program files & libraries<span style="mso-spacerun: yes;"> </span>OK</span></div>
<div class="MsoNoSpacing" style="background: black; mso-background-themecolor: text1;">
<span style="color: white; mso-themecolor: background1;">Copy kernel modules<span style="mso-spacerun: yes;"> </span>OK</span></div>
<div class="MsoNoSpacing" style="background: black; mso-background-themecolor: text1;">
<span style="color: white; mso-themecolor: background1;">Checking udev<span style="mso-spacerun: yes;"> </span>OK</span></div>
<div class="MsoNoSpacing" style="background: black; mso-background-themecolor: text1;">
<span style="color: white; mso-themecolor: background1;">Create initramfs<span style="mso-spacerun: yes;"> </span>\</span></div>
<div class="MsoNoSpacing">
<br /></div>
<div class="MsoNoSpacing">
It will take some time to backup all partitions ,depends on the data inside every partition</div>
<div class="MsoNoSpacing">
<br /></div>
<div class="MsoNoSpacing">
After completion of backup ,the files will be stored in NFS share.</div>
<div class="MsoNoSpacing">
The files will be inside a directory with the name same as host name.In my case the host name is mysql01</div>
<div class="MsoNoSpacing">
So I got a directory named mysql01 in /rear/backup</div>
<div class="MsoNoSpacing">
<br /></div>
<div class="MsoNoSpacing">
The contents inside the directory is listed below</div>
<div class="MsoNoSpacing">
<br /></div>
<div class="MsoNoSpacing" style="background: black; mso-background-themecolor: text1;">
<span style="color: white; mso-themecolor: background1;">total 1430088</span></div>
<div class="MsoNoSpacing" style="background: black; mso-background-themecolor: text1;">
<span style="color: white; mso-themecolor: background1;">-rw-r--r-- 1 root root 1418761646 Mar 18 14:11 backup.tar.gz</span></div>
<div class="MsoNoSpacing" style="background: black; mso-background-themecolor: text1;">
<span style="color: white; mso-themecolor: background1;">-rw-r--r-- 1 root root<span style="mso-spacerun: yes;"> </span>8329424 Mar 18 16:59 backup.txt</span></div>
<div class="MsoNoSpacing" style="background: black; mso-background-themecolor: text1;">
<span style="color: white; mso-themecolor: background1;">-rw-r--r-- 1 root root<span style="mso-spacerun: yes;"> </span>202 Mar 18 14:11 README</span></div>
<div class="MsoNoSpacing" style="background: black; mso-background-themecolor: text1;">
<span style="color: white; mso-themecolor: background1;">-rw-r--r-- 1 root root<span style="mso-spacerun: yes;"> </span>35321 Mar 18 14:11 rear-2012-03-18T14:11:38+0530.log</span></div>
<div class="MsoNoSpacing" style="background: black; mso-background-themecolor: text1;">
<span style="color: white; mso-themecolor: background1;">-rw-r--r-- 1 root root<span style="mso-spacerun: yes;"> </span>35821568 Mar 18 14:11 rear-mysql01.iso</span></div>
<div class="MsoNoSpacing" style="background: black; mso-background-themecolor: text1;">
<span style="color: white; mso-themecolor: background1;">-rw-r--r-- 1 root root<span style="mso-spacerun: yes;"> </span>368 Mar 18 14:11 VERSION</span></div>
<div class="MsoNoSpacing">
<br /></div>
<div class="MsoNoSpacing">
The rear-mysql01.iso need to written to a CD or DVD to boot the system after a crash</div>
<div style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; mso-element: para-border-div; padding-bottom: 1pt; padding-left: 0in; padding-right: 0in; padding-top: 0in;">
<div class="MsoNoSpacing" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; mso-border-bottom-alt: double windowtext 2.25pt; mso-padding-alt: 0in 0in 1.0pt 0in; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;">
<br /></div>
</div>
<div class="MsoNoSpacing">
Suppose my server mysql01 is crashed because of File system corruption ,then we will follow the below steps</div>
<div class="MsoNoSpacing">
<br /></div>
<div class="MsoNoSpacing">
1.Write the rear-mysql01.iso to a DVD/CD</div>
<div class="MsoNoSpacing">
2.Boot from the CD/DVD which is now created</div>
<div class="MsoNoSpacing">
3.on boot: prompt enter rear and press Enter</div>
<div class="MsoNoSpacing">
<span style="mso-tab-count: 1;"> </span>boot:rear <span style="font-family: Wingdings; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-char-type: symbol; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin; mso-symbol-font-family: Wingdings;"><span style="mso-char-type: symbol; mso-symbol-font-family: Wingdings;">à</span></span>press enter</div>
<div class="MsoNoSpacing">
4.Login with user name root (It will not ask for password)</div>
<div class="MsoNoSpacing">
5.We will get a prompt</div>
<div class="MsoNoSpacing">
6.Set up network using IP command</div>
<div class="MsoNoSpacing" style="background: black; mso-background-themecolor: text1;">
<span style="color: white; mso-themecolor: background1;"><span style="mso-tab-count: 2;"> </span># ip addr add 192.168.56.11/24 dev eth0</span></div>
<div class="MsoNoSpacing" style="background: black; mso-background-themecolor: text1;">
<span style="color: white; mso-themecolor: background1;"><span style="mso-tab-count: 2;"> </span># ip link set eth0 up</span></div>
<div class="MsoNoSpacing">
<span style="mso-tab-count: 2;"> </span>If you need to add a route ,use “ip route” command (man ip for more details)</div>
<div class="MsoNoSpacing">
7.Now check whether the NFS server is reachable using PING</div>
<div class="MsoNoSpacing">
8.If the server is accessible then execure rear recover</div>
<div class="MsoNoSpacing" style="background: black; mso-background-themecolor: text1;">
<span style="color: white; mso-themecolor: background1;"><span style="mso-tab-count: 2;"> </span># rear recover</span></div>
<div class="MsoNoSpacing">
<span style="mso-tab-count: 2;"> </span>The command will mount the NFS share and it will create all partitions as previous and restores all data <span style="mso-spacerun: yes;"> </span></div>
<div class="MsoNoSpacing">
9.Once the restoration completed ,remove the DVD/CD and reboot</div>
<div style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; mso-element: para-border-div; padding-bottom: 1pt; padding-left: 0in; padding-right: 0in; padding-top: 0in;">
<div class="MsoNoSpacing" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; mso-border-bottom-alt: double windowtext 2.25pt; mso-padding-alt: 0in 0in 1.0pt 0in; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;">
10.You will get your system in perfect condition</div>
</div>
<div class="MsoNoSpacing">
If you are going to restore the OS backup of one server to another,</div>
<div class="MsoNoSpacing">
1. Boot from DVD/CD</div>
<div class="MsoNoSpacing">
2. Login as root (Will not ask for password)</div>
<div class="MsoNoSpacing">
3.Set up networking</div>
<div class="MsoNoSpacing">
4.rear recover</div>
<div class="MsoNoSpacing">
3.Mount /dev/system/root /mnt<span style="mso-spacerun: yes;"> </span></div>
<div class="MsoNoSpacing">
4.cat /mnt/etc/fstab and check the disk ids and change it to present disks id (you can use VI to edit file)</div>
<div class="MsoNoSpacing" style="background: black; mso-background-themecolor: text1;">
<span style="color: white; mso-themecolor: background1;"><span style="mso-tab-count: 1;"> </span>/dev/disk/by-id/ata-XXXXX ace79de-c82e0d0d-part1<span style="mso-tab-count: 1;"> </span>/boot<span style="mso-tab-count: 1;"> </span>ext4 acl,user_xattr<span style="mso-spacerun: yes;"> </span>1 2</span></div>
<div class="MsoNoSpacing" style="background: black; mso-background-themecolor: text1;">
<span style="color: black;"><span style="background-color: white;">5.</span><span style="background-color: white; mso-themecolor: background1;">chroot /mnt</span></span></div>
<div class="MsoNoSpacing" style="background: black; mso-background-themecolor: text1;">
<span style="color: black;"><span style="background-color: white;">6.<span style="mso-themecolor: background1;">grub</span></span></span></div>
<div class="MsoNoSpacing" style="background: black; mso-background-themecolor: text1;">
<span style="color: white; mso-themecolor: background1;"><span style="mso-tab-count: 1;"> </span></span></div>
<div class="MsoNoSpacing" style="background: black; mso-background-themecolor: text1;">
<span style="color: white; mso-themecolor: background1;"><span style="mso-spacerun: yes;"> </span>GNU GRUB<span style="mso-spacerun: yes;"> </span>version 0.97<span style="mso-spacerun: yes;"> </span>(640K lower / 3072K upper memory)</span></div>
<div class="MsoNoSpacing" style="background: black; mso-background-themecolor: text1;">
<br /></div>
<div class="MsoNoSpacing" style="background: black; mso-background-themecolor: text1;">
<span style="color: white; mso-themecolor: background1;"><span style="mso-spacerun: yes;"> </span>[ Minimal BASH-like line editing is supported.<span style="mso-spacerun: yes;"> </span>For the first word, TAB</span></div>
<div class="MsoNoSpacing" style="background: black; mso-background-themecolor: text1;">
<span style="color: white; mso-themecolor: background1;"><span style="mso-spacerun: yes;"> </span>lists possible command completions.<span style="mso-spacerun: yes;"> </span>Anywhere else TAB lists the possible</span></div>
<div class="MsoNoSpacing" style="background: black; mso-background-themecolor: text1;">
<span style="color: white; mso-themecolor: background1;"><span style="mso-spacerun: yes;"> </span>completions of a device/filename.]</span></div>
<div class="MsoNoSpacing" style="background: black; mso-background-themecolor: text1;">
<br /></div>
<div class="MsoNoSpacing" style="background: black; mso-background-themecolor: text1;">
<span style="color: white; mso-themecolor: background1;">grub> root (hd0,0)</span></div>
<div class="MsoNoSpacing" style="background: black; mso-background-themecolor: text1;">
<span style="color: white; mso-themecolor: background1;"><span style="mso-spacerun: yes;"> </span>Filesystem type is ext2fs, partition type 0x83</span></div>
<div class="MsoNoSpacing" style="background: black; mso-background-themecolor: text1;">
<br /></div>
<div class="MsoNoSpacing" style="background: black; mso-background-themecolor: text1;">
<span style="color: white; mso-themecolor: background1;">grub> setup (hd0)</span></div>
<div class="MsoNoSpacing" style="background: black; mso-background-themecolor: text1;">
<span style="color: white; mso-themecolor: background1;"><span style="mso-spacerun: yes;"> </span>Checking if "/boot/grub/stage1" exists... no</span></div>
<div class="MsoNoSpacing" style="background: black; mso-background-themecolor: text1;">
<span style="color: white; mso-themecolor: background1;"><span style="mso-spacerun: yes;"> </span>Checking if "/grub/stage1" exists... yes</span></div>
<div class="MsoNoSpacing" style="background: black; mso-background-themecolor: text1;">
<span style="color: white; mso-themecolor: background1;"><span style="mso-spacerun: yes;"> </span>Checking if "/grub/stage2" exists... yes</span></div>
<div class="MsoNoSpacing" style="background: black; mso-background-themecolor: text1;">
<span style="color: white; mso-themecolor: background1;"><span style="mso-spacerun: yes;"> </span>Checking if "/grub/e2fs_stage1_5" exists... yes</span></div>
<div class="MsoNoSpacing" style="background: black; mso-background-themecolor: text1;">
<span style="color: white; mso-themecolor: background1;"><span style="mso-spacerun: yes;"> </span>Running "embed /grub/e2fs_stage1_5 (hd0)"...<span style="mso-spacerun: yes;"> </span>15 sectors are embedded.</span></div>
<div class="MsoNoSpacing" style="background: black; mso-background-themecolor: text1;">
<span style="color: white; mso-themecolor: background1;">succeeded</span></div>
<div class="MsoNoSpacing" style="background: black; mso-background-themecolor: text1;">
<span style="color: white; mso-themecolor: background1;"><span style="mso-spacerun: yes;"> </span>Running "install /grub/stage1 (hd0) (hd0)1+15 p (hd0,0)/grub/stage2 /grub/grub</span></div>
<div class="MsoNoSpacing" style="background: black; mso-background-themecolor: text1;">
<span style="color: white; mso-themecolor: background1;">.conf"... succeeded</span></div>
<div class="MsoNoSpacing" style="background: black; mso-background-themecolor: text1;">
<span style="color: white; mso-themecolor: background1;">Done.</span></div>
<div class="MsoNoSpacing">
7.Remove the DVD/CD and reboot it</div>
<div class="MsoNoSpacing">
8.You got the OS clone in different server</div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
Happy backup Day ... ;) </div>
</div>Ansilhttp://www.blogger.com/profile/07287558007793912931noreply@blogger.com9tag:blogger.com,1999:blog-5632235867526129400.post-89097714156633102502011-10-07T12:27:00.001-07:002011-10-07T12:30:29.837-07:00HMC vtmenu exitYou can exit the cosole of an LPAR ,that has been taken using HMC vtmenu ,by typing<br />"~." (press dot key after tild without qoutes )<br /><br />If you had taken HMC vtmenu using SSH ,your ssh connection to HMC will alse loses.Ansilhttp://www.blogger.com/profile/07287558007793912931noreply@blogger.com2tag:blogger.com,1999:blog-5632235867526129400.post-42702049914974778902011-09-23T06:43:00.000-07:002011-09-23T06:47:24.183-07:00Read /etc/passwd using TFTP venerability - How to resolve in AIX<div>1.vi /etc/tftpaccess.ctl</div><div>allow:/tftpboot</div><div><br /></div><div>Save the file </div><div>You are done..!!!</div><div>Now the clients can only access /tftpboot using TFTP</div><div><br /></div><div><br /></div>Ansilhttp://www.blogger.com/profile/07287558007793912931noreply@blogger.com0tag:blogger.com,1999:blog-5632235867526129400.post-88975492344828374552011-08-29T14:44:00.000-07:002011-08-29T14:48:16.160-07:00FTP Banner in AIX1.<b>vi /etc/ftpaccess.ctl</b><div>
<br /></div><div>herald: /path/to/banner/file ---->Enter your welcome message in this file</div><div>motd: on</div><div>
<br /></div><div>2.<b>refresh -s inted</b></div><div>
<br /></div><div>
<br /></div><div>You are done</div><div>
<br /></div><div>
<br /></div><div>
<br /></div>Ansilhttp://www.blogger.com/profile/07287558007793912931noreply@blogger.com0tag:blogger.com,1999:blog-5632235867526129400.post-85504554721144974482011-08-19T12:29:00.000-07:002011-08-19T12:33:27.927-07:00DRBD on RHEL6 with YUM group<div>
<br /></div><div>
<br /></div><div><b>Building DRBD for 2.6.32-71.el6.x86_64 kernel</b></div><div>
<br /></div><div>1.mkdir -p /root/rpmbuild/SOURCES/</div><div>
<br /></div><div>2.wget http://oss.linbit.com/drbd/8.3/drbd-8.3.10.tar.gz</div><div>
<br /></div><div>3.cp drbd-8.3.10.tar.gz /root/rpmbuild/SOURCES/</div><div>
<br /></div><div>4.tar -xvf drbd-8.3.10.tar.gz</div><div>
<br /></div><div>5.cd drbd-8.3.10</div><div>
<br /></div><div>6../configure --with-km --with-distro=redhat --enable-spec</div><div>
<br /></div><div>7.rpmbuild -bb drbd.spec</div><div>
<br /></div><div>8.rpmbuild -bb drbd-km.spec</div><div>
<br /></div><div>9.cd /root/rpmbuild/RPMS/x86_64</div><div>
<br /></div><div>10.mkdir /YUM/DiskReplicator</div><div>
<br /></div><div>11.cp drbd-* /YUM/DiskReplicator/</div><div>
<br /></div><div>12.cd /YUM/DiskReplicator/</div><div>
<br /></div><div>13.createrepo . ---> The "." is important</div><div>
<br /></div><div>
<br /></div><div>14.vi /etc/yum.repos.d/rhel6-1.repo</div><div>
<br /></div><div>
<br /></div><div>[DiskReplicator]</div><div>name=rhel6-1 LoadBalancer repo</div><div>baseurl=ftp://192.168.8.2/DiskReplicator</div><div>enabled=1</div><div>gpgcheck=0</div><div>
<br /></div><div>15.cd /tmp/ -->To avoid rpm name clash</div><div>
<br /></div><div>16.yum install yum-utils</div><div>
<br /></div><div>17.yum-groups-manager -n "Disk Replicator" --id=drbd --description="DRBD, packages from ANSIL" --save=comps.xml --mandatory drbd.x86_64 --mandatory drbd-bash-completion.x86_64 --mandatory drbd-heartbeat.x86_64 --mandatory drbd-km-2.6.32_71.el6.x86_64.x86_64 --mandatory drbd-pacemaker.x86_64 --mandatory drbd-udev.x86_64 --mandatory drbd-utils.x86_64 --mandatory drbd-xen.x86_64</div><div>
<br /></div><div>
<br /></div><div>18.createrepo -g comps.xml /YUM/DiskReplicator/</div><div>
<br /></div><div>19.yum grouplist "Disk Replicator"</div><div>
<br /></div><div>20.yum groupinstall "Disk Replicator"</div>Ansilhttp://www.blogger.com/profile/07287558007793912931noreply@blogger.com7tag:blogger.com,1999:blog-5632235867526129400.post-50289184485005634992011-08-15T13:39:00.000-07:002013-10-05T12:56:59.592-07:00How to Configure YUM in RHEL6<div dir="ltr" style="text-align: left;" trbidi="on">
<b>Easy way to create your own repo</b><br />
1. Put your RHEL6 media on DVD drive<br />
2. Create a partition with size 6GB and mount it as /yum<br />
3. Download the below script to /yum<br />
<b>https://sites.google.com/site/ansilh/rhel6_repo.sh</b><br />
4. Give execute permission to the downloaded script<br />
5. Please open the file and try to understand it. If you found all safe ,then go to next step<br />
6. Execute it...You will get an RHEL repo accessible through ftp<br />
<br />
<br />
***Please feel free to comment your experience ***<br />
<br />
=======================================<br />
<br />
<b>Manual Steps (*Different approach from above script .The repo file not look like usual one)</b><br />
<br />
<a href="http://www.youtube.com/watch?v=scBtTTwLze0" target="_blank">YouTube Link : <span id="bc_0_27b+seedMfUPD" kind="d">http://www.youtube.com/watch?v=scBtTTwLze0</span></a><br />
<span id="bc_0_27b+seedMfUPD" kind="d"> </span> <br />
1.create a directory to store packages .(Better you create a partition with 5GB size and mount it as /YUM) <br />
<span style="background-color: black; color: #eeeeee;">mkdir /YUM </span><br />
2.mount RHEL6 DVD <br />
<span style="background-color: black; color: #eeeeee;">mount /dev/dvd /mnt </span><br />
3.go to the mounted directory <br />
<span style="background-color: black; color: #eeeeee;">cd /mnt/Packages/</span><br />
4.copy all contents of DVD to /YUM (Note the "." in command ) <br />
<span style="background-color: black; color: #eeeeee;">cp . /YUM/ </span><br />
5.Install createrepo package with dependancies <br />
<span style="background-color: black; color: #eeeeee;">rpm -ivh deltarpm-**.el6.x86_64.rpm python-deltarpm-**.el6.x86_64.rpm createrepo-**.rpm </span><br />
6.install FTP server <br />
<span style="background-color: black; color: #eeeeee;">rpm -ivh vsftpd-2.2.2-6.el6.x86_64.rpm </span><br />
7.Create repository using <br />
<span style="background-color: black; color: #eeeeee;">createrepo -g /YUM/HighAvailability/repodata/****-comps-rhel6-HighAvailability.xml –o \ </span><br />
<span style="background-color: black; color: #eeeeee;">/YUM/HighAvailability/ /YUM/Packages/</span><br />
<br style="background-color: black; color: #eeeeee;" />
<span style="background-color: black; color: #eeeeee;">createrepo -g /YUM/LoadBalancer/repodata/*****-comps-rhel6-LoadBalancer.xml –o \</span><br />
<span style="background-color: black; color: #eeeeee;"> /YUM/LoadBalancer/ /YUM/Packages/</span><br />
<br style="background-color: black; color: #eeeeee;" />
<span style="background-color: black; color: #eeeeee;">createrepo -g /YUM/ResilientStorage/repodata/****-comps-rhel6-ResilientStorage.xml –o \</span><br />
<span style="background-color: black; color: #eeeeee;"> /YUM/ResilientStorage/ /YUM/Packages/</span><br />
<br style="background-color: black; color: #eeeeee;" />
<span style="background-color: black; color: #eeeeee;">createrepo -g /YUM/ScalableFileSystem/repodata/****-comps-rhel6-ScalableFileSystem.xml –o \</span><br />
<span style="background-color: black; color: #eeeeee;"> /YUM/ScalableFileSystem/ /YUM/Packages/</span><br />
<br />
<span style="background-color: black; color: #eeeeee;">createrepo -g /YUM/Server/repodata/****-comps-rhel6-Server.xml -o /YUM/Server/ /YUM/Packages/</span><br />
8.Create a repo file in /etc/yum.repos.d/ <br />
<br />
The Server id contains the main path to the packages.(bold in [Server] baseurl ) <br />
<br />
<span style="background-color: black; color: #eeeeee;">vi /etc/yum.repos.d/rhel6-1.repo </span><br />
<span style="background-color: black; color: #eeeeee;">[Server]</span><br />
<span style="background-color: black; color: #eeeeee;">name=rhel6-1 Server repo</span><br />
<span style="background-color: black; color: #eeeeee;">baseurl=ftp://192.168.8.2/Server</span><br />
<span style="background-color: black; color: #eeeeee;"> <b>ftp://192.168.8.2/Packages</b></span><br />
<span style="background-color: black; color: #eeeeee;">enabled=1</span><br />
<span style="background-color: black; color: #eeeeee;">gpgcheck=0</span><br />
<span style="background-color: black; color: #eeeeee;">[HighAvailability]</span><br />
<span style="background-color: black; color: #eeeeee;">name=rhel6-1 HighAvailability repo</span><br />
<span style="background-color: black; color: #eeeeee;">baseurl=ftp://192.168.8.2/HighAvailability</span><br />
<span style="background-color: black; color: #eeeeee;">enabled=1</span><br />
<span style="background-color: black; color: #eeeeee;">gpgcheck=0</span><br />
<span style="background-color: black; color: #eeeeee;">[ScalableFileSystem]</span><br />
<span style="background-color: black; color: #eeeeee;">name=rhel6-1 ScalableFileSystem repo</span><br />
<span style="background-color: black; color: #eeeeee;">baseurl=ftp://192.168.8.2/ScalableFileSystem</span><br />
<span style="background-color: black; color: #eeeeee;">enabled=1</span><br />
<span style="background-color: black; color: #eeeeee;">gpgcheck=0</span><br />
<span style="background-color: black; color: #eeeeee;">[ResilientStorage]</span><br />
<span style="background-color: black; color: #eeeeee;">name=rhel6-1 ResilientStorage repo</span><br />
<span style="background-color: black; color: #eeeeee;">baseurl=ftp://192.168.8.2/ResilientStorage</span><br />
<span style="background-color: black; color: #eeeeee;">enabled=1</span><br />
<span style="background-color: black; color: #eeeeee;">gpgcheck=0</span><br />
<span style="background-color: black; color: #eeeeee;">[LoadBalancer]</span><br />
<span style="background-color: black; color: #eeeeee;">name=rhel6-1 LoadBalancer repo</span><br />
<span style="background-color: black; color: #eeeeee;">baseurl=ftp://192.168.8.2/LoadBalancer</span><br />
<span style="background-color: black; color: #eeeeee;">enabled=1</span><br />
<span style="background-color: black; color: #eeeeee;">gpgcheck=0</span><br />
9.Edit ftp server configuration file to make /YUM as anonymous root <br />
<span style="background-color: black; color: #eeeeee;">vi /etc/vsftpd/vsftpd.conf </span><br />
<span style="background-color: black; color: #eeeeee;">anon_root=/YUM </span><br />
10.Restart ftp service <br />
<span style="background-color: black; color: #eeeeee;">service vsftpd restart </span><br />
11.Add a rule in iptables to accept ftp connections in /etc/sysconfig/iptables <br />
<span style="background-color: black; color: #eeeeee;">vi /etc/sysconfig/iptables </span><br />
<span style="background-color: black; color: #eeeeee;">-A INPUT -p tcp -s 192.168.8.0/24 --dport 21 -i eth0 -j ACCEPT </span><br />
<br />
12.Add ip_conntrack_ftp module in /etc/sysconfig/iptables-config which is needs to be added for FTP support[ip_nat_ftp] <br />
<br />
<span style="background-color: black; color: #eeeeee;">vi /etc/sysconfig/iptables-config </span><br />
<span style="background-color: black; color: #eeeeee;">IPTABLES_MODULES="ip_conntrack_ftp" </span><br />
<span style="background-color: black; color: #eeeeee;">service iptables restart </span><br />
13.Install the following packages[both clients and server need these packages] to transfer files <br />
You need to install it from DVD <br />
Follow step 2 and 3 and then <br />
<span style="background-color: black; color: #eeeeee;">rpm -ivh libedit-2.11-4.20080712cvs.1.el6.x86_64 openssh-clients-5.3p1-20.el6.x86_64 ftp-0.17-51.1.el6.x86_64.rpm </span><br />
14.transfer yum configuraion files to clients <br />
<br />
<span style="background-color: black; color: #eeeeee;">scp /etc/yum.repos.d/rhel6-1.repo *.*.*.*:/etc/yum.repos.d/ </span><br />
15.Check yum configuratoin <br />
<br />
<span style="background-color: black; color: #eeeeee;">yum grouplist</span> will give you these ouputs <br />
<br />
<span style="background-color: black; color: #eeeeee;">Installed Groups: </span><br />
<span style="background-color: black; color: #eeeeee;">E-mail server </span><br />
<span style="background-color: black; color: #eeeeee;">FTP server </span><br />
<span style="background-color: black; color: #eeeeee;">Available Groups: </span><br />
<span style="background-color: black; color: #eeeeee;">Additional Development </span><br />
<span style="background-color: black; color: #eeeeee;">Afrikaans Support </span><br />
<br style="background-color: black; color: #eeeeee;" />
<span style="background-color: black; color: #eeeeee;">... </span><br />
<br />
Enjoy RHEL6 Package Management<br />
<br />
I've made a video for easy understanding<br />
<br />
http://www.youtube.com/watch?v=scBtTTwLze0</div>
Ansilhttp://www.blogger.com/profile/07287558007793912931noreply@blogger.com36tag:blogger.com,1999:blog-5632235867526129400.post-21738212081158427862011-05-06T20:58:00.000-07:002011-05-06T21:12:13.395-07:00MySQL backup scriptThis script is made using dialogues<br />So without dialogue package it will not work<br /><br />You can start a mysql instance in full customized way<br /><br />The script is mainly focused on MySQL compiled from source code<br /><br />The script is using a config file to get necessary information to store values like<br /><br />path to mysql daemon ,myql dump,mysql safe ,user name and password to start mysql instance<br /><br />You can download the script from the following link<br /><br />The advantage is ,You can take the entire database as well as a particular table of a schema using this script.<br /><br /><br /><a href="https://sites.google.com/site/ansilh/mysql-backup-script/mybackup.sh">https://sites.google.com/site/ansilh/mysql-backup-script/mybackup.sh</a>Ansilhttp://www.blogger.com/profile/07287558007793912931noreply@blogger.com1tag:blogger.com,1999:blog-5632235867526129400.post-6205767381184227322011-04-25T04:32:00.000-07:002011-04-25T04:40:33.460-07:00Screen saver using script / CLI screen saverCan you imagine we can make animations using shell script..?<br /><br />Yes ...Here is one I made <span style="font-style: italic;">screen.sh</span><br />A floating box in CLI with my name inside<br /><br />You can execute the script in any row - column resolution<br />You can re-size the window if you are accessing system using PuTTy(little bit disturbance if you are resizing from large to small window but it will stabilize after few seconds)<br /><br />The script is released under GNU public license<br /><br />Download it from here<br /><br /><span style="font-weight: bold;">https://sites.google.com/site/ansilh/screen.sh</span><br /><br /><br />Try and post your commentsAnsilhttp://www.blogger.com/profile/07287558007793912931noreply@blogger.com0tag:blogger.com,1999:blog-5632235867526129400.post-60011751854479082852011-04-20T06:49:00.000-07:002011-04-24T08:52:27.602-07:00Terminal input output logger / Teminal recording<span style="font-weight: bold; color: rgb(0, 0, 153);">Logging terminal input and output</span><br /><span style="font-weight: bold; color: rgb(0, 0, 153);">----------------------------------</span>--------<br /><br />After a lot of googling I found a tool that can log all input and output of terminal in Unix system<br /><br />The tool is rootsh and its not only used for logging but also used for root login for normal users using sudo.<br /><br />So that the command entered by the user will be logged in a file as well as on syslog<br /><br />We can make rootsh as a shell , So that all the activity by that particular user will be logged<br /><br />The tool is released under GNU Open source license<br /><br />You can download the tool from<br /><br /><span style="font-weight: bold;">http://sourceforge.net/projects/rootsh/</span><br /><br />I made a modified copy of mine on<br /><span style="font-weight: bold;">https://sites.google.com/site/ansilh/rootsh</span><br /><br />The tool will log username,commands and its output in a file -- But no client IP<br />The command can be started as a shell -But it will take the default shell<br /><br />I made some modification on this and it's working perfectly on my Linux machine<br />The link here<br /><br /><span style="font-weight: bold;">https://sites.google.com/site/ansilh/rootsh/rootsh-1.5.3-final.tar.gz</span><br /><br />The extra modules I added are here<br /><span style="font-weight: bold;">username.c </span>--->This will challenge the user to enter actual name of user and<br />purpose of login<br /><span style="font-weight: bold;">https://sites.google.com/site/ansilh/rootsh/username.c</span><br /><br /><span style="font-weight: bold;">readconf.c</span> ----->This will read configuration file <span style="font-weight: bold;">/etc/rootsh.conf</span><br />format of the file will be<br /><br /><user name="">:<path to="" shell=""><br />e.g<br />ansil:/bin/bash<br /><br />do not add space on end of the line (need some code changes)<br /><span style="font-weight: bold;">https://sites.google.com/site/ansilh/rootsh/readconf.c</span><br /><br />Keep an eye on here ..more to come like remote logging with TLS security on a separate file for a separate action</path></user>Ansilhttp://www.blogger.com/profile/07287558007793912931noreply@blogger.com2tag:blogger.com,1999:blog-5632235867526129400.post-77743233708484238202011-04-20T06:40:00.000-07:002011-04-20T06:47:34.882-07:00Shell Scripting - part 3<span style="font-weight: bold; color: rgb(51, 51, 255);font-size:100%;" >Fun with Shell scripting<br />-------------------------</span><span style="font-weight: bold; color: rgb(51, 51, 255);">----</span><br /><br /><br /><span style="font-style: italic; color: rgb(0, 153, 0);">tput cup command </span><br />-----------------<br /> This command is used to set properties of terminal<br /> <br /> tput cup 0 0<br /> This command will set courser position to top left corner of terminal<br /> <br /> e.g:-<br /><span style="color: rgb(204, 0, 0);"> [root@localhost]#vi file6.sh</span><br /><span style="color: rgb(204, 0, 0);"> tput cup 0 0</span><br /><span style="color: rgb(204, 0, 0);"> echo "Ansil"</span><br /> <br /><br /> Save and execute script<br /> The output "Ansil" will be displayed on top left corner of the terminal<br /><br /> e.g:-<br /> Lets make this example more interesting<br /><br /><span style="color: rgb(204, 0, 0);"> #!/bin/bash</span><br /><span style="color: rgb(204, 0, 0);"> clear</span><br /><span style="color: rgb(204, 0, 0);"> tput cup 12 35</span><br /><span style="color: rgb(204, 0, 0);"> echo "Ansil"</span><br /><span style="color: rgb(204, 0, 0);"> read</span><br /><br /> Save the file and execute the script<br /> The out put will display "Ansil" on almost center of the screen,<br /> Surprisingly you will not get your terminal back until you press enter OR you have to kill/terminate the script(we will discuss this later)<br /><br /> The read command is used to read values from terminal(by default standard input)<br /> <br /> here the read command read values till an occurrence of ENTER key ,but the value will not be stored<br /> <br /> e.g:-<br /> Make this example some more interesting<br /><span style="color: rgb(204, 0, 0);"> </span><br /><span style="color: rgb(204, 0, 0);"> #!/bin/bash</span><br /><span style="color: rgb(204, 0, 0);"> clear</span><br /><span style="color: rgb(204, 0, 0);"> tput cup 12 35</span><br /><span style="color: rgb(204, 0, 0);"> echo -e "\033[31mAnsil\033[0m"</span><br /><span style="color: rgb(204, 0, 0);"> read</span><br /><br /> The echo line having some extra characters ..!!<br /><br /><span style="font-style: italic; color: rgb(51, 204, 0);">More on echo command</span><br /><span style="font-style: italic; color: rgb(51, 204, 0);">---------------------------</span><br /> <span style="color: rgb(204, 0, 0);"> echo -e</span> --->what is -e<br /> :- enable interpretation of backslash escapes<br /><span style="color: rgb(204, 0, 0);"> echo -e "\033[31m</span> ------>what is \033[31m<br /> :-Start printing charecter from here in red<br /> :-\033[ is a backslash escape character<br /> :- in 31 3-forground 1-for red<br /><span style="color: rgb(204, 0, 0);"> echo -e"\033[31mAnsil</span>" ----->It will print Ansil in red color ,Then why<br /> <br /><span style="color: rgb(204, 0, 0);"> echo -e "\033[31mAnsil\033[0m"</span><br /> :-The \033[0m will make the terminal to normal state<br /> :- i,e from \033[0m the characters will be printed normally<br /> :- If you did't typed this on your script ,after execution also the character printed will be in red<br /><br /> Colors and attributes using echo<br /> ---------------------------------<br /> Foreground<br /> -----------<br /><span style="color: rgb(0, 0, 0);"> \033[30m - BLACK</span><br /><span style="color: rgb(255, 0, 0);"> \033[31m - RED</span><br /><span style="color: rgb(51, 204, 0);"> \033[32m - GREEN</span><br /><span style="color: rgb(255, 255, 51);"> \033[33m - YELLOW</span><br /><span style="color: rgb(51, 255, 255);"> <span style="color: rgb(51, 51, 255);"> \033[34m - BLUE</span></span><br /><span style="color: rgb(204, 51, 204);"> <span style="color: rgb(255, 153, 255);"> \033[35m - MAGENTA</span></span><br /><span style="color: rgb(51, 204, 255);"> \033[36m - CYAN</span><br /><span style="color: rgb(51, 255, 255);"> <span style="color: rgb(204, 204, 204);"> \033[37m - WHITE</span></span><br /> <br /> background<br /> -----------<br /> <span style="color: rgb(51, 51, 255);"> \033[41m - BLACK</span><br /><span style="color: rgb(51, 51, 255);"> \033[41m - RED</span><br /><span style="color: rgb(51, 51, 255);"> \033[42m - GREEN</span><br /><span style="color: rgb(51, 51, 255);"> \033[43m - YELLOW</span><br /><span style="color: rgb(51, 51, 255);"> \033[44m - BLUE</span><br /><span style="color: rgb(51, 51, 255);"> \033[45m - MAGENTA</span><br /><span style="color: rgb(51, 51, 255);"> \033[46m - CYAN</span><br /><span style="color: rgb(51, 51, 255);"> \033[47m - WHITE</span><br /> More<br /><span style="color: rgb(51, 51, 255);"> ------------</span><br /><span style="color: rgb(51, 51, 255);"> \033[4m - UNDERLINE</span><br /><span style="color: rgb(51, 51, 255);"> \033[24m - STOP UNDERLINE</span><br /><span style="color: rgb(51, 51, 255);"> \033[5m - BLINK</span><br /><span style="color: rgb(51, 51, 255);"> \033[7m - INVERT FORGROUND AND BACKGROUNG</span><br /><span style="color: rgb(51, 51, 255);"> \033[1m - BOLD</span><br /><br /> e.g:-<br /> print Ansil in bold with color green and background red in bottom right corner of terminal<br /> <br /><span style="color: rgb(204, 0, 0);"> #!/bin/bash</span><br /><span style="color: rgb(204, 0, 0);"> clear</span><br /><span style="color: rgb(204, 0, 0);"> tput cup 23 00</span><br /><span style="color: rgb(204, 0, 0);"> echo -e "\033[41m\033[32m\033[1mAnsil\033[0m"</span><br /><br /> we will split the echo line<br /><span style="color: rgb(204, 0, 0);"> echo -e</span> ---->You know this<br /><span style="color: rgb(204, 0, 0);"> \033[41m </span>--->Make background red<br /><span style="color: rgb(204, 0, 0);"> \033[32m </span>--->Make foreground green<br /> <span style="color: rgb(204, 0, 0);"> \033[1m </span>---->Make foreground bold<br /><span style="color: rgb(204, 0, 0);"> Ansil </span> -------->The word to be printed<br /><span style="color: rgb(204, 0, 0);"> \033[0m</span> ---->Make default printing colorsAnsilhttp://www.blogger.com/profile/07287558007793912931noreply@blogger.com0tag:blogger.com,1999:blog-5632235867526129400.post-6275369705487501542011-04-14T09:04:00.000-07:002011-04-14T09:11:06.888-07:00Shell Scripting - part 2<span style="color: rgb(204, 51, 204); font-weight: bold;">Command Line Arguments</span><br /><span style="color: rgb(204, 51, 204); font-weight: bold;">-------------------------------</span><br />Here we will discuss some more about command line arguments( values passed along with script like flags in commands)<br />and how they can be accessed in script<br /> <br /> 1)Name of the program<br /> The name of the program is stored in variable '0'<br /> So the value can be accessed as ${0}<br /> e.g:- vi file1.sh<br /><span style="color: rgb(204, 0, 0);"> ---------------------------------------------------------------------</span><br /> <span style="color: rgb(204, 0, 0);">#!/bin/bash</span><br /> <span style="color: rgb(204, 0, 0);">echo ${0}</span><br /> <span style="color: rgb(204, 0, 0);"> ---------------------------------------------------------------------</span><br /> The output of the program will be like<br /> .<span style="color: rgb(204, 0, 0);">/file.sh</span><br /> 2)All arguments passed along with script<br /> All values passed to the script(command line arguments) will be stored in variable '@'<br /> So the value can be accessed as ${@}<br /> e.g:- vi file2.sh<br /><span style="color: rgb(204, 0, 0);"> ---------------------------------------------------------------------</span><br /> <span style="color: rgb(204, 0, 0);">#!/bin/bash</span><br /> <span style="color: rgb(204, 0, 0);">echo ${0}</span><br /> <span style="color: rgb(204, 0, 0);">---------------------------------------------------------------------</span><br /> If you execute the script with out any arguments,there will be no output<br /> So to verify the script ,execute with some arguments like<br /> <br /> <span style="color: rgb(204, 0, 0);"> root@localhost]#./file2.sh a b c</span><br /> <br /> The output of the program will be like<br /> a b c<br /> 3) Number of command line arguments<br /> Number of arguments passed to the program will be stored in variable '#'<br /> So the value can be accessed as ${#}<br /> e.g:- vi file3.sh<br /><span style="color: rgb(204, 0, 0);"> ---------------------------------------------------------------------</span><br /> <span style="color: rgb(204, 0, 0);">#!/bin/bash</span><br /> <span style="color: rgb(204, 0, 0);">echo ${#}</span><br /> <span style="color: rgb(204, 0, 0);">---------------------------------------------------------------------</span><br /> If you execute the script with out any arguments,there will be no output<br /> So to verify the script ,execute with some arguments like<br /> <br /><span style="color: rgb(204, 0, 0);"> root@localhost]#./file2.sh a b c</span><br /> <br /> The output of the program will be like<br /> 3<br /> 4) PID of shell executing the script<br /> variable that will store PID of shell executing will be on $ or _<br /> So the value can be accessed as ${$} or ${_}<br /> The PID of shell executing will depend on how you execute the program<br /> <br /> The script can be executed in two way<br /> a) on current shell<br /> e.g:-<br /><span style="color: rgb(204, 0, 0);"> root@localhost]#. file3.sh</span><br /> <span style="color: rgb(204, 0, 0);">5388</span><br /> b) on a separate shell<br /><span style="color: rgb(204, 0, 0);"> root@localhost]#./file3.sh<br /> </span><span style="color: rgb(204, 0, 0);">5344</span><br /> <br /> On e.g (a) the PID displayed will be the PID of current shell<br /> You can verify it using 'ps' command<br /><span style="color: rgb(204, 0, 0);"> root@localhost]#ps</span><br /> <span style="color: rgb(204, 0, 0);">PID TTY TIME CMD</span><br /> <span style="color: rgb(204, 0, 0);">5388 pts/0 00:00:00 bash</span><br /> <span style="color: rgb(204, 0, 0);">5464 pts/0 00:00:00 ps</span><br /> 5) Command line arguments<br /> So finally we are on the actual arguments<br /> The values that are passed to the script for processing<br /> <br /> The values start with 1<br /> <br /> e.g:- vi file4.sh<br /><span style="color: rgb(204, 0, 0);"> ---------------------------------------------------------------------</span><br /> <span style="color: rgb(204, 0, 0);">#!/bin/bash</span><br /> <span style="color: rgb(204, 0, 0);">echo ${1}</span><br /> <span style="color: rgb(204, 0, 0);">echo ${2}</span><br /> <span style="color: rgb(204, 0, 0);">echo ${3}</span><br /> <span style="color: rgb(204, 0, 0);">---------------------------------------------------------------------</span><br /> Execute the program with some arguments<br /> <br /><span style="color: rgb(204, 0, 0);"> root@localhost]#./file4.sh a b c</span><br /> <span style="color: rgb(204, 0, 0);">a b c</span><br /><br />Thats for Now we will continue with more on coming postsAnsilhttp://www.blogger.com/profile/07287558007793912931noreply@blogger.com0tag:blogger.com,1999:blog-5632235867526129400.post-80051834521847532732011-04-12T22:50:00.000-07:002011-04-12T22:54:42.341-07:00Shell Scripting - part 1<span style="font-weight: bold; color: rgb(51, 102, 255);">The echo command</span><br />------------------<br /> The easiest command in shell script<br /> used for display text<br /><br /> e.g:-<br /> <span style="font-style: italic; color: rgb(153, 0, 0);"> echo "Hello world"</span><br /><br /><span style="font-weight: bold; color: rgb(51, 51, 255);">Variables in script</span><br />--------------------<br /> variables are used for storing values<br /> It may be pe-defined or the value will be assigned on the fly (On execution of script)<br /> <br /> The variable manipulation in scripting<br /> VAR=value<br /><br /> ${VAR} for retrieving the value assigned to VAR<br /> <br /> <br /> a)Pre-defined<br /> e.g:- <br /><span style="color: rgb(153, 0, 0);"> VAR=10</span><br /> <br /> b)On the fly<br /> e.g:-<br /> <span style="color: rgb(153, 0, 0);"> VAR=`expr ${i} + 1`</span><br /> <br /> In example (a) the variabe VAR is assigned a value of 10<br /> The value of VAR will be 10 through out the execution life of script(unless that variable is not alterd by another assignment)<br /><br /> In example (b)the variable VAR assigned a value that depend on the value of 'i' (another variable)<br /> We will split the example to understand two command<br /> <br /> <span style="font-style: italic; color: rgb(153, 0, 0);"> expr ${i} + 1</span><br /> and<br /> <span style="color: rgb(153, 0, 0);"> VAR=</span><br /><br /> <br /> i) evaluat the expression <span style="color: rgb(153, 0, 0);">${i} + 1 </span><br /> ii) Assign the result to <span style="color: rgb(153, 0, 0);">VAR</span> <br /> <br /> Using the echo command we can display the value assigned to a variable<br /> <br /> e.g:- Write a script that having a variable VAR and assign a value 10 to it<br /> Display the value of VAR in terminal<br /><span style="font-style: italic; color: rgb(204, 0, 0);"> ---------------------------------------------------------------------</span><br /><span style="font-style: italic; color: rgb(204, 0, 0);"> <br /> #!/bin/bash</span><br /><span style="font-style: italic; color: rgb(204, 0, 0);"> #</span><br /> <span style="font-style: italic; color: rgb(204, 0, 0);"> # Dispaly the value of a variable</span><br /><br /><span style="font-style: italic; color: rgb(204, 0, 0);"> VAR=10</span><span style="font-style: italic; color: rgb(204, 0, 0);"><br /> echo ${VAR}</span><br /><span style="font-style: italic; color: rgb(204, 0, 0);"> ---------------------------------------------------------------------</span>Ansilhttp://www.blogger.com/profile/07287558007793912931noreply@blogger.com0tag:blogger.com,1999:blog-5632235867526129400.post-83111025684391720302011-04-11T04:09:00.000-07:002011-04-12T23:06:48.979-07:00Basic Shell Scripting-step by step<!--[if gte mso 9]><xml> <w:worddocument> <w:view>Normal</w:View> <w:zoom>0</w:Zoom> <w:trackmoves/> <w:trackformatting/> <w:punctuationkerning/> <w:validateagainstschemas/> <w:saveifxmlinvalid>false</w:SaveIfXMLInvalid> <w:ignoremixedcontent>false</w:IgnoreMixedContent> <w:alwaysshowplaceholdertext>false</w:AlwaysShowPlaceholderText> <w:donotpromoteqf/> <w:lidthemeother>EN-US</w:LidThemeOther> <w:lidthemeasian>X-NONE</w:LidThemeAsian> <w:lidthemecomplexscript>X-NONE</w:LidThemeComplexScript> <w:compatibility> <w:breakwrappedtables/> <w:snaptogridincell/> <w:wraptextwithpunct/> <w:useasianbreakrules/> <w:dontgrowautofit/> <w:splitpgbreakandparamark/> <w:dontvertaligncellwithsp/> <w:dontbreakconstrainedforcedtables/> <w:dontvertalignintxbx/> <w:word11kerningpairs/> <w:cachedcolbalance/> </w:Compatibility> <w:browserlevel>MicrosoftInternetExplorer4</w:BrowserLevel> <m:mathpr> <m:mathfont val="Cambria Math"> <m:brkbin val="before"> <m:brkbinsub val="--"> <m:smallfrac val="off"> <m:dispdef/> <m:lmargin val="0"> <m:rmargin val="0"> <m:defjc val="centerGroup"> <m:wrapindent val="1440"> <m:intlim val="subSup"> <m:narylim val="undOvr"> </m:mathPr></w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:latentstyles deflockedstate="false" defunhidewhenused="true" defsemihidden="true" defqformat="false" defpriority="99" latentstylecount="267"> <w:lsdexception locked="false" priority="0" semihidden="false" unhidewhenused="false" qformat="true" name="Normal"> <w:lsdexception locked="false" priority="9" semihidden="false" unhidewhenused="false" qformat="true" name="heading 1"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 2"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 3"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 4"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 5"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 6"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 7"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 8"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 9"> <w:lsdexception locked="false" priority="39" name="toc 1"> <w:lsdexception locked="false" priority="39" name="toc 2"> <w:lsdexception locked="false" priority="39" name="toc 3"> <w:lsdexception locked="false" priority="39" name="toc 4"> <w:lsdexception locked="false" priority="39" name="toc 5"> <w:lsdexception locked="false" priority="39" name="toc 6"> <w:lsdexception locked="false" priority="39" name="toc 7"> <w:lsdexception locked="false" priority="39" name="toc 8"> <w:lsdexception locked="false" priority="39" name="toc 9"> <w:lsdexception locked="false" priority="35" qformat="true" name="caption"> <w:lsdexception locked="false" priority="10" semihidden="false" unhidewhenused="false" qformat="true" name="Title"> <w:lsdexception locked="false" priority="1" name="Default Paragraph Font"> <w:lsdexception locked="false" priority="11" semihidden="false" unhidewhenused="false" qformat="true" name="Subtitle"> <w:lsdexception locked="false" priority="22" semihidden="false" unhidewhenused="false" qformat="true" name="Strong"> <w:lsdexception locked="false" priority="20" semihidden="false" unhidewhenused="false" qformat="true" name="Emphasis"> <w:lsdexception locked="false" priority="59" semihidden="false" unhidewhenused="false" name="Table Grid"> <w:lsdexception locked="false" unhidewhenused="false" name="Placeholder Text"> <w:lsdexception locked="false" priority="1" semihidden="false" unhidewhenused="false" qformat="true" name="No Spacing"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 1"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 1"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 1"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 1"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 1"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 1"> <w:lsdexception locked="false" unhidewhenused="false" name="Revision"> <w:lsdexception locked="false" priority="34" semihidden="false" unhidewhenused="false" qformat="true" name="List Paragraph"> <w:lsdexception locked="false" priority="29" semihidden="false" unhidewhenused="false" qformat="true" name="Quote"> <w:lsdexception locked="false" priority="30" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Quote"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 1"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 1"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 1"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 1"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 1"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 1"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 1"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 1"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 2"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 2"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 2"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 2"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 2"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 2"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 2"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 2"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 2"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 2"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 2"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 2"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 2"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 2"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 3"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 3"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 3"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 3"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 3"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 3"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 3"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 3"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 3"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 3"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 3"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 3"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 3"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 3"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 4"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 4"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 4"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 4"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 4"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 4"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 4"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 4"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 4"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 4"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 4"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 4"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 4"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 4"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 5"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 5"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 5"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 5"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 5"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 5"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 5"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 5"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 5"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 5"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 5"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 5"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 5"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 5"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 6"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 6"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 6"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 6"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 6"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 6"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 6"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 6"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 6"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 6"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 6"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 6"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 6"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 6"> <w:lsdexception locked="false" priority="19" semihidden="false" unhidewhenused="false" qformat="true" name="Subtle Emphasis"> <w:lsdexception locked="false" priority="21" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Emphasis"> <w:lsdexception locked="false" priority="31" semihidden="false" unhidewhenused="false" qformat="true" name="Subtle Reference"> <w:lsdexception locked="false" priority="32" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Reference"> <w:lsdexception locked="false" priority="33" semihidden="false" unhidewhenused="false" qformat="true" name="Book Title"> <w:lsdexception locked="false" priority="37" name="Bibliography"> <w:lsdexception locked="false" priority="39" qformat="true" name="TOC Heading"> </w:LatentStyles> </xml><![endif]--><!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:Calibri; mso-fareast-theme-font:minor-latin; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman"; mso-bidi-theme-font:minor-bidi;} </style> <![endif]--> <div style="mso-element:para-border-div;border:none;border-bottom:solid #4F81BD 1.0pt; padding:0in 0in 4.0pt 0in"> <p class="MsoTitle">Basic Shell Scripting-step by step</p> </div> <p class="MsoNoSpacing"><b style="mso-bidi-font-weight:normal">If you are not a beginner go to summery page</b></p> <p class="MsoNoSpacing"><b style="mso-bidi-font-weight:normal"> </b></p> <p class="MsoNoSpacing">What is a script?</p> <p class="MsoNoSpacing"><span style="mso-tab-count:1"> </span>Group of commands in one file for a specific or a number of actions to achieve a result</p><p class="MsoNoSpacing"><a href="http://s421.photobucket.com/albums/pp291/ansilh1/BLOG/?action=view&current=script-structure.jpg" target="_blank"><img src="http://i421.photobucket.com/albums/pp291/ansilh1/BLOG/script-structure.jpg" alt="Shell script structure" border="0" /></a><br /></p> <p class="MsoNoSpacing" style="margin-left:.5in"> </p> <p class="MsoNoSpacing">1. Select your editor</p> <p class="MsoNoSpacing" style="margin-left:.5in">You must have a text editor to write shell programs</p> <p class="MsoNoSpacing" style="margin-left:.5in">Select an editor in which you are comfortable</p> <p class="MsoNoSpacing" style="margin-left:.5in">Most common editors are Vi and Emacs </p> <p class="MsoNoSpacing" style="margin-left:.5in"> </p> <p class="MsoNoSpacing">2. Structure of a script</p> <p class="MsoNoSpacing" style="margin-left:.5in">a)First line</p> <p class="MsoNoSpacing" style="margin-left:.5in"><i style="mso-bidi-font-style: normal">“#!/path/to/shell”</i></p> <p class="MsoNoSpacing" style="margin-left:.5in">b) Comments</p> <p class="MsoNoSpacing" style="margin-left:.5in"><span style="mso-tab-count:1"> </span>Purpose of script, author, created date, modifications, bug fix notes etc</p> <p class="MsoNoSpacing" style="margin-left:.5in">c) Body of script</p> <p class="MsoNoSpacing" style="margin-left:.5in"><span style="mso-tab-count:1"> </span>Commands to be executed</p> <p class="MsoNoSpacing" style="margin-left:.5in">This line will decide which shell to be used for executing the commands in script</p> <p class="MsoNoSpacing" style="margin-left:.5in">If the line is not present, system will use default shell</p> <p class="MsoNoSpacing" style="margin-left:.5in"><span style="mso-spacerun:yes"> </span>E.g.:- 1</p> <p class="MsoNoSpacing" style="margin-left:.5in">------------------------------------</p> <p class="MsoNoSpacing" style="text-indent:.5in"><i style="mso-bidi-font-style: normal">#!/bin/bash</i></p> <p class="MsoNoSpacing" style="margin-left:.5in"><i style="mso-bidi-font-style: normal">echo “Hello world”</i></p> <p class="MsoNoSpacing" style="margin-left:.5in"> </p> <p class="MsoNoSpacing" style="margin-left:.5in">E.g. Explained</p> <p class="MsoNoSpacing" style="margin-left:.5in">------------------------------------</p> <p class="MsoNoSpacing" style="margin-left:.5in">The above script will execute </p> <p class="MsoNoSpacing" style="margin-left:.5in">echo “Hello world”</p> <p class="MsoNoSpacing" style="margin-left:.5in">in bash shell</p> <p class="MsoNoSpacing" style="margin-left:.5in"> </p> <p class="MsoNoSpacing">3. Execute a script</p> <p class="MsoNoSpacing"><span style="mso-tab-count:1"> </span>If you logged in as root, the home directory will be /root/</p> <p class="MsoNoSpacing"><span style="mso-tab-count:1"> </span>We will create a file in /root using vi editor</p> <p class="MsoNoSpacing" style="background:white;mso-background-themecolor:background1;"><span style="background:white;mso-shading-themecolor:background1;" ><span style="mso-tab-count:1"> <span style="color: rgb(204, 0, 0);"> </span></span><span style="color: rgb(204, 0, 0);">[root@localhost]# vi hello.sh</span></span><span style="background:#0D0D0D;mso-shading-thememso-shading-themetint: 242color:text1;" ></span></p> <p class="MsoNoSpacing" style="background:white;mso-background-themecolor:background1;"> </p> <p class="MsoNoSpacing"> </p> <p class="MsoNoSpacing"><span style="mso-tab-count:1"> </span>The files have an extension of “.sh” so that others can easily identify the file as script</p> <p class="MsoNoSpacing"><span style="mso-tab-count:1"> </span>-------------------------------------------------------------------------------------------------------------------------------</p> <p class="MsoNoSpacing">Note: - The “file” is a command used to identify, what kind of file it is.</p> <p class="MsoNoSpacing" style="margin-left:.5in">Suppose we have file with name “abcd” How can I say it is a shell script or an executable binary or else another type..?</p> <p class="MsoNoSpacing"><span style="mso-tab-count:1"> </span>Here we will use “file” command <span style="mso-spacerun:yes"> </span></p> <p class="MsoNoSpacing" style="text-indent: 0.5in;"><span style="mso-tab-count:1"> </span>Eg:-</p><p class="MsoNoSpacing" style="text-indent: 0.5in; color: rgb(204, 0, 0);">[root@localhost]# file abcd</p> <p class="MsoNoSpacing"><span style="mso-tab-count:1"> </span>ASCII Long line text</p> <p class="MsoNoSpacing"><span style="mso-tab-count:1"> </span>-------------------------------------------------------------------------------------------------------------------------------</p> <p class="MsoNoSpacing"><span style="mso-tab-count:1"> </span>We are in vi now (I’m going ahead with the assumption that you have basic knowledge of VI editor)</p> <p class="MsoNoSpacing"><span style="mso-tab-count:1"> </span><span style="mso-tab-count:1"> </span></p> <p class="MsoNoSpacing"><span style="mso-tab-count:1"> </span>Type the text mentioned in e.g.: 1</p> <p class="MsoNoSpacing" style="background: none repeat scroll 0% 0% white; color: rgb(0, 0, 153);">#!/bin/bash</p> <p class="MsoNoSpacing" style="background: none repeat scroll 0% 0% white; color: rgb(0, 0, 153);">echo “Hello world”</p> <p class="MsoNoSpacing"><span style="mso-tab-count:1"> </span>Save the file</p> <p class="MsoNoSpacing"><span style="mso-tab-count:1"> </span>Now we have created a” bash shell script” named as “file.sh”</p> <p class="MsoNoSpacing"><span style="mso-tab-count:1"> </span></p> <p class="MsoNoSpacing"><span style="mso-tab-count:1"> </span>To execute a file that need execute permission</p> <p class="MsoNoSpacing"><span style="mso-tab-count:1"> </span>So give execute permission to “file.sh” using chmod command</p> <p class="MsoNoSpacing"> </p> <p class="MsoNoSpacing" style="background: none repeat scroll 0% 0% white; color: rgb(204, 0, 0);">[root@localhost]# chmod <span style="mso-spacerun:yes"> </span>755 file.sh</p> <p class="MsoNoSpacing" color="background1" style="background:white;mso-background-theme"><br /></p> <p class="MsoNoSpacing" color="background1" style="background:white;mso-background-theme"><span style="mso-tab-count:1"> </span>Now we can execute the script as </p> <p class="MsoNoSpacing" style="background: none repeat scroll 0% 0% white; color: rgb(204, 0, 0);">[root@localhost#]./file.sh</p> <p class="MsoNoSpacing" style="background:white;mso-background-themecolor:background1"><b style="mso-bidi-font-weight:normal">Hello world</b></p> <p class="MsoNoSpacing" style="background: none repeat scroll 0% 0% white; color: rgb(204, 0, 0);">[root@localhost#]</p> <p class="MsoNoSpacing" style="background:white;mso-background-themecolor:background1"> </p> <p class="MsoNoSpacing" style="background:white;mso-background-themecolor:background1"> </p> <p class="MsoNoSpacing"> </p> <p class="MsoNoSpacing"><b style="mso-bidi-font-weight:normal">Summary</b></p> <p class="MsoNoSpacing"><b style="mso-bidi-font-weight:normal">1. Create a script that will print “Hello world”</b></p> <p class="MsoNoSpacing" style="background:white;mso-background-themecolor:background1"><b style="mso-bidi-font-weight:normal"> </b></p> <p class="MsoNoSpacing" style="background: none repeat scroll 0% 0% white; color: rgb(153, 0, 0);"><span style="mso-spacerun:yes"> </span>[root@localhost#]<span style="mso-tab-count: 1"> </span></p> <p class="MsoNoSpacing" style="background: none repeat scroll 0% 0% white; color: rgb(153, 0, 0);">[root@localhost#]</p> <p class="MsoNoSpacing" style="background: none repeat scroll 0% 0% white; color: rgb(153, 0, 0);">[root@localhost#]vi <span style="mso-spacerun:yes"> </span>file.sh</p> <p class="MsoNoSpacing" style="background: none repeat scroll 0% 0% white; color: rgb(0, 0, 153);">#!/bin/bash</p> <p class="MsoNoSpacing" style="background: none repeat scroll 0% 0% white; color: rgb(0, 0, 153);">echo “Hello world”</p> <p class="MsoNoSpacing" style="background: none repeat scroll 0% 0% white; color: rgb(204, 0, 0);">[root@localhost#]chmod 755 file.sh</p> <p class="MsoNoSpacing" style="background: none repeat scroll 0% 0% white; color: rgb(204, 0, 0);">[root@localhost#]./file.sh</p> <p class="MsoNoSpacing" style="background:white;mso-background-themecolor:background1">Hello world</p> <p class="MsoNoSpacing" style="background: none repeat scroll 0% 0% white; color: rgb(204, 0, 0);">[root@localhost#]</p> <p class="MsoNoSpacing" style="background:white;mso-background-themecolor:background1"> </p>Ansilhttp://www.blogger.com/profile/07287558007793912931noreply@blogger.com2tag:blogger.com,1999:blog-5632235867526129400.post-28761078675444144052010-12-19T05:30:00.000-08:002011-03-30T01:46:46.203-07:00Tomcat Application Vertical Cluster<!--[if gte mso 9]><xml> <w:worddocument> <w:view>Normal</w:View> <w:zoom>0</w:Zoom> <w:punctuationkerning/> <w:validateagainstschemas/> <w:saveifxmlinvalid>false</w:SaveIfXMLInvalid> <w:ignoremixedcontent>false</w:IgnoreMixedContent> <w:alwaysshowplaceholdertext>false</w:AlwaysShowPlaceholderText> <w:compatibility> <w:breakwrappedtables/> <w:snaptogridincell/> <w:wraptextwithpunct/> <w:useasianbreakrules/> <w:dontgrowautofit/> </w:Compatibility> <w:browserlevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:latentstyles deflockedstate="false" latentstylecount="156"> </w:LatentStyles> </xml><![endif]--><!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;} </style> <![endif]--> <p style="font-weight: bold; text-align: center;" class="MsoTitle"><span style="color: rgb(84, 141, 212);">Application Cluster</span></p><!--[if gte mso 9]><xml> <w:worddocument> <w:view>Normal</w:View> <w:zoom>0</w:Zoom> <w:punctuationkerning/> <w:validateagainstschemas/> <w:saveifxmlinvalid>false</w:SaveIfXMLInvalid> <w:ignoremixedcontent>false</w:IgnoreMixedContent> <w:alwaysshowplaceholdertext>false</w:AlwaysShowPlaceholderText> <w:compatibility> <w:breakwrappedtables/> <w:snaptogridincell/> <w:wraptextwithpunct/> <w:useasianbreakrules/> <w:dontgrowautofit/> </w:Compatibility> <w:browserlevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:latentstyles deflockedstate="false" latentstylecount="156"> </w:LatentStyles> </xml><![endif]--><!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;} </style> <![endif]--> <p class="MsoNormal" style="text-align: justify;"><span style=" line-height: 115%;font-size:9pt;" ><span style=" font-weight: bold;font-family:georgia;" >Packages Needed</span>
<br /></span></p> <p class="ListParagraphCxSpFirst" style="text-indent: -0.25in; text-align: left;"><span style=" line-height: 115%;font-size:9pt;" ><span style="">1.<span style="font: 7pt "Times New Roman";"> 1. </span></span></span><span style=" line-height: 115%;font-size:9pt;" >jdk-1_5_0_19-linux-i586.bin
<br /></span></p><p class="ListParagraphCxSpFirst" style="text-indent: -0.25in; text-align: left;"><span style=" line-height: 115%;font-size:9pt;" > (http://www.oracle.com/technetwork/java/javase/downloads/index-jdk5-jsp-142662.html)
<br /></span></p><div> </div><p class="ListParagraphCxSpMiddle" style="text-indent: -0.25in; text-align: left;"><span style=" line-height: 115%;font-size:9pt;" ><span style="">2.<span style="font: 7pt "Times New Roman";"> 2.. </span></span></span><span style=" line-height: 115%;font-size:9pt;" >apache-tomcat-5.5.27.tar.gz
<br /></span></p><p class="ListParagraphCxSpMiddle" style="text-indent: -0.25in; text-align: left;"><span style=" line-height: 115%;font-size:9pt;" > (http://archive.apache.org/dist/tomcat/tomcat-5/v5.5.27/bin/apache-tomcat-5.5.27.tar.gz)
<br /></span></p><div style="text-align: left;"> </div><p class="ListParagraphCxSpMiddle" style="text-indent: -0.25in; text-align: left;"><span style=" line-height: 115%;font-size:9pt;" ><span style="">3.<span style="font: 7pt "Times New Roman";"> 3. </span></span></span><span style=" line-height: 115%;font-size:9pt;" >httpd-2.2.3-11.el5_1.3 (RHEL DVD)
<br /></span></p><div style="text-align: left;"> </div><p class="ListParagraphCxSpMiddle" style="text-indent: -0.25in; text-align: left;"><span style=" line-height: 115%;font-size:9pt;" ><span style="">4.<span style="font: 7pt "Times New Roman";"> 4. </span></span></span><span style=" line-height: 115%;font-size:9pt;" >httpd-devel-2.2.3-11.el5_1.3.i386.rpm </span><span style=" line-height: 115%;font-size:9pt;" > (RHEL DVD)</span></p><div style="text-align: left;"> </div><p class="ListParagraphCxSpLast" style="text-indent: -0.25in; text-align: left;"><span style=" line-height: 115%;font-size:9pt;" ><span style="">5.<span style="font: 7pt "Times New Roman";"> </span></span></span><span style=" line-height: 115%;font-size:9pt;" >5.tomcat-connectors-1.2.28-src.tar.gz (http://archive.apache.org/dist/tomcat/tomcat-connectors/jk/source/jk-1.2.28/tomcat-connectors-1.2.28-src.tar.gz)
<br /></span></p><p class="ListParagraphCxSpLast" style="text-indent: -0.25in; text-align: left;"><!--[if gte mso 9]><xml> <w:worddocument> <w:view>Normal</w:View> <w:zoom>0</w:Zoom> <w:punctuationkerning/> <w:validateagainstschemas/> <w:saveifxmlinvalid>false</w:SaveIfXMLInvalid> <w:ignoremixedcontent>false</w:IgnoreMixedContent> <w:alwaysshowplaceholdertext>false</w:AlwaysShowPlaceholderText> <w:compatibility> <w:breakwrappedtables/> <w:snaptogridincell/> <w:wraptextwithpunct/> <w:useasianbreakrules/> <w:dontgrowautofit/> </w:Compatibility> <w:browserlevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:latentstyles deflockedstate="false" latentstylecount="156"> </w:LatentStyles> </xml><![endif]--><!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;} </style> <![endif]--> </p><p class="MsoTitle" style="margin-left: 0.5in; text-indent: -0.25in; font-weight: bold; text-align: center;"><span style="color: rgb(49, 132, 155);"><span style="">1.<span style="font: 7pt "Times New Roman";"> </span></span></span><span style="color: rgb(49, 132, 155);">Install JDK</span></p> <p class="ListParagraphCxSpLast" style="text-indent: -0.25in; text-align: left;">
<br /><span style=" line-height: 115%;font-size:9pt;" ></span></p><!--[if gte mso 9]><xml> <w:worddocument> <w:view>Normal</w:View> <w:zoom>0</w:Zoom> <w:punctuationkerning/> <w:validateagainstschemas/> <w:saveifxmlinvalid>false</w:SaveIfXMLInvalid> <w:ignoremixedcontent>false</w:IgnoreMixedContent> <w:alwaysshowplaceholdertext>false</w:AlwaysShowPlaceholderText> <w:compatibility> <w:breakwrappedtables/> <w:snaptogridincell/> <w:wraptextwithpunct/> <w:useasianbreakrules/> <w:dontgrowautofit/> </w:Compatibility> <w:browserlevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:latentstyles deflockedstate="false" latentstylecount="156"> </w:LatentStyles> </xml><![endif]--><!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;} </style> <![endif]--> <p class="NoSpacing"><span style="font-size:9pt;">1.Copy<b style=""><span style=""> </span>jdk file to /tmp</b></span></p> <p class="NoSpacing"><b style=""><i style=""><span style="font-size:9pt;">2.[root@localhost]# chmod 755 jdk-1_5_0_19-linux-i586.bin</span></i></b></p> <p class="NoSpacing"><b style=""><i style=""><span style="font-size:9pt;">3.[root@localhost]#./ jdk-1_5_0_19-linux-i586.bin</span></i></b></p> <p class="NoSpacing"><span style="font-size:9pt;"> Accept license agreement by typing “<span style="font-weight: bold;">yes</span>”</span></p> <p class="NoSpacing"><span style="font-size:9pt;">A new directory will be created on<span style="font-weight: bold;"> /tmp</span> directory with name <b style=""><i style="">jdk1.5.0_19</i></b> </span></p> <p class="NoSpacing"><span style="font-size:9pt;"> Copy the <b style="">jdk1.5.0_19 </b>directory to /usr/local</span></p> <p class="NoSpacing"><span style="font-size:9pt;"> </span><b style=""><i style=""><span style="font-size:9pt;">4. .[root@localhost]# cp -rv jdk1.5.0_19 /usr/local</span></i></b></p><p class="NoSpacing"><!--[if gte mso 9]><xml> <w:worddocument> <w:view>Normal</w:View> <w:zoom>0</w:Zoom> <w:punctuationkerning/> <w:validateagainstschemas/> <w:saveifxmlinvalid>false</w:SaveIfXMLInvalid> <w:ignoremixedcontent>false</w:IgnoreMixedContent> <w:alwaysshowplaceholdertext>false</w:AlwaysShowPlaceholderText> <w:compatibility> <w:breakwrappedtables/> <w:snaptogridincell/> <w:wraptextwithpunct/> <w:useasianbreakrules/> <w:dontgrowautofit/> </w:Compatibility> <w:browserlevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:latentstyles deflockedstate="false" latentstylecount="156"> </w:LatentStyles> </xml><![endif]--><!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;} </style> <![endif]--> </p><p class="NoSpacing"><span style="font-size:9pt;">Create a symlink of /usr/local/jdk1.5.0_19 to /usr/loca/java</span></p><b style=""><i style=""><span style="font-size:9pt;">5.[root@localhost]#</span></i></b><b style=""><i style=""><span style="font-size:9pt;">ln –s /usr/local/jdk1.5.0_19 /usr/loca/java</span></i></b> <p class="NoSpacing"><b style=""><i style=""><span style="font-size:9pt;"> </span></i></b><span style="font-size:9pt;">Open <span style="font-weight: bold;">/etc/profile</span> add these lines</span></p> <p class="NoSpacing"><b style=""><i style=""><span style="font-size:9pt;">5.[root@localhost]#vi </span></i></b><span style="font-size:9pt;"><span style="font-weight: bold;">/etc/profile</span></span></p><p class="NoSpacing"><span style="font-size:9pt;"><span style="font-weight: bold;"></span></span><b style=""><span style="font-size:9pt;">PATH=/usr/local/java/bin:$PATH</span></b></p> <p class="NoSpacing"><b style=""><span style="font-size:9pt;">JAVA_HOME=/usr/local/java</span></b></p> <p class="NoSpacing"><span style="font-size:9pt;"><span style="font-weight: bold;">export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC</span> <b style="">JAVA_HOME</b></span><b style=""><span style="font-size:9pt;"></span></b></p><p class="NoSpacing"><b style=""><span style="font-size:9pt;"></span></b><span style="font-size:9pt;">Log out the session and login again</span></p> <p class="NoSpacing"><span style="font-size:9pt;">Type <b style=""><i style="">echo $JAVA_HOME</i></b> ,will show <b style="">/usr/local/java</b></span></p><!--[if gte mso 9]><xml> <w:worddocument> <w:view>Normal</w:View> <w:zoom>0</w:Zoom> <w:punctuationkerning/> <w:validateagainstschemas/> <w:saveifxmlinvalid>false</w:SaveIfXMLInvalid> <w:ignoremixedcontent>false</w:IgnoreMixedContent> <w:alwaysshowplaceholdertext>false</w:AlwaysShowPlaceholderText> <w:compatibility> <w:breakwrappedtables/> <w:snaptogridincell/> <w:wraptextwithpunct/> <w:useasianbreakrules/> <w:dontgrowautofit/> </w:Compatibility> <w:browserlevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:latentstyles deflockedstate="false" latentstylecount="156"> </w:LatentStyles> </xml><![endif]--><!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;} </style> <![endif]--> <p style="font-weight: bold; text-align: center;" class="MsoTitle"><span style="color: rgb(49, 132, 155);">2. Install Tomcat</span></p> <p class="NoSpacing"><span style="font-size:9pt;"> </span></p> <p class="NoSpacing"><span style="font-size:9pt;">Create a system user with name “tomcat”</span></p> <p class="NoSpacing"><b style=""><i style=""><span style="font-size:9pt;">1.[root@localhost]#</span></i></b><b style=""><i style=""><span style="font-size:9pt;">useradd –r tomcat</span></i></b></p> <p class="NoSpacing"><span style="font-size:9pt;">Create four directories /app1,/app2 ,/app3 and /applog</span></p> <p class="NoSpacing"><b style=""><i style=""><span style="font-size:9pt;">2.[root@localhost]#</span></i></b><b style=""><i style=""><span style="font-size:9pt;">mkdir /app1 /app2 /app3 /applog</span></i></b></p> <p class="NoSpacing"><span style="font-size:9pt;">Change ownership of those directories to “tomcat”</span></p> <p class="NoSpacing"><b style=""><i style=""><span style="font-size:9pt;"> </span></i></b><b style=""><i style=""><span style="font-size:9pt;">3.[root@localhost]#</span></i></b><b style=""><i style=""><span style="font-size:9pt;">chown tomcat:tomcat<span style=""> </span>/app1 /app2 /app3 /applog -R</span></i></b></p> <p class="NoSpacing"><span style="font-size:9pt;"> We will install three instances of tomcat for load balanced cluster, for that we need three directories /app1,/app2 and /app3</span></p> <p class="NoSpacing"><span style="font-size:9pt;"> All log files related to application goes to /applog directory</span></p> <p class="NoSpacing"><span style="font-size:9pt;"> Unzip and untar the package</span></p> <p class="NoSpacing"><span style="font-size:9pt;"> </span><b style=""><i style=""><span style="font-size:9pt;">4.[root@localhost]#</span></i></b><span style=" font-weight: bold; font-style: italic;font-size:9pt;" >tar -xzvf apache-tomcat-5.5.27.tar.gz</span></p> <p class="NoSpacing"><span style="font-size:9pt;"> apache-tomcat-5.5.27 directory will be created after executing the command </span></p> <p class="NoSpacing"><span style="font-size:9pt;">Copy all the contents from apache-tomcat-5.5.27 to application directories</span></p> <p class="NoSpacing"><b style=""><i style=""><span style="font-size:9pt;">5.[root@localhost]#</span></i></b><b style=""><i style=""><span style="font-size:9pt;">cd apache-tomcat-5.5.27 </span></i></b></p> <p class="NoSpacing"><b style=""><i style=""><span style="font-size:9pt;">6.[root@localhost]#</span></i></b><b style=""><i style=""><span style="font-size:9pt;">cp –rv * /app1</span></i></b></p> <p class="NoSpacing"><b style=""><i style=""><span style="font-size:9pt;">7.[root@localhost]#</span></i></b><b style=""><i style=""><span style="font-size:9pt;">cp –rv * /app2</span></i></b></p> <p class="NoSpacing"><b style=""><i style=""><span style="font-size:9pt;">8.[root@localhost]#</span></i></b><b style=""><i style=""><span style="font-size:9pt;">cp –rv * /app3</span></i></b></p> <p class="NoSpacing"><b style=""><i style=""><span style="font-size:9pt;"> </span></i></b><i style="font-weight: bold;"><span style="font-size:9pt;"></span></i><span style="font-size:9pt;"><span style="font-weight: bold;">*.</span>Change tomcat default log location from /app1/logs/ to /applog/app1</span></p> <p class="NoSpacing"><b style=""><i style=""><span style="font-size:9pt;"> </span></i></b><span style="font-size:9pt;">Create three directories inside /applog </span></p> <p class="NoSpacing"><b style=""><i style=""><span style="font-size:9pt;">9.[root@localhost]#</span></i></b><b style=""><i style=""><span style="font-size:9pt;">cd /applog</span></i></b></p> <p class="NoSpacing"><b style=""><i style=""><span style="font-size:9pt;">10.[root@localhost]#</span></i></b><b style=""><i style=""><span style="font-size:9pt;">mkdir app1 app2 app3</span></i></b></p> <p class="NoSpacing"><b style=""><i style=""><span style="font-size:9pt;">11.[root@localhost]#</span></i></b><b style=""><i style=""><span style="font-size:9pt;">chown –R tomcat.tomcat /applog</span></i></b></p> <p class="NoSpacing"><b style=""><i style=""><span style="font-size:9pt;"></span></i></b><span style="font-size:9pt;"><span style="font-weight: bold; font-style: italic;">12.</span>Edit /app1/bin/catalina.sh</span></p> <p class="NoSpacing"><span style="font-size:9pt;"> Change <b style=""><i style="">"$CATALINABASE"/logs/catalina.out</i></b> path to <b style=""><i style="">/applog/app1/catalina.out</i></b></span></p> <p class="NoSpacing"><span style="font-size:9pt;"> Do the same for remaining two instances</span></p> <p class="NoSpacing"><span style="font-size:9pt;"> *.Disable all logging for application to increase tomcat performence
<br /></span></p> <p class="NoSpacing"><i style=""><span style="font-size:9pt;">Rename <b style="">/app1/conf/logging.properties </b>to <b style="">/app1/conf/logging.properties.org</b></span></i></p> <p class="NoSpacing"><b style=""><i style=""><span style="font-size:9pt;">[root@localhost]#mv </span></i></b><i style=""><span style="font-size:9pt;"><b style="">/app1/conf/logging.properties </b></span></i><i style=""><span style="font-size:9pt;"><b style="">/app1/conf/logging.properties.org</b></span></i></p><p class="NoSpacing"><span style="font-size:9pt;"> Do the same for remaining two instances</span></p><p class="NoSpacing"><!--[if gte mso 9]><xml> <w:worddocument> <w:view>Normal</w:View> <w:zoom>0</w:Zoom> <w:punctuationkerning/> <w:validateagainstschemas/> <w:saveifxmlinvalid>false</w:SaveIfXMLInvalid> <w:ignoremixedcontent>false</w:IgnoreMixedContent> <w:alwaysshowplaceholdertext>false</w:AlwaysShowPlaceholderText> <w:compatibility> <w:breakwrappedtables/> <w:snaptogridincell/> <w:wraptextwithpunct/> <w:useasianbreakrules/> <w:dontgrowautofit/> </w:Compatibility> <w:browserlevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:latentstyles deflockedstate="false" latentstylecount="156"> </w:LatentStyles> </xml><![endif]--><!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;} </style> <![endif]--> </p><p style="font-weight: bold; text-align: center;" class="MsoTitle"><span style="color: rgb(49, 132, 155);">3. Install Apache</span></p> <p class="NoSpacing"><span style="font-size:9pt;"> Install packages for apache</span></p> <p class="NoSpacing"><span style="font-size:9pt;"> </span><b style=""><i style=""><span style="font-size:9pt;">[root@localhost]#</span></i></b><b style=""><i style=""><span style="font-size:9pt;"></span></i></b><b style=""><i style=""><span style="font-size:9pt;">rpm -ivh apr-devel-1.2.7-11.i386.rpm</span></i></b></p> <p class="NoSpacing"><b style=""><i style=""><span style="font-size:9pt;">[root@localhost]#</span></i></b><b style=""><i style=""><span style="font-size:9pt;"></span></i></b><b style=""><i style=""><span style="font-size:9pt;">rpm -ivh apr-util-devel-1.2.7-7.el5.i386.rpm</span></i></b></p><p class="NoSpacing"><b style=""><i style=""><span style="font-size:9pt;"> </span></i></b><b style=""><i style=""><span style="font-size:9pt;">[root@localhost]#</span></i></b><b style=""><i style=""><span style="font-size:9pt;"></span></i></b><b style=""><i style=""><span style="font-size:9pt;">rpm -ivh httpd-2.2.3-11.el5_1.3.i386.rpm</span></i></b></p> <p class="NoSpacing"><b style=""><i style=""><span style="font-size:9pt;">[root@localhost]#</span></i></b><b style=""><i style=""><span style="font-size:9pt;"></span></i></b><b style=""><i style=""><span style="font-size:9pt;">rpm -ivh httpd-devel-2.2.3-11.el5_1.3.i386.rpm</span></i></b></p><p class="NoSpacing"><!--[if gte mso 9]><xml> <w:worddocument> <w:view>Normal</w:View> <w:zoom>0</w:Zoom> <w:punctuationkerning/> <w:validateagainstschemas/> <w:saveifxmlinvalid>false</w:SaveIfXMLInvalid> <w:ignoremixedcontent>false</w:IgnoreMixedContent> <w:alwaysshowplaceholdertext>false</w:AlwaysShowPlaceholderText> <w:compatibility> <w:breakwrappedtables/> <w:snaptogridincell/> <w:wraptextwithpunct/> <w:useasianbreakrules/> <w:dontgrowautofit/> </w:Compatibility> <w:browserlevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:latentstyles deflockedstate="false" latentstylecount="156"> </w:LatentStyles> </xml><![endif]--><!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;} </style> <![endif]--> </p><p class="NoSpacing" style="text-align: center;" align="center"><span style=" color: rgb(49, 132, 155);font-size:16pt;" >4. Install Tomcat JK connector</span><span style="font-size:9pt;"></span></p> <p class="NoSpacing"><b style=""><i style=""><span style="font-size:9pt;"> </span></i></b></p> <p class="NoSpacing"><span style="font-size:9pt;"> we have to give apache extension binary file path before compiling JK connector</span></p> <p class="NoSpacing"><span style="font-size:9pt;"> </span><b style=""><i style=""><span style="font-size:9pt;">[root@localhost]#</span></i></b><b style=""><i style=""><span style="font-size:9pt;">which apxs</span></i></b></p> <p class="NoSpacing"><span style="font-size:9pt;">The command will give path of apxs</span></p> <p class="NoSpacing"><span style="font-size:9pt;">/usr/sbin/apxs</span></p> <p class="NoSpacing"><span style="font-size:9pt;"> </span><b style=""><i style=""><span style="font-size:9pt;">[root@localhost]#</span></i></b><b style=""><i style=""><span style="font-size:9pt;">tar -zxvf tomcat-connectors-1.2.28-src.tar.gz</span></i></b></p> <p class="NoSpacing"><b style=""><i style=""><span style="font-size:9pt;">[root@localhost]#</span></i></b><b style=""><i style=""><span style="font-size:9pt;">cd tomcat-connectors-1.2.28-src/native</span></i></b></p> <p class="NoSpacing"><b style=""><i style=""><span style="font-size:9pt;">[root@localhost]#</span></i></b><b style=""><i style=""><span style="font-size:9pt;">./configure --with-apxs=/usr/sbin/apxs</span></i></b></p> <p class="NoSpacing"><b style=""><i style=""><span style="font-size:9pt;">[root@localhost]#</span></i></b><b style=""><i style=""><span style="font-size:9pt;">make</span></i></b></p> <p class="NoSpacing"><span style="font-size:9pt;">After make the <b style="">mod_jk.so</b> will be created under <b style="">apache-2.0</b> directory</span></p> <p class="NoSpacing"><span style="font-size:9pt;">Copy <b style="">mod_jk.so</b> module to <b style="">/etc/httpd/modules </b>directory</span></p> <p class="NoSpacing"><b style=""><i style=""><span style="font-size:9pt;">[root@localhost]#</span></i></b><b style=""><i style=""><span style="font-size:9pt;">cd apache-2.0/</span></i></b></p> <p class="NoSpacing"><b style=""><i style=""><span style="font-size:9pt;">[root@localhost]#</span></i></b><b style=""><i style=""><span style="font-size:9pt;">cp mod_jk.so /etc/httpd/modules/</span></i></b></p><p class="NoSpacing"><!--[if gte mso 9]><xml> <w:worddocument> <w:view>Normal</w:View> <w:zoom>0</w:Zoom> <w:punctuationkerning/> <w:validateagainstschemas/> <w:saveifxmlinvalid>false</w:SaveIfXMLInvalid> <w:ignoremixedcontent>false</w:IgnoreMixedContent> <w:alwaysshowplaceholdertext>false</w:AlwaysShowPlaceholderText> <w:compatibility> <w:breakwrappedtables/> <w:snaptogridincell/> <w:wraptextwithpunct/> <w:useasianbreakrules/> <w:dontgrowautofit/> </w:Compatibility> <w:browserlevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:latentstyles deflockedstate="false" latentstylecount="156"> </w:LatentStyles> </xml><![endif]--><!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;} </style> <![endif]--> </p><p style="font-weight: bold; text-align: center;" class="MsoTitle"><i style=""><span style="color: rgb(49, 132, 155);">4.</span></i><span style="color: rgb(49, 132, 155);"> Install Application and Configure Cluster</span></p> <p class="NoSpacing"><span style="font-size:9pt;"> Copy application directories to /app1/webapps , /app2/webapps and<span style=""> </span>/app3/webapps</span></p> <p class="NoSpacing"><span style="font-size:9pt;"> For example ADMINAPP and USERAPP
<br /></span></p> <p class="NoSpacing"><b style=""><i style=""><span style="font-size:9pt;">[root@localhost]#</span></i></b><span style="font-size:9pt;"> </span><b style=""><i style=""><span style="font-size:9pt;">cp –rv ADMINAPP USERAPP /app1/webapps</span></i></b></p> <p class="NoSpacing"><b style=""><i style=""><span style="font-size:9pt;">[root@localhost]#</span></i></b><b style=""><i style=""><span style="font-size:9pt;">cp –rv ADMINLIC LICUSER /app2/webapps</span></i></b></p> <p class="NoSpacing"><b style=""><i style=""><span style="font-size:9pt;">[root@localhost]#</span></i></b><b style=""><i style=""><span style="font-size:9pt;">cp –rv ADMINLIC LICUSER /app3/webapps</span></i></b></p> <p class="NoSpacing"><span style="font-size:9pt;">Copy necessary jar files for connection pooling to tomcat instances</span></p> <p class="NoSpacing"><b style=""><i style=""><span style="font-size:9pt;">[root@localhost]#</span></i></b><b style=""><i style=""><span style="font-size:9pt;">cp commons-pool-1.4.jar mysql-connector-java-3.0.11-stable-bin.jar commons-dbcp-1.2.2.jar /app2/common/lib</span></i></b></p> <p class="NoSpacing"><span style="font-size:9pt;">Edit configuration files for tomcat </span></p> <p class="NoSpacing"><b style=""><i style=""><span style="font-size:9pt;">[root@localhost]#</span></i></b><b style=""><i style=""><span style="font-size:9pt;">vi /app1/conf/server.xml</span></i></b></p><p class="NoSpacing"><!--[if gte mso 9]><xml> <w:worddocument> <w:view>Normal</w:View> <w:zoom>0</w:Zoom> <w:punctuationkerning/> <w:validateagainstschemas/> <w:saveifxmlinvalid>false</w:SaveIfXMLInvalid> <w:ignoremixedcontent>false</w:IgnoreMixedContent> <w:alwaysshowplaceholdertext>false</w:AlwaysShowPlaceholderText> <w:compatibility> <w:breakwrappedtables/> <w:snaptogridincell/> <w:wraptextwithpunct/> <w:useasianbreakrules/> <w:dontgrowautofit/> </w:Compatibility> <w:browserlevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:latentstyles deflockedstate="false" latentstylecount="156"> </w:LatentStyles> </xml><![endif]--><!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;} </style> <![endif]--> </p><p class="NoSpacing"><span style="font-size:9pt;">1. Comment HTTP connector tag</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:9pt;" > </span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:9pt;" ><span style=""> </span><span style=""> </span><!-- Define a non-SSL HTTP/1.1 Connector on port 8080 --></span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:9pt;" ><span style=""> </span><b style=""><span style="background: none repeat scroll 0% 0% yellow;"><!--</span></b> <connector port="8080" maxhttpheadersize="8192"></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:"font-size:9pt;"><span style=""> </span>maxThreads="150" minSpareThreads="25" maxSpareThreads="75"</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:"font-size:9pt;"><span style=""> </span>enableLookups="false" redirectPort="8443" acceptCount="100"</span></p> <p class="NoSpacing"><span style=" Courier New";font-family:"font-size:9pt;"><span style=""> </span>connectionTimeout="20000" disableUploadTimeout="true" /> <b style=""><span style="background: none repeat scroll 0% 0% yellow;">--></span></b></span></p> <p class="NoSpacing"><span style=" Courier New";font-family:";font-size:9pt;" > </span></p> <p class="NoSpacing"><span style="font-size:9pt;">Do the same for remaining two instances</span></p><p class="NoSpacing"><!--[if gte mso 9]><xml> <w:worddocument> <w:view>Normal</w:View> <w:zoom>0</w:Zoom> <w:punctuationkerning/> <w:validateagainstschemas/> <w:saveifxmlinvalid>false</w:SaveIfXMLInvalid> <w:ignoremixedcontent>false</w:IgnoreMixedContent> <w:alwaysshowplaceholdertext>false</w:AlwaysShowPlaceholderText> <w:compatibility> <w:breakwrappedtables/> <w:snaptogridincell/> <w:wraptextwithpunct/> <w:useasianbreakrules/> <w:dontgrowautofit/> </w:Compatibility> <w:browserlevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:latentstyles deflockedstate="false" latentstylecount="156"> </w:LatentStyles> </xml><![endif]--><!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;} </style> <![endif]--> </p><p class="NoSpacing"><span style="font-size:9pt;">2. Change tomcat shutdown port </span></p> <p class="NoSpacing"><span style="font-size:9pt;"> </span></p> <p class="NoSpacing"><b style=""><i style=""><span style="font-size:9pt;">vi /app1/conf/server.xml</span></i></b></p> <p class="NoSpacing"><!--[if gte mso 9]><xml> <w:worddocument> <w:view>Normal</w:View> <w:zoom>0</w:Zoom> <w:punctuationkerning/> <w:validateagainstschemas/> <w:saveifxmlinvalid>false</w:SaveIfXMLInvalid> <w:ignoremixedcontent>false</w:IgnoreMixedContent> <w:alwaysshowplaceholdertext>false</w:AlwaysShowPlaceholderText> <w:compatibility> <w:breakwrappedtables/> <w:snaptogridincell/> <w:wraptextwithpunct/> <w:useasianbreakrules/> <w:dontgrowautofit/> </w:Compatibility> <w:browserlevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:latentstyles deflockedstate="false" latentstylecount="156"> </w:LatentStyles> </xml><![endif]--><!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;} </style> <![endif]--><span style="line-height:115%; font-family:"Courier New";mso-fareast-mso-ansi-language: EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SAfont-family:Calibri;font-size:9.0pt;" ><Server port=<b style="mso-bidi-font-weight:normal"><span style="background:yellow;mso-highlight: yellow">"</span></b></span><span style=" Courier New";font-family:";font-size:9pt;" ><server port="<b" style=""><span style="background: none repeat scroll 0% 0% yellow;">"8005"</span> shutdown="SHUTDOWN"></server></span></p> <p class="NoSpacing"><b style=""><i style=""><span style="font-size:9pt;"> </span></i></b></p> <p class="NoSpacing"><b style=""><i style=""><span style="font-size:9pt;">vi /app2/conf/server.xml</span></i></b></p> <p class="NoSpacing"><span style="line-height:115%; font-family:"Courier New";mso-fareast-mso-ansi-language: EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SAfont-family:Calibri;font-size:9.0pt;" ><Server port=</span><span style=" Courier New";font-family:";font-size:9pt;" ><server port="<b" style=""><span style="background: none repeat scroll 0% 0% yellow;">"8105"</span> shutdown="SHUTDOWN"></server></span></p> <p class="NoSpacing"><b style=""><i style=""><span style="font-size:9pt;"> </span></i></b></p> <p class="NoSpacing"><b style=""><i style=""><span style="font-size:9pt;">vi /app3/conf/server.xml</span></i></b></p> <p class="NoSpacing"><span style="line-height:115%; font-family:"Courier New";mso-fareast-mso-ansi-language: EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SAfont-family:Calibri;font-size:9.0pt;" ><Server port=</span><span style=" Courier New";font-family:";font-size:9pt;" ><server port="<b" style=""><span style="background: none repeat scroll 0% 0% yellow;">"8205"</span> shutdown="SHUTDOWN"></server></span></p><p class="NoSpacing"><!--[if gte mso 9]><xml> <w:worddocument> <w:view>Normal</w:View> <w:zoom>0</w:Zoom> <w:punctuationkerning/> <w:validateagainstschemas/> <w:saveifxmlinvalid>false</w:SaveIfXMLInvalid> <w:ignoremixedcontent>false</w:IgnoreMixedContent> <w:alwaysshowplaceholdertext>false</w:AlwaysShowPlaceholderText> <w:compatibility> <w:breakwrappedtables/> <w:snaptogridincell/> <w:wraptextwithpunct/> <w:useasianbreakrules/> <w:dontgrowautofit/> </w:Compatibility> <w:browserlevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:latentstyles deflockedstate="false" latentstylecount="156"> </w:LatentStyles> </xml><![endif]--><!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;} </style> <![endif]--> </p><p class="NoSpacing"><span style="font-size:9pt;">3.Add JVM route to Catalina engine</span></p> <p class="NoSpacing"><span style="font-size:9pt;"> </span></p> <p class="NoSpacing"><b style=""><i style=""><span style="font-size:9pt;">vi /app1/conf/server.xml</span></i></b></p> <p class="NoSpacing"><span style="font-size:9pt;"> </span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" ><span style=""> </span><!-- Define the top level container in our container hierarchy --></span></p> <p class="NoSpacing"><span style="line-height:115%; font-family:"Courier New";mso-fareast-mso-ansi-language: EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SAfont-family:Calibri;font-size:10.0pt;" ><Engine name="Catalina" defaultHost="localhost"</span><span style=" Courier New";font-family:";font-size:10pt;" ><engine name="Catalina" defaulthost="localhost" style="background: none repeat scroll 0% 0% yellow;">jvmRoute="app1"</engine></span>><span style="font-size:9pt;"> </span></p> <p class="NoSpacing"><b style=""><i style=""><span style="font-size:9pt;">vi /app2/conf/server.xml</span></i></b></p> <p class="NoSpacing"><span style="font-size:9pt;"> </span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" ><span style=""> </span><!-- Define the top level container in our container hierarchy --></span></p> <p class="NoSpacing"><!--[if gte mso 9]><xml> <w:worddocument> <w:view>Normal</w:View> <w:zoom>0</w:Zoom> <w:punctuationkerning/> <w:validateagainstschemas/> <w:saveifxmlinvalid>false</w:SaveIfXMLInvalid> <w:ignoremixedcontent>false</w:IgnoreMixedContent> <w:alwaysshowplaceholdertext>false</w:AlwaysShowPlaceholderText> <w:compatibility> <w:breakwrappedtables/> <w:snaptogridincell/> <w:wraptextwithpunct/> <w:useasianbreakrules/> <w:dontgrowautofit/> </w:Compatibility> <w:browserlevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:latentstyles deflockedstate="false" latentstylecount="156"> </w:LatentStyles> </xml><![endif]--><!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;} </style> <![endif]--><span style="line-height:115%; font-family:"Courier New";mso-fareast-mso-ansi-language: EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SAfont-family:Calibri;font-size:10.0pt;" ><Engine name="Catalina" defaultHost="localhost" </span><span style=" Courier New";font-family:";font-size:10pt;" ><engine name="Catalina" defaulthost="localhost" style="background: none repeat scroll 0% 0% yellow;">jvmRoute="app2"</engine></span>><span style="font-size:9pt;"> </span></p> <p class="NoSpacing"><b style=""><i style=""><span style="font-size:9pt;">vi /app3/conf/server.xml</span></i></b></p> <p class="NoSpacing"><span style="font-size:9pt;"> </span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" ><span style=""> </span><!-- Define the top level container in our container hierarchy --></span></p> <span style="line-height:115%; font-family:"Courier New";mso-fareast-mso-ansi-language: EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SAfont-family:Calibri;font-size:10.0pt;" ><Engine name="Catalina" defaultHost="localhost"</span><span style=" line-height: 115%; Courier New";font-family:";font-size:10pt;" ><engine name="Catalina" defaulthost="localhost" style="background: none repeat scroll 0% 0% yellow;">jvmRoute="app3"</engine></span>>
<br /><!--[if gte mso 9]><xml> <w:worddocument> <w:view>Normal</w:View> <w:zoom>0</w:Zoom> <w:punctuationkerning/> <w:validateagainstschemas/> <w:saveifxmlinvalid>false</w:SaveIfXMLInvalid> <w:ignoremixedcontent>false</w:IgnoreMixedContent> <w:alwaysshowplaceholdertext>false</w:AlwaysShowPlaceholderText> <w:compatibility> <w:breakwrappedtables/> <w:snaptogridincell/> <w:wraptextwithpunct/> <w:useasianbreakrules/> <w:dontgrowautofit/> </w:Compatibility> <w:browserlevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:latentstyles deflockedstate="false" latentstylecount="156"> </w:LatentStyles> </xml><![endif]--><!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;} </style> <![endif]--> <p class="NoSpacing"><span style="font-size:9pt;">4.Add <span style=""> </span>Context and Resources to tomcat</span></p> <p class="NoSpacing"><span style="font-size:9pt;"> </span></p> <p class="NoSpacing"><b style=""><i style=""><span style="font-size:9pt;">vi /app1/conf/server.xml</span></i></b></p> <p class="NoSpacing"><span style="font-size:9pt;">Add the lines<span style="font-weight: bold;"> indicated bold </span>in <b style="">Host tag</b></span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:9pt;" ><host name="localhost" appbase="webapps"></host></span></p><!--[if gte mso 9]><xml> <w:worddocument> <w:view>Normal</w:View> <w:zoom>0</w:Zoom> <w:trackmoves/> <w:trackformatting/> <w:punctuationkerning/> <w:validateagainstschemas/> <w:saveifxmlinvalid>false</w:SaveIfXMLInvalid> <w:ignoremixedcontent>false</w:IgnoreMixedContent> <w:alwaysshowplaceholdertext>false</w:AlwaysShowPlaceholderText> <w:donotpromoteqf/> <w:lidthemeother>EN-US</w:LidThemeOther> <w:lidthemeasian>X-NONE</w:LidThemeAsian> <w:lidthemecomplexscript>X-NONE</w:LidThemeComplexScript> <w:compatibility> <w:breakwrappedtables/> <w:snaptogridincell/> <w:wraptextwithpunct/> <w:useasianbreakrules/> <w:dontgrowautofit/> <w:splitpgbreakandparamark/> <w:dontvertaligncellwithsp/> <w:dontbreakconstrainedforcedtables/> <w:dontvertalignintxbx/> <w:word11kerningpairs/> <w:cachedcolbalance/> </w:Compatibility> <w:browserlevel>MicrosoftInternetExplorer4</w:BrowserLevel> <m:mathpr> <m:mathfont val="Cambria Math"> <m:brkbin val="before"> <m:brkbinsub val="--"> <m:smallfrac val="off"> <m:dispdef/> <m:lmargin val="0"> <m:rmargin val="0"> <m:defjc val="centerGroup"> <m:wrapindent val="1440"> <m:intlim val="subSup"> <m:narylim val="undOvr"> </m:mathPr></w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:latentstyles deflockedstate="false" defunhidewhenused="true" defsemihidden="true" defqformat="false" defpriority="99" latentstylecount="267"> <w:lsdexception locked="false" priority="0" semihidden="false" unhidewhenused="false" qformat="true" name="Normal"> <w:lsdexception locked="false" priority="9" semihidden="false" unhidewhenused="false" qformat="true" name="heading 1"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 2"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 3"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 4"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 5"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 6"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 7"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 8"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 9"> <w:lsdexception locked="false" priority="39" name="toc 1"> <w:lsdexception locked="false" priority="39" name="toc 2"> <w:lsdexception locked="false" priority="39" name="toc 3"> <w:lsdexception locked="false" priority="39" name="toc 4"> <w:lsdexception locked="false" priority="39" name="toc 5"> <w:lsdexception locked="false" priority="39" name="toc 6"> <w:lsdexception locked="false" priority="39" name="toc 7"> <w:lsdexception locked="false" priority="39" name="toc 8"> <w:lsdexception locked="false" priority="39" name="toc 9"> <w:lsdexception locked="false" priority="35" qformat="true" name="caption"> <w:lsdexception locked="false" priority="10" semihidden="false" unhidewhenused="false" qformat="true" name="Title"> <w:lsdexception locked="false" priority="1" name="Default Paragraph Font"> <w:lsdexception locked="false" priority="11" semihidden="false" unhidewhenused="false" qformat="true" name="Subtitle"> <w:lsdexception locked="false" priority="22" semihidden="false" unhidewhenused="false" qformat="true" name="Strong"> <w:lsdexception locked="false" priority="20" semihidden="false" unhidewhenused="false" qformat="true" name="Emphasis"> <w:lsdexception locked="false" priority="59" semihidden="false" unhidewhenused="false" name="Table Grid"> <w:lsdexception locked="false" unhidewhenused="false" name="Placeholder Text"> <w:lsdexception locked="false" priority="1" semihidden="false" unhidewhenused="false" qformat="true" name="No Spacing"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 1"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 1"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 1"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 1"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 1"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 1"> <w:lsdexception locked="false" unhidewhenused="false" name="Revision"> <w:lsdexception locked="false" priority="34" semihidden="false" unhidewhenused="false" qformat="true" name="List Paragraph"> <w:lsdexception locked="false" priority="29" semihidden="false" unhidewhenused="false" qformat="true" name="Quote"> <w:lsdexception locked="false" priority="30" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Quote"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 1"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 1"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 1"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 1"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 1"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 1"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 1"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 1"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 2"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 2"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 2"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 2"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 2"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 2"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 2"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 2"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 2"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 2"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 2"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 2"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 2"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 2"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 3"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 3"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 3"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 3"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 3"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 3"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 3"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 3"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 3"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 3"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 3"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 3"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 3"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 3"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 4"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 4"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 4"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 4"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 4"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 4"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 4"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 4"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 4"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 4"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 4"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 4"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 4"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 4"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 5"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 5"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 5"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 5"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 5"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 5"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 5"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 5"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 5"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 5"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 5"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 5"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 5"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 5"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 6"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 6"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 6"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 6"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 6"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 6"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 6"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 6"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 6"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 6"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 6"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 6"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 6"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 6"> <w:lsdexception locked="false" priority="19" semihidden="false" unhidewhenused="false" qformat="true" name="Subtle Emphasis"> <w:lsdexception locked="false" priority="21" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Emphasis"> <w:lsdexception locked="false" priority="31" semihidden="false" unhidewhenused="false" qformat="true" name="Subtle Reference"> <w:lsdexception locked="false" priority="32" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Reference"> <w:lsdexception locked="false" priority="33" semihidden="false" unhidewhenused="false" qformat="true" name="Book Title"> <w:lsdexception locked="false" priority="37" name="Bibliography"> <w:lsdexception locked="false" priority="39" qformat="true" name="TOC Heading"> </w:LatentStyles> </xml><![endif]--><!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin-top:0in; mso-para-margin-right:0in; mso-para-margin-bottom:10.0pt; mso-para-margin-left:0in; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:"Times New Roman"; mso-fareast-theme-font:minor-fareast; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin;} </style> <![endif]--><!--[if gte mso 9]><xml> <w:worddocument> <w:view>Normal</w:View> <w:zoom>0</w:Zoom> <w:trackmoves/> <w:trackformatting/> <w:punctuationkerning/> <w:validateagainstschemas/> <w:saveifxmlinvalid>false</w:SaveIfXMLInvalid> <w:ignoremixedcontent>false</w:IgnoreMixedContent> <w:alwaysshowplaceholdertext>false</w:AlwaysShowPlaceholderText> <w:donotpromoteqf/> <w:lidthemeother>EN-US</w:LidThemeOther> <w:lidthemeasian>X-NONE</w:LidThemeAsian> <w:lidthemecomplexscript>X-NONE</w:LidThemeComplexScript> <w:compatibility> <w:breakwrappedtables/> <w:snaptogridincell/> <w:wraptextwithpunct/> <w:useasianbreakrules/> <w:dontgrowautofit/> <w:splitpgbreakandparamark/> <w:dontvertaligncellwithsp/> <w:dontbreakconstrainedforcedtables/> <w:dontvertalignintxbx/> <w:word11kerningpairs/> <w:cachedcolbalance/> </w:Compatibility> <w:browserlevel>MicrosoftInternetExplorer4</w:BrowserLevel> <m:mathpr> <m:mathfont val="Cambria Math"> <m:brkbin val="before"> <m:brkbinsub val="--"> <m:smallfrac val="off"> <m:dispdef/> <m:lmargin val="0"> <m:rmargin val="0"> <m:defjc val="centerGroup"> <m:wrapindent val="1440"> <m:intlim val="subSup"> <m:narylim val="undOvr"> </m:mathPr></w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:latentstyles deflockedstate="false" defunhidewhenused="true" defsemihidden="true" defqformat="false" defpriority="99" latentstylecount="267"> <w:lsdexception locked="false" priority="0" semihidden="false" unhidewhenused="false" qformat="true" name="Normal"> <w:lsdexception locked="false" priority="9" semihidden="false" unhidewhenused="false" qformat="true" name="heading 1"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 2"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 3"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 4"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 5"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 6"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 7"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 8"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 9"> <w:lsdexception locked="false" priority="39" name="toc 1"> <w:lsdexception locked="false" priority="39" name="toc 2"> <w:lsdexception locked="false" priority="39" name="toc 3"> <w:lsdexception locked="false" priority="39" name="toc 4"> <w:lsdexception locked="false" priority="39" name="toc 5"> <w:lsdexception locked="false" priority="39" name="toc 6"> <w:lsdexception locked="false" priority="39" name="toc 7"> <w:lsdexception locked="false" priority="39" name="toc 8"> <w:lsdexception locked="false" priority="39" name="toc 9"> <w:lsdexception locked="false" priority="35" qformat="true" name="caption"> <w:lsdexception locked="false" priority="10" semihidden="false" unhidewhenused="false" qformat="true" name="Title"> <w:lsdexception locked="false" priority="1" name="Default Paragraph Font"> <w:lsdexception locked="false" priority="11" semihidden="false" unhidewhenused="false" qformat="true" name="Subtitle"> <w:lsdexception locked="false" priority="22" semihidden="false" unhidewhenused="false" qformat="true" name="Strong"> <w:lsdexception locked="false" priority="20" semihidden="false" unhidewhenused="false" qformat="true" name="Emphasis"> <w:lsdexception locked="false" priority="59" semihidden="false" unhidewhenused="false" name="Table Grid"> <w:lsdexception locked="false" unhidewhenused="false" name="Placeholder Text"> <w:lsdexception locked="false" priority="1" semihidden="false" unhidewhenused="false" qformat="true" name="No Spacing"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 1"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 1"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 1"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 1"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 1"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 1"> <w:lsdexception locked="false" unhidewhenused="false" name="Revision"> <w:lsdexception locked="false" priority="34" semihidden="false" unhidewhenused="false" qformat="true" name="List Paragraph"> <w:lsdexception locked="false" priority="29" semihidden="false" unhidewhenused="false" qformat="true" name="Quote"> <w:lsdexception locked="false" priority="30" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Quote"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 1"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 1"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 1"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 1"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 1"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 1"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 1"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 1"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 2"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 2"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 2"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 2"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 2"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 2"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 2"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 2"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 2"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 2"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 2"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 2"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 2"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 2"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 3"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 3"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 3"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 3"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 3"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 3"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 3"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 3"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 3"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 3"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 3"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 3"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 3"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 3"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 4"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 4"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 4"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 4"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 4"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 4"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 4"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 4"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 4"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 4"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 4"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 4"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 4"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 4"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 5"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 5"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 5"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 5"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 5"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 5"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 5"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 5"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 5"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 5"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 5"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 5"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 5"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 5"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 6"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 6"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 6"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 6"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 6"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 6"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 6"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 6"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 6"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 6"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 6"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 6"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 6"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 6"> <w:lsdexception locked="false" priority="19" semihidden="false" unhidewhenused="false" qformat="true" name="Subtle Emphasis"> <w:lsdexception locked="false" priority="21" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Emphasis"> <w:lsdexception locked="false" priority="31" semihidden="false" unhidewhenused="false" qformat="true" name="Subtle Reference"> <w:lsdexception locked="false" priority="32" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Reference"> <w:lsdexception locked="false" priority="33" semihidden="false" unhidewhenused="false" qformat="true" name="Book Title"> <w:lsdexception locked="false" priority="37" name="Bibliography"> <w:lsdexception locked="false" priority="39" qformat="true" name="TOC Heading"> </w:LatentStyles> </xml><![endif]--><!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin-top:0in; mso-para-margin-right:0in; mso-para-margin-bottom:10.0pt; mso-para-margin-left:0in; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:"Times New Roman"; mso-fareast-theme-font:minor-fareast; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin;} </style> <![endif]--><!--[if gte mso 9]><xml> <w:worddocument> <w:view>Normal</w:View> <w:zoom>0</w:Zoom> <w:trackmoves/> <w:trackformatting/> <w:punctuationkerning/> <w:validateagainstschemas/> <w:saveifxmlinvalid>false</w:SaveIfXMLInvalid> <w:ignoremixedcontent>false</w:IgnoreMixedContent> <w:alwaysshowplaceholdertext>false</w:AlwaysShowPlaceholderText> <w:donotpromoteqf/> <w:lidthemeother>EN-US</w:LidThemeOther> <w:lidthemeasian>X-NONE</w:LidThemeAsian> <w:lidthemecomplexscript>X-NONE</w:LidThemeComplexScript> <w:compatibility> <w:breakwrappedtables/> <w:snaptogridincell/> <w:wraptextwithpunct/> <w:useasianbreakrules/> <w:dontgrowautofit/> <w:splitpgbreakandparamark/> <w:dontvertaligncellwithsp/> <w:dontbreakconstrainedforcedtables/> <w:dontvertalignintxbx/> <w:word11kerningpairs/> <w:cachedcolbalance/> </w:Compatibility> <w:browserlevel>MicrosoftInternetExplorer4</w:BrowserLevel> <m:mathpr> <m:mathfont val="Cambria Math"> <m:brkbin val="before"> <m:brkbinsub val="--"> <m:smallfrac val="off"> <m:dispdef/> <m:lmargin val="0"> <m:rmargin val="0"> <m:defjc val="centerGroup"> <m:wrapindent val="1440"> <m:intlim val="subSup"> <m:narylim val="undOvr"> </m:mathPr></w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:latentstyles deflockedstate="false" defunhidewhenused="true" defsemihidden="true" defqformat="false" defpriority="99" latentstylecount="267"> <w:lsdexception locked="false" priority="0" semihidden="false" unhidewhenused="false" qformat="true" name="Normal"> <w:lsdexception locked="false" priority="9" semihidden="false" unhidewhenused="false" qformat="true" name="heading 1"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 2"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 3"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 4"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 5"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 6"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 7"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 8"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 9"> <w:lsdexception locked="false" priority="39" name="toc 1"> <w:lsdexception locked="false" priority="39" name="toc 2"> <w:lsdexception locked="false" priority="39" name="toc 3"> <w:lsdexception locked="false" priority="39" name="toc 4"> <w:lsdexception locked="false" priority="39" name="toc 5"> <w:lsdexception locked="false" priority="39" name="toc 6"> <w:lsdexception locked="false" priority="39" name="toc 7"> <w:lsdexception locked="false" priority="39" name="toc 8"> <w:lsdexception locked="false" priority="39" name="toc 9"> <w:lsdexception locked="false" priority="35" qformat="true" name="caption"> <w:lsdexception locked="false" priority="10" semihidden="false" unhidewhenused="false" qformat="true" name="Title"> <w:lsdexception locked="false" priority="1" name="Default Paragraph Font"> <w:lsdexception locked="false" priority="11" semihidden="false" unhidewhenused="false" qformat="true" name="Subtitle"> <w:lsdexception locked="false" priority="22" semihidden="false" unhidewhenused="false" qformat="true" name="Strong"> <w:lsdexception locked="false" priority="20" semihidden="false" unhidewhenused="false" qformat="true" name="Emphasis"> <w:lsdexception locked="false" priority="59" semihidden="false" unhidewhenused="false" name="Table Grid"> <w:lsdexception locked="false" unhidewhenused="false" name="Placeholder Text"> <w:lsdexception locked="false" priority="1" semihidden="false" unhidewhenused="false" qformat="true" name="No Spacing"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 1"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 1"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 1"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 1"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 1"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 1"> <w:lsdexception locked="false" unhidewhenused="false" name="Revision"> <w:lsdexception locked="false" priority="34" semihidden="false" unhidewhenused="false" qformat="true" name="List Paragraph"> <w:lsdexception locked="false" priority="29" semihidden="false" unhidewhenused="false" qformat="true" name="Quote"> <w:lsdexception locked="false" priority="30" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Quote"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 1"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 1"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 1"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 1"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 1"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 1"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 1"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 1"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 2"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 2"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 2"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 2"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 2"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 2"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 2"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 2"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 2"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 2"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 2"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 2"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 2"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 2"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 3"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 3"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 3"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 3"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 3"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 3"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 3"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 3"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 3"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 3"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 3"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 3"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 3"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 3"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 4"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 4"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 4"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 4"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 4"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 4"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 4"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 4"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 4"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 4"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 4"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 4"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 4"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 4"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 5"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 5"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 5"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 5"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 5"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 5"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 5"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 5"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 5"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 5"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 5"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 5"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 5"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 5"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 6"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 6"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 6"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 6"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 6"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 6"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 6"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 6"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 6"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 6"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 6"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 6"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 6"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 6"> <w:lsdexception locked="false" priority="19" semihidden="false" unhidewhenused="false" qformat="true" name="Subtle Emphasis"> <w:lsdexception locked="false" priority="21" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Emphasis"> <w:lsdexception locked="false" priority="31" semihidden="false" unhidewhenused="false" qformat="true" name="Subtle Reference"> <w:lsdexception locked="false" priority="32" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Reference"> <w:lsdexception locked="false" priority="33" semihidden="false" unhidewhenused="false" qformat="true" name="Book Title"> <w:lsdexception locked="false" priority="37" name="Bibliography"> <w:lsdexception locked="false" priority="39" qformat="true" name="TOC Heading"> </w:LatentStyles> </xml><![endif]--><!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin-top:0in; mso-para-margin-right:0in; mso-para-margin-bottom:10.0pt; mso-para-margin-left:0in; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:"Times New Roman"; mso-fareast-theme-font:minor-fareast; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin;} </style> <![endif]--><div style="text-align: left;"><span style="font-family:courier new;"></span><Host name="localhost" appBase="webapps"
<br /> unpackWARs="true" autoDeploy="true"
<br /> xmlValidation="false" xmlNamespaceAware="false">
<br />
<br /><Context path="" docBase="USERAPP" debug="0" reloadable="true" crossContext="true">
<br /> <Resource
<br /> type="javax.sql.DataSource"
<br /> auth="Container"
<br /> name="jdbc/MyDB"
<br /> factory="org.apache.commons.dbcp.BasicDataSourceFactory"
<br /> maxActive="20"
<br /> maxIdle="5"
<br /> maxWait="1000"
<br /> username="db_username"
<br /> password="db_password"
<br /> driverClassName="com.mysql.jdbc.Driver"
<br /> url="jdbc:mysql://127.0.0.1:3306/db-name?autoReconnect=true"
<br /> removeAbandoned="true"
<br /> removeAbandonedTimeout="60"
<br /> logAbandoned="true"
<br /> />
<br /></Context>
<br /><Context path="USERAPP" docBase="USERAPP" debug="0" reloadable="true" crossContext="true">
<br /> <Resource
<br /> type="javax.sql.DataSource"
<br /> auth="Container"
<br /> name="jdbc/MyDB"
<br /> factory="org.apache.commons.dbcp.BasicDataSourceFactory"
<br /> maxActive="20"
<br /> maxIdle="5"
<br /> maxWait="1000"
<br /> username="db_username"
<br /> password="db_password"
<br /> driverClassName="com.mysql.jdbc.Driver"
<br /> url="jdbc:mysql://127.0.0.1:3306/db-name?autoReconnect=true"
<br /> removeAbandoned="true"
<br /> removeAbandonedTimeout="60"
<br /> logAbandoned="true"
<br /> />
<br /></Context>
<br />
<br /><Context path="ADMINAPP" docBase="ADMINAPP" debug="0" reloadable="true" crossContext="true">
<br /> <Resource
<br /> type="javax.sql.DataSource"
<br /> auth="Container"
<br /> name="jdbc/TestDB"
<br /> factory="org.apache.commons.dbcp.BasicDataSourceFactory"
<br /> maxActive="20"
<br /> maxIdle="5"
<br /> maxWait="1000"
<br /> username="db_username"
<br /> password="db_password"
<br /> driverClassName="com.mysql.jdbc.Driver"
<br /> url="jdbc:mysql://127.0.0.1:3306/db-name?autoReconnect=true"
<br /> removeAbandoned="true"
<br /> removeAbandonedTimeout="60"
<br /> logAbandoned="true"
<br /> />
<br /></Context>
<br /></div>
<br /><p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><b style=""><span style=" Courier New";font-family:";font-size:9pt;" ></span></b></p> <p class="NoSpacing"><span style="font-size:9pt;">Do the same for remaining two instances</span></p> <!--[if gte mso 9]><xml> <w:worddocument> <w:view>Normal</w:View> <w:zoom>0</w:Zoom> <w:punctuationkerning/> <w:validateagainstschemas/> <w:saveifxmlinvalid>false</w:SaveIfXMLInvalid> <w:ignoremixedcontent>false</w:IgnoreMixedContent> <w:alwaysshowplaceholdertext>false</w:AlwaysShowPlaceholderText> <w:compatibility> <w:breakwrappedtables/> <w:snaptogridincell/> <w:wraptextwithpunct/> <w:useasianbreakrules/> <w:dontgrowautofit/> </w:Compatibility> <w:browserlevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:latentstyles deflockedstate="false" latentstylecount="156"> </w:LatentStyles> </xml><![endif]--><!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;} </style> <![endif]--> <p class="NoSpacing"><span style="font-size:9pt;">5. Enable Session replication and Clustering</span></p> <!--[if gte mso 9]><xml> <w:worddocument> <w:view>Normal</w:View> <w:zoom>0</w:Zoom> <w:punctuationkerning/> <w:validateagainstschemas/> <w:saveifxmlinvalid>false</w:SaveIfXMLInvalid> <w:ignoremixedcontent>false</w:IgnoreMixedContent> <w:alwaysshowplaceholdertext>false</w:AlwaysShowPlaceholderText> <w:compatibility> <w:breakwrappedtables/> <w:snaptogridincell/> <w:wraptextwithpunct/> <w:useasianbreakrules/> <w:dontgrowautofit/> </w:Compatibility> <w:browserlevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:latentstyles deflockedstate="false" latentstylecount="156"> </w:LatentStyles> </xml><![endif]--><!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;} </style> <![endif]--> <p class="NoSpacing"><b style=""><i style=""><span style="font-size:9pt;">vi /app1/conf/server.xml</span></i></b></p> <p class="NoSpacing"><span style="font-size:9pt;"> </span></p> <p class="NoSpacing"><span style="font-size:9pt;">Uncomment Cluster tag</span></p> <p class="NoSpacing"><span style="font-size:9pt;"> </span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><b style=""><span style=" Courier New"; background: none repeat scroll 0% 0% yellow;font-family:";font-size:10pt;" ><cluster< span=""></cluster<></span></b><span style=";font-family:";font-size:10pt;" > </span><!--[if gte mso 9]><xml> <w:worddocument> <w:view>Normal</w:View> <w:zoom>0</w:Zoom> <w:punctuationkerning/> <w:validateagainstschemas/> <w:saveifxmlinvalid>false</w:SaveIfXMLInvalid> <w:ignoremixedcontent>false</w:IgnoreMixedContent> <w:alwaysshowplaceholdertext>false</w:AlwaysShowPlaceholderText> <w:compatibility> <w:breakwrappedtables/> <w:snaptogridincell/> <w:wraptextwithpunct/> <w:useasianbreakrules/> <w:dontgrowautofit/> </w:Compatibility> <w:browserlevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:latentstyles deflockedstate="false" latentstylecount="156"> </w:LatentStyles> </xml><![endif]--><!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;} </style> <![endif]--><b style="font-family: courier new;"><span style="line-height:115%;font-family:"Courier New";mso-fareast-background:yellow;mso-highlight:yellow;mso-ansi-language:EN-US; mso-fareast-language:EN-US;mso-bidi-language:AR-SAfont-size:10.0pt;" ><Cluster</span></b><span style="line-height: 115%; font-family: courier new;font-family:Calibri;font-size:10.0pt;" > </span><span style="font-family: courier new;font-family:";font-size:10pt;" >className="org.apache.catalina.cluster.tcp.SimpleTcpCluster"</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal; font-family: courier new;"><span style=" Courier New";font-size:10pt;" ><span style=""> </span><span style=""> </span>managerClassName="org.apache.catalina.cluster.session.DeltaManager"</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal; font-family: courier new;"><span style=" Courier New";font-size:10pt;" ><span style=""> </span>expireSessionsOnShutdown="false"</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal; font-family: courier new;"><span style=";font-size:10pt;" ><span style=""> </span>useDirtyFlag="true"</span></p><p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal; font-family: courier new;"><!--[if gte mso 9]><xml> <w:worddocument> <w:view>Normal</w:View> <w:zoom>0</w:Zoom> <w:punctuationkerning/> <w:validateagainstschemas/> <w:saveifxmlinvalid>false</w:SaveIfXMLInvalid> <w:ignoremixedcontent>false</w:IgnoreMixedContent> <w:alwaysshowplaceholdertext>false</w:AlwaysShowPlaceholderText> <w:compatibility> <w:breakwrappedtables/> <w:snaptogridincell/> <w:wraptextwithpunct/> <w:useasianbreakrules/> <w:dontgrowautofit/> </w:Compatibility> <w:browserlevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:latentstyles deflockedstate="false" latentstylecount="156"> </w:LatentStyles> </xml><![endif]--><!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;} </style> <![endif]--> </p><span style="font-size: 10pt; font-family: courier new;"><span style="mso-spacerun:yes"> </span></span><span style="font-family: courier new;font-family:";font-size:10pt;" >notifyListenersOnReplication="true"></span><span style="font-family: courier new;"> </span><p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal; font-family: courier new;"><span style=" Courier New";font-size:10pt;" > </span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal; font-family: courier new;"><span style=";font-size:10pt;" ><span style=""> </span><b style=""><i style="">……….striped…….</i></b></span></p><p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal; font-family: courier new;"><span style="font-size: 10pt;"><span style="mso-spacerun:yes"> </span><ClusterListener className="org.apache.catalina.cluster.session.ClusterSessionListener"/></span></p><p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal; font-family: courier new;"><b style="mso-bidi-font-weight: normal"><span style="Courier New";background: yellow;mso-highlight:yellowfont-size:10.0pt;" ></Cluster></span></b></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" ><span style=""> </span><span style=""> </span></span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" ><span style=""> </span><clusterlistener classname="org.apache.catalina.cluster.session.ClusterSessionListener"></clusterlistener></span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><b style=""><span style=" Courier New"; background: none repeat scroll 0% 0% yellow;font-family:";font-size:10pt;" ></span></b><b style=""><span style=" Courier New";font-family:";font-size:10pt;" ></span></b></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><b style=""><span style=" Courier New";font-family:";font-size:10pt;" > </span></b></p> <p class="NoSpacing"><span style="font-size:9pt;">Do the same for remaining two instances</span></p> <p class="NoSpacing"><span style="font-size:9pt;"> </span></p> <p class="NoSpacing"><span style="font-size:9pt;">6.Change Multicast port for Cluster listener</span></p> <p class="NoSpacing"><span style="font-size:9pt;"> </span></p> <p class="NoSpacing"><span style="font-size:9pt;">Edit Receiver tag in Cluster and change<span style=""> </span></span><b style=""><i style=""><span style=" Courier New";font-family:";font-size:10pt;" >tcpListenPort</span></i></b><span style="font-size:9pt;"></span></p> <p class="NoSpacing"><span style="font-size:9pt;"> </span></p> <p class="NoSpacing"><b style=""><i style=""><span style="font-size:9pt;">vi /app1/conf/server.xml</span></i></b></p> <p class="NoSpacing"><span style="font-size:9pt;"> </span></p><span style="line-height:115%; font-family:"Courier New";mso-fareast-mso-ansi-language: EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SAfont-family:Calibri;font-size:10.0pt;" ><Receiver </span><span style=" Courier New";font-family:";font-size:10pt;" >className="org.apache.catalina.cluster.tcp.ReplicationListener"</span> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" ><span style=""> </span>tcpListenAddress="auto"</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" ><span style=""> </span><b style=""><span style="background: none repeat scroll 0% 0% yellow;">tcpListenPort="4001"</span></b></span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" ><span style=""> </span>tcpSelectorTimeout="100"</span></p> <p class="NoSpacing"><span style=" Courier New";font-family:";font-size:10pt;" ><span style=""> </span>tcpThreadCount="6"/></span><span style="font-size:9pt;"> </span></p> <p class="NoSpacing"><span style="font-size:9pt;"> </span></p> <p class="NoSpacing"><b style=""><i style=""><span style="font-size:9pt;">vi /app2/conf/server.xml</span></i></b></p> <p class="NoSpacing"><span style="font-size:9pt;"> </span></p><span style=" line-height: 115%; Courier New";font-family:";font-size:10pt;" ><Receiver</span><span style=" Courier New";font-family:";font-size:10pt;" >
<br />className="org.apache.catalina.cluster.tcp.ReplicationListener"</span> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" ><span style=""> </span>tcpListenAddress="auto"</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" ><span style=""> </span><b style=""><span style="background: none repeat scroll 0% 0% yellow;">tcpListenPort="4002"</span></b></span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" ><span style=""> </span>tcpSelectorTimeout="100"</span></p> <p class="NoSpacing"><span style=" Courier New";font-family:";font-size:10pt;" ><span style=""> </span>tcpThreadCount="6"/></span><span style="font-size:9pt;"> </span></p> <p class="NoSpacing"><b style=""><i style=""><span style="font-size:9pt;">vi /app3/conf/server.xml</span></i></b></p><span style="line-height:115%; font-family:"Courier New";mso-fareast-mso-ansi-language: EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SAfont-family:Calibri;font-size:10.0pt;" ><Receiver</span><span style=" Courier New";font-family:";font-size:10pt;" >
<br />className="org.apache.catalina.cluster.tcp.ReplicationListener"</span> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" ><span style=""> </span>tcpListenAddress="auto"</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" ><span style=""> </span><b style=""><span style="background: none repeat scroll 0% 0% yellow;">tcpListenPort="4003"</span></b></span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" ><span style=""> </span>tcpSelectorTimeout="100"</span></p> <p class="NoSpacing"><span style=" Courier New";font-family:";font-size:10pt;" ><span style=""> </span>tcpThreadCount="6"/></span><span style="font-size:9pt;"> </span></p> <!--[if gte mso 9]><xml> <w:worddocument> <w:view>Normal</w:View> <w:zoom>0</w:Zoom> <w:punctuationkerning/> <w:validateagainstschemas/> <w:saveifxmlinvalid>false</w:SaveIfXMLInvalid> <w:ignoremixedcontent>false</w:IgnoreMixedContent> <w:alwaysshowplaceholdertext>false</w:AlwaysShowPlaceholderText> <w:compatibility> <w:breakwrappedtables/> <w:snaptogridincell/> <w:wraptextwithpunct/> <w:useasianbreakrules/> <w:dontgrowautofit/> </w:Compatibility> <w:browserlevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:latentstyles deflockedstate="false" latentstylecount="156"> </w:LatentStyles> </xml><![endif]--><!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;} </style> <![endif]--> <p class="NoSpacing"><span style="font-size:9pt;">7. Change AJP 13 Protocol port for tomcat</span></p> <!--[if gte mso 9]><xml> <w:worddocument> <w:view>Normal</w:View> <w:zoom>0</w:Zoom> <w:punctuationkerning/> <w:validateagainstschemas/> <w:saveifxmlinvalid>false</w:SaveIfXMLInvalid> <w:ignoremixedcontent>false</w:IgnoreMixedContent> <w:alwaysshowplaceholdertext>false</w:AlwaysShowPlaceholderText> <w:compatibility> <w:breakwrappedtables/> <w:snaptogridincell/> <w:wraptextwithpunct/> <w:useasianbreakrules/> <w:dontgrowautofit/> </w:Compatibility> <w:browserlevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:latentstyles deflockedstate="false" latentstylecount="156"> </w:LatentStyles> </xml><![endif]--><!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;} </style> <![endif]--> <p class="NoSpacing"><b style=""><i style=""><span style="font-size:9pt;">vi /app1/conf/server.xml</span></i></b></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" > </span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" ><span style=""> </span><!-- Define an AJP 1.3 Connector on port 8009 --></span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=";font-family:";font-size:10pt;" ><span style=""> </span><connector port="<b" style=""><span style="background: none repeat scroll 0% 0% yellow;">
<br /></span></connector></span></p><p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><!--[if gte mso 9]><xml> <w:worddocument> <w:view>Normal</w:View> <w:zoom>0</w:Zoom> <w:punctuationkerning/> <w:validateagainstschemas/> <w:saveifxmlinvalid>false</w:SaveIfXMLInvalid> <w:ignoremixedcontent>false</w:IgnoreMixedContent> <w:alwaysshowplaceholdertext>false</w:AlwaysShowPlaceholderText> <w:compatibility> <w:breakwrappedtables/> <w:snaptogridincell/> <w:wraptextwithpunct/> <w:useasianbreakrules/> <w:dontgrowautofit/> </w:Compatibility> <w:browserlevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:latentstyles deflockedstate="false" latentstylecount="156"> </w:LatentStyles> </xml><![endif]--><!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;} </style> <![endif]--> </p><p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height: normal;mso-layout-grid-align:none;text-autospace:none"><span style="Courier New"font-family:";font-size:10.0pt;" ><!-- Define an AJP 1.3 Connector on port 8009 --></span></p> <span style=" line-height: 115%; Courier New";font-family:";font-size:10pt;" ><span style="mso-spacerun:yes"> </span><Connector </span><!--[if gte mso 9]><xml> <w:worddocument> <w:view>Normal</w:View> <w:zoom>0</w:Zoom> <w:punctuationkerning/> <w:validateagainstschemas/> <w:saveifxmlinvalid>false</w:SaveIfXMLInvalid> <w:ignoremixedcontent>false</w:IgnoreMixedContent> <w:alwaysshowplaceholdertext>false</w:AlwaysShowPlaceholderText> <w:compatibility> <w:breakwrappedtables/> <w:snaptogridincell/> <w:wraptextwithpunct/> <w:useasianbreakrules/> <w:dontgrowautofit/> </w:Compatibility> <w:browserlevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:latentstyles deflockedstate="false" latentstylecount="156"> </w:LatentStyles> </xml><![endif]--><!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;} </style> <![endif]--><span style="line-height:115%; font-family:"Courier New";mso-fareast-mso-ansi-language: EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SAfont-family:Calibri;font-size:10.0pt;" >port=</span><span style=" Courier New";font-family:";font-size:10pt;" ><connector port="<b" style=""><span style="background: none repeat scroll 0% 0% yellow;">"8009"</span> </connector></span> <p class="NoSpacing"><span style=" Courier New";font-family:";font-size:10pt;" ><span style=""> </span>enableLookups="false" redirectPort="8443" protocol="AJP/1.3" /></span></p> <p class="NoSpacing"><b style=""><i style=""><span style="font-size:9pt;"> </span></i></b></p> <p class="NoSpacing"><b style=""><i style=""><span style="font-size:9pt;"> </span></i></b></p> <p class="NoSpacing"><b style=""><i style=""><span style="font-size:9pt;">vi /app2/conf/server.xml</span></i></b></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" > </span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" ><span style=""> </span><!-- Define an AJP 1.3 Connector on port 8009 --></span></p> <p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height: normal;mso-layout-grid-align:none;text-autospace:none"><span style="Courier New"font-family:";font-size:10.0pt;" ><!-- Define an AJP 1.3 Connector on port 8009 --></span></p> <span style=" line-height: 115%; Courier New";font-family:";font-size:10pt;" ><span style="mso-spacerun:yes"> </span><</span><span style=" line-height: 115%; Courier New";font-family:";font-size:10pt;" >Connector </span><!--[if gte mso 9]><xml> <w:worddocument> <w:view>Normal</w:View> <w:zoom>0</w:Zoom> <w:punctuationkerning/> <w:validateagainstschemas/> <w:saveifxmlinvalid>false</w:SaveIfXMLInvalid> <w:ignoremixedcontent>false</w:IgnoreMixedContent> <w:alwaysshowplaceholdertext>false</w:AlwaysShowPlaceholderText> <w:compatibility> <w:breakwrappedtables/> <w:snaptogridincell/> <w:wraptextwithpunct/> <w:useasianbreakrules/> <w:dontgrowautofit/> </w:Compatibility> <w:browserlevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:latentstyles deflockedstate="false" latentstylecount="156"> </w:LatentStyles> </xml><![endif]--><!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;} </style> <![endif]--><span style="line-height:115%; font-family:"Courier New";mso-fareast-mso-ansi-language: EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SAfont-family:Calibri;font-size:10.0pt;" >port=</span><span style=" Courier New";font-family:";font-size:10pt;" ><connector port="<b" style=""><span style="background: none repeat scroll 0% 0% yellow;">"8109"</span> </connector></span> <p class="NoSpacing"><span style=" Courier New";font-family:";font-size:10pt;" ><span style=""> </span>enableLookups="false" redirectPort="8443" protocol="AJP/1.3" /></span></p> <p class="NoSpacing"><span style=" Courier New";font-family:";font-size:10pt;" > </span></p> <p class="NoSpacing"><b style=""><i style=""><span style="font-size:9pt;">vi /app3/conf/server.xml</span></i></b></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" > </span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" ><span style=""> </span><!-- Define an AJP 1.3 Connector on port 8009 --></span></p> <p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height: normal;mso-layout-grid-align:none;text-autospace:none"><span style="Courier New"font-family:";font-size:10.0pt;" ><!-- Define an AJP 1.3 Connector on port 8009 --></span></p> <span style=" line-height: 115%; Courier New";font-family:";font-size:10pt;" ><span style="mso-spacerun:yes"> </span><Connector </span><!--[if gte mso 9]><xml> <w:worddocument> <w:view>Normal</w:View> <w:zoom>0</w:Zoom> <w:punctuationkerning/> <w:validateagainstschemas/> <w:saveifxmlinvalid>false</w:SaveIfXMLInvalid> <w:ignoremixedcontent>false</w:IgnoreMixedContent> <w:alwaysshowplaceholdertext>false</w:AlwaysShowPlaceholderText> <w:compatibility> <w:breakwrappedtables/> <w:snaptogridincell/> <w:wraptextwithpunct/> <w:useasianbreakrules/> <w:dontgrowautofit/> </w:Compatibility> <w:browserlevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:latentstyles deflockedstate="false" latentstylecount="156"> </w:LatentStyles> </xml><![endif]--><!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;} </style> <![endif]--><span style="line-height:115%; font-family:"Courier New";mso-fareast-mso-ansi-language: EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SAfont-family:Calibri;font-size:10.0pt;" >port=</span><span style=" Courier New";font-family:";font-size:10pt;" ><connector port="<b" style=""><span style="background: none repeat scroll 0% 0% yellow;">"8209"</span> </connector></span> <p class="NoSpacing"><span style=" Courier New";font-family:";font-size:10pt;" ><span style=""> </span>enableLookups="false" redirectPort="8443" protocol="AJP/1.3" /></span></p> <p class="NoSpacing"><span style=" Courier New";font-family:";font-size:10pt;" > </span></p> <p class="NoSpacing"><span style="font-size:9pt;">7. Add cluster parameter to Application’s web.xml</span></p> <p class="NoSpacing"><span style="font-size:9pt;"> </span><b style=""><i style=""><span style="font-size:9pt;"><span style=""> </span>/app1/webapps/USERAPP/WEB-INF/web.xml </span></i></b></p> <p class="NoSpacing"><b style=""><i style=""><span style="font-size:9pt;"><span style=""> </span>/app2/webapps/USERAPP/WEB-INF/web.xml </span></i></b></p> <p class="NoSpacing"><b style=""><i style=""><span style="font-size:9pt;"><span style=""> </span>/app3/webapps/USERAPP/WEB-INF/web.xml </span></i></b></p> <p class="NoSpacing"><b style=""><i style=""><span style="font-size:9pt;"><span style=""> </span>/app1/webapps/ADMINAPP/WEB-INF/web.xml </span></i></b></p> <p class="NoSpacing"><b style=""><i style=""><span style="font-size:9pt;"><span style=""> </span>/app2/webapps/ADMINAPP/WEB-INF/web.xml </span></i></b></p> <p class="NoSpacing"><b style=""><i style=""><span style="font-size:9pt;"><span style=""> </span>/app3/webapps/ADMINAPP/WEB-INF/web.xml </span></i></b></p> <p class="NoSpacing"><span style="font-size:9pt;">add at the end of the file.</span></p> <p class="NoSpacing"><span style=" Courier New";font-family:";font-size:9pt;" ><distributable></distributable></span></p><p class="NoSpacing"><!--[if gte mso 9]><xml> <w:worddocument> <w:view>Normal</w:View> <w:zoom>0</w:Zoom> <w:punctuationkerning/> <w:validateagainstschemas/> <w:saveifxmlinvalid>false</w:SaveIfXMLInvalid> <w:ignoremixedcontent>false</w:IgnoreMixedContent> <w:alwaysshowplaceholdertext>false</w:AlwaysShowPlaceholderText> <w:compatibility> <w:breakwrappedtables/> <w:snaptogridincell/> <w:wraptextwithpunct/> <w:useasianbreakrules/> <w:dontgrowautofit/> </w:Compatibility> <w:browserlevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:latentstyles deflockedstate="false" latentstylecount="156"> </w:LatentStyles> </xml><![endif]--><!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;} </style> <![endif]--> </p><p style="color: rgb(51, 102, 255); font-weight: bold;" class="NoSpacing"><span style="font-size:180%;"><span style="font-size:100%;">Install mysql jdbc driver</span> </span></p> <p class="NoSpacing"><span style="font-size:9pt;"> </span></p> <p class="NoSpacing"><b style=""><i style=""><span style="font-size:9pt;">cp<span style=""> </span>/app1/common/lib/mysql-connector-java-3.0.11-stable-bin.jar /usr/local/java/jre/lib/ext/</span></i></b></p> <p class="NoSpacing"><b style=""><i style=""><span style="font-size:9pt;"> </span></i></b></p> <p class="NoSpacing"><b style=""><i style=""><span style="font-size:9pt;"> </span></i></b></p> <p class="NoSpacing"><b style=""><i style=""><span style="font-size:9pt;">Create a worker file for tomcat instances</span></i></b></p> <p class="NoSpacing"><b style=""><i style=""><span style="font-size:9pt;">vi workers.properties</span></i></b></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" >workers.tomcat_home=/app1</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" >workers.java_home=/usr/local/java</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" >ps=/</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" >worker.list=loadbalancer,jkstatus</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" > </span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" >worker.app1.port=8009</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" >worker.app1.host=127.0.0.1</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" >worker.app1.type=ajp13</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" >worker.app1.lbfactor=1</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" >worker.app1.socket_timeout=1800</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" >worker.app1.socket_keepalive=1</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" > </span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" >worker.app2.port=8109</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" >worker.app2.host=127.0.0.1</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" >worker.app2.type=ajp13</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" >worker.app2.lbfactor=1</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" >worker.app2.socket_timeout=1800</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" >worker.app2.socket_keepalive=1</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" >worker.app3.port=8209</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" >worker.app3.host=127.0.0.1</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" >worker.app3.type=ajp13</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" >worker.app3.lbfactor=1</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" >worker.app3.socket_timeout=1800</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" >worker.app3.socket_keepalive=1</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" >worker.loadbalancer.type=lb</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" >worker.loadbalancer.balance_workers=app1,app2,app3</span></p> <p class="NoSpacing"><span style=" Courier New";font-family:";font-size:10pt;" >worker.jkstatus.type=status</span></p> <p class="NoSpacing"><span style="font-size:9pt;">Copy the worker file to /etc/httpd/conf.d/</span></p> <p class="NoSpacing"><b style=""><i style=""><span style="font-size:9pt;">cp workers.properties /etc/httpd/conf.d/</span></i></b></p> <p class="NoSpacing"><span style="font-size:9pt;">Configure Apache</span></p> <p class="NoSpacing"><b style=""><i style=""><span style="font-size:9pt;">vi /etc/httpd/conf/httpd.conf</span></i></b></p> <p class="NoSpacing"><span style="font-size:9pt;">In Main Server configuration add these lines</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" >LoadModule jk_module modules/mod_jk.so</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" >JkWorkersFile "/etc/httpd/conf.d/workers.properties"</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" >JkLogFile "/etc/httpd/logs/mod_jk.log"</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" >JkLogStampFormat<span style=""> </span>"[%a %b %d %H:%M:%S %Y]"</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" >JkRequestLogFormat "%w %V %T"</span></p><p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" >JkLogLevel info</span></p><p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" >
<br /></span></p><span style=" Courier New";font-family:";font-size:10pt;" >JkShmFile logs/jk.shm</span>
<br />
<br /><!--[if gte mso 9]><xml> <w:worddocument> <w:view>Normal</w:View> <w:zoom>0</w:Zoom> <w:punctuationkerning/> <w:validateagainstschemas/> <w:saveifxmlinvalid>false</w:SaveIfXMLInvalid> <w:ignoremixedcontent>false</w:IgnoreMixedContent> <w:alwaysshowplaceholdertext>false</w:AlwaysShowPlaceholderText> <w:compatibility> <w:breakwrappedtables/> <w:snaptogridincell/> <w:wraptextwithpunct/> <w:useasianbreakrules/> <w:dontgrowautofit/> </w:Compatibility> <w:browserlevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:latentstyles deflockedstate="false" latentstylecount="156"> </w:LatentStyles> </xml><![endif]--><!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;} </style> <![endif]--> <p class="NoSpacing"><span style="font-size:9pt;">Create a virtual Host listening on all interfaces in 80 port</span></p> <p class="NoSpacing"><span style="font-size:9pt;"> </span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" ><virtualhost></virtualhost></span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" ><span style=""> </span>ServerAdmin root@lms.icaps.com</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" ><span style=""> </span>#DocumentRoot /var/www/html</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" ><span style=""> </span>ServerName lms.icaps.com</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" ><span style=""> </span>ErrorLog logs/lms.icaps.com-error_log</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" ><span style=""> </span>CustomLog logs/lms.icaps.com-access_log common</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" ><span style=""> </span><location></location></span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" ><span style=""> </span><span style=""> </span>JkMount jkstatus</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" ><span style=""> </span><span style=""> </span>Order deny,allow</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" ><span style=""> </span><span style=""> </span>Deny from all</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" ><span style=""> </span><span style=""> </span>Allow from 127.0.0.1</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" ><span style=""> </span></span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" > </span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" ><span style=""> </span><location></location></span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" ><span style=""> </span>Order deny,allow</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" ><span style=""> </span><span style=""> </span>Deny from all<span style=""> </span></span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" ><span style=""> </span></span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" > </span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" ><span style=""> </span><location></location></span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" ><span style=""> </span>Order deny,allow</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" ><span style=""> </span><span style=""> </span>Deny from all<span style=""> </span></span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" ><span style=""> </span></span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" ><span style=""> </span><location></location></span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" ><span style=""> </span>Order deny,allow</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" ><span style=""> </span><span style=""> </span>Deny from all<span style=""> </span></span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" ><span style=""> </span></span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" ><span style=""> </span><location></location></span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" ><span style=""> </span>Order deny,allow</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" ><span style=""> </span><span style=""> </span>Deny from all<span style=""> </span></span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" ><span style=""> </span></span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" ><span style=""> </span><location></location></span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" ><span style=""> </span>Order deny,allow</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" ><span style=""> </span><span style=""> </span>Deny from all<span style=""> </span></span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" ><span style=""> </span></span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" ><span style=""> </span><location></location></span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" ><span style=""> </span>Order deny,allow</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" ><span style=""> </span><span style=""> </span>Deny from all<span style=""> </span></span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" ><span style=""> </span></span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" > </span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" ><span style=""> </span>JkMount / loadbalancer</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" ><span style=""> </span>JkMount /* loadbalancer</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" ><span style=""> </span>JkMount /ICMSUSER loadbalancer</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" ><span style=""> </span>JkMount /USERAPP/* loadbalancer</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" ><span style=""> </span>JkMount /ADMINAPP loadbalancer</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" ><span style=""> </span>JkMount /ADMINAPP/* loadbalancer</span></p> <p class="NoSpacing"><span style=" Courier New";font-family:";font-size:10pt;" > </span><span style="font-size:9pt;"></span></p> <!--[if gte mso 9]><xml> <w:worddocument> <w:view>Normal</w:View> <w:zoom>0</w:Zoom> <w:punctuationkerning/> <w:validateagainstschemas/> <w:saveifxmlinvalid>false</w:SaveIfXMLInvalid> <w:ignoremixedcontent>false</w:IgnoreMixedContent> <w:alwaysshowplaceholdertext>false</w:AlwaysShowPlaceholderText> <w:compatibility> <w:breakwrappedtables/> <w:snaptogridincell/> <w:wraptextwithpunct/> <w:useasianbreakrules/> <w:dontgrowautofit/> </w:Compatibility> <w:browserlevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:latentstyles deflockedstate="false" latentstylecount="156"> </w:LatentStyles> </xml><![endif]--><!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;} </style> <![endif]--> <p class="NoSpacing"><span style="font-size:9pt;">Create a Script for starting Application Cluster with name “tomcat”</span></p> <p class="NoSpacing"><span style="font-size:9pt;"> </span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" >#!/bin/sh</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" ><span style=""> </span></span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" >############################################</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" ># Startup script for Tomcat Servlet Engine #</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" ># Author <span style=""> </span>: Ansil Hameed<span style=""> </span>#</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" ># Last Modified : 28/10/2010<span style=""> </span><span style=""> </span>#</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" >############################################</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" > </span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" > </span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" ># User under which tomcat will run</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" >TOMCAT_USER=tomcat</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" >APP1_DIR="/app1"</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" >APP2_DIR="/app2"</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" >APP3_DIR="/app3"</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" >RETVAL=0</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" >. /etc/init.d/functions</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" ># start, debug, stop, status and flush-log<span style=""> </span>functions</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" >flush(){</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" >LOG_DATE=`date +%d-%m-%y`</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" > </span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" >cp /applog/app1/catalina.out /applog/app1/catalina.out-${LOG_DATE} 2>>/applog/tomcat-flush.log</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" >if [ $? -ne 0 ]</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" >then</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" >echo "Log flush for App1 failed .Check Log file for details"</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" >fi</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" >>/applog/app1/catalina.out</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" > </span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" >cp /applog/app2/catalina.out /applog/app2/catalina.out-${LOG_DATE} 2>>/applog/tomcat-flush.log</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" >if [ $? -ne 0 ]</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" >then</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" >echo "Log flush for App1 failed .Check Log file for details"</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" >fi</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" >>/applog/app2/catalina.out</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" > </span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" >cp /applog/app3/catalina.out /applog/app3/catalina.out-${LOG_DATE} 2>>/applog/tomcat-flush.log</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" >if [ $? -ne 0 ]</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" >then</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" >echo "Log flush for App1 failed .Check Log file for details"</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" >fi</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" >>/applog/app3/catalina.out</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" >}</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" > </span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" >start() {</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" > </span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" ><span style=""> </span>SHUTDOWN_PORT=`netstat -vatn|grep LISTEN|grep 8005|wc -l`</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" ><span style=""> </span>if [ $SHUTDOWN_PORT -ne 0 ]; then</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" ><span style=""> </span>echo -e "\033[31mAPP1 already started\033[0m"</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" ><span style=""> </span>else</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" ><span style=""> </span>echo -e "\033[31m....... \033[32mStarting APPLICATON CLUSTER\033[31m ......\033[0m"</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" ><span style=""> </span>echo -e "\033[32mStarting APP1...\033[0m"</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" ><span style=""> </span>echo ""</span></p> <p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style=" Courier New";font-family:";font-size:10pt;" ><span style=""> </span>chown -R $TOMCAT_USER:$TOMCAT_USER ${APP1_DIR}/*</span></p>
<br />
<br /><!--[if gte mso 9]><xml> <w:worddocument> <w:view>Normal</w:View> <w:zoom>0</w:Zoom> <w:punctuationkerning/> <w:validateagainstschemas/> <w:saveifxmlinvalid>false</w:SaveIfXMLInvalid> <w:ignoremixedcontent>false</w:IgnoreMixedContent> <w:alwaysshowplaceholdertext>false</w:AlwaysShowPlaceholderText> <w:compatibility> <w:breakwrappedtables/> <w:snaptogridincell/> <w:wraptextwithpunct/> <w:useasianbreakrules/> <w:dontgrowautofit/> </w:Compatibility> <w:browserlevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:latentstyles deflockedstate="false" latentstylecount="156"> </w:LatentStyles> </xml><![endif]--><!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;} </style> <![endif]-->Ansilhttp://www.blogger.com/profile/07287558007793912931noreply@blogger.com1tag:blogger.com,1999:blog-5632235867526129400.post-39719783092731322142010-02-23T02:30:00.001-08:002010-03-09T00:31:46.939-08:00How to Configure Squid with Mysql DB authentication<span xmlns=""><p><br /></p><ol><li><strong>Download squid source from </strong><a href="http://www.squid-cache.org/Versions/v3/3.0/squid-3.0.STABLE24.tar.gz">http://www.squid-cache.org/Versions/v3/3.0/squid-3.0.STABLE24.tar.gz<strong></strong></a><strong><br /></strong></li><li><strong>Copy the downloaded file to /tmp<br /></strong></li><li><strong>Tar –zxvf squid-3.0.STABLE24.tar.gz<br /></strong></li><li><strong>Cd squid-3.0.STABLE24<br /></strong></li><li><strong>./configure --enable-basic-auth-helpers=DB</strong></li><li><span style="font-weight: bold;">make</span></li><li><span style="font-weight: bold;">make install<br /></span></li><li><strong>Download Current Mysql5.1 Source RPM from </strong><a href="http://dev.mysql.com/get/Downloads/MySQL-5.1/MySQL-5.1.44-1.glibc23.src.rpm/from/ftp:/mirror.anl.gov/pub/mysql/">http://dev.mysql.com/get/Downloads/MySQL-5.1/MySQL-5.1.44-1.glibc23.src.rpm/from/ftp://mirror.anl.gov/pub/mysql/<strong></strong></a><strong><br /></strong></li><li><strong>Copy </strong><span style=";font-family:Courier New;font-size:10pt;" >MySQL-5.1.44-1.glibc23.src.rpm /tmp</span><strong><br /></strong></li><li><strong>Rpm –ivh </strong><span style=";font-family:Courier New;font-size:10pt;" >MySQL-5.1.44-1.glibc23.src.rpm</span><strong><br /></strong></li><li><strong>Cd /usr/src/redhat/SPEC<br /></strong></li><li><strong>Rpmbuid –bb mysql-5.1.44.spec<br /></strong></li><li><strong>After compilation the RPM files will be in /usr/src/redhat/`uname –m`/RPMS<br /></strong></li><li><strong>Cd /usr/src/redhat/`uname –m`/RPMS<br /></strong></li><li><div><strong>Rpm –ivh MySQL-server-5.1.44-1.glibc23.ia64.rpm<br /></strong></div></li><li><div><strong>The service will start automatically after installation<br /></strong></div><p><strong>Here we are using Default Mysql database engine MyISAM (Non transactional Engine)<br /></strong></p><p><strong>In a large application Database we will use Engine INNODB (Transactional engine).It has many configurable options to get mysql to work efficiently with maximum performance. The default database directory will be /var/lib/mysql.<br /></strong></p><p><br /></p></li><li><strong>Rpm –ivh MySQL-client-5.1.44-1.glibc23.ia64.rpm<br /></strong></li><li><strong>The mysql service can be stop/start by running #service mysql stop/start<br /></strong></li><li><strong>Login to Mysql as root<br /></strong></li><li><strong>#mysql –u root<br /></strong></li><li><strong>You must have to set a password for mysql root user<br /></strong></li><li><strong>Mysql>set password=PASSWORD('your password');<br /></strong></li><li><strong>Mysql>/q<br /></strong></li><li><strong>Test your authentication<br /></strong></li><li><div><strong>#mysql -u root<br /></strong></div><p><strong>ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)<br /></strong></p></li><li><strong>#mysql –u root –p<br /></strong></li><li><strong>Enter your password, then you will get mysql prompt.<br /></strong></li><li><strong>The we have to create one Database and table for squid as follows</strong></li></ol><pre><code><strong>mysql></strong>create database squid;<br /></code></pre><pre><code><strong>mysql></strong>grant select on squid.* to squiduser@localhost identified by 'squid';<br /></code></pre><pre><code>mysql>use squid;<br /></code></pre><pre><code>mysql> CREATE TABLE `passwd` (<br /></code></pre><pre><code> `user` varchar(32) NOT NULL default '',<br /></code></pre><pre><code> `password` varchar(35) NOT NULL default '',<br /></code></pre><pre><code> `enabled` tinyint(1) NOT NULL default '1',<br /></code></pre><pre><code> `fullname` varchar(60) default NULL,<br /></code></pre><pre><code> `comment` varchar(60) default NULL,<br /></code></pre><pre><code> PRIMARY KEY (`user`)<br /></code></pre><pre><code> );<br /></code></pre><pre><code>mysql>; insert into passwd values('testuser','test',1,'Test User','for testing purpose');<br />mysql>\q<br /></code></pre><pre><code>#/usr/local/squid/libexec/squid_db_auth –-user squiduser -–password squid -–plaintext –-persist<br /></code></pre><pre><code>testuser test<br /></code></pre><pre><code>OK<br /></code></pre><ol><li><strong>Enter Test user name and password ,separated with space and press enter ,if it shown OK ,your authentication will work .If you got "ERR unknown login", you missed something<br /></strong></li><li><strong>Now your database is ready and we are going to configure squid<br /></strong></li><li><strong>Go to /usr/local/squid/etc/<br /></strong></li><li><strong>Cp squid.conf squid.conf.org<br /></strong></li><li><div><strong>Search for auth_param and add these lines<br /></strong></div><p><span style="font-family:Courier New;">auth_param basic program /usr/local/squid/libexec/squid_db_auth --user squiduser --password squid --plaintext --persist<br /></span></p><p><span style="font-family:Courier New;">auth_param basic children 5<br /></span></p><p><span style="font-family:Courier New;">auth_param basic realm Web-Proxy<br /></span></p><p><span style="font-family:Courier New;">auth_param basic credentialsttl 1 minute<br /></span></p><p><span style="font-family:Courier New;">auth_param basic casesensitive off<br /></span></p></li></ol><p><br /></p><ol><li><strong>Now you have to create an ACL and Rule to authenticate<br /></strong></li><li><strong>Here we will use two separate user ACL groups<br /></strong></li></ol><p><strong>A) Master users with all allowed sites as MSTUSR<br /></strong></p><p><strong>B) Normal users with minimum access NRMUSR<br /></strong></p><ol><li><div><strong>Two ACL for IP based authentication<br /></strong></div><p><strong>a) Allowed IPs as ALLOWIP<br /></strong></p><p><strong>b) Denied IPs DENYIP<br /></strong></p></li><li><div><strong>Two ACL for Allowed and Denied sites<br /></strong></div><p><strong>a)Allowed sites as ALLOWSITE<br /></strong></p><p><strong>b)Denied sites as BLOCKSITES<br /></strong></p></li><li><strong>The ACLs in squid.conf as follows<br /></strong></li></ol><p style="margin-left: 18pt;"><span style="font-family:Courier New;">acl localnet src 10.0.0.0/8 #Your<br /></span></p><p style="margin-left: 18pt;"><span style="font-family:Courier New;">acl localnet src 172.16.0.0/12 #Possible<br /></span></p><p style="margin-left: 18pt;"><span style="font-family:Courier New;">acl localnet src 192.168.0.0/16 #Internal Network<br /></span></p><p style="margin-left: 18pt;"><span style="font-family:Courier New;">acl ALLOWIP src "/usr/ansil/proxy/policy/allowip"<br /></span></p><p><span style="font-family:Courier New;"> acl DENYIP src "/usr/ansil/proxy/policy/denyip"<br /></span></p><p style="margin-left: 36pt;"><span style="font-family:Courier New;">acl ACLAUTH proxy_auth REQUIRED<br /></span></p><p style="margin-left: 36pt;"><span style="font-family:Courier New;">acl MSTUSR proxy_auth "/usr/ansil/proxy/policy/mstusr"<br /></span></p><p style="margin-left: 36pt;"><span style="font-family:Courier New;">acl ALLOWSITE url_regex "/usr/ansil/proxy/policy/allowsite"<br /></span></p><p style="margin-left: 36pt;"><span style="font-family:Courier New;">acl NRMUSR proxy_auth "/usr/ansil/proxy/policy/normaluser"<br /></span></p><p style="margin-left: 36pt;"><span style="font-family:Courier New;">acl BLOCKSITES url_regex -i "/usr/ansil/proxy/policy/blocksites"<br /></span></p><ol><li><strong>Now we have to assign rules for according to our ACLs<br /></strong></li></ol><p style="margin-left: 18pt;"><span style="font-family:Courier New;">http_access deny BLOCKSITES<br /></span></p><p style="margin-left: 18pt;"><span style="font-family:Courier New;">http_access allow ACLAUTH MSTUSR<br /></span></p><p style="margin-left: 18pt;"><span style="font-family:Courier New;">http_access allow ALLOWIP<br /></span></p><p style="margin-left: 18pt;"><span style="font-family:Courier New;">http_access deny DENYIP<br /></span></p><p style="margin-left: 18pt;"><span style="font-family:Courier New;">http_access allow ACLAUTH ALLOWSITE ICMSUSER<br /></span></p><ol><li><strong>Now save the configuration file.<br /></strong></li><li><strong>Restart squid service ,for that you need to create one script for squid<br /></strong></li><li><strong>Create a script as follows and put it on /etc/ini.d/ with name as squid<br /></strong></li><li>#chmod 755 /etc/init.d/squid</li><li>chkconfig --add squid<br /></li></ol><p><br /></p><p><span style=";font-family:Courier New;font-size:85%;" >#!/bin/bash<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" >PATH=/usr/bin:/sbin:/bin:/usr/sbin<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" >export PATH<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" >. /etc/rc.d/init.d/functions<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" >. /etc/sysconfig/network</span></p><p><span style=";font-family:Courier New;font-size:85%;" >if [ -f /etc/sysconfig/squid ]; then<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" > . /etc/sysconfig/squid<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" >fi<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" >SQUID_OPTS=${SQUID_OPTS:-"-D"}<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" >SQUID_PIDFILE_TIMEOUT=${SQUID_PIDFILE_TIMEOUT:-20}<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" >SQUID_SHUTDOWN_TIMEOUT=${SQUID_SHUTDOWN_TIMEOUT:-100}<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" >[ -f /usr/sbin/squid ] && SQUID=squid<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" >if [ "$1" == "status" ]; then<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" > [ -z "$SQUID" ] && exit 4<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" >else<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" > [ -z "$SQUID" ] && exit 1<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" >fi<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" >prog="$SQUID"<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" >CACHE_SWAP=`sed -e 's/#.*//g' /usr/local/squid/etc/squid.conf | \<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" > grep cache_dir | awk '{ print $3 }'`<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" >[ -z "$CACHE_SWAP" ] && CACHE_SWAP=/var/spool/squid<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" >RETVAL=0<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" >probe() {<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" > # Check that networking is up.<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" > [ ${NETWORKING} = "no" ] && exit 1<br /></span></p><p><span style="font-size:85%;"><br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" > # check if the squid conf file is present<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" > [ -f /usr/local/squid/etc/squid.conf ] || exit 6<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" >}<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" >start() {<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" > probe<br /></span></p><p><span style="font-size:85%;"><br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" > $SQUID -k parse<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" > RETVAL=$?<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" > if [ $RETVAL -ne 0 ]; then<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" > echo -n $"Starting $prog: "<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" > echo_failure<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" > echo<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" > return 1<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" > fi<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" > for adir in $CACHE_SWAP; do<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" > if [ ! -d $adir/00 ]; then<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" > echo -n "init_cache_dir $adir... "<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" > $SQUID -z -F -D >> /var/log/squid/squid.out 2>&1<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" > fi<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" > done<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" > echo -n $"Starting $prog: "<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" > $SQUID $SQUID_OPTS >> /var/log/squid/squid.out 2>&1<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" > RETVAL=$?<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" > if [ $RETVAL -eq 0 ]; then<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" > timeout=0;<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" > while : ; do<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" > [ ! -f /var/run/squid.pid ] || break<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" > if [ $timeout -ge $SQUID_PIDFILE_TIMEOUT ]; then<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" > RETVAL=1<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" > break<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" > fi<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" > sleep 1 && echo -n "."<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" > timeout=$((timeout+1))<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" > done<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" > fi<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" > [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$SQUID<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" > [ $RETVAL -eq 0 ] && echo_success<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" > [ $RETVAL -ne 0 ] && echo_failure<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" > echo<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" > return $RETVAL<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" >}<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" >stop() {<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" > echo -n $"Stopping $prog: "<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" > $SQUID -k check >> /var/log/squid/squid.out 2>&1<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" > RETVAL=$?<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" > if [ $RETVAL -eq 0 ] ; then<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" > $SQUID -k shutdown &<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" > rm -f /var/lock/subsys/$SQUID<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" > timeout=0<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" > while : ; do<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" > [ -f /var/run/squid.pid ] || break<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" > if [ $timeout -ge $SQUID_SHUTDOWN_TIMEOUT ]; then<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" > echo<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" > return 1<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" > fi<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" > sleep 2 && echo -n "."<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" > timeout=$((timeout+2))<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" > done<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" > echo_success<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" > echo<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" > else<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" > echo_failure<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" > echo<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" > fi<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" > return $RETVAL<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" >}<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" >reload() {<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" > $SQUID $SQUID_OPTS -k reconfigure<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" >}<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" >restart() {<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" > stop<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" > start<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" >}<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" >condrestart() {<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" > [ -e /var/lock/subsys/squid ] && restart || :<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" >}<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" >rhstatus() {<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" > status $SQUID && $SQUID -k check<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" >}<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" >case "$1" in<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" >start)<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" > start<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" > ;;<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" >stop)<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" > stop<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" > ;;<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" >reload)<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" > reload<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" > ;;<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" >restart)<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" > restart<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" > ;;<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" >condrestart)<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" > condrestart<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" > ;;<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" >status)<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" > rhstatus<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" > ;;<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" >probe)<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" > probe<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" > return 0<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" > ;;<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" >*)<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" > echo $"Usage: $0 {start|stop|status|reload|restart|condrestart|probe}"<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" > exit 2<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" >esac<br /></span></p><p><span style=";font-family:Courier New;font-size:85%;" >exit $</span></p></span>Ansilhttp://www.blogger.com/profile/07287558007793912931noreply@blogger.com5tag:blogger.com,1999:blog-5632235867526129400.post-2759406597920251172010-02-01T05:36:00.001-08:002010-03-05T10:24:38.873-08:00<span style="color: rgb(23, 54, 93);font-size:16pt;" ><strong>Apache Cluster Using Redhat Cluster Suit
<br /></strong></span><span xmlns=""><p><meta equiv="Content-Type" content="text/html; charset=utf-8"><meta name="ProgId" content="Word.Document"><meta name="Generator" content="Microsoft Word 12"><meta name="Originator" content="Microsoft Word 12"><link rel="File-List" href="file:///C:%5CDOCUME%7E1%5CNEWUSER%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_filelist.xml"><link rel="Edit-Time-Data" href="file:///C:%5CDOCUME%7E1%5CNEWUSER%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_editdata.mso"><!--[if !mso]> <style> v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);} </style> <![endif]--><link rel="themeData" href="file:///C:%5CDOCUME%7E1%5CNEWUSER%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_themedata.thmx"><link rel="colorSchemeMapping" href="file:///C:%5CDOCUME%7E1%5CNEWUSER%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_colorschememapping.xml"><!--[if gte mso 9]><xml> <w:worddocument> <w:view>Normal</w:View> <w:zoom>0</w:Zoom> <w:trackmoves/> <w:trackformatting/> <w:punctuationkerning/> <w:validateagainstschemas/> <w:saveifxmlinvalid>false</w:SaveIfXMLInvalid> <w:ignoremixedcontent>false</w:IgnoreMixedContent> <w:alwaysshowplaceholdertext>false</w:AlwaysShowPlaceholderText> <w:donotpromoteqf/> <w:lidthemeother>EN-US</w:LidThemeOther> <w:lidthemeasian>X-NONE</w:LidThemeAsian> <w:lidthemecomplexscript>X-NONE</w:LidThemeComplexScript> <w:compatibility> <w:breakwrappedtables/> <w:snaptogridincell/> <w:wraptextwithpunct/> <w:useasianbreakrules/> <w:dontgrowautofit/> <w:splitpgbreakandparamark/> <w:dontvertaligncellwithsp/> <w:dontbreakconstrainedforcedtables/> <w:dontvertalignintxbx/> <w:word11kerningpairs/> <w:cachedcolbalance/> </w:Compatibility> <w:donotoptimizeforbrowser/> <m:mathpr> <m:mathfont val="Cambria Math"> <m:brkbin val="before"> <m:brkbinsub val="--"> <m:smallfrac val="off"> <m:dispdef/> <m:lmargin val="0"> <m:rmargin val="0"> <m:defjc val="centerGroup"> <m:wrapindent val="1440"> <m:intlim val="subSup"> <m:narylim val="undOvr"> </m:mathPr></w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:latentstyles deflockedstate="false" defunhidewhenused="true" defsemihidden="true" defqformat="false" defpriority="99" latentstylecount="267"> <w:lsdexception locked="false" priority="1" semihidden="false" unhidewhenused="false" qformat="true" name="Normal"> <w:lsdexception locked="false" priority="9" semihidden="false" unhidewhenused="false" qformat="true" name="heading 1"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 2"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 3"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 4"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 5"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 6"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 7"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 8"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 9"> <w:lsdexception locked="false" priority="39" name="toc 1"> <w:lsdexception locked="false" priority="39" name="toc 2"> <w:lsdexception locked="false" priority="39" name="toc 3"> <w:lsdexception locked="false" priority="39" name="toc 4"> <w:lsdexception locked="false" priority="39" name="toc 5"> <w:lsdexception locked="false" priority="39" name="toc 6"> <w:lsdexception locked="false" priority="39" name="toc 7"> <w:lsdexception locked="false" priority="39" name="toc 8"> <w:lsdexception locked="false" priority="39" name="toc 9"> <w:lsdexception locked="false" priority="35" qformat="true" name="caption"> <w:lsdexception locked="false" priority="10" semihidden="false" unhidewhenused="false" qformat="true" name="Title"> <w:lsdexception locked="false" priority="1" name="Default Paragraph Font"> <w:lsdexception locked="false" priority="11" semihidden="false" unhidewhenused="false" qformat="true" name="Subtitle"> <w:lsdexception locked="false" priority="22" semihidden="false" unhidewhenused="false" qformat="true" name="Strong"> <w:lsdexception locked="false" priority="20" semihidden="false" unhidewhenused="false" qformat="true" name="Emphasis"> <w:lsdexception locked="false" priority="59" semihidden="false" unhidewhenused="false" name="Table Grid"> <w:lsdexception locked="false" unhidewhenused="false" name="Placeholder Text"> <w:lsdexception locked="false" priority="1" semihidden="false" unhidewhenused="false" qformat="true" name="No Spacing"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 1"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 1"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 1"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 1"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 1"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 1"> <w:lsdexception locked="false" unhidewhenused="false" name="Revision"> <w:lsdexception locked="false" priority="34" semihidden="false" unhidewhenused="false" qformat="true" name="List Paragraph"> <w:lsdexception locked="false" priority="29" semihidden="false" unhidewhenused="false" qformat="true" name="Quote"> <w:lsdexception locked="false" priority="30" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Quote"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 1"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 1"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 1"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 1"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 1"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 1"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 1"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 1"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 2"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 2"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 2"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 2"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 2"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 2"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 2"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 2"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 2"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 2"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 2"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 2"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 2"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 2"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 3"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 3"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 3"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 3"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 3"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 3"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 3"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 3"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 3"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 3"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 3"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 3"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 3"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 3"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 4"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 4"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 4"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 4"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 4"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 4"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 4"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 4"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 4"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 4"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 4"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 4"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 4"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 4"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 5"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 5"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 5"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 5"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 5"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 5"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 5"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 5"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 5"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 5"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 5"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 5"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 5"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 5"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 6"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 6"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 6"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 6"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 6"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 6"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 6"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 6"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 6"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 6"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 6"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 6"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 6"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 6"> <w:lsdexception locked="false" priority="19" semihidden="false" unhidewhenused="false" qformat="true" name="Subtle Emphasis"> <w:lsdexception locked="false" priority="21" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Emphasis"> <w:lsdexception locked="false" priority="31" semihidden="false" unhidewhenused="false" qformat="true" name="Subtle Reference"> <w:lsdexception locked="false" priority="32" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Reference"> <w:lsdexception locked="false" priority="33" semihidden="false" unhidewhenused="false" qformat="true" name="Book Title"> <w:lsdexception locked="false" priority="37" name="Bibliography"> <w:lsdexception locked="false" priority="39" qformat="true" name="TOC Heading"> </w:LatentStyles> </xml><![endif]--><style> <!-- /* Font Definitions */ @font-face {font-family:Wingdings; panose-1:5 0 0 0 0 0 0 0 0 0; mso-font-charset:2; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:0 268435456 0 0 -2147483648 0;} @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4; mso-font-charset:0; mso-generic-font-family:roman; mso-font-pitch:variable; mso-font-signature:-1610611985 1107304683 0 0 159 0;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4; mso-font-charset:0; mso-generic-font-family:swiss; mso-font-pitch:variable; mso-font-signature:-1610611985 1073750139 0 0 159 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-priority:1; mso-style-unhide:no; mso-style-qformat:yes; mso-style-parent:""; margin-top:0in; margin-right:0in; margin-bottom:10.0pt; margin-left:0in; mso-pagination:widow-orphan; font-size:11.0pt; mso-bidi-font-size:10.0pt; font-family:"Calibri","sans-serif"; mso-fareast-font-family:"Times New Roman"; mso-bidi-font-family:"Times New Roman";} h2 {mso-style-priority:9; mso-style-unhide:no; mso-style-qformat:yes; mso-style-link:"Heading 2 Char"; mso-style-next:Normal; margin-top:10.0pt; margin-right:0in; margin-bottom:0in; margin-left:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; mso-outline-level:2; font-size:13.0pt; mso-bidi-font-size:16.0pt; font-family:"Calibri","sans-serif"; color:#17365D;} h3 {mso-style-priority:9; mso-style-unhide:no; mso-style-qformat:yes; mso-style-link:"Heading 3 Char"; mso-style-next:Normal; margin-top:10.0pt; margin-right:0in; margin-bottom:0in; margin-left:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; mso-outline-level:3; font-size:11.0pt; mso-bidi-font-size:14.0pt; font-family:"Calibri","sans-serif"; color:#17365D;} h4 {mso-style-priority:9; mso-style-unhide:no; mso-style-qformat:yes; mso-style-link:"Heading 4 Char"; mso-style-next:Normal; margin-top:10.0pt; margin-right:0in; margin-bottom:0in; margin-left:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; mso-outline-level:4; font-size:11.0pt; mso-bidi-font-size:14.0pt; font-family:"Calibri","sans-serif"; color:#17365D; font-weight:normal;} a:link, span.MsoHyperlink {mso-style-priority:99; color:blue; text-decoration:underline; text-underline:single;} a:visited, span.MsoHyperlinkFollowed {mso-style-noshow:yes; mso-style-priority:99; color:purple; mso-themecolor:followedhyperlink; text-decoration:underline; text-underline:single;} pre {mso-style-priority:99; mso-style-link:"HTML Preformatted Char"; margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Courier New"; mso-fareast-font-family:"Times New Roman";} p.MsoNoSpacing, li.MsoNoSpacing, div.MsoNoSpacing {mso-style-priority:1; mso-style-unhide:no; mso-style-qformat:yes; mso-style-parent:""; margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-fareast-font-family:Calibri; mso-bidi-font-family:"Times New Roman";} span.Heading2Char {mso-style-name:"Heading 2 Char"; mso-style-priority:9; mso-style-unhide:no; mso-style-locked:yes; mso-style-link:"Heading 2"; mso-ansi-font-size:13.0pt; mso-bidi-font-size:16.0pt; color:#17365D; font-weight:bold;} span.Heading3Char {mso-style-name:"Heading 3 Char"; mso-style-priority:9; mso-style-unhide:no; mso-style-locked:yes; mso-style-link:"Heading 3"; mso-ansi-font-size:11.0pt; mso-bidi-font-size:14.0pt; color:#17365D; font-weight:bold;} span.Heading4Char {mso-style-name:"Heading 4 Char"; mso-style-priority:9; mso-style-unhide:no; mso-style-locked:yes; mso-style-link:"Heading 4"; mso-ansi-font-size:11.0pt; mso-bidi-font-size:14.0pt; color:#17365D;} p.Publishwithline, li.Publishwithline, div.Publishwithline {mso-style-name:"Publish with line"; mso-style-noshow:yes; mso-style-unhide:no; mso-style-qformat:yes; mso-style-parent:""; margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:16.0pt; mso-bidi-font-size:19.0pt; font-family:"Calibri","sans-serif"; mso-fareast-font-family:"Times New Roman"; mso-bidi-font-family:"Times New Roman"; color:#17365D; font-weight:bold;} p.PublishStatus, li.PublishStatus, div.PublishStatus {mso-style-name:"Publish Status"; mso-style-noshow:yes; mso-style-unhide:no; margin-top:6.0pt; margin-right:0in; margin-bottom:2.0pt; margin-left:0in; mso-pagination:widow-orphan; background:#FDEB9F; border:none; mso-border-alt:solid #FDBD5E .5pt; padding:0in; mso-padding-alt:1.0pt 4.0pt 1.0pt 4.0pt; font-size:9.0pt; mso-bidi-font-size:13.0pt; font-family:"Calibri","sans-serif"; mso-fareast-font-family:"Times New Roman"; mso-bidi-font-family:"Times New Roman";} p.underline, li.underline, div.underline {mso-style-name:underline; mso-style-noshow:yes; mso-style-unhide:no; mso-style-parent:""; margin-top:2.0pt; margin-right:0in; margin-bottom:0in; margin-left:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; border:none; mso-border-bottom-alt:solid #4F81BD 1.0pt; padding:0in; mso-padding-alt:0in 0in 2.0pt 0in; font-size:1.0pt; font-family:"Calibri","sans-serif"; mso-fareast-font-family:"Times New Roman"; mso-bidi-font-family:"Times New Roman";} span.HTMLPreformattedChar {mso-style-name:"HTML Preformatted Char"; mso-style-priority:99; mso-style-unhide:no; mso-style-locked:yes; mso-style-link:"HTML Preformatted"; font-family:"Courier New"; mso-ascii-font-family:"Courier New"; mso-hansi-font-family:"Courier New"; mso-bidi-font-family:"Courier New";} .MsoChpDefault {mso-style-type:export-only; mso-default-props:yes; font-size:10.0pt; mso-ansi-font-size:10.0pt; mso-bidi-font-size:10.0pt; mso-ascii-font-family:Calibri; mso-hansi-font-family:Calibri;} @page Section1 {size:8.5in 11.0in; margin:1.0in 1.0in 1.0in 1.0in; mso-header-margin:.5in; mso-footer-margin:.5in; mso-paper-source:0;} div.Section1 {page:Section1;} --> </style><!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:"Times New Roman"; mso-fareast-theme-font:minor-fareast; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman"; mso-bidi-theme-font:minor-bidi;} </style> <![endif]--><!--[if gte mso 9]><xml> <o:shapedefaults ext="edit" spidmax="1028"> </xml><![endif]--><!--[if gte mso 9]><xml> <o:shapelayout ext="edit"> <o:idmap ext="edit" data="1"> </o:shapelayout></xml><![endif]--> </p><div style="border: 1pt solid rgb(253, 189, 94); padding: 1pt 4pt; background: none repeat scroll 0% 0% rgb(253, 235, 159); -moz-background-inline-policy: continuous;"> <p class="PublishStatus">
<br /></p> </div> <p class="Publishwithline">
<br /></p> <div style="border-style: none none solid; border-color: -moz-use-text-color -moz-use-text-color rgb(79, 129, 189); border-width: medium medium 1pt; padding: 0in 0in 2pt;"> <p class="underline"><o:p> </o:p></p> </div> <table class="MsoNormalTable" style="border: medium none; border-collapse: collapse;" border="1" cellpadding="0" cellspacing="0"> <tbody><tr style=""> <td style="border: 1pt solid black; padding: 0in 5.4pt; width: 24.85pt;" valign="top" width="33"> <p class="MsoNormal" style="margin-bottom: 0.0001pt;">1</p> </td> <td style="border-style: solid solid solid none; border-color: black black black -moz-use-text-color; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 113.6pt;" valign="top" width="151"> <p class="MsoNormal" style="margin-bottom: 0.0001pt;">DNS</p> </td> <td style="border-style: solid solid solid none; border-color: black black black -moz-use-text-color; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 120.45pt;" valign="top" width="161"> <p class="MsoNormal" style="margin-bottom: 0.0001pt;">10.10.40.211</p> </td> <td style="border-style: solid solid solid none; border-color: black black black -moz-use-text-color; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 142.5pt;" valign="top" width="190"> <p class="MsoNormal" style="margin-bottom: 0.0001pt;">Dns.ansil.com</p> </td> </tr> <tr style=""> <td style="border-style: none solid solid; border-color: -moz-use-text-color black black; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 24.85pt;" valign="top" width="33"> <p class="MsoNormal" style="margin-bottom: 0.0001pt;">2</p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color black black -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 113.6pt;" valign="top" width="151"> <p class="MsoNormal" style="margin-bottom: 0.0001pt;">YUM/NIM</p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color black black -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 120.45pt;" valign="top" width="161"> <p class="MsoNormal" style="margin-bottom: 0.0001pt;">10.10.40.211</p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color black black -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 142.5pt;" valign="top" width="190"> <p class="MsoNormal" style="margin-bottom: 0.0001pt;"><o:p> </o:p></p>
<br /></td> </tr> <tr style=""> <td style="border-style: none solid solid; border-color: -moz-use-text-color black black; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 24.85pt;" valign="top" width="33"> <p class="MsoNormal" style="margin-bottom: 0.0001pt;">3</p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color black black -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 113.6pt;" valign="top" width="151"> <p class="MsoNormal" style="margin-bottom: 0.0001pt;">Xen Dom0</p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color black black -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 120.45pt;" valign="top" width="161"> <p class="MsoNormal" style="margin-bottom: 0.0001pt;">10.10.40.60</p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color black black -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 142.5pt;" valign="top" width="190"> <p class="MsoNormal" style="margin-bottom: 0.0001pt;">Xen-base.ansil.com</p> </td> </tr> <tr style=""> <td style="border-style: none solid solid; border-color: -moz-use-text-color black black; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 24.85pt;" valign="top" width="33"> <p class="MsoNormal" style="margin-bottom: 0.0001pt;">4</p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color black black -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 113.6pt;" valign="top" width="151"> <p class="MsoNormal" style="margin-bottom: 0.0001pt;">Xen DomU1(node1)</p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color black black -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 120.45pt;" valign="top" width="161"> <p class="MsoNormal" style="margin-bottom: 0.0001pt;">10.10.40.61</p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color black black -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 142.5pt;" valign="top" width="190"> <p class="MsoNormal" style="margin-bottom: 0.0001pt;">Xen1.ansi.com</p> </td> </tr> <tr style=""> <td style="border-style: none solid solid; border-color: -moz-use-text-color black black; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 24.85pt;" valign="top" width="33"> <p class="MsoNormal" style="margin-bottom: 0.0001pt;">5</p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color black black -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 113.6pt;" valign="top" width="151"> <p class="MsoNormal" style="margin-bottom: 0.0001pt;">Xen DomU2(node2)</p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color black black -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 120.45pt;" valign="top" width="161"> <p class="MsoNormal" style="margin-bottom: 0.0001pt;">10.10.40.62</p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color black black -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 142.5pt;" valign="top" width="190"> <p class="MsoNormal" style="margin-bottom: 0.0001pt;">Xen2.ansil.com</p> </td> </tr> <tr style=""> <td style="border-style: none solid solid; border-color: -moz-use-text-color black black; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 24.85pt;" valign="top" width="33"> <p class="MsoNormal" style="margin-bottom: 0.0001pt;">6</p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color black black -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 113.6pt;" valign="top" width="151"> <p class="MsoNormal" style="margin-bottom: 0.0001pt;">Cluster Service IP</p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color black black -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 120.45pt;" valign="top" width="161"> <p class="MsoNormal" style="margin-bottom: 0.0001pt;">10.10.40.63</p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color black black -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 142.5pt;" valign="top" width="190"> <p class="MsoNormal" style="margin-bottom: 0.0001pt;"><o:p> </o:p></p>
<br /></td> </tr> <tr style="height: 18.4pt;"> <td style="border-style: none solid solid; border-color: -moz-use-text-color black black; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 24.85pt; height: 18.4pt;" valign="top" width="33"> <p class="MsoNormal" style="margin-bottom: 0.0001pt;">7</p> </td> <td style="border-style: none solid solid none; padding: 0in 5.4pt; width: 113.6pt; height: 18.4pt;" valign="top" width="151"> <p class="MsoNormal" style="margin-bottom: 0.0001pt;">Cluster<span style=""> </span>management UI</p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color black black -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 120.45pt; height: 18.4pt;" valign="top" width="161"> <p class="MsoNormal" style="margin-bottom: 0.0001pt;">10.10.40.60</p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color black black -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 142.5pt; height: 18.4pt;" valign="top" width="190"> <p class="MsoNormal" style="margin-bottom: 0.0001pt;"><o:p> </o:p></p>
<br /></td> </tr> </tbody></table> <p class="MsoNormal"><o:p> </o:p></p> <h4><u>10.10.40.211<o:p></o:p></u></h4> <p class="MsoNormal"><o:p> </o:p></p> <h2>DNS Configuration (BIND9)</h2> <h3>Forward Zone Definition</h3> <p class="MsoNoSpacing">www<span style=""> </span>A<span style=""> </span>10.10.40.63</p> <p class="MsoNoSpacing">xen1 <span style=""> </span>A<span style=""> </span>10.10.40.61</p> <p class="MsoNoSpacing">xen2 <span style=""> </span>A<span style=""> </span>10.10.40.62</p> <p class="MsoNoSpacing">dns <span style=""> </span>A<span style=""> </span>10.10.40.211</p> <p class="MsoNoSpacing"><o:p> </o:p></p> <h3>Reverse Zone Definition</h3> <p class="MsoNoSpacing">63<span style=""> </span>PTR<span style=""> </span>www.ansil.com</p> <p class="MsoNoSpacing">61<span style=""> </span>PTR<span style=""> </span>xen1.ansil.com</p> <p class="MsoNoSpacing">62<span style=""> </span>PTR<span style=""> </span>xen2.ansil.com</p> <p class="MsoNoSpacing">211<span style=""> </span>PTR<span style=""> </span>dns.ansil.com</p> <p class="MsoNoSpacing"><o:p> </o:p></p> <h2>YUM</h2> <p class="MsoNoSpacing">You need one 4 GB Partition mounted on /install</p> <p class="MsoNoSpacing">Copy All the contents from RHEL 5 DVD to /install directory</p> <p class="MsoNoSpacing">Take one copy of the following files to /tmp from /install/Server, Cluster, ClusterStorage and VT</p> <p class="MsoNoSpacing">comp-rhel5-server-core.xml</p> <p class="MsoNoSpacing">comp-rhel5-cluster.xml</p> <p class="MsoNoSpacing">comp-rhel5-cluster-st.xml</p> <p class="MsoNoSpacing"><span style=""> </span>comp-rhel5-vt.xml</p> <p class="MsoNoSpacing">Remove repodata directory from Server, Cluster, ClusterStorage and VT in /install directory</p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p class="MsoNoSpacing">Install creteaterepo .x.x.x.rpm first</p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p class="MsoNoSpacing">#rpm –ivh creteaterepo .x.x.x.rpm</p> <p class="MsoNoSpacing">#cretaerepo –g /tmp/comp-rhel5-server-core.xml /install/Server</p> <p class="MsoNoSpacing">#cretaerepo –g /tmp/comp-rhel5-cluster.xml /install/ Cluster</p> <p class="MsoNoSpacing">#cretaerepo –g /tmp/comp-rhel5-cluster-st.xml<span style=""> </span>/install/ ClusterStorage</p> <p class="MsoNoSpacing">#cretaerepo –g /tmp/comp-rhel5-vt.xml<span style=""> </span>/install/ VT</p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p class="MsoNoSpacing">Now your repository is ready </p> <p class="MsoNoSpacing" style=""><span style=""> </span></p> <p class="MsoNoSpacing">Create your client repodata files in /etc/yum.repos.d/</p> <p class="MsoNoSpacing">Server.repo, Cluster.repo, ClusterStorage.repo, VT.repo</p> <p class="MsoNoSpacing">========================================================</p> <p class="MsoNoSpacing">[Server]<span style=""> </span>#<span style=""> </span>Name of Repo
<br />Name=Ansil’s repo<span style=""> </span>#<span style=""> </span>Information of repo
<br />Baseurl=ftp://10.10.40.211/Server/<span style=""> </span>#<span style=""> </span>Path to Packages
<br />enabled=1<span style=""> </span>#<span style=""> </span>Enable repository access</p> <p class="MsoNoSpacing">========================================================</p> <p class="MsoNoSpacing" style="margin-left: 0.5in; text-indent: -0.5in;">The above contents will be in Server.repo</p> <p class="MsoNoSpacing" style="margin-left: 0.5in; text-indent: -0.5in;">Likewise you have to create remaining repodata files</p> <h2>NIM(Network Installation Manager)</h2> <p class="MsoNoSpacing">To install Linux through network you need one of the services like FTP/HTTP/NFS.</p> <p class="MsoNoSpacing">Here we are installing through FTP, for that we have to install vsftpd.x.x.rpm</p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p class="MsoNoSpacing">#rpm –ivh<span style=""> </span>vsftpd.x.x.rpm</p> <p class="MsoNoSpacing">Open /etc/vsftpd/vsftpd.conf</p> <p class="MsoNoSpacing">#vi /etc/vsftpd/vsftpd.conf</p> <p class="MsoNoSpacing">Add anon_root=/install to the end of the file</p> <p class="MsoNoSpacing">#service vsftpd start</p> <p class="MsoNoSpacing">#chkconfig –level 35 vsftpd on</p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p class="MsoNoSpacing">Now our YUM and NIM are ready</p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p class="MsoNoSpacing">Install RHEL 5 on a High end server with virtualization. That system will be your Dom0.</p> <p class="MsoNoSpacing">After installation edit your /etc/resolve.conf to point your name server</p> <p class="MsoNoSpacing">And also you need to ensure /etc/hosts entry.</p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p class="MsoNoSpacing">You must have one partition with 25 GB space where you have to create your DomUs </p> <p class="MsoNormal">Xen DomU1 & Xen DomU2.</p> <p class="MsoNormal">Create your DomUs follow these steps</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"># virt-install</p> <p class="MsoNormal"><span style=""><!--[if gte vml 1]><v:shapetype id="_x0000_t75" coordsize="21600,21600" spt="75" preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe" filled="f" stroked="f"> <v:stroke joinstyle="miter"> <v:formulas> <v:f eqn="if lineDrawn pixelLineWidth 0"> <v:f eqn="sum @0 1 0"> <v:f eqn="sum 0 0 @1"> <v:f eqn="prod @2 1 2"> <v:f eqn="prod @3 21600 pixelWidth"> <v:f eqn="prod @3 21600 pixelHeight"> <v:f eqn="sum @0 0 1"> <v:f eqn="prod @6 1 2"> <v:f eqn="prod @7 21600 pixelWidth"> <v:f eqn="sum @8 21600 0"> <v:f eqn="prod @7 21600 pixelHeight"> <v:f eqn="sum @10 21600 0"> </v:formulas> <v:path extrusionok="f" gradientshapeok="t" connecttype="rect"> <o:lock ext="edit" aspectratio="t"> </v:shapetype><v:shape id="Picture_x0020_1" spid="_x0000_i1025" type="#_x0000_t75" style="'width:499.5pt;height:315pt;visibility:visible'"> <v:imagedata src="http://i421.photobucket.com/albums/pp291/ansilh1/BLOG/1.jpg" title=""> </v:shape><![endif]--><!--[if !vml]--><img src="http://i421.photobucket.com/albums/pp291/ansilh1/BLOG/1.jpg" shapes="Picture_x0020_1" width="666" height="420" /><!--[endif]--><o:p></o:p></span></p> <p class="MsoNormal">It will ask you </p> <p class="MsoNoSpacing"><span style=""> </span>1.Name of the virtual machine(will referred by xen manager)</p> <p class="MsoNoSpacing"><span style=""> </span>2.Amount of RAM in MB(eg:-265)</p> <p class="MsoNoSpacing" style="text-indent: 0.5in;">3.Disk path for installation(must specify<span style=""> </span>with a file name like /xen-path/node1)</p> <p class="MsoNoSpacing" style="text-indent: 0.5in;">4.Enable graphical support (no)</p> <p class="MsoNoSpacing" style="text-indent: 0.5in;">5.Install location (<a href="ftp://10.10.40.60/">ftp://10.10.40.60</a>)</p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p class="MsoNoSpacing">After providing the information the xen will start gust Os installation. Once it started installation it will be same as the normal redhat installation. Select with default options (most cases)</p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p class="MsoNoSpacing">If all information you provided are valid you will get a window like this and Linux installer anaconda will be loaded</p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p class="MsoNormal"><span style=""><!--[if gte vml 1]><v:shape id="Picture_x0020_4" spid="_x0000_i1026" type="#_x0000_t75" style="'width:499.5pt;"> <v:imagedata src="file:///C:\DOCUME~1\NEWUSER\LOCALS~1\Temp\msohtmlclip1\01\clip_image003.png" title=""> </v:shape><![endif]--><!--[if !vml]--><img src="http://i421.photobucket.com/albums/pp291/ansilh1/BLOG/2.jpg" shapes="Picture_x0020_4" width="666" border="0" height="420" /><!--[endif]--><o:p></o:p></span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal">Select your Language</p> <p class="MsoNormal"><!--[if gte vml 1]><v:shape id="Picture_x0020_7" spid="_x0000_s1026" type="#_x0000_t75" style="'position:absolute;margin-left:0;margin-top:0;"> <v:imagedata src="file:///C:\DOCUME~1\NEWUSER\LOCALS~1\Temp\msohtmlclip1\01\clip_image005.png" title=""> <w:wrap type="square"> </v:shape><![endif]--><!--[if !vml]--><img src="http://i421.photobucket.com/albums/pp291/ansilh1/BLOG/3.jpg" shapes="Picture_x0020_7" width="666" align="left" height="420" hspace="12" /><!--[endif]--><span style="">
<br /><o:p></o:p></span></p> <p class="MsoNoSpacing">Select IPv4 Support and Manual configuration (You can’t use DHCP in Production environment)</p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p class="MsoNormal"><span style=""><!--[if gte vml 1]><v:shape id="Picture_x0020_13" spid="_x0000_i1027" type="#_x0000_t75" style="'width:499.5pt;"> <v:imagedata src="file:///C:\DOCUME~1\NEWUSER\LOCALS~1\Temp\msohtmlclip1\01\clip_image007.png" title=""> </v:shape><![endif]--><!--[if !vml]--><img src="http://i421.photobucket.com/albums/pp291/ansilh1/BLOG/4.jpg" shapes="Picture_x0020_13" width="666" border="0" height="420" /><!--[endif]--><o:p></o:p></span></p> <p class="MsoNormal"><span style=""><o:p> </o:p></span></p> <p class="MsoNormal">Provide IP address, Subnet mask ,Default gateway, and Name server</p> <p class="MsoNormal"><!--[if gte vml 1]><v:shape id="Picture_x0020_16" spid="_x0000_s1027" type="#_x0000_t75" style="'position:absolute;margin-left:0;margin-top:0;"> <v:imagedata src="file:///C:\DOCUME~1\NEWUSER\LOCALS~1\Temp\msohtmlclip1\01\clip_image009.png" title=""> <w:wrap type="square"> </v:shape><![endif]--><!--[if !vml]--><img src="http://i421.photobucket.com/albums/pp291/ansilh1/BLOG/5.jpg" shapes="Picture_x0020_16" width="666" align="left" height="420" hspace="12" /><!--[endif]--><span style="">
<br /><o:p></o:p></span></p> <p class="MsoNormal">The next section will load files needed for running anaconda from NIM server</p> <p class="MsoNormal"><span style=""><!--[if gte vml 1]><v:shape id="Picture_x0020_19" spid="_x0000_i1028" type="#_x0000_t75" style="'width:499.5pt;"> <v:imagedata src="file:///C:\DOCUME~1\NEWUSER\LOCALS~1\Temp\msohtmlclip1\01\clip_image011.png" title=""> </v:shape><![endif]--><!--[if !vml]--><img src="http://i421.photobucket.com/albums/pp291/ansilh1/BLOG/7.jpg" shapes="Picture_x0020_19" width="666" border="0" height="420" /><!--[endif]--><o:p></o:p></span></p> <p class="MsoNormal"><span style="">Anaconda starts installation in text mode</span></p> <p class="MsoNormal"><span style=""><!--[if gte vml 1]><v:shape id="Picture_x0020_25" spid="_x0000_i1029" type="#_x0000_t75" style="'width:499.5pt;"> <v:imagedata src="file:///C:\DOCUME~1\NEWUSER\LOCALS~1\Temp\msohtmlclip1\01\clip_image013.png" title=""> </v:shape><![endif]--><!--[if !vml]--><img src="http://i421.photobucket.com/albums/pp291/ansilh1/BLOG/8.jpg" shapes="Picture_x0020_25" width="666" border="0" height="420" /><!--[endif]--><o:p></o:p></span></p> <p class="MsoNormal"><span style="">Welcome message</span></p> <p class="MsoNormal"><span style=""><!--[if gte vml 1]><v:shape id="Picture_x0020_28" spid="_x0000_i1030" type="#_x0000_t75" style="'width:499.5pt;"> <v:imagedata src="file:///C:\DOCUME~1\NEWUSER\LOCALS~1\Temp\msohtmlclip1\01\clip_image015.png" title=""> </v:shape><![endif]--><!--[if !vml]--><img src="http://i421.photobucket.com/albums/pp291/ansilh1/BLOG/9.jpg" shapes="Picture_x0020_28" width="666" border="0" height="420" /><!--[endif]--><o:p></o:p></span></p> <p class="MsoNormal"><span style="">Enter Installation number</span></p> <p class="MsoNormal"><span style=""><!--[if gte vml 1]><v:shape id="Picture_x0020_31" spid="_x0000_i1031" type="#_x0000_t75" style="'width:499.5pt;"> <v:imagedata src="file:///C:\DOCUME~1\NEWUSER\LOCALS~1\Temp\msohtmlclip1\01\clip_image017.png" title=""> </v:shape><![endif]--><!--[if !vml]--><img src="http://i421.photobucket.com/albums/pp291/ansilh1/BLOG/10.jpg" shapes="Picture_x0020_31" width="666" border="0" height="420" /><!--[endif]--><o:p></o:p></span></p> <p class="MsoNormal">Ask your permission to erase data before starting installation.</p> <p class="MsoNormal"><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://i421.photobucket.com/albums/pp291/ansilh1/BLOG/10.jpg"><img style="cursor: pointer; width: 670px; height: 424px;" src="http://i421.photobucket.com/albums/pp291/ansilh1/BLOG/10.jpg" alt="" border="0" /></a></p> <p class="MsoNormal"><span style="">Select installation media</span></p> <p class="MsoNormal"><span xmlns=""><span style=""><img src="http://i421.photobucket.com/albums/pp291/ansilh1/BLOG/11.jpg" shapes="Picture_x0020_43" width="666" border="0" height="420" /></span></span><span style=""><!--[if gte vml 1]><v:shape id="Picture_x0020_40" spid="_x0000_i1033" type="#_x0000_t75" style="'width:499.5pt;"> <v:imagedata src="file:///C:\DOCUME~1\NEWUSER\LOCALS~1\Temp\msohtmlclip1\01\clip_image021.png" title=""> </v:shape><![endif]--><!--[if !vml]--></span></p><p class="MsoNormal"><span style="">
<br /><!--[endif]--><o:p></o:p></span></p> <p class="MsoNormal">Once again it will ask confirmation before erasing all data from selected drives</p> <p class="MsoNormal"><span xmlns=""><span style=""><img src="http://i421.photobucket.com/albums/pp291/ansilh1/BLOG/12.jpg" shapes="Picture_x0020_46" width="666" border="0" height="420" /></span></span></p> <p class="MsoNormal"><span style="">You need to modify your partition layout for a production system,but here we will go with default layout.So select No</span></p> <p class="MsoNormal"><span style=""><!--[if gte vml 1]><v:shape id="Picture_x0020_46" spid="_x0000_i1035" type="#_x0000_t75" style="'width:499.5pt;"> <v:imagedata src="file:///C:\DOCUME~1\NEWUSER\LOCALS~1\Temp\msohtmlclip1\01\clip_image025.png" title=""> </v:shape><![endif]--><!--[if !vml]--><img src="http://i421.photobucket.com/albums/pp291/ansilh1/BLOG/13.jpg" />
<br /><!--[endif]--><o:p></o:p></span></p> <p class="MsoNormal"><span style="">Once agian you can modify the network informations(It will show the values given at the time of creation) </span></p> <p class="MsoNormal"><span xmlns=""><span style=""><img src="http://i421.photobucket.com/albums/pp291/ansilh1/BLOG/14.jpg" /></span></span></p> <p class="MsoNormal"><span style="">Go with defaul values.</span></p> <p class="MsoNormal"><span xmlns=""><span style=""><img src="http://i421.photobucket.com/albums/pp291/ansilh1/BLOG/15.jpg" /></span></span></p> <p class="MsoNormal">Enter a host name as pre-planned</p> <p class="MsoNormal"><span xmlns=""><span style=""><img src="http://i421.photobucket.com/albums/pp291/ansilh1/BLOG/16.jpg" /></span></span></p> <p class="MsoNormal">Select Time zone.</p> <p class="MsoNormal"><span xmlns=""><span style=""><img src="http://i421.photobucket.com/albums/pp291/ansilh1/BLOG/17.jpg" /></span></span></p> <p class="MsoNormal">Provide root password</p> <p class="MsoNormal"><span xmlns=""><span style=""><img src="http://i421.photobucket.com/albums/pp291/ansilh1/BLOG/18.jpg" /></span></span></p> <p class="MsoNormal"><span style="">Starting installation</span></p> <p class="MsoNormal"><span xmlns=""><span style=""><img src="http://i421.photobucket.com/albums/pp291/ansilh1/BLOG/19.jpg" /></span></span></p> <p class="MsoNormal">Go with default packages</p> <p class="MsoNormal"><span xmlns=""><span style=""><img src="http://i421.photobucket.com/albums/pp291/ansilh1/BLOG/20.jpg" /></span></span></p> <p class="MsoNormal"><span xmlns=""><span style=""><img src="http://i421.photobucket.com/albums/pp291/ansilh1/BLOG/21.jpg" /></span></span></p> <p class="MsoNormal">The complete information of installation will be in /root/install.log</p> <p class="MsoNormal"><span xmlns=""><span style=""><img src="http://i421.photobucket.com/albums/pp291/ansilh1/BLOG/22.jpg" /></span></span></p> <p class="MsoNormal"><span style="">Formating file systems</span></p> <p class="MsoNormal"><span xmlns=""><span style=""><img src="http://i421.photobucket.com/albums/pp291/ansilh1/BLOG/23.jpg" /></span></span></p> <p class="MsoNormal"><span style="">Starting package installation</span></p> <p class="MsoNormal"><span xmlns=""><span style=""><img src="http://i421.photobucket.com/albums/pp291/ansilh1/BLOG/24.jpg" /></span></span></p> <p class="MsoNormal"><span xmlns=""><span style=""><img src="http://i421.photobucket.com/albums/pp291/ansilh1/BLOG/25.jpg" /></span></span></p> <p class="MsoNormal"><span style="">You can follow the above steps for creating second DomU exept IP address and Host name<o:p></o:p></span></p> <p class="MsoNormal"><span style="">Now we will install Redhat Cluster Suite on Base Xen system,be sure your gust Operatting systems are down<o:p></o:p></span></p> <p class="MsoNormal"><span style=""><span style="font-weight: bold; font-style: italic;">#yum install “Clustering”</span><o:p></o:p></span></p> <p class="MsoNormal"><span style="">After executing this command you will be asked for a confirmation,type y.<o:p></o:p></span></p> <p class="MsoNoSpacing"><span style="">It will install Redhat cluster suite in base system.<o:p></o:p></span></p> <p class="MsoNoSpacing"><span style=""><o:p> </o:p></span></p> <p class="MsoNoSpacing"><span style="">After installation start start ricci service <o:p></o:p></span></p> <p class="MsoNoSpacing"><span style=""><o:p> </o:p></span></p> <p class="MsoNoSpacing"><span style=""><span style="font-weight: bold; font-style: italic;"># service ricci start</span><o:p></o:p></span></p> <p class="MsoNoSpacing"><span style=""><o:p> </o:p></span></p> <p class="MsoNoSpacing"><span style="">Create one file called cluster.conf in /etc/cluster/ with the following contents<o:p></o:p></span></p> <p class="MsoNoSpacing"><span style=""><o:p> </o:p></span></p> <p class="MsoNoSpacing"><span style=""><o:p></o:p></span></p> <p class="MsoNoSpacing"><span style=""><cluster config_version="1" name="clusterbase"><o:p></o:p></cluster></span></p> <p class="MsoNoSpacing"><span style=""><span style=""> </span><clusternodes><o:p></o:p></clusternodes></span></p> <p class="MsoNoSpacing"><span style=""><span style=""> </span><clusternode name="xen-base.ansil.com" nodeid="1" votes="1"><o:p></o:p></clusternode></span></p> <p class="MsoNoSpacing"><span style=""><span style=""> </span><o:p></o:p></span></p> <p class="MsoNoSpacing"><span style=""><span style=""> </span><cman><o:p></o:p></cman></span></p> <p class="MsoNoSpacing"><span style=""><span style=""> </span><fencedevices><o:p></o:p></fencedevices></span></p> <p class="MsoNoSpacing"><span style=""><span style=""> </span><rm><o:p></o:p></rm></span></p> <p class="MsoNoSpacing"><span style=""><span style=""> </span><fence_xvmd><o:p></o:p></fence_xvmd></span></p> <p class="MsoNoSpacing"><span style=""><o:p></o:p></span></p> <p class="MsoNoSpacing"><span style=""><o:p> </o:p></span></p> <p class="MsoNoSpacing">Now our base system is ready for Xen clustering.</p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p style="font-weight: bold; font-style: italic;" class="MsoNoSpacing"># luci_admin init</p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p class="MsoNoSpacing">Here you can set password for admin user here.</p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p class="MsoNoSpacing"><span style="">Start Luci service for management interface<o:p></o:p></span></p> <p class="MsoNoSpacing"><span style=""><o:p> </o:p></span></p> <p class="MsoNoSpacing"><span style=""><span style="font-weight: bold; font-style: italic;">#service luci</span><span style="font-weight: bold; font-style: italic;"> </span><span style="font-weight: bold; font-style: italic;">start</span><o:p></o:p></span></p> <p class="MsoNoSpacing"><span style=""><o:p> </o:p></span></p> <p class="MsoNoSpacing"><span style="">You can now access cluster management in https://10.10.40.60:8084<o:p></o:p></span></p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p class="MsoNoSpacing"><span xmlns=""><span style=""><img src="http://i421.photobucket.com/albums/pp291/ansilh1/BLOG/26.jpg" /></span></span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal">Login with user name admin and password as you entered at the time of luciad_min init</p> <p class="MsoNormal">Go to add an existing Cluster</p> <p class="MsoNormal"><span xmlns=""><span style=""><img src="http://i421.photobucket.com/albums/pp291/ansilh1/BLOG/27.jpg" /></span></span></p> <p class="MsoNormal">Here you can give one of the node in cluster, and it will be<span style=""> </span>xen-base.Now our base cluster configuration is ready.</p> <p class="MsoNoSpacing">Start two services <b style="">cman & rmanager <o:p></o:p></b></p> <p class="MsoNoSpacing"><b style=""><o:p> </o:p></b></p> <p class="MsoNoSpacing"><b style=""># service cman start<o:p></o:p></b></p> <p class="MsoNoSpacing"><b style=""><o:p> </o:p></b></p> <p class="MsoNoSpacing"><b style=""># service rgmanager start<o:p></o:p></b></p> <p class="MsoNoSpacing"><b style=""><o:p> </o:p></b></p> <p class="MsoNoSpacing"><b style="">Now You can see your base cluster in Luci window in Cluster List<o:p></o:p></b></p> <p class="MsoNoSpacing"><span xmlns=""><span style=""><img src="http://i421.photobucket.com/albums/pp291/ansilh1/BLOG/28.jpg" /></span></span></p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p class="MsoNoSpacing"><b style=""><o:p> </o:p></b></p> <p class="MsoNoSpacing">After starting these services we can setup our xen guest Operating system.</p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p class="MsoNoSpacing">Start guest node1.</p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p style="font-weight: bold; font-style: italic;" class="MsoNoSpacing">#xm create node1</p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p class="MsoNoSpacing">Now node1 will start and you can access the console using</p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p style="font-weight: bold; font-style: italic;" class="MsoNoSpacing"># xm console node1</p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p class="MsoNoSpacing">Once the node is up transfer the repo files from Base system’s /etc/yum.rerpos.d/</p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p style="font-weight: bold; font-style: italic;" class="MsoNoSpacing">#scp /et/yum.repos.d/*.repo xen1.ansil.com:/etc/yum.repos.d/</p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p class="MsoNoSpacing">Accept the ssh key and type guest’s password the files will be transferred to xen1.ansil.com</p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p class="MsoNoSpacing">Start the second node and do all the same done for node1.</p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p class="MsoNoSpacing">Now we can install cluster suit on both systems using YUM.</p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p style="font-weight: bold; font-style: italic;" class="MsoNoSpacing"># yum install “Clustering”</p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p class="MsoNoSpacing">Also install apache on both nodes</p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p style="font-style: italic; font-weight: bold;" class="MsoNoSpacing">#yum install http*</p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p class="MsoNoSpacing">Now Cluster suit<span style=""> </span>and web service are ready.</p> <p class="MsoNoSpacing">Now we have to create IP based virtual host on both nodes with cluster ip.</p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p class="MsoNoSpacing">The configuration in /etc/httpd/httpd.conf<span style=""> </span>will be like this</p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p class="MsoNoSpacing">
<br /></p><p style="font-style: italic;" class="MsoNoSpacing"><span style="font-size:85%;">ServerAdmin <a href="mailto:root@xen1.ansil.com">root@xen1.ansil.com</a></span></p> <p style="font-style: italic;" class="MsoNoSpacing"><span style="font-size:85%;">ServerName <a href="http://www.ansil.com/">www.ansil.com</a></span></p> <p style="font-style: italic;" class="MsoNoSpacing"><span style="font-size:85%;">NameVirtualHost 10.10.40.63:80</span></p> <p style="font-style: italic;" class="MsoNoSpacing"><span style="font-size:85%;"><o:p> </o:p></span></p> <p style="font-style: italic;" class="MsoNoSpacing"><span style="font-size:85%;"><virtualhost></virtualhost></span></p> <p style="font-style: italic;" class="MsoNoSpacing"><span style=";font-size:85%;" > </span><span style="font-size:85%;">ServerAdmin root@xen1.ansil.com</span></p> <p style="font-style: italic;" class="MsoNoSpacing"><span style=";font-size:85%;" > </span><span style="font-size:85%;">DocumentRoot /var/www/html</span></p> <p style="font-style: italic;" class="MsoNoSpacing"><span style=";font-size:85%;" > </span><span style="font-size:85%;">ServerName xen1.ansil.com</span></p> <p style="font-style: italic;" class="MsoNoSpacing"><span style=";font-size:85%;" > </span><span style="font-size:85%;">ErrorLog logs/xen1.ansil.com-error_log</span></p> <p style="font-style: italic;" class="MsoNoSpacing"><span style=";font-size:85%;" > </span><span style="font-size:85%;">CustomLog logs/xen1.ansil.com-access_log common</span></p> <p class="MsoNoSpacing"></p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p class="MsoNoSpacing">
<br /></p><p class="MsoNoSpacing">Transfer this file to node2 also and change xen1 field to xen2</p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p class="MsoNoSpacing">Now our Cluster service is ready.</p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p class="MsoNoSpacing">Here the Game starts……………………</p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p class="MsoNoSpacing">Now we have to start ricci service on both nodes</p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p style="font-weight: bold; font-style: italic;" class="MsoNoSpacing"># Service ricci start</p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p class="MsoNoSpacing">Go to Luci Cluster management -Cluster Create a new Cluster.</p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p style="font-weight: bold; font-style: italic;" class="MsoNoSpacing">Cluster name – webclust</p> <p style="font-weight: bold; font-style: italic;" class="MsoNoSpacing">Node or host name – xen1.ansil.com</p> <p style="font-weight: bold; font-style: italic;" class="MsoNoSpacing">Node or host name – xen2.ansil.com</p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p class="MsoNoSpacing">Also enter password for both nodes and click submit.</p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p class="MsoNoSpacing"><span xmlns=""><span style=""><img src="http://i421.photobucket.com/albums/pp291/ansilh1/BLOG/29.jpg" /></span></span></p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p class="MsoNoSpacing">Now it will go through 4 stages</p> <p class="MsoNoSpacing">Download packages—rebooting—creating cluster—joining cluster</p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p class="MsoNoSpacing">After completion of these stages you must have to enable cman and rgmanager in auto start</p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p style="font-weight: bold; font-style: italic;" class="MsoNoSpacing">#chkconfig –level 35 cman on</p> <p style="font-weight: bold; font-style: italic;" class="MsoNoSpacing">#chkconfig –level 35 rgmanager on</p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p class="MsoNoSpacing">And ensure ricci service is started</p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p style="font-weight: bold; font-style: italic;" class="MsoNoSpacing"># service ricci status</p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p class="MsoNoSpacing">Now you can see your cluster in Cluster list on Luci Web UI</p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p class="MsoNoSpacing"><span xmlns=""><span style=""><img src="http://i421.photobucket.com/albums/pp291/ansilh1/BLOG/30.jpg" /></span></span></p> <p class="MsoNoSpacing">Hurray…………………Our Operating system cluster is up………….</p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p class="MsoNoSpacing">Now we have to add our web service-Apache in Cluster…..</p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p class="MsoNoSpacing">Here the second part<span style=""> </span>of Game starts….</p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p class="MsoNoSpacing">Add a cluster ip as a resource to our cluster</p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p class="MsoNoSpacing">Go to Cluster ->Configure -> Select Webclust->resources->Add a resource->Select a resource type ->IP address</p> <p class="MsoNoSpacing">Enter the cluster ip here and be sure there will be tick mark on “Monitor this link”</p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p class="MsoNoSpacing"><span xmlns=""><span style=""><img src="http://i421.photobucket.com/albums/pp291/ansilh1/BLOG/31.jpg" /></span></span></p> <p class="MsoNoSpacing"><span style=""> </span></p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p class="MsoNoSpacing">Now we have to create our cluster service </p> <p class="MsoNoSpacing">Go to Cluster <span style="font-family:Wingdings;"><span style="">à</span></span>Configure <span style="font-family:Wingdings;"><span style="">à</span></span> Select Webclust<span style="font-family:Wingdings;"><span style="">à</span></span>Services<span style="font-family:Wingdings;"><span style="">à</span></span>Add a Service</p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p class="MsoNoSpacing"><span style=""> </span><span style="font-weight: bold;">Service name ---webhttp</span></p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p style="font-weight: bold;" class="MsoNoSpacing">Click “Add a service to this resource”</p> <p class="MsoNoSpacing">Select our pre defined resource from <span style="font-weight: bold;">“Existing global resource “</span></p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p class="MsoNoSpacing">And click on submit …now it will configure and add cluster service to our Cluster…</p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p class="MsoNoSpacing"><span xmlns=""><span style=""><img src="http://i421.photobucket.com/albums/pp291/ansilh1/BLOG/32.jpg" /></span></span></p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p style="font-weight: bold;" class="MsoNoSpacing">Here the third part of Game ….Fencing….</p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p class="MsoNoSpacing">Go to<span style=""> </span>Cluster ->Configure -> Select Webclust->Shared Fence device->Add a fence device->Select virtual machine fencing</p> <p class="MsoNoSpacing">Name-- xvm</p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p class="MsoNoSpacing"><span xmlns=""><span style=""><img src="http://i421.photobucket.com/albums/pp291/ansilh1/BLOG/33.jpg" /></span></span></p> <p class="MsoNoSpacing">Click on<span style="font-weight: bold;"> “Add this shared fence device”</span></p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p class="MsoNoSpacing">Our fencing mechanism is ready.</p> <p class="MsoNoSpacing">Now we have to add this fencing mechanism to our cluster nodes</p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p class="MsoNoSpacing">Cluster Configure Select Webclust->Nodes->xen1.ansil.com->Main fencing method<span style="font-family:Wingdings;"><span style="">à</span></span></p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p class="MsoNoSpacing">Add a fence to this level</p> <p class="MsoNoSpacing">Select xvm(Virtual machine fencing) from drop down list</p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p class="MsoNoSpacing"><span xmlns=""><span style=""><img src="http://i421.photobucket.com/albums/pp291/ansilh1/BLOG/34.jpg" /></span></span></p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p class="MsoNoSpacing">Click on Update main fence properties.</p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p class="MsoNoSpacing">Do the same for xen2.ansil.com</p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p class="MsoNoSpacing">…………………………………………………………….<done>………………………………………………………………………………..</done></p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p class="MsoNoSpacing">Now we have to test our cluster Setup….so check your cluster status.</p> <p class="MsoNoSpacing">Create one index.html in /var/www/html on both nodes </p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p class="MsoNoSpacing">Login to one of your Node and type </p> <p style="font-weight: bold;" class="MsoNoSpacing">#clustat</p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p class="MsoNoSpacing"><span xmlns=""><span style=""><img src="http://i421.photobucket.com/albums/pp291/ansilh1/BLOG/35.jpg" /></span></span></p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p class="MsoNoSpacing">Here you can see the cluster is in Quorate state</p> <p class="MsoNoSpacing">Members in cluster</p> <p class="MsoNoSpacing">Status and resource manager</p> <p class="MsoNoSpacing">Service name - Owner of service - and state.</p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p class="MsoNoSpacing">Now open your browser and type <a href="http://10.10.40.63/">http://10.10.40.63</a></p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p class="MsoNoSpacing"><span xmlns=""><span style=""><img src="http://i421.photobucket.com/albums/pp291/ansilh1/BLOG/36.jpg" /></span></span></p> <p class="MsoNoSpacing">Yes My Website is running on cluster IP……!!!!!!!</p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p class="MsoNoSpacing">Now we have to test our failover</p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p class="MsoNoSpacing">So check in which node currently active </p> <p class="MsoNoSpacing"><span xmlns=""><span style=""><img src="http://i421.photobucket.com/albums/pp291/ansilh1/BLOG/37.jpg" /></span></span></p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p class="MsoNoSpacing">Ok…xen2.ansil.com is active..</p> <p class="MsoNoSpacing">First we will stop web service on xen2.ansil.com…</p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p class="MsoNoSpacing"><span xmlns=""><span style=""><img src="http://i421.photobucket.com/albums/pp291/ansilh1/BLOG/38.jpg" /></span></span></p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p class="MsoNoSpacing">I’ve stopped apache on xen2 and cluster state shows “recoverable”…!!!!</p> <p class="MsoNoSpacing">And owner changed to xen1.ansil.com…yes our service shifted to xen1.ansil.com….</p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p class="MsoNoSpacing">But after a moment the service came back to xen2.ansil.com</p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p class="MsoNoSpacing"><span xmlns=""><span style=""><img src="http://i421.photobucket.com/albums/pp291/ansilh1/BLOG/39.jpg" /></span></span></p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p class="MsoNoSpacing">Cluster Suit will restore the service if it is recoverable….!!!!!</p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p class="MsoNoSpacing">Now we are going to shutdown xen2.ansil.com….here we will see actual failover….</p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p class="MsoNoSpacing"><span xmlns=""><span style=""><img src="http://i421.photobucket.com/albums/pp291/ansilh1/BLOG/40.jpg" /></span></span></p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p class="MsoNoSpacing">The above picture will give the full picture to you…analyze it and note down the changes…and check your website..</p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p class="MsoNoSpacing">Yes xen2.ansil.com is off line and what about our website…!!!? Let’s check…</p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p class="MsoNoSpacing">Check your Cluster ip</p> <p class="MsoNoSpacing"># ip addr list</p> <p class="MsoNoSpacing"><span xmlns=""><span style=""><img src="http://i421.photobucket.com/albums/pp291/ansilh1/BLOG/41.jpg" /></span></span></p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p class="MsoNoSpacing"><span xmlns=""><span style=""><img src="http://i421.photobucket.com/albums/pp291/ansilh1/BLOG/42.jpg" /></span></span></p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p class="MsoNoSpacing">Yes Still Working… “ON xen1.ansil.com”</p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p class="MsoNoSpacing"><o:p> </o:p></p> <p class="MsoNoSpacing">Thanks</p> <p class="MsoNoSpacing">Ansil Hameed</p> <p class="MsoNoSpacing"><span style=""> </span><b style="">ansil4linux.blogspot.com</b></p><p class="MsoNoSpacing">
<br /><b style=""><o:p></o:p></b></p> <p class="MsoNoSpacing"><b style=""><o:p> </o:p></b></p> <p class="MsoNoSpacing"><b style=""><o:p> </o:p></b></p> <pre><b style="">Note:-</b> # dd if=/dev/urandom of=/etc/cluster/fence_xvm.key bs=4k count=1</pre> <p class="MsoNoSpacing"><b style=""><o:p> </o:p></b></p> <p class="MsoNormal"><o:p> </o:p></p>
<br /></span>Ansilhttp://www.blogger.com/profile/07287558007793912931noreply@blogger.com0tag:blogger.com,1999:blog-5632235867526129400.post-63293819107048453852009-11-10T05:33:00.000-08:002009-11-12T05:15:38.287-08:00<span style="font-weight: bold; color: rgb(51, 102, 255);">CHROOT-BIND</span><br /><br />Before starting<br />This tutorial is written "only for a beginner,by a beginner".NOT FOR PRODUCTION<br /><br /><span style="font-weight: bold; color: rgb(204, 51, 204);">Why we are using CHROOT-BIND</span><br /><br />The idea behind running BIND in a chroot jail is to limit the amount of access any malicious individual could gain by hacking BIND.<br />It is for the same reason that we run BIND as a non-root user.<br /><br /><br /><br /><span style="font-weight: bold; color: rgb(51, 102, 255);">CHROOT-BIND configuration</span><br />========================================<br />/var/named/chroot/---will be the root ("/") directory<br /><br />ie;/etc/named.conf will be /var/named/chroot/etc/named.conf<br />/var/named/ will be /var/named/chroot/var/named/<br /><br /><span style="font-weight: bold;">KEEP THIS IN MIND EVERY TIME....</span><br />we will not refer original location ie; /var/named/chroot/etc/named.conf<br />Will refer as /etc/named.conf<br /><br />=========================================<br /><span style="font-weight: bold; color: rgb(51, 51, 153);">/etc/named.conf</span><br />=========================================<br /><span style="font-style: italic;">options</span><br /><span style="font-style: italic;">{</span><br /><span style="font-style: italic;">directory "/var/named";</span><br /><span style="font-style: italic;">};</span><br /><br /><span style="font-style: italic;">controls {</span><br /><span style="font-style: italic;"> inet 127.0.0.1 allow { localhost;127.0.0.1;} keys { rndckey; };</span><br /><span style="font-style: italic;">};</span><br /><br /><br /><span style="font-style: italic;">acl "safe-subnet" { 10.10.40.0/24; };</span><br /><span style="font-style: italic;">view "internal" {</span><br /><br /><span style="font-style: italic;"> match-clients { localnets; localhost; safe-subnet; };</span><br /><span style="font-style: italic;"> match-destinations { localnets; localhost; safe-subnet; };</span><br /><span style="font-style: italic;"> recursion yes;</span><br /><br /><span style="font-style: italic;">zone "." IN {</span><br /><span style="font-style: italic;"> type hint;</span><br /><span style="font-style: italic;"> file "named.ca";</span><br /><span style="font-style: italic;">};</span><br /><br /><span style="font-style: italic;">zone "localhost" IN {</span><br /><span style="font-style: italic;"> type master;</span><br /><span style="font-style: italic;"> file "localhost.zone";</span><br /><span style="font-style: italic;"> allow-update { none; };</span><br /><span style="font-style: italic;">};</span><br /><br /><span style="font-style: italic;">zone "0.0.127.in-addr.arpa" IN {</span><br /><span style="font-style: italic;"> type master;</span><br /><span style="font-style: italic;"> file "named.local";</span><br /><span style="font-style: italic;"> allow-update { none; };</span><br /><span style="font-style: italic;">};</span><br /><span style="font-style: italic;">include "/var/named/zones/internal/internal_zones.conf";</span><br /><span style="font-style: italic;">};</span><br /><br /><span style="font-style: italic;">include "/etc/rndc.key";</span><br />============================================<br />1.The first line "options" contains only one directive pointing to<br />where to store default zone related files<br /><br />2.The "controls" section is used to administer named deamon using "rndc"<br /><br />3.The "acl" is used to define control list (Just like in squid proxy)<br /><br />4.The "view" section is used to define internal and external connection<br />We have only internal view so that internal netwok can query the name server<br /><br />5.The three zone definitions are needed for a production system<br />a)The first zone contains all root domains (13 Servers)<br />b)Forward zone file for local host<br />c)Revers file for local host<br /><br />6.The first include directive is pointing to our internal zone(internal view).<br /><br />7.The last include directive is used for administer named deamon using rndc<br />The file contains an algorithm and an md5-key for encrypting data while using rndc<br />from remote server<br /><br />===============================================<br /><span style="font-weight: bold; color: rgb(204, 0, 0);">Our Zone file definitions</span><br />===============================================<br /><span style="font-weight: bold;">/var/named/zones/internal/internal_zones.conf</span><br />===============================================<br /><span style="font-style: italic;">zone "40.10.10.in-addr.arpa" IN {</span><br /><span style="font-style: italic;"> type master;</span><br /><span style="font-style: italic;"> file "/var/named/zones/internal/10-10-40.zone";</span><br /><span style="font-style: italic;"> allow-update { none; };</span><br /><span style="font-style: italic;">};</span><br /><br /><span style="font-style: italic;">zone "ansil.com" IN {</span><br /><span style="font-style: italic;"> type master;</span><br /><span style="font-style: italic;"> file "/var/named/zones/internal/ansil.com.zone";</span><br /><span style="font-style: italic;"> allow-update { none; };</span><br /><span style="font-style: italic;">};</span><br />==============================================<br /><span style="font-weight: bold;">/var/named/zones/internal/10-10-40.zone</span><br />==============================================<br /><span style="font-style: italic;">$TTL 3D</span><br /><span style="font-style: italic;">@ IN SOA ns1.ansil.com. root.ansil.com. (</span><br /><span style="font-style: italic;"> 200911101 ; serial number</span><br /><span style="font-style: italic;"> 8H ; refresh, seconds</span><br /><span style="font-style: italic;"> 2H ; retry, seconds</span><br /><span style="font-style: italic;"> 4W ; expire, seconds</span><br /><span style="font-style: italic;"> 1D ) ; minimum, seconds</span><br /><br /><span style="font-style: italic;"> NS www ; Nameserver Address</span><br /><br /><span style="font-style: italic;">211 PTR www.ansil.com.</span><br />=============================================<br /><span style="font-weight: bold;">/var/named/zones/internal/ansil.com.zone</span><br />=============================================<br /><span style="font-style: italic;">$TTL 3D</span><br /><span style="font-style: italic;">@ IN SOA ns1.ansil.com. root.ansil.com. (</span><br /><span style="font-style: italic;"> 200911101 ; serial#</span><br /><span style="font-style: italic;"> 3600 ; refresh, seconds</span><br /><span style="font-style: italic;"> 3600 ; retry, seconds</span><br /><span style="font-style: italic;"> 3600 ; expire, seconds</span><br /><span style="font-style: italic;"> 3600 ) ; minimum, seconds</span><br /><br /><span style="font-style: italic;"> NS ns1.ansil.com ; Inet Address of nameserver</span><br /><span style="font-style: italic;">ansil.com. MX 10 mail ; Primary Mail Exchanger</span><br /><br /><span style="font-style: italic;">localhost A 127.0.0.1</span><br /><span style="font-style: italic;">www A 10.10.40.211</span><br /><span style="font-style: italic;">mail A 10.10.40.212</span><br /><span style="font-style: italic;">ns1 A 10.10.40.213</span><br />=============================================<br /><span style="font-weight: bold;">/etc/rndc.key</span><br />=============================================<br />You can create your own rndc key file using<br /><span style="font-weight: bold;"># rndc-confgen >rndc.kye</span><br />The file will shown like<br /><br /><span style="font-style: italic;">key "rndckey" {</span><br /><span style="font-style: italic;"> algorithm hmac-md5;</span><br /><span style="font-style: italic;"> secret "YKPl5gxHe1d2J6kyjDGZFg==";</span><br /><span style="font-style: italic;">};</span><br /><br /><span style="font-style: italic;">options {</span><br /><span style="font-style: italic;"> default-key "rndckey";</span><br /><span style="font-style: italic;"> default-server 127.0.0.1;</span><br /><span style="font-style: italic;"> default-port 953;</span><br /><span style="font-style: italic;">};</span><br /><br />We will not use options here;because we already mentioned<br />the same in "controls" section.So just keep "rndckey" entry<br />At last the file /etc/rndc.key will be like this<br />============================================<br /><span style="font-style: italic;">key "rndckey" {</span><br /><span style="font-style: italic;"> algorithm hmac-md5;</span><br /><span style="font-style: italic;"> secret "YKPl5gxHe1d2J6kyjDGZFg==";</span><br /><span style="font-style: italic;">};</span><br />============================================<br />At last you have to copy some files from<span style="font-weight: bold;">/usr/share/doc/bind-9.3.3/sample/var/named</span><br />to<span style="font-weight: bold;"> /var/named/</span><br /><br /><span style="font-weight: bold;">1.named.root</span><br /><span style="font-weight: bold;">2.named.local</span><br /><span style="font-weight: bold;">3.localhost.zone</span><br /><br />Rename named.root to named.ca<br /><br />open<span style="font-weight: bold;"> /etc/resolve.conf </span>and add<br /><span style="font-style: italic;"> nameserver 127.0.0.1</span><br />===========================================<br /><br />Check your configuration using "host" command<br />1.Forward Lookup<br /><span style="font-style: italic;"># host www.ansil.com</span><br /><span style="font-style: italic;">www.ansil.com has address 10.10.40.211</span><br />2.Reverse lookup<br /><span style="font-style: italic;"># host 10.10.40.211</span><br /><span style="font-style: italic;">211.40.10.10.in-addr.arpa domain name pointer www.ansil.com.</span><br /><br />The Reverse internal zone file contains only one pointer www.ansil.com to 10.10.40.211<br />The Forward internal zone file contains many entries like<br /> 1.Mail exchanger<br /> 2.Name server<br /> 3.A record will give the IP of a domainAnsilhttp://www.blogger.com/profile/07287558007793912931noreply@blogger.com0tag:blogger.com,1999:blog-5632235867526129400.post-47781303311314426122009-11-03T05:51:00.000-08:002011-05-04T13:56:23.608-07:00Clustering Apche Using RHCS(Redhat Cluster Suit)<span style="font-size:180%;">How to Install Redhat Clustering Suite</span><br /><br />For a cluster setup you need minimum two machines<br /><br />1. Node1<br /><br />2. Node2<br /><br />In this setup we will install cluster management software on another machine called Manager<br /><br />The machine names and IPs are<br /><br /><span style="font-weight: bold;">1. node1.ansil.com --- 10.10.40.212</span><br /><br /><span style="font-weight: bold;">2. node2.ansil.com --- 10.10.40.213</span><br /><br /><span style="font-weight: bold;">3. manager.ansil.com --- 10.10.40.211</span><br /><br /><span style="font-style: italic;">Be sure that you can access these machines through their names(FQDN).For this use a dns server/flat dns(/etc/hosts)</span><br /><br />Management Server<br /><br />1. Configure YUM<br /><br />2. Install Cluster management software Luci<br /><br />3. Initialise Luci cluster manager<br /><br />4. Set password for Luci admin login<br /><br />5. Start Luci service<br /><br /><span style="font-weight: bold;">1. Configure YUM</span><br /><br />First you have to setup a yum repository in management server. You can find the procedure for creating yum is in earlier post.<br /><br /><span style="font-weight: bold;">2. Install Cluster management software Luci</span><br /><br /># yum install luci*<br /><br /><span style="font-weight: bold;">3. Initialise Luci cluster manager</span><br /><br /># luci_admin init<br /><br /><span style="font-weight: bold;">4. Set password for Luci admin login</span><br /><br />Enter password for ‘Admin’ user<br /><br />Enter password:<br /><br />Reenter password:<br /><br /><span style="font-weight: bold;">5. Start Luci service</span><br /><br /># service luci start<br /><br />After starting service you can access Luci cluster management using<br /><br />https://10.10.40.211:8084<br /><br /><a href="http://ansil4linux.blogspot.com/2010/02/this-post-was-published-to-ansil-and.html">More on here...</a><br /><span style="font-weight: bold;"></span><br /><br />Enter “admin” as user name and password that you entered while initializing LuciAnsilhttp://www.blogger.com/profile/07287558007793912931noreply@blogger.com0tag:blogger.com,1999:blog-5632235867526129400.post-22377528669923766622009-10-23T06:26:00.001-07:002009-10-31T00:56:34.558-07:00How to Configure YUM<img src="http://i421.photobucket.com/albums/pp291/ansilh1/AddOrRemove_3.jpg" height="315" width="435" /><br /><br />Most of the beginners in Linux faces a big problem when they are deploying a package i.e.; dependency failure. To resolve this issue redhat introduced a technology called YUM.<br />YUM is a repository system contains information about packages and files inside every RPMs<br />Don’t worry about redhat repository .Create your own Yum repository in a local system and enjoy<br />Here we go<br /><br />1. You must have all CDs used for Redhat installation<br />2. 3 GB partition formatted in ext3<br />3. Ftp service<br />4. Create repo package<br /><br />Create a directory in / called yum<br /><br /># mkdir /yum<br /><br />Create one partition using fdisk with 3 gb size<br />After creating partition reboot the system or use <span style="font-weight: bold;">partprob</span> command to rebuild partition table<br /><br />Format partition<br /><br /># mkfs.ext3 /dev/sdX<br /><br />Mount the newly created partition to /yum<br /><br /># mount /dev/sdX /yum<br /><br />Add the same to fstab for mounting at system startup<br /><br />Mount your 1st CD to /mnt<br /><br /># mount /dev/cdrom /mnt<br /><br />Copy Server, Cluster, ClusterStorage, VT directories to /yum<br /><br /># cp –ai /mnt/Server /yum<br /># cp –ai /mnt/Cluster /yum<br /># cp –ai /mnt/ClusterStorage /yum<br /># cp –ai /mnt/VT /yum<br /><br />Unmount 1st CD and mount 2nd CD to /mnt<br /><br />Umount /dev/cdrom<br />Insert 2nd CD<br /><br /># mount /dev/cdrom /mnt<br /><br />Copy all the contents from /mnt/Server directory to /yum/ Server<br />Copy all the contents from /mnt/Cluster directory to yum/Cluster<br />Copy all the contents from /mnt/ClusterStorage to /yum/ ClusterStorage<br />Copy all the contents from /mnt/VT directory to /yum/VT<br /><br /># cp –ai /mnt/Server /* /yum/Server/<br /># cp –ai /mnt/Cluster /* /yum/ Cluster /<br /># cp –ai /mnt/ClusterStorage /* /yum/ ClusterStorage /<br /># cp –ai /mnt/VT /* /yum/ VT /<br /><br /><br />Copy /yum/Server/repodata/comp-rhel5-server-core.xml to /tmp<br />Copy /yum/Cluster/repodata/comp-rhel5-cluster.xml to /tmp<br />Copy /yum/ClusterStorage/repodata/comp-rhel5-cluster-st.xml to /tmp<br />Copy /yum/VT/repodata/comp-rhel5-vt.xml to /tmp<br /><br /># cp /yum/Server/repodata/comp-rhel5-server-core.xml /tmp<br /># cp /yum/Cluster/repodata/comp-rhel5-cluster.xml /tmp<br /># cp /yum/ClusterStorage/repodata/comp-rhel5-cluster-st.xml /tmp<br /># cp /yum/VT/repodata/comp-rhel5-vt.xml /tmp<br /><br /><br />Remove /yum/Server/repodata directory<br />Remove /yum/ Cluster /repodata directory<br />Remove /yum/ ClusterStorage /repodata directory<br />Remove /yum/ VT /repodata directory<br /><br /># rm –fr /yum/Server/repodata<br /># rm –fr /yum/ Cluster /repodata<br /># rm –fr /yum/ ClusterStorage /repodata<br /># rm –fr /yum/ VT /repodata<br /><br />Create your group repository using createrepo<br /><br />#createrepo -g /tmp/ comp-rhel5-server-core.xml /yum/Server/<br />#createrepo –g /tmp/ comp-rhel5-cluster.xml /yum/ Cluster<br />#createrepo –g /tmp/c omp-rhel5-cluster-st.xml/yum/ ClusterStorage<br />#createrepo –g /tmp/ comp-rhel5-vt.xml /yum/ VT<br /><br />Create repodata file in /etc/yum.repos.d/<br />1. Copy rhel-debuginfo.repo as Server.repo to the same directory<br />2. Open Server.repo<br />3. And change the portions highlighted<br />-----------------------------------------------------------<br />[Server]<br />Name=Ansil’s repo<br />Baseurl=ftp://your ip/Server/<br />enabled=1<br />gpgcheck=1<br />gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release<br />-----------------------------------------------------------<br /><br />Copy Server.repo as Cluster.repo, ClusterStorage.repo, and VT.repo to the same directory (/etc/yum.repos.d/)<br /><br />Change filed in “[ ]” for each file and put Cluster, ClusterStorage.repo, and VT for Cluster.repo, ClusterStorage.repo, and VT.repo respectively<br /><br />Now your YUM repository is ready<br /><br /><br />Also you have to configure Ftp service for accessing this repository from outside<br /><br />Open /etc/vsftpd/vsftpd.conf<br /><br />1. Check line<br />anonymous_enable=YES<br />is uncommented<br /><br />2. Add<br />anon_root=/yum<br />at the end of file<br /><br />Restart Ftp service<br /># service vsftpd restart<br /># chkconfig –level 35 vsftpd on<br /><br />ALL… DONE…!!!!!<br /><br />Go to Application->Add/Remove Software<br /><img src="http://i421.photobucket.com/albums/pp291/ansilh1/AddOrRemove_1.jpg" height="315" width="435" /><br /><img src="http://i421.photobucket.com/albums/pp291/ansilh1/AddOrRemove_2.jpg" height="315" width="435" />Ansilhttp://www.blogger.com/profile/07287558007793912931noreply@blogger.com0