<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Tech Nirvana</title>
	<atom:link href="http://vkothiyal.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://vkothiyal.wordpress.com</link>
	<description>few steps to free and open world</description>
	<lastBuildDate>Wed, 05 Oct 2011 16:30:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='vkothiyal.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://0.gravatar.com/blavatar/4ed1c2010554531278071a4aaa23e0c1?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Tech Nirvana</title>
		<link>http://vkothiyal.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://vkothiyal.wordpress.com/osd.xml" title="Tech Nirvana" />
	<atom:link rel='hub' href='http://vkothiyal.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Moved</title>
		<link>http://vkothiyal.wordpress.com/2010/11/02/moved/</link>
		<comments>http://vkothiyal.wordpress.com/2010/11/02/moved/#comments</comments>
		<pubDate>Tue, 02 Nov 2010 16:41:15 +0000</pubDate>
		<dc:creator>vkothiyal</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://vkothiyal.wordpress.com/?p=86</guid>
		<description><![CDATA[Hi all, I have moved my Blog to http://vipul.kothiyal.com/blog/ and will delete this one soon. Cheers Vipul Filed under: General<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vkothiyal.wordpress.com&amp;blog=11580079&amp;post=86&amp;subd=vkothiyal&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hi all,<br />
I have moved my Blog to </p>
<p>http://vipul.kothiyal.com/blog/</p>
<p>and will delete this one soon.<br />
Cheers<br />
Vipul</p>
<br />Filed under: <a href='http://vkothiyal.wordpress.com/category/general/'>General</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vkothiyal.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vkothiyal.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vkothiyal.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vkothiyal.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vkothiyal.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vkothiyal.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vkothiyal.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vkothiyal.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vkothiyal.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vkothiyal.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vkothiyal.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vkothiyal.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vkothiyal.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vkothiyal.wordpress.com/86/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vkothiyal.wordpress.com&amp;blog=11580079&amp;post=86&amp;subd=vkothiyal&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vkothiyal.wordpress.com/2010/11/02/moved/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a030af60cf1371b0f1259644dd41a83d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vkothiyal</media:title>
		</media:content>
	</item>
		<item>
		<title>Compiling a driver rpm on Centos4</title>
		<link>http://vkothiyal.wordpress.com/2010/10/20/compiling-a-driver-rpm-on-centos4/</link>
		<comments>http://vkothiyal.wordpress.com/2010/10/20/compiling-a-driver-rpm-on-centos4/#comments</comments>
		<pubDate>Wed, 20 Oct 2010 15:12:45 +0000</pubDate>
		<dc:creator>vkothiyal</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[broadcom5740]]></category>
		<category><![CDATA[centos4]]></category>
		<category><![CDATA[compiling driver]]></category>
		<category><![CDATA[driver rpm]]></category>
		<category><![CDATA[drivers]]></category>

		<guid isPermaLink="false">http://vkothiyal.wordpress.com/?p=82</guid>
		<description><![CDATA[We recently had a network card driver issue in one of our Centos 4 , HP DL 380 G4 machines. error messages in syslog: NETDEV WATCHDOG: eth2: transmit timed out tg3: eth2: transmit timed out, resetting tg3: tg3_stop_block timed out, ofs=2c00 enable_bit=2 tg3: tg3_stop_block timed out, ofs=3400 enable_bit=2 After some googling it seemed to be [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vkothiyal.wordpress.com&amp;blog=11580079&amp;post=82&amp;subd=vkothiyal&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>We recently had a network card driver issue in one of our Centos 4 , HP DL 380 G4 machines.</p>
<p>error messages in syslog:</p>
<p>NETDEV WATCHDOG: eth2: transmit timed out<br />
tg3: eth2: transmit timed out, resetting<br />
tg3: tg3_stop_block timed out, ofs=2c00 enable_bit=2<br />
tg3: tg3_stop_block timed out, ofs=3400 enable_bit=2</p>
<p>After some googling it seemed to be  a known issue and way out was to a) Disable flow control and</p>
<p>b) update the driver</p>
<p>To disable flow control all you need to do is, at command prompt:</p>
<p><strong>ethtool -K ethX(interface number) tso off</strong></p>
<p>Now the next bit to compile the driver for centos 4</p>
<p>1) Get the driver srpm (Yes I like RPMs, I just do) from broadcom ot HP website</p>
<p>2) On the server make sure you have Kernel source, gcc, rpm-build installed</p>
<p>basically</p>
<p><strong>yum install rpm-build gcc kernel-devel</strong></p>
<p>on RHEL4 you&#8217;ll need kernel-headers as well</p>
<p>go to directory where you have kept the driver SRPM and do as below:</p>
<p><strong>rpm -ivh driver.src.rpm</strong></p>
<p>(if you get error for unable to create SOURCES directory then create redhat directory in /usr/src)</p>
<p>now <strong>cd /usr/src/redhat</strong></p>
<p><strong>rpmbuild -bb SPECS/tg3.spec</strong></p>
<p>The rpm will get built in RPMS directory in /usr/src/redhat go in there and install it  as below</p>
<p><strong>rpm -Uvh tg3-3.110g-1(</strong><strong>).i386.rpm</strong></p>
<p>you can use this rpm on any other machine which has same kernel and off course the said hardware.</p>
<p>Now a reboot is needed.</p>
<p>Cheers</p>
<br />Filed under: <a href='http://vkothiyal.wordpress.com/category/technology/'>Technology</a> Tagged: <a href='http://vkothiyal.wordpress.com/tag/broadcom5740/'>broadcom5740</a>, <a href='http://vkothiyal.wordpress.com/tag/centos4/'>centos4</a>, <a href='http://vkothiyal.wordpress.com/tag/compiling-driver/'>compiling driver</a>, <a href='http://vkothiyal.wordpress.com/tag/driver-rpm/'>driver rpm</a>, <a href='http://vkothiyal.wordpress.com/tag/drivers/'>drivers</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vkothiyal.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vkothiyal.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vkothiyal.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vkothiyal.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vkothiyal.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vkothiyal.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vkothiyal.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vkothiyal.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vkothiyal.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vkothiyal.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vkothiyal.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vkothiyal.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vkothiyal.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vkothiyal.wordpress.com/82/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vkothiyal.wordpress.com&amp;blog=11580079&amp;post=82&amp;subd=vkothiyal&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vkothiyal.wordpress.com/2010/10/20/compiling-a-driver-rpm-on-centos4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a030af60cf1371b0f1259644dd41a83d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vkothiyal</media:title>
		</media:content>
	</item>
		<item>
		<title>Enabling JMX Remote for Jboss on RHEL5.0</title>
		<link>http://vkothiyal.wordpress.com/2010/10/07/enabling-jmx-remote-for-jboss-on-rhel5-0/</link>
		<comments>http://vkothiyal.wordpress.com/2010/10/07/enabling-jmx-remote-for-jboss-on-rhel5-0/#comments</comments>
		<pubDate>Thu, 07 Oct 2010 13:44:15 +0000</pubDate>
		<dc:creator>vkothiyal</dc:creator>
				<category><![CDATA[jboss]]></category>
		<category><![CDATA[JMX]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[jmx port]]></category>
		<category><![CDATA[jmxremote]]></category>
		<category><![CDATA[jmxremote issues]]></category>

		<guid isPermaLink="false">http://vkothiyal.wordpress.com/?p=78</guid>
		<description><![CDATA[After a  lot of pain and hit and trial this is what worked for me to enable JMX remote for a Jboss server on RHEL5. Add this line in your run.sh for Jboss: JAVA_OPTS=&#8221;$JAVA_OPTS  -Djava.rmi.server.hostname=`hostname` -Dcom.sun.management.jmxremote.port=9001 Dcom.sun.management.jmxremote.ssl=false \    -Dcom.sun.management.jmxremote.authenticate=false&#8221; notice -Djava.rmi.server.hostname=`hostname` , this bit is not in standard docs however this is what made mine work as it [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vkothiyal.wordpress.com&amp;blog=11580079&amp;post=78&amp;subd=vkothiyal&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>After a  lot of pain and hit and trial this is what worked for me to enable JMX remote for a Jboss server on RHEL5.</p>
<p>Add this line in your run.sh for Jboss:</p>
<p>JAVA_OPTS=&#8221;$JAVA_OPTS  -Djava.rmi.server.hostname=`hostname` -Dcom.sun.management.jmxremote.port=9001 Dcom.sun.management.jmxremote.ssl=false \    -Dcom.sun.management.jmxremote.authenticate=false&#8221;</p>
<p>notice -Djava.rmi.server.hostname=`hostname` , this bit is not in standard docs however this is what made mine work as it seems without it JMX could not bint to the hostname, strange yes I know, but hey we live in a  strange world <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Update: There is another caviat with JMX remote if you have iptables enabled on your server.</p>
<p>Basically when you enable JMX remote it creates 2 sockets, one on the  port specified and the other one it creates on a random port, each time  you restart Jboss this port changes, I am not sure what it is for but  it should be open for you to be able to connect JMX remote.<br />
Now because it is a random port we can&#8217;t add a rule in iptables for it, hence no JMX remote.<br />
There could be 3 options to go about it:<br />
a) You dig the bit that generates a random port and hardcode it to a  fixed port or some how enable some config to assign it to a fixed port .  (Best pref)</p>
<p>b) Each time after you restart Jboss yo do this:<br />
i) stop iptables /etc/init.d/iptables stop<br />
ii) connect to jconsole from your machine and not down the dynamic port by doing</p>
<p>netstat -a | grep {name of you machine}<br />
iii) open this port in iptables and start iptables again</p>
<p>(Ugly hack)</p>
<p>c) disable iptabels (I wouldn&#8217;t prefer this)</p>
<br />Filed under: <a href='http://vkothiyal.wordpress.com/category/technology/jboss/'>jboss</a>, <a href='http://vkothiyal.wordpress.com/category/technology/jmx/'>JMX</a>, <a href='http://vkothiyal.wordpress.com/category/technology/'>Technology</a> Tagged: <a href='http://vkothiyal.wordpress.com/tag/jboss/'>jboss</a>, <a href='http://vkothiyal.wordpress.com/tag/jmx-port/'>jmx port</a>, <a href='http://vkothiyal.wordpress.com/tag/jmxremote/'>jmxremote</a>, <a href='http://vkothiyal.wordpress.com/tag/jmxremote-issues/'>jmxremote issues</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vkothiyal.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vkothiyal.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vkothiyal.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vkothiyal.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vkothiyal.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vkothiyal.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vkothiyal.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vkothiyal.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vkothiyal.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vkothiyal.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vkothiyal.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vkothiyal.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vkothiyal.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vkothiyal.wordpress.com/78/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vkothiyal.wordpress.com&amp;blog=11580079&amp;post=78&amp;subd=vkothiyal&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vkothiyal.wordpress.com/2010/10/07/enabling-jmx-remote-for-jboss-on-rhel5-0/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a030af60cf1371b0f1259644dd41a83d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vkothiyal</media:title>
		</media:content>
	</item>
		<item>
		<title>Adding a Disk Array to Sun V240</title>
		<link>http://vkothiyal.wordpress.com/2010/03/01/adding-a-disk-array-to-sun-v240/</link>
		<comments>http://vkothiyal.wordpress.com/2010/03/01/adding-a-disk-array-to-sun-v240/#comments</comments>
		<pubDate>Mon, 01 Mar 2010 16:05:40 +0000</pubDate>
		<dc:creator>vkothiyal</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Solaris paritioning]]></category>
		<category><![CDATA[Storage tek 2530]]></category>
		<category><![CDATA[Sun disk arrary]]></category>

		<guid isPermaLink="false">http://vkothiyal.wordpress.com/?p=72</guid>
		<description><![CDATA[We had an old Sun Server(SunV240) which needed external(more basically) storage. Our vendor suggested us to go with Sun Storagetek 2530 based on our space requirements. Now the fun started as we were delivered with a wrong card(PCIe) to connect the array with, which obviously was a stupid mistake to make when you do this [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vkothiyal.wordpress.com&amp;blog=11580079&amp;post=72&amp;subd=vkothiyal&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><!-- 		@page { margin: 2cm } 		P { margin-bottom: 0.21cm } --></p>
<pre>We had an old Sun Server(SunV240) which needed external(more basically) storage. Our vendor suggested us to go with Sun Storagetek 2530 based on our space requirements. Now the fun started as we were delivered with a wrong card(PCIe) to connect the array with, which obviously was a stupid mistake to make when you do this work day in day out unlike me., Well after some haggling by one of my colleagues they delivered the correct card and I did the connection. Here is what I did:
1) Connect both the controllers of 2530 to Management LAN (As the only way you'll be able to configure/manage 2530 is via Common Array Manager, which if you don't already have installed then you'll have  to install it on a host, this can be Linux(yay!!), widows or solaris(no way)).
2) Once you  have the array connected to network and it has received it's IP address from your DHCP server(Yup you are in for trouble if you don't have a dhcp server or you like to assign static IPs to management LAN interfaces), then you'll need to add this array to you CAM host, which is not very painful, (In my setup I did notice that our DHCP server didn't assign a default gateway to these interfaces)
3) Now that that Array is added in to CAM host you need to make sure/do following on the array:
■  The system time has beencorrectly set.
■  At least one new user has been added and assigned the roleof “storage.”
■  An initiator has been created.
■  At least one host has been created and mapped to an initiator.
■  At least one host group has been created.
■  A storage pool has been created.
■  A volume has been created and mapped to a host or host group.
It's really straight forward to accomplish these Via CAM web GUI.
4) Now log on to the server you have connected the array to and switch user to super user and do following
#drvconfig
#disks
you can check if your array has been detected or not
#  ls -lt /dev/rdsk/ | more
total 64
lrwxrwxrwx   1 root     root          55 Mar  1 13:53 c2t0d0s7 -&gt; ../../devices/pci@1d,700000/LSILogic,sas@1/sd@0,0:h,raw
lrwxrwxrwx   1 root     root          55 Mar  1 13:53 c2t0d0s6 -&gt; ../../devices/pci@1d,700000/LSILogic,sas@1/sd@0,0:g,raw
lrwxrwxrwx   1 root     root          55 Mar  1 13:53 c2t0d0s5 -&gt; ../../devices/pci@1d,700000/LSILogic,sas@1/sd@0,0:f,raw
lrwxrwxrwx   1 root     root          55 Mar  1 13:53 c2t0d0s4 -&gt; ../../devices/pci@1d,700000/LSILogic,sas@1/sd@0,0:e,raw
lrwxrwxrwx   1 root     root          55 Mar  1 13:53 c2t0d0s3 -&gt; ../../devices/pci@1d,700000/LSILogic,sas@1/sd@0,0:d,raw
lrwxrwxrwx   1 root     root          55 Mar  1 13:53 c2t0d0s2 -&gt; ../../devices/pci@1d,700000/LSILogic,sas@1/sd@0,0:c,raw
lrwxrwxrwx   1 root     root          55 Mar  1 13:53 c2t0d0s1 -&gt; ../../devices/pci@1d,700000/LSILogic,sas@1/sd@0,0:b,raw
lrwxrwxrwx   1 root     root          55 Mar  1 13:53 c2t0d0s0 -&gt; ../../devices/pci@1d,700000/LSILogic,sas@1/sd@0,0:a,raw
Now all we need to do is partition the new drive so do following:
#format
you'll see something like;
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c0t0d0
/pci@1c,600000/scsi@2/sd@0,0
1. c0t1d0
/pci@1c,600000/scsi@2/sd@1,0
2. c2t0d0
/pci@1d,700000/LSILogic,sas@1/sd@0,0
Specify disk (enter its number):
Ours was disk number 2, so that's what I entered and it'll show somehting like:
selecting c2t0d0
[disk formatted]
FORMAT MENU:
disk       - select a disk
type       - select (define) a disk type
partition  - select (define) a partition table
current    - describe the current disk
format     - format and analyze the disk
repair     - repair a defective sector
label      - write label to the disk
analyze    - surface analysis
defect     - defect list management
backup     - search for backup labels
verify     - read and display labels
save       - save new disk/partition definitions
inquiry    - show vendor, product and revision
volname    - set 8-character volume name
!     - execute , then return
quit
format&gt;
Enter partition on at format prompt and you shall see something like
format&gt; partition
PARTITION MENU:
0      - change `0' partition
1      - change `1' partition
2      - change `2' partition
3      - change `3' partition
4      - change `4' partition
5      - change `5' partition
6      - change `6' partition
7      - change `7' partition
select - select a predefined table
modify - modify a predefined partition table
name   - name the current table
print  - display the current table
label  - write partition map and label to the disk
!&lt;cmd&gt; - execute &lt;cmd&gt;, then return
quit
partition&gt;
Enter p and it'll show you current drive partition table which will have root, swap, backup and usr partitons which we don't need as this is just going to be used as data disk so we get rid of them by doing:
on partion prompt enter the partition number
partition&gt; <strong>0</strong>
Part      Tag    Flag     Cylinders        Size            Blocks
  0       root    wm       0 -   55      128.84MB    (56/0/0)     263872
Enter partition id tag[root]: <strong>unassigned</strong>
Enter partition permission flags[wm]:
Enter new starting cyl[0]:
Enter partition size[263872b, 56c, 128.84mb, 0.13gb]: <strong>0</strong>
partition&gt;
do the same with swap, backup and usr.
now that you have removed the default partitions, it's time to create new  and to do that we need to do as below.
primarily what we 'll do is :
1) modify
2) label
3) quit the format utility
4) create file system and edit /etc/vfstab
Here are the actual commands:
partition&gt; 1       
Part      Tag    Flag     Cylinders         Size            Blocks
 1 unassigned    wm       0 -  8702      200.01GB    (8703/0/0)   419441085
Enter partition id tag[unassigned]:
Enter partition permission flags[wm]:
Enter new starting cyl[0]: 8703
Enter partition size[419441085b, 8703c, 17405e, 204805.22mb, 200.01gb]:
partition&gt; p
Current partition table (unnamed):
Total disk cylinders available: 48541 + 2 (reserved cylinders)
Part      Tag    Flag     Cylinders         Size            Blocks
 0 unassigned    wm       0 -  8702      200.01GB    (8703/0/0)   419441085
 1 unassigned    wm    8703 - 17405      200.01GB    (8703/0/0)   419441085
Please notice the cylinder number, don't overlap them.So now the next slice(partition) will be start at cylinder 17406.
I needed to create 5 slices of 200g each so at after repeating the above step for all my partiton table looked like:
partition&gt; p
Current partition table (unnamed):
Total disk cylinders available: 48541 + 2 (reserved cylinders)
Part      Tag    Flag     Cylinders         Size            Blocks
 0 unassigned    wm       0 -  8702      200.01GB    (8703/0/0) 419441085
 1 unassigned    wm    8703 - 17405      200.01GB    (8703/0/0) 419441085
 2 unassigned    wm   17406 - 26108      200.01GB    (8703/0/0) 419441085
 3 unassigned    wm   26109 - 34811      200.01GB    (8703/0/0) 419441085
 4 unassigned    wm   34812 - 43514      200.01GB    (8703/0/0) 419441085
 5 unassigned    wm       0                0         (0/0/0)            0
 6 unassigned    wm       0                0         (0/0/0)            0
 7 unassigned    wm       0                0         (0/0/0)            0
afetr this do:
partition&gt; mod
Select partitioning base:
 0. Current partition table (unnamed)
 1. All Free Hog
Choose base (enter number) [0]?
Warning: Non-contiguous partition (3) in table.
Warning: Non-contiguous partition (4) in table.
Part      Tag    Flag     Cylinders         Size            Blocks
 0 unassigned    wm       0 -  8702      200.01GB    (8703/0/0) 419441085
 1 unassigned    wm    8703 - 17405      200.01GB    (8703/0/0) 419441085
 2 unassigned    wm   17406 - 26108      200.01GB    (8703/0/0) 419441085
 3 unassigned    wm   26109 - 34811      200.01GB    (8703/0/0) 419441085
 4 unassigned    wm   34812 - 43514      200.01GB    (8703/0/0) 419441085
 5 unassigned    wm       0                0         (0/0/0)            0
 6 unassigned    wm       0                0         (0/0/0)            0
 7 unassigned    wm       0                0         (0/0/0)            0
Do you wish to continue creating a new partition
table based on above table[yes]? yes
Free Hog partition[6]?
Warning: No space available from Free Hog partition.
Continue[no]? yes
Enter size of partition '0' [419441085b, 8703c, 204805.22mb, 200.01gb]:
Enter size of partition '1' [419441085b, 8703c, 204805.22mb, 200.01gb]:
Enter size of partition '3' [419441085b, 8703c, 204805.22mb, 200.01gb]:
Enter size of partition '4' [419441085b, 8703c, 204805.22mb, 200.01gb]:
Warning: no space available for '5' from Free Hog partition
Warning: no space available for '7' from Free Hog partition
Part      Tag    Flag     Cylinders         Size            Blocks
 0 unassigned    wm       0 -  8702      200.01GB    (8703/0/0) 419441085
 1 unassigned    wm    8703 - 17405      200.01GB    (8703/0/0) 419441085
 2 unassigned    wm   17406 - 26108      200.01GB    (8703/0/0) 419441085
 3 unassigned    wm   17406 - 26108      200.01GB    (8703/0/0) 419441085
 4 unassigned    wm   26109 - 34811      200.01GB    (8703/0/0) 419441085
 5 unassigned    wm       0                0         (0/0/0)            0
 6 unassigned    wm       0                0         (0/0/0)            0
 7 unassigned    wm       0                0         (0/0/0)            0
Okay to make this the current partition table[yes]? yes
Enter table name (remember quotes): "extarray"
Ready to label disk, continue? yes
Please answer the prompts as above. you can quit partition util now and go back to format and may save the current partition information in a file for future reference, you can do this by
using save command at format prompt
format&gt; save
Saving new disk and partition definitions
Enter file name["./format.dat"]:
format&gt; quit
Now that partitions are created we need to create file system on them which is pretty straight forward:
#newfs -v /dev/dsk/c2t0d0s0
#newfs -v /dev/dsk/c2t0d0s1
#newfs -v /dev/dsk/c2t0d0s2
#newfs -v /dev/dsk/c2t0d0s3
#newfs -v /dev/dsk/c2t0d0s4

You will see the file system creation messages as we have uses Verbose switch as part of newfs. Only thing remaining now is add this disk information to /etc/vfstab, whcich mean add entries similar to tehse in /etc/vfstab

/dev/dsk/c2t0d0s0       /dev/rdsk/c2t0d0s0 /ora01       ufs     3       yes     -

/dev/dsk/c2t0d0s1       /dev/rdsk/c2t0d0s1 /ora02       ufs     3       yes     -

/dev/dsk/c2t0d0s2       /dev/rdsk/c2t0d0s2 /ora03       ufs     3       yes     -

/dev/dsk/c2t0d0s3       /dev/rdsk/c2t0d0s3 /ora04       ufs     3       yes     -

/dev/dsk/c2t0d0s4       /dev/rdsk/c2t0d0s4 /oraarch     ufs     3       yes     -

save them and do

#mount -a

Newly created partitons should now be mounted and you can verify this by doing

#df -kh

# df -kh | grep ora

/dev/dsk/c2t0d0s4      197G    16G   179G     9%    /oraarch

/dev/dsk/c2t0d0s1      197G    64M   195G     1%    /ora02

/dev/dsk/c2t0d0s0      197G    64M   195G     1%    /ora01

/dev/dsk/c2t0d0s3      197G    64M   195G     1%    /ora04

/dev/dsk/c2t0d0s2      197G    64M   195G     1%    /ora03

And we are done.</pre>
<br />Filed under: <a href='http://vkothiyal.wordpress.com/category/general/'>General</a>, <a href='http://vkothiyal.wordpress.com/category/technology/'>Technology</a> Tagged: <a href='http://vkothiyal.wordpress.com/tag/solaris-paritioning/'>Solaris paritioning</a>, <a href='http://vkothiyal.wordpress.com/tag/storage-tek-2530/'>Storage tek 2530</a>, <a href='http://vkothiyal.wordpress.com/tag/sun-disk-arrary/'>Sun disk arrary</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vkothiyal.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vkothiyal.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vkothiyal.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vkothiyal.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vkothiyal.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vkothiyal.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vkothiyal.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vkothiyal.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vkothiyal.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vkothiyal.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vkothiyal.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vkothiyal.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vkothiyal.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vkothiyal.wordpress.com/72/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vkothiyal.wordpress.com&amp;blog=11580079&amp;post=72&amp;subd=vkothiyal&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vkothiyal.wordpress.com/2010/03/01/adding-a-disk-array-to-sun-v240/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a030af60cf1371b0f1259644dd41a83d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vkothiyal</media:title>
		</media:content>
	</item>
		<item>
		<title>Good Bye Entourage, Welcome DavMail, Thunderbird and ical</title>
		<link>http://vkothiyal.wordpress.com/2010/01/27/good-buy-entourage-welcome-davmail-thunderbird-and-ical/</link>
		<comments>http://vkothiyal.wordpress.com/2010/01/27/good-buy-entourage-welcome-davmail-thunderbird-and-ical/#comments</comments>
		<pubDate>Wed, 27 Jan 2010 14:50:54 +0000</pubDate>
		<dc:creator>vkothiyal</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://vkothiyal.wordpress.com/?p=56</guid>
		<description><![CDATA[I have been bitten again and again by the presence of Micro$oft on my mac, and GOD knows why organizations get trapped by M$ . But anyways If you are using Leopard and are fed up with daily crashes of Entourage then you might like this: The Nice guys at DavMail has written a thin [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vkothiyal.wordpress.com&amp;blog=11580079&amp;post=56&amp;subd=vkothiyal&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I have been bitten again and again by the presence of Micro$oft on my mac, and GOD knows why organizations get trapped by M$ <img src='http://s0.wp.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> . But anyways If you are using Leopard and are fed up with daily crashes of Entourage then you might like this:</p>
<p>The Nice guys at DavMail has written a thin proxy, which you install on your machine and point it to owa url for exchange(most organisations have it).</p>
<p>Setup is very simple:</p>
<p>1) Download DavMail from http://davmail.sourceforge.net/download.html</p>
<p>2) and install it as instructed at http://davmail.sourceforge.net/macosxsetup.html</p>
<p>Then Download Thunderbird from http://www.mozillamessaging.com/thunderbird/</p>
<p>and configure as instructed at http://davmail.sourceforge.net/thunderbirdmailsetup.html, they have instructions for Windows but the setup is more or less same.</p>
<p>For Ical sync follow:http://davmail.sourceforge.net/osxicalsetup.html</p>
<p>If you followed them, then  you are done, and hey you just got rid of bulky Entourage.</p>
<p>you can sync exchange calendar directly from Thunderbird by installing Thunderbird lightning plug-in and following these steps : http://davmail.sourceforge.net/thunderbirdcalendarsetup.html</p>
<p>Cheers</p>
<p>Vipul</p>
<br />Posted in General, Technology  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vkothiyal.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vkothiyal.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vkothiyal.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vkothiyal.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vkothiyal.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vkothiyal.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vkothiyal.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vkothiyal.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vkothiyal.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vkothiyal.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vkothiyal.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vkothiyal.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vkothiyal.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vkothiyal.wordpress.com/56/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vkothiyal.wordpress.com&amp;blog=11580079&amp;post=56&amp;subd=vkothiyal&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vkothiyal.wordpress.com/2010/01/27/good-buy-entourage-welcome-davmail-thunderbird-and-ical/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a030af60cf1371b0f1259644dd41a83d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vkothiyal</media:title>
		</media:content>
	</item>
		<item>
		<title>Open Source and Free, Failover 2 node Mysql cluster solution</title>
		<link>http://vkothiyal.wordpress.com/2010/01/20/open-source-and-free-failover-2-node-mysql-cluster-solution/</link>
		<comments>http://vkothiyal.wordpress.com/2010/01/20/open-source-and-free-failover-2-node-mysql-cluster-solution/#comments</comments>
		<pubDate>Wed, 20 Jan 2010 19:39:00 +0000</pubDate>
		<dc:creator>vkothiyal</dc:creator>
				<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://vkothiyal.wordpress.com/2010/01/20/open-source-and-free-failover-2-node-mysql-cluster-solution</guid>
		<description><![CDATA[We have been having a lot of trouble with our database infrastructure off late. We had 2 xen guests, with DRBD+heartbeat, mysql. The Fail over in this setup never really worked and heartbeat was not clever enough in managing service, well when we decided for this setup this was the best solution around. I have [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vkothiyal.wordpress.com&amp;blog=11580079&amp;post=23&amp;subd=vkothiyal&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>We have been having a lot of trouble with our database infrastructure off late. We had 2 xen guests, with DRBD+heartbeat, mysql. The Fail over in this setup never really worked and heartbeat was not clever enough in managing service, well when we decided for this setup this was the best solution around. I have been googling around for a better open source and free solution. What suited us:-&gt; DRBD+OpenAis(corosync)+pacemaker+ Mysql.<br />My Setup is as below:</p>
<p>2xHP Proliant hp DL380G5 servers with 2 Nics.<br />OS: RHEL5.4 (Kernel 2.6.18.164.1) x86_64<br />DRBD: Shared Block device On which Mysql resides.<br />Pacemaker: Manages the services on cluster. decides whcih node to start services on and monitors services.<br />Corosync(OpenAIS): monitors the cluster heartbeat.</p>
<p>Clusterlabs(http://www.clusterlabs.org/) have rpms for pacemaker corosync and heartbeat(ocf components for heartbeat, what is ocf read: http://opencf.org/home.html) in there repo(this is the one i used http://www.clusterlabs.org/rpm/epel-5/x86_64/). The drbd kernel module package in clusterlab repo didn&#8217;t install on my kernel, so I created mine), other drbd packages from there repo will install happily, the one we need for our setup is drbd-heartbeat, drbd-pacemaker, although I installed all drbd-*.</p>
<p>Step by Step Setup:</p>
<p>Note: This etup assumes that you are running RHEL5.4, x86_64.</p>
<p><span style="font-weight:bold;">Installation:</span></p>
<p>On both nodes:<br />1) add clusterlabs repo that is in /etc/yum.repos.d create a repo file and for baseurl use http://www.clusterlabs.org/rpm/epel-5/x86_64/<br />(You can chose repo depending on you distribution)<br />2)  I installed my locally compiled drbd-utils, drbd-km rpms<br />rpm -Uvh http://reponame/vk/drbd-utils-8.3.6-1.x86_64.rpm<br />rpm -Uvh http://reponame/vk/drbd-km-2.6.18_164.6.1.el5xen-8.3.6-12.x86_64.rpm<br />3) Also install esmtp rpm it&#8217;s needed,<br />rpm -Uvh ftp://fr.rpmfind.net/linux/EPEL/5/x86_64/libesmtp-1.0.4-5.el5.x86_64.rpm<br />4) yum -y install pacemaker openais drbd-*<br />5) yum -y install mysql-server<br />(You can chose to install mysql later)</p>
<p><span style="font-weight:bold;">Configuration:</span></p>
<p>DRBD:</p>
<p>On both nodes<br />1) lvcreate &#8211;name=drbd &#8211;size=1G VolGroup00<br />(This drbd metadata partition)<br />2) lvcreate &#8211;name=DRBDDATA &#8211;size=100G VolGroup01<br />(This is actual data partition)<br />3) Zero out the metadata partition <br />dd if=/dev/zero of=/dev/VolGroup00/drbd<br />4) create file system on data drive:<br /> mkfs.ext3 /dev/VolGroup01/DRBDDATA<br />5) mkdir /service<br />6) edit /etc/drbd.conf, mine looks like</p>
<p>#<br /># parameters you _need_ to change are the hostname, device, disk,<br /># meta-disk, address and port in the &#8220;on  {}&#8221; sections.<br />#<br /># you ought to know about the protocol, and the various timeouts.<br />#<br /># you probably want to set the rate in the syncer sections</p>
<p>#<br /># NOTE common pitfall:<br /># rate is given in units of _byte_ not bit<br />#</p>
<p>#<br /># increase timeout and maybe ping-int in net{}, if you see<br /># problems with &#8220;connection lost/connection established&#8221;<br /># (or change your setup to reduce network latency; make sure full<br />#  duplex behaves as such; check average roundtrip times while<br />#  network is saturated; and so on &#8230;)<br />#</p>
<p>skip {<br />  As you can see, you can also comment chunks of text<br />  with a &#8216;skip[optional nonsense]{ skipped text }&#8217; section.<br />  This comes in handy, if you just want to comment out<br />  some &#8216;resource  {&#8230;}&#8217; section:<br />  just precede it with &#8216;skip&#8217;.</p>
<p>  The basic format of option assignment is<br />  ;</p>
<p>  It should be obvious from the examples below,<br />  but if you really care to know the details:</p>
<p>   :=<br />        valid options in the respective scope<br />    := |||&#8230;<br />              depending on the set of allowed values<br />              for the respective option.<br />      := [0-9]+, sometimes with an optional suffix of K,M,G<br />   := (|\&#8221;([^\"\\\n]*|\\.)*\&#8221;)+<br />     := [/_.A-Za-z0-9-]+<br />}</p>
<p>#<br /># At most ONE global section is allowed.<br /># It must precede any resource section.<br />#<br />global {<br />    # By default we load the module with a minor-count of 32. In case you<br />    # have more devices in your config, the module gets loaded with<br />    # a minor-count that ensures that you have 10 minors spare.<br />    # In case 10 spare minors are too little for you, you can set the<br />    # minor-count exeplicit here. ( Note, in contrast to DRBD-0.7 an<br />    # unused, spare minor has only a very little overhead of allocated<br />    # memory (a single pointer to be exact). )<br />    #<br />    # minor-count 64;</p>
<p>    # The user dialog counts and displays the seconds it waited so<br />    # far. You might want to disable this if you have the console<br />    # of your server connected to a serial terminal server with<br />    # limited logging capacity.<br />    # The Dialog will print the count each &#8216;dialog-refresh&#8217; seconds,<br />    # set it to 0 to disable redrawing completely. [ default = 1 ]<br />    #<br />    # dialog-refresh 5; # 5 seconds</p>
<p>    # You might disable one of drbdadm&#8217;s sanity check.<br />    # disable-ip-verification;</p>
<p>    # Participate in DRBD&#8217;s online usage counter at http://usage.drbd.org<br />    # possilbe options: ask, yes, no. Default is ask. In case you do not<br />    # know, set it to ask, and follow the on screen instructions later.<br />    usage-count yes;<br />}</p>
<p>#<br /># The common section can have all the sections a resource can have but<br /># not the host section (started with the &#8220;on&#8221; keyword).<br /># The common section must precede all resources.<br /># All resources inherit the settings from the common section.<br /># Whereas settings in the resources have precedence over the common<br /># setting.<br />#</p>
<p>common {<br />  syncer { rate 1000M; }<br /> net {<br />    cram-hmac-alg &#8220;sha1&#8243;;<br />    shared-secret &#8220;somesecret&#8221;;<br />  }<br />}<br />resource data1 {<br />  protocol C;<br />  handlers {<br />    pri-on-incon-degr &#8220;echo o &gt; /proc/sysrq-trigger ; halt -f&#8221;;<br />    pri-lost-after-sb &#8220;echo o &gt; /proc/sysrq-trigger ; halt -f&#8221;;<br />    local-io-error &#8220;echo o &gt; /proc/sysrq-trigger ; halt -f&#8221;;<br />    outdate-peer &#8220;/usr/lib/heartbeat/drbd-peer-outdater -t 5&#8243;;<br />  }<br />  startup {<br />    degr-wfc-timeout 120;    # 2 minutes.<br />  }<br />  disk {<br />    on-io-error   detach;<br />  }<br />  net {<br />    after-sb-0pri disconnect;<br />    after-sb-1pri disconnect;<br />    after-sb-2pri disconnect;<br />    rr-conflict disconnect;<br />  }<br />  syncer {<br />    rate 1000M;<br />    al-extents 257;<br />  }<br />  on node1.domain.com {<br />    device     /dev/drbd1;<br />    disk       /dev/VolGroup01/DRBDDATA;<br />    address    192.168.1.1:7789;<br />    meta-disk  /dev/VolGroup00/drbd [0];<br />  }<br />  on node2.domain.com {<br />    device    /dev/drbd1;<br />    disk      /dev/VolGroup01/DRBDDATA;<br />    address   192.168.1.2:7789;<br />    meta-disk /dev/VolGroup00/drbd [0];<br />  }<br />}</p>
<p>I connected eth1 interfaces of both servers to each other via a straight through cable and assigned them IPs 192.168.1.1 and 192.168.1.2. This Meant a dedicated sync path and physical connection for DRBD. Please note your drbd.conf should look same on both nodes so best is to edit/create it on one node and then copy it over to other node.</p>
<p>7) modprobe drbd<br />8) drbdadm create-md data1<br />drbdadm attach data1<br />drbadm syncer data1<br />9) on the node you want to make primary do:<br />drbdadm &#8212; &#8211;overwrite-data-of-peer primary data1</p>
<p>for my 100Gb disk it took 13 mins for initial sync. DRBD is up now, you can check this by doing cat /proc/drbd on both nodes and the output should look like:<br /> cat /proc/drbd version: 8.3.6 (api:88/proto:86-91)<br />GIT-hash: f3606c47cc6fcf6b3f086e425cb34af8b7a81bbf build by root, 2009-12-17 15:47:29</p>
<p> 1: cs:Connected ro:Secondary/Primary ds:UpToDate/UpToDate C r&#8212;-<br />    ns:0 nr:245952 dw:245952 dr:0 al:0 bm:3 lo:0 pe:0 ua:0 ap:0 ep:1 wo:d oos:0</p>
<p>If it&#8217;s primary node you&#8217;ll see Primary/Secondary and on secondary it should look like Secondary/Primary , I have paste output from secondary node hence it says Secondary/Primary.</p>
<p>10) on one node do <br />corosync-keygen<br />this will generate /etc/corosync/authkey file, copy it to same location on other node.<br />11) create corosync.conf in /etc/corosync mine looks like</p>
<p>totem {<br />version: 2<br /># Disable encryption<br />secauth: off<br /># How many threads to use for encryption/decryption<br />threads: 0<br /># How long before declaring a token lost (ms)<br />token: 10000<br /># How many token retransmits before forming a new configuration<br />token_retransmits_before_loss_const: 20<br /># How long to wait for join messages in the membership protocol (ms)<br />join: 60<br /># How long to wait for consensus to be achieved before starting a new round of membership configuration (ms)<br />consensus: 4800<br /># Turn off the virtual synchrony filter<br />vsftype: none<br /># Number of messages that may be sent by one processor on receipt of the token<br />max_messages: 20<br /># Limit generated nodeids to 31-bits (positive signed integers)<br />clear_node_high_bit: yes<br /># Optionally assign a fixed node id (integer)<br />#nodeid: 1234<br />rrp_mode: passive<br />interface {<br />                # The following values need to be set based on your environment<br />                ringnumber: 0<br />                bindnetaddr: 10.52.72.0<br />                mcastaddr: 226.94.1.5<br />                mcastport: 5406<br />        }<br />interface {<br />      ringnumber: 1<br />      bindnetaddr: 192.168.1.0<br />      mcastaddr: 226.94.1.6<br />      mcastport: 5407<br />  }</p>
<p>}</p>
<p>logging {<br />        to_stderr: yes<br />        debug: off<br />        timestamp: on<br />        to_file: no<br />        to_syslog: yes<br /> syslog_facility: daemon<br />}</p>
<p>amf {<br />        mode: disabled<br />}</p>
<p>service {<br />        # Load the Pacemaker Cluster Resource Manager<br />        ver:       0<br />        name:      pacemaker<br />        use_mgmtd: yes<br />}</p>
<p>aisexec {<br />        user:   root<br />        group:  root<br />}</p>
<p>As you can see I have two rings configured for heartbeat.</p>
<p>12) start corosync<br />/etc/inid.d/corosync start</p>
<p>13) edit you mysql config to point datadir to /service<br />14) at this point if you execute<br />crm_mon</p>
<p>you&#8217;ll see something like </p>
<p>============<br />Last updated: Wed Jan 20 20:58:56 2010<br />Stack: openais<br />Current DC: amix1800.national.core.bbc.co.uk &#8211; partition with quorum<br />Version: 1.0.7-b1191b11d4b56dcae8f34715d52532561b875cd5<br />2 Nodes configured, 2 expected votes<br />0 Resources configured.<br />============</p>
<p>Online: [ node1.whatever node2.whatever ]</p>
<p>13) configure Cluster Service</p>
<p>#crm configure<br />this&#8217;ll take you to crm configure shell</p>
<p>crm(live)configure#</p>
<p>now type edit and press enter</p>
<p>crm(live)configure# edit</p>
<p>This&#8217;ll open config in your default editor and you&#8217;ll see a very minimal config, mine after configuration looks like:<br />you can copy paste this(off course yours&#8217;ll be different IP and hostnames)</p>
<p>primitive drbd_mysql ocf:heartbeat:drbd \<br />        params drbd_resource=&#8221;data1&#8243; \<br />        op start interval=&#8221;0&#8243; timeout=&#8221;240s&#8221; \<br />        op promote interval=&#8221;0&#8243; timeout=&#8221;90s&#8221; \<br />        op demote interval=&#8221;0&#8243; timeout=&#8221;90s&#8221; \<br />        op notify interval=&#8221;0&#8243; timeout=&#8221;90s&#8221; \<br />        op stop interval=&#8221;0&#8243; timeout=&#8221;100s&#8221; \<br />        op monitor interval=&#8221;10s&#8221; role=&#8221;Master&#8221; timeout=&#8221;20s&#8221; start-delay=&#8221;1m&#8221; depth=&#8221;0&#8243;<br />primitive fs_mysql ocf:heartbeat:Filesystem \<br />        params device=&#8221;/dev/drbd1&#8243; directory=&#8221;/service/&#8221; fstype=&#8221;ext3&#8243; \<br />        op start interval=&#8221;0&#8243; timeout=&#8221;60s&#8221; \<br />        op stop interval=&#8221;0&#8243; timeout=&#8221;60s&#8221; \<br />        op notify interval=&#8221;0&#8243; timeout=&#8221;60s&#8221; \<br />        op monitor interval=&#8221;20s&#8221; timeout=&#8221;40s&#8221; start-delay=&#8221;0&#8243;<br />primitive ip_mysql ocf:heartbeat:IPaddr2 \<br />        params ip=&#8221;1.2.3.4&#8243; nic=&#8221;eth0&#8243; \<br />        op start interval=&#8221;0&#8243; timeout=&#8221;90s&#8221; \<br />        op stop interval=&#8221;0&#8243; timeout=&#8221;100s&#8221; \<br />        op status interval=&#8221;10s&#8221; timeout=&#8221;20s&#8221; start-delay=&#8221;0&#8243; \<br />        op monitor interval=&#8221;10s&#8221; timeout=&#8221;20s&#8221; start-delay=&#8221;0&#8243;<br />primitive mysqld lsb:mysqld<br />group mysql fs_mysql ip_mysql mysqld<br />ms ms_drbd_mysql drbd_mysql \<br />        meta master-max=&#8221;1&#8243; master-node-max=&#8221;1&#8243; clone-max=&#8221;2&#8243; clone-node-max=&#8221;1&#8243; notify=&#8221;true&#8221;</p>
<p>colocation mysql_on_drbd inf: mysql ms_drbd_mysql:Master<br />order mysql_after_drbd inf: ms_drbd_mysql:promote mysql:start</p>
<p>no-quorum-policy=&#8221;ignore&#8221; \<br />        stonith-enabled=&#8221;false&#8221;</p>
<p>save and exit</p>
<p>on crm cofnig shell type commit</p>
<p>crm(live)configure# commit</p>
<p>and then exit the shell by typing exit</p>
<p>now if you do crm_mon<br /> you&#8217;ll see something like:</p>
<p>============<br />Last updated: Wed Jan 20 21:07:07 2010<br />Stack: openais<br />Current DC: node1.whatever &#8211; partition with quorum<br />Version: 1.0.7-b1191b11d4b56dcae8f34715d52532561b875cd5<br />2 Nodes configured, 2 expected votes<br />2 Resources configured.<br />============</p>
<p>Online: [ node1.whatever node2.whatever ]</p>
<p> Resource Group: mysql<br />     fs_mysql   (ocf::heartbeat:Filesystem):    Started amix1800.national.core.bbc.co.uk<br />     ip_mysql   (ocf::heartbeat:IPaddr2):       Started amix1800.national.core.bbc.co.uk<br />     mysqld     (lsb:mysqld):   Started node1.whatever<br /> Master/Slave Set: ms_drbd_mysql<br />     Masters: [ node1.whatever ]<br />     Slaves: [ node2.whatever ]</p>
<p>You can test you setup by trying a migration of services or bringing down eth0.</p>
<p>If you use IPtables on your systems you&#8217;ll need to open relevant ports which are visible in cofigs, also please open udp and tcp both ports.<br />You could also write your own ocf&#8217;s to make your application cluster aware.<br />Mine is a Master/slave setup, you could create n+1 cluster with these using a cluster file-system(GFS/OCFS etc).<br />For Further Readings:<br />1) Linbit has very good documentation on DRBD: http://www.drbd.org/users-guide/<br />2) Corosync: http://www.corosync.org/doku.php<br />3) http://www.clusterlabs.org/wiki/Main_Page<br />4) a master master cluster using same technologies <br />http://www.creativeanvil.com/blog/2008/how-to-create-an-iscsi-san-using-heartbeat-drbd-and-ocfs2/<br />6) http://www.openais.org/doku.php</p>
<p>The future looks bright</p>
<br />Posted in Technology  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vkothiyal.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vkothiyal.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vkothiyal.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vkothiyal.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vkothiyal.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vkothiyal.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vkothiyal.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vkothiyal.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vkothiyal.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vkothiyal.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vkothiyal.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vkothiyal.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vkothiyal.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vkothiyal.wordpress.com/23/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vkothiyal.wordpress.com&amp;blog=11580079&amp;post=23&amp;subd=vkothiyal&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vkothiyal.wordpress.com/2010/01/20/open-source-and-free-failover-2-node-mysql-cluster-solution/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a030af60cf1371b0f1259644dd41a83d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vkothiyal</media:title>
		</media:content>
	</item>
		<item>
		<title>IP_conntrack limit caused grief</title>
		<link>http://vkothiyal.wordpress.com/2009/09/29/ip_conntrack-limit-caused-grief/</link>
		<comments>http://vkothiyal.wordpress.com/2009/09/29/ip_conntrack-limit-caused-grief/#comments</comments>
		<pubDate>Tue, 29 Sep 2009 12:44:00 +0000</pubDate>
		<dc:creator>vkothiyal</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://vkothiyal.wordpress.com/2009/09/29/ip_conntrack-limit-caused-grief</guid>
		<description><![CDATA[I noticed a following messages on production web trier servers on 29/09/09 11:54:34 amix04-07 kernel: printk: 1 messages suppressed.Sep 29 11:54:34 amix04-07 kernel: ip_conntrack: table full, dropping packet.Sep 29 11:54:41 amix04-07 kernel: printk: 2 messages suppressed.Sep 29 11:54:41 amix04-07 kernel: ip_conntrack: table full, dropping packet.Sep 29 11:54:47 amix04-07 kernel: printk: 3 messages suppressed.Sep 29 11:54:47 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vkothiyal.wordpress.com&amp;blog=11580079&amp;post=20&amp;subd=vkothiyal&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I noticed a following messages on production web trier servers on 29/09/09</p>
<p> 11:54:34 amix04-07 kernel: printk: 1 messages suppressed.<br />Sep 29 11:54:34 amix04-07 kernel: ip_conntrack: table full, dropping packet.<br />Sep 29 11:54:41 amix04-07 kernel: printk: 2 messages suppressed.<br />Sep 29 11:54:41 amix04-07 kernel: ip_conntrack: table full, dropping packet.<br />Sep 29 11:54:47 amix04-07 kernel: printk: 3 messages suppressed.<br />Sep 29 11:54:47 amix04-07 kernel: ip_conntrack: table full, dropping packet.<br />Sep 29 11:54:48 amix04-07 kernel: ip_conntrack: table full, dropping packet.<br />Sep 29 11:54:53 amix04-07 kernel: printk: 7 messages suppressed.<br />Sep 29 11:54:53 amix04-07 kernel: ip_conntrack: table full, dropping packet.<br />Sep 29 11:54:57 amix04-07 kernel: printk: 12 messages suppressed.<br />Sep 29 11:54:57 amix04-07 kernel: ip_conntrack: table full, dropping packet.<br />Sep 29 11:55:03 amix04-07 kernel: printk: 23 messages suppressed.</p>
<p> This happened because the limit of 32000 exceeded for ip_conntrack. I noticed that the both the servers(amix04-07 and amix06-07) crashed after few minutes.</p>
<p>I changed increased the limit to 60000, and looked fine.</p>
<p>this is what I did to change the limit:# This tell you how many sessions arte open right now.<br />cat /proc/net/ip_conntrack | wc -l</p>
<p>   1. This tells you the maximum number of conntrack entries you can have in<br />      total<br />      cat /proc/sys/net/ipv4/ip_conntrack_max</p>
<p>   2. This chnages the maximum number of conntrack entries you can have</p>
<p>echo &#8220;60000&#8243; &gt; /proc/sys/net/ipv4/ip_conntrack_max</p>
<p>Also remember to add the following line to /etc/sysctl.conf file, to retain the settings after reboot.</p>
<p>net.ipv4.netfilter.ip_conntrack_max=60000</p>
<br />Posted in General, Technology  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vkothiyal.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vkothiyal.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vkothiyal.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vkothiyal.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vkothiyal.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vkothiyal.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vkothiyal.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vkothiyal.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vkothiyal.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vkothiyal.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vkothiyal.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vkothiyal.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vkothiyal.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vkothiyal.wordpress.com/20/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vkothiyal.wordpress.com&amp;blog=11580079&amp;post=20&amp;subd=vkothiyal&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vkothiyal.wordpress.com/2009/09/29/ip_conntrack-limit-caused-grief/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a030af60cf1371b0f1259644dd41a83d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vkothiyal</media:title>
		</media:content>
	</item>
		<item>
		<title>What am I upto</title>
		<link>http://vkothiyal.wordpress.com/2009/09/08/what-am-i-upto/</link>
		<comments>http://vkothiyal.wordpress.com/2009/09/08/what-am-i-upto/#comments</comments>
		<pubDate>Tue, 08 Sep 2009 15:23:00 +0000</pubDate>
		<dc:creator>vkothiyal</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://vkothiyal.wordpress.com/2009/09/08/what-am-i-upto</guid>
		<description><![CDATA[I am working on following new stuff these days, I shall do details posts once I know more 1) Munin (Monitoring tool for, specially good plug ins for Mysql, that&#8217;s waht I ahve been told )2) Cobbler (a tool to manage server builds)3) Xen 3.4.0 on RHEL5.24) Integration with Redhat staellite servers&#8230; yay a lot [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vkothiyal.wordpress.com&amp;blog=11580079&amp;post=19&amp;subd=vkothiyal&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I am working on following new stuff these days, I shall do details posts once I know more <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>1) Munin (Monitoring tool for, specially good plug ins for Mysql, that&#8217;s waht I ahve been told )<br />2) Cobbler (a tool to manage server builds)<br />3) Xen 3.4.0 on RHEL5.2<br />4) Integration with Redhat staellite servers&#8230;</p>
<p>yay a lot of new stuff <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> &#8230;.. I am excited</p>
<br />Posted in General  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vkothiyal.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vkothiyal.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vkothiyal.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vkothiyal.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vkothiyal.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vkothiyal.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vkothiyal.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vkothiyal.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vkothiyal.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vkothiyal.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vkothiyal.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vkothiyal.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vkothiyal.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vkothiyal.wordpress.com/19/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vkothiyal.wordpress.com&amp;blog=11580079&amp;post=19&amp;subd=vkothiyal&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vkothiyal.wordpress.com/2009/09/08/what-am-i-upto/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a030af60cf1371b0f1259644dd41a83d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vkothiyal</media:title>
		</media:content>
	</item>
		<item>
		<title>Active M Making Life tough</title>
		<link>http://vkothiyal.wordpress.com/2009/09/08/active-m-making-life-tough/</link>
		<comments>http://vkothiyal.wordpress.com/2009/09/08/active-m-making-life-tough/#comments</comments>
		<pubDate>Tue, 08 Sep 2009 15:18:00 +0000</pubDate>
		<dc:creator>vkothiyal</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://vkothiyal.wordpress.com/2009/09/08/active-m-making-life-tough</guid>
		<description><![CDATA[We use the HA ActiveMq with Mysql backend as mentioned in my post earlier, these days we ahve been facing a lot off issues with it . I have been tasked to sort it out, yay I like this sort of stuff but on downside there is not much documentation on active mqs Few things [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vkothiyal.wordpress.com&amp;blog=11580079&amp;post=18&amp;subd=vkothiyal&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>We use the HA ActiveMq with Mysql backend as mentioned in my post earlier, these days we ahve been facing a lot off issues with it <img src='http://s0.wp.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> . I have been tasked to sort it out, yay  I like this sort of stuff but on downside there is not much documentation on active mqs</p>
<p>Few things i have in mind:</p>
<p>1) Use a standalone db instance for MQ<br />2) Upgrade our install to latest 5.2 baseline release<br />3) Upgrade the MySql Jdbc driver to latest 5.1.8 from 5.0.8</p>
<p>I have done above three on dev environment hopefully it helps, a new release of a crucial app is due today, fingers crossed.</p>
<p>I shall post the findings here</p>
<p>As promised I ma updating this with my findings:</p>
<p>1) I have moved database to standalone db server serving just message Active MQ, this has certainly improved performance.<br />2) have setup 5.2 baseline release, I am not sure if this helped at all, I am hoping it did, specially with stomp fixes However as soon as I upgraded MQ version I started seeing some lovely exceptions whining about persistence adpator <img src='http://s0.wp.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> , I ahd to disable journaling to overcome this, BAD but only choice.<br />3) I have upgraded the database driver to 5.1.8, hope that helps somehow <img src='http://s0.wp.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> .</p>
<p>Now I am waiting for our testers to break it.</p>
<p>I shall update on that soon<br />cheers<br />V</p>
<br />Posted in General, Technology  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vkothiyal.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vkothiyal.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vkothiyal.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vkothiyal.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vkothiyal.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vkothiyal.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vkothiyal.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vkothiyal.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vkothiyal.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vkothiyal.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vkothiyal.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vkothiyal.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vkothiyal.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vkothiyal.wordpress.com/18/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vkothiyal.wordpress.com&amp;blog=11580079&amp;post=18&amp;subd=vkothiyal&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vkothiyal.wordpress.com/2009/09/08/active-m-making-life-tough/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a030af60cf1371b0f1259644dd41a83d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vkothiyal</media:title>
		</media:content>
	</item>
		<item>
		<title>Worst Example of Customer Service</title>
		<link>http://vkothiyal.wordpress.com/2009/06/01/worst-example-of-customer-service/</link>
		<comments>http://vkothiyal.wordpress.com/2009/06/01/worst-example-of-customer-service/#comments</comments>
		<pubDate>Mon, 01 Jun 2009 15:49:00 +0000</pubDate>
		<dc:creator>vkothiyal</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Social]]></category>

		<guid isPermaLink="false">http://vkothiyal.wordpress.com/2009/06/01/worst-example-of-customer-service</guid>
		<description><![CDATA[I went to the Piccadilly branch of woodlands (http://www.woodlandsrestaurant.co.uk/) this Friday (29/05/09) and faced the worst customer service ever by any service provider I have come across. I Have emailed and posted my complaint to them, which looks like as below. To,Head Office, Woodlands Restaurants,12, West Close, Wembley ParkMiddlessexHA9 9PJDear Sirs,I have been a long [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vkothiyal.wordpress.com&amp;blog=11580079&amp;post=24&amp;subd=vkothiyal&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I went to the Piccadilly branch of woodlands (http://www.woodlandsrestaurant.co.uk/) this Friday (29/05/09) and faced the worst customer service ever by any service provider I have come across. I Have emailed and posted my complaint to them, which looks like as below.</p>
<p>To,<br />Head Office, Woodlands Restaurants,<br />12, West Close, Wembley Park<br />Middlessex<br />HA9 9PJ<br />Dear Sirs,<br />I have been a long time visitor of your restaurant in Piccadilly Circus. You Dosa&#8217;s are just awesome. Yesterday (Friday 29/05/09) as well I went there in evening with two of my friends in same expectations however Our first order took more then 40 minutes which was just a Delhi thali, onion rava masala dosa, a parantha and a portion of Idlies, We wanted to order some more food so we placed order for one more thali, within 1/2 minutes of that we thought it wouldn&#8217;t be good ides to for a thali again so we went upto till to ask if we could change our order, we were rudely denied by a guy claiming that he is the manager. So we politely asked to cancel rest of our order and give us the bill for current one, On this the so called manager went furious saying that we have to pay whether we receive the food or not, He started abusing us in front of the evening crowd for you esteemed restaurant chain.<br />While we were paying we said that these are appalling standards of customer services, he stated swearing even more and threatening us that he&#8217;ll call police. Knowing Our rights I said, We&#8217;ll be more then happy to call the police and explain. I mean he was never ready to acknowledge his mistake, you can ask your staff present at that time, they had more manners then there Manager. I mean come on Doesn&#8217;t he know that he belongs to heritability industry.<br />After all this drama he finally said sorry to us, we paid the bill and as we were walking out he again sweard saying &#8220;go to hell&#8221;, We We reminded him that he is not doing any good to his business by abusing and threatening us.<br />I was very disappointed with all this show and really felt very embarrassed. </p>
<p>Thanks<br />Vipul K</p>
<p>NB: I have sent en email to your inquiries email address already, without any response, it seems no one reads them.</p>
<br />Posted in General, Social  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vkothiyal.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vkothiyal.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vkothiyal.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vkothiyal.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vkothiyal.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vkothiyal.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vkothiyal.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vkothiyal.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vkothiyal.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vkothiyal.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vkothiyal.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vkothiyal.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vkothiyal.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vkothiyal.wordpress.com/24/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vkothiyal.wordpress.com&amp;blog=11580079&amp;post=24&amp;subd=vkothiyal&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vkothiyal.wordpress.com/2009/06/01/worst-example-of-customer-service/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a030af60cf1371b0f1259644dd41a83d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vkothiyal</media:title>
		</media:content>
	</item>
	</channel>
</rss>
