tag:blogger.com,1999:blog-38452725671373372152024-02-20T08:07:58.058+01:00But it's on UnixOccasional rant about Linux, AIX, clustering and scripting experiences in my everyday workBut its on Unixhttp://www.blogger.com/profile/02452065392856953443noreply@blogger.comBlogger10125tag:blogger.com,1999:blog-3845272567137337215.post-83131882221984364962010-03-10T15:01:00.002+01:002010-03-10T15:07:51.826+01:00Setting default browser for Lotus Notes under LinuxIf you are using Lotus Notes 8.5 on Linux you've probably noticed how stupid the settings for external browser are! You can choose between internal notes browser or "system default" browser. <br />You've probably done what I did, set Gnome default browser to Firefox, set KDE default browser to Firefox and still, when you click on a link and Epiphany or Google Chrome comes up showing your page...<br /><br />To check what "system default" is type:<br /><code><br />$ xdg-mime query default text/html<br />google-chrome.desktop<br /></code><br />then to change it, create firefox37.desktop in /usr/local/share/applications:<br /><code><br />[Desktop Entry]<br />Comment[en_US]=<br />Comment=<br />Exec=/usr/firefox37/firefox %U<br />GenericName[en_US]=<br />GenericName=<br />Icon=/usr/firefox37/icons/mozicon128.png<br />MimeType=text/html<br />Name[en_US]=Firefox 3.7<br />Name=Firefox 3.7<br />Path=<br />StartupNotify=true<br />Terminal=false<br />TerminalOptions=<br />Type=Application<br />X-DBUS-ServiceName=<br />X-DBUS-StartupType=<br />X-KDE-SubstituteUID=false<br />X-KDE-Username=<br /></code><br /><code>Mimetype</code> should be set to what you intend to use it for...<br /><br />and set it:<br /><code><br />$ xdg-mime default firefox37.desktop text/html<br />$ xdg-mime query default text/html<br />firefox37.desktop<br /></code><br /><br />happy browsing...But its on Unixhttp://www.blogger.com/profile/02452065392856953443noreply@blogger.com6tag:blogger.com,1999:blog-3845272567137337215.post-44918248895375061762009-12-29T14:59:00.003+01:002009-12-29T15:02:42.909+01:00debian update breaks java networkingMy testing Debian was recently upgraded to latest version and suddenly java applets stopped working with ConnectionExceptions and ClassNotFoundExceptions. After 1,5 days of searching I found that there is a new config file in /etc/sysctl.d/bindv6only.conf which breaks java networking!!!!<br /><br />To "fix" it change net.ipv6.bindv6only = 1 to 0 and run:<br />invoke-rc.d procps restart<br /><br />java now works again!!! I don't understand why (and I don't care) but this kind of things should be more public and more easy to find... Debian mainteners PLEASE don't break things so silently...But its on Unixhttp://www.blogger.com/profile/02452065392856953443noreply@blogger.com1tag:blogger.com,1999:blog-3845272567137337215.post-87406571014182117362009-12-08T14:05:00.002+01:002009-12-08T14:10:45.379+01:00firefox 3.6 and java...I lost 2 days trying to get new firefox 3.6b4 to use java 1.6 only to find out they changed the way plugins are handeled and that I need a new plugin!<br /><br />new setting is:<br /><code><br />user@server~/firefox36/plugins$ ls -la<br />lrwxrwxrwx 1 user users 58 2009-12-07 19:47 libnpjp2.so -> /home/user/ibm-java-i386-60.sr6/jre/lib/i386/libnpjp2.so<br /></code><br /><br />yours should probably point to something like:<br /><code><br />/usr/java/latest/lib/i386/libnpjp2.so<br />for SUN java or<br />/opt/ibm-java-i386-60/jre/lib/i386/libnpjp2.so<br />for IBM java<br /></code><br />Lets hope google will index this soon so others don't have to dig too deep...But its on Unixhttp://www.blogger.com/profile/02452065392856953443noreply@blogger.com0tag:blogger.com,1999:blog-3845272567137337215.post-64928299717970162102009-09-05T10:54:00.002+02:002009-09-05T11:20:12.306+02:00DB2, ITDS on Linux issues...If you ever tried installing any IBM products on a linux distribution you already know that you need some black magick to do it...<br><br />Configuring it on the supported platform is a little bit easier but still not as it should be!<br /><br><br />Most of the problems come from the use of InstallShield installer on all platforms (instead only on windblows where it actually works)...<br><br />Installshield prerequisites are almost nondocumented (except for <code>compat-libstdc++-33.i386</code> or <code>libstdc++5</code> on debian-based distros). Other than that you'll also need:<code>libXp6, libxtst, xclock </code>(for some basic X libs)... For centos I also needed <code>compat-libstdc++-296 and pdksh</code> (uninstall ksh and download pdksh from Internet since it's not part of the distribution)<br><br /><br />Now you can at least install the product! But if it's WebSphere you should also add <code>libgtk2.0-0</code> or your profile management tool dies...<br><br /><br />If you are installing DB2 v9 on Ubuntu make sure you:<br><br /><code>1. change /bin/sh as a link from /bin/dash to /bin/bash (or scripts will fail silently)<br></code><br /><code>2. change /etc/pam.d/common-password from</code><br><br /><code>password [success=1 default=ignore] pam_unix.so obscure sha512</code><br /><code>to</code><br /><code>password [success=1 default=ignore] pam_unix.so obscure md5</code><br><br />or DB2 will not be able to authenitace remote users (since their encrypted password will be to big!)<br><br /> <br /><br />IBM please document your linux stuff and stop using InstallShield - it's simply broken!But its on Unixhttp://www.blogger.com/profile/02452065392856953443noreply@blogger.com0tag:blogger.com,1999:blog-3845272567137337215.post-50807256202863395662009-04-03T22:22:00.003+02:002009-04-03T22:32:38.881+02:00split a file in 2 with sed...If you need to split a file around a line containing special text (lets say "hello world") you shoud do it with <span style="font-weight:bold;">sed</span>!<br /><br />If your file is original.txt, you can do it like this:<br /><code><br />sed '1,/^hello world$/!d' < original.txt > first_half.txt<br />sed '1,/^hello world$/d' < original.txt > second_hald.txt<br /></code><br />just simple sed...<br /><br />hope you like itBut its on Unixhttp://www.blogger.com/profile/02452065392856953443noreply@blogger.com1tag:blogger.com,1999:blog-3845272567137337215.post-78345140514372524822009-03-15T22:48:00.002+01:002009-03-15T23:07:01.957+01:00vi is all you need!<p style="font-size:16px"><br />vi is a great editor and I just want to say it out loud!<br /><br />Learn to use it, learn to love it and then learn to enjoy it...<br /><br />I constantly find myself typing ESC h,j,k,l don't you?<br /><br />PS learn to use hjkl and not the arrows, it will help you when you get your shell to vi mode (set -o vi)<br /><br />Learn the tricks, learn search/replace and other tools and you'll greatly enhance your job performance...<br /><br />I currently have to edit a lot of SQL files and search/replace just saved me 4-5 days of typing (and who knows how many mistakes)...<br /><br />a simple ESC<br /><code>:% s/what am I changing/what the new text will be/g</code><br />is all it takes... (g is for global, so if you have more occurencies of the same text all will be changed)<br /><br />good options to know are<br /><code>:4,8 s/what/new/gc</code><br />which will only run from 4th to 8th line and ask you to approve every change<br /><br />other regexp formats are also supported:<br /><code>:% s/this line has \(first\) argument/here was the \1 argument/g</code><br /><br />just to make sure you know which lines to include try:<br /><code>:set nu</code><br />and <br /><code>:set nonu</code>But its on Unixhttp://www.blogger.com/profile/02452065392856953443noreply@blogger.com0tag:blogger.com,1999:blog-3845272567137337215.post-88972006308960182042009-01-26T22:37:00.005+01:002009-01-26T22:48:19.151+01:00How to change websphere app. server name from server1 to something usefullIf you are running WSAS as a standalone server (no deployment manager or cluster) you probably created a profile with a default server called server1. This is ok unless you have 2 profiles with 2 servers both called server1! Due to a bug in WSAS this will prevent EJB communication between them in some cases so you need to rename one of them!<br /><br />This is not a simple task without deployment manager. You have to do it via scripts. IBM provides this scripts for free but they are not easy to find :-)<br /><br />URL is: <a href="http://www.ibm.com/developerworks/websphere/library/samples/SampleScripts.html"><br />http://www.ibm.com/developerworks/websphere/library/samples/SampleScripts.html</a><br /><br />and you are looking for <a href="http://www.ibm.com/developerworks/apps/download/index.jsp?contentid=166422&filename=ConfigScripts.zip&method=http&locale=worldwide">ConfigScripts.zip</a><br /><br />To rename it:<code><br />/usr/IBM/WebSphere/AppServer/profiles/AppSrv01/bin/ws_ant.sh -profileName AppSrv01 -buildfile exportImport.xml -logfile rename.log -DoldServerName=server1 -DnewServerName=server2 -DnodeName=yourNode01 changeServerName</code><br /><br />I would expect this to be a much easier process but IBM obviously doesn't share my ideas...But its on Unixhttp://www.blogger.com/profile/02452065392856953443noreply@blogger.com11tag:blogger.com,1999:blog-3845272567137337215.post-92143850376525570792008-12-22T19:02:00.002+01:002008-12-22T19:06:11.770+01:00Installing WebSphere application server on Debian TestingTo install WSAS 6.1 on Debian testing I did a clean text mode install of debian and just added this packages via apt-get install: pdksh, libstdc++5, ntpdate, ntp, xclock (to get X libraries), libxtst6, libgtk2.0-0 with all their dependencies...<br /><br />Now you can run the GUI installer and install websphere! <br /><br />good luckBut its on Unixhttp://www.blogger.com/profile/02452065392856953443noreply@blogger.com0tag:blogger.com,1999:blog-3845272567137337215.post-53917809943991183662008-12-17T22:18:00.012+01:002008-12-19T00:13:11.598+01:00Install RHEL 5.1u2 + heartbeat + DRBD<style type="text/css"> <!-- @page { margin: 0.5cm } P { margin-bottom: 0.11cm } H1 { margin-bottom: 0.21cm } H1.western { font-family: "Arial", sans-serif; font-size: 16pt } H1.cjk { font-family: "DejaVu Sans"; font-size: 16pt } H1.ctl { font-family: "DejaVu Sans"; font-size: 16pt } --</style>Installation will be done on two IBM x3650 servers with integrated RSA II slimline adapters. I started the installation after changing some parameters in BIOS (OS type changed to Linux OS, BMC serial port sharing disabled). After booting I started install with this parameters: <code><span style="color:#99284c;font-family:Courier 10 Pitch;font-size:85%;">linux pci=nommconf nophet</span></code><p style="margin-bottom: 0cm;"><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiiPd0nlnp_Rf_cL3XJ6NmnLU0h3OYtGVN5YDV5sVdilQgG9xBzwEtRJumDH5ed8OJHKN8NJesPKzw9MA3LU1xMYojCUyeldk8OioRGEOxqjT2IB0b8KFQOrC9O-ljg8mhYDUCYWiwN0z9-/s1600-h/hw-arch.png"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 211px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiiPd0nlnp_Rf_cL3XJ6NmnLU0h3OYtGVN5YDV5sVdilQgG9xBzwEtRJumDH5ed8OJHKN8NJesPKzw9MA3LU1xMYojCUyeldk8OioRGEOxqjT2IB0b8KFQOrC9O-ljg8mhYDUCYWiwN0z9-/s320/hw-arch.png" alt="" id="BLOGGER_PHOTO_ID_5280874447110283586" border="0" /></a></p> <p style="margin-bottom: 0cm;">I setup disks through ServerRAID adapter software to /dev/sda as RAID 1 out of 2 volumes and /dev/sdb as RAID 5 out of remaining 4 volumes. Linux will be installed on /dev/sda and /dev/sdb will be shared.</p><p style="margin-bottom: 0cm;"> <meta equiv="CONTENT-TYPE" content="text/html; charset=utf-8"> <title></title> <meta name="GENERATOR" content="OpenOffice.org 3.0 (Linux)"> <style type="text/css"> <!-- @page { margin: 2cm } P { margin-bottom: 0.21cm } --> </style> </p><p style="margin-bottom: 0cm;">Don't forget to connect eth2 adapters with crossover cable and serial ports with null modem cable. I then changed network settings for production ethernet to 100Mbit/s full duplex and crossover cable to 1000Mbit/s full duplex (100Mbit/s was a requirement from the customer).</p> <p style="margin-bottom: 0cm;">Example files from server1 are below.</p> <p style="margin-bottom: 0cm;">/etc/sysconfig/network-scripts/ifcfg-eth0:</p><code><span style="font-size:85%;color:#99284c;font-family:Courier 10 Pitch;">DEVICE=eth0<br>BOOTPROTO=none<br>ONBOOT=yes<br>IPADDR=10.1.1.10<br>NETMASK=255.255.255.0<br>GATEWAY=10.1.1.1<br />TYPE=Ethernet<br>ETHTOOL_OPTS="speed 100 duplex full autoneg off"</span></code> <p style="margin-bottom: 0cm;">/etc/sysconfig/network-scripts/ifcfg-eth2:</p><code> <span style="font-size:85%;color:#99284c;font-family:Courier 10 Pitch;">DEVICE=eth2<br />BOOTPROTO=none<br />ONBOOT=yes<br />IPADDR=10.1.2.10<br />NETMASK=255.255.255.0<br />TYPE=Ethernet<br />ETHTOOL_OPTS="speed 1000 duplex full autoneg off"</span></code> <p style="margin-bottom: 0cm;">/etc/hosts needs to be changed accordingly:</p><code> <span style="font-size:85%;color:#99284c;font-family:Courier 10 Pitch;">10.1.1.10 server1<br />10.1.1.11 server2<br />10.1.1.12 serviceIP<br />10.1.2.10 server1repl<br />10.1.2.11 server2repl<br />10.1.1.13 s1rsa<br />10.1.1.14 s2rsa</span></code> <p style="margin-bottom: 0cm;">You should install additional RPMs: </p> <ul><li><p style="margin-bottom: 0cm;">libnet-1.1.2.1-2.1.x86_64.rpm</p> </li><li><p style="margin-bottom: 0cm;">perl-Net-SSLeay-1.30-4.fc6.x86_64.rpm</p> </li><li><p style="margin-bottom: 0cm;">perl-TimeDate-1.16-5.el5.noarch.rpm</p> </li><li><p style="margin-bottom: 0cm;">heartbeat-2.1.4-2.1.x86_64.rpm</p> </li><li><p style="margin-bottom: 0cm;">heartbeat-devel-2.1.4-2.1.x86_64.rpm</p> </li><li><p style="margin-bottom: 0cm;">heartbeat-pils-2.1.4-2.1.x86_64.rpm</p> </li><li><p style="margin-bottom: 0cm;">heartbeat-stonith-2.1.4-2.1.x86_64.rpm</p> </li><li><p style="margin-bottom: 0cm;">drbd82-8.2.6-1.el5.centos.x86_64.rpm</p> </li><li><p style="margin-bottom: 0cm;">kmod-drbd82-8.2.6-1.2.6.18_92.el5.x86_64.rpm</p> </li></ul> <p style="margin-bottom: 0cm;">I manually created haclient group and hacluster user:</p> <code><span style="font-size:85%;color:#99284c;font-family:Courier 10 Pitch;"># groupadd -g 496 haclient<br /># useradd -M -g haclient -u 498 -d /var/lib/heartbeat/cores/hacluster hacluster</span></code> <p style="margin-bottom: 0cm;">This install should be done on both server1 and server2. After installing DRBD you'll have to start it which will make /proc/drbd file available. I'll put config files a little bit later.</p> <p style="margin-bottom: 0cm;">Create meta data on both machines:</p> <code><span style="font-size:85%;color:#99284c;font-family:Courier 10 Pitch;">[root@server1]# drbdadm create-md r0<br />[root@server2]# drbdadm create-md r0</span></code> <p style="margin-bottom: 0cm;">Start DRBD on both machines:</p> <code><span style="font-size:85%;color:#99284c;font-family:Courier 10 Pitch;">[root@server1]# /etc/init.d/drbd start<br />[root@server2]# /etc/init.d/drbd start</span></code> <p style="margin-bottom: 0cm;">Now we can check the status:</p> <code><span style="font-size:85%;color:#99284c;font-family:Courier 10 Pitch;">[root@server1]# cat /proc/drbd<br />version: 8.2.6 (api:88/proto:86-88)<br />GIT-hash: 3e69822d3bb4920a8c1bfdf7d647169eba7d2eb4 build by buildsvn@c5-x8664-build, 2008-06-21 08:48:13<br />0: cs:Connected st:Secondary/Secondary ds:Inconsistent/Inconsistent C r---<br /> ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 oos:425709436</span></code> <p style="margin-bottom: 0cm;">They both are secondary and inconsistent. Let's make server1 our primary:</p> <code><span style="font-size:85%;color:#99284c;font-family:Courier 10 Pitch;">[root@server1]# drbdsetup /dev/drbd0 primary -o<br />[root@server1]# cat /proc/drbd<br />version: 8.2.6 (api:88/proto:86-88) <br />GIT-hash: 3e69822d3bb4920a8c1bfdf7d647169eba7d2eb4 build by buildsvn@c5-x8664-build, 2008-06-21 08:48:13<br />0: cs:SyncSource st:Primary/Secondary ds:UpToDate/Inconsistent Cr---<br /> ns:787924 nr:0 dw:0 dr:795968 al:0 bm:48 lo:2 pe:4 ua:253 ap:0 oos:424921628<br /> [>....................] sync'ed: 0.2% (414962/415731)M<br />finish: 14:45:15 speed: 7,648 (7,800) K/sec</span></code> <p style="margin-bottom: 0cm;">This will take some time to synchronise. If you reboot the machine after synchronisation they will both be Secondary but UpToDate so change one of them to be a master with:</p> <code><span style="font-size:85%;color:#99284c;font-family:Courier 10 Pitch;">[root@server1]# drbdadm primary r0</span></code> <p style="margin-bottom: 0cm;">Now that one of them is the master, make a filesystem:</p> <code><span style="font-size:85%;color:#99284c;font-family:Courier 10 Pitch;">[root@server1]# mke2fs -j /dev/drbd0</span></code> <p style="margin-bottom: 0cm;">and add it to /etc/fstab on both machines:</p> <code><span style="font-size:85%;color:#99284c;font-family:Courier 10 Pitch;">/dev/drbd0 /u ext3 defaults,noauto 0 0</span></code> <p style="margin-bottom: 0cm;">Now you have a working DRBD configuration and you can mount /u filesystem on the primary node. This is the DRBD config file /etc/drbd.conf:</p> <code><span style="font-size:85%;color:#99284c;font-family:Courier 10 Pitch;">global {<br /> usage-count no;<br />}<br />common {<br /> syncer { rate 30M; }<br />}<br />resource r0 {<br /> protocol C;<br /> handlers {<br /> pri-on-incon-degr "echo o > /proc/sysrq-trigger ; halt -f";<br /> pri-lost-after-sb "echo o > /proc/sysrq-trigger ; halt -f";<br /> local-io-error "echo o > /proc/sysrq-trigger ; halt -f";<br /> outdate-peer "/usr/lib64/heartbeat/drbd-peer-outdater -t 5";<br /> }<br /> startup {<br /> degr-wfc-timeout 360; # 6 minutes.<br /> }<br /> disk {<br /> on-io-error detach;<br /> }<br /> net {<br /> timeout 60; # 6 seconds (unit = 0.1 seconds)<br /> connect-int 10; # 10 seconds (unit = 1 second)<br /> ping-int 10; # 10 seconds (unit = 1 second)<br /> ping-timeout 5; # 500 ms (unit = 0.1 seconds)<br /> max-buffers 2048;<br /> unplug-watermark 128;<br /> max-epoch-size 2048;<br /> ko-count 4;<br /> cram-hmac-alg "sha1";<br /> shared-secret "SomeSecret";<br /> after-sb-0pri disconnect;<br /> after-sb-1pri disconnect;<br /> after-sb-2pri disconnect;<br /> rr-conflict disconnect;<br /> data-integrity-alg "md5";<br /> }<br /> syncer {<br /> rate 30M;<br /> al-extents 257;<br /> }<br /> on server1 {<br /> device /dev/drbd0;<br /> disk /dev/sdb1;<br /> address 10.1.2.10:7788;<br /> flexible-meta-disk internal;<br /> }<br /><br /> on server2 {<br /> device /dev/drbd0;<br /> disk /dev/sdb1;<br /> address 10.1.2.11:7788;<br /> meta-disk internal;<br /> }<br />}</span></code> <p style="margin-bottom: 0cm;">To configure heartbeat first unmount the newly created filesystem and make /dev/drbd0 secondary on both nodes. Now go to /etc/ha.d directory and make a ha.cf config file:</p> <code><span style="font-size:85%;color:#99284c;font-family:Courier 10 Pitch;">logfacility local0<br />keepalive 2<br />deadtime 30<br />warntime 10<br />initdead 120<br />udpport 694<br />baud 19200<br />serial /dev/ttyS0 # Linux<br />bcast eth0 eth2 # Linux<br />auto_failback off<br />stonith external/ibmrsa-telnet /etc/ha.d/stonith.ibmrsa<br />node server1<br />node server2<br />ping 10.1.1.1<br />respawn hacluster /usr/lib64/heartbeat/ipfail<br />apiauth ipfail gid=haclient uid=hacluster</span></code> <p style="margin-bottom: 0cm;">All you need now is some more files...</p> <p style="margin-bottom: 0cm;">/etc/ha.d/authkeys MUST be the same on both machines:</p> <code><span style="font-size:85%;color:#99284c;font-family:Courier 10 Pitch;">auth 1<br />1 sha1 letsmakeitsecret</span></code> <p style="margin-bottom: 0cm;">/etc/ha.d/haresources MUST be the same on both machines:</p> <code><span style="font-size:85%;color:#99284c;font-family:Courier 10 Pitch;">server1 10.1.1.12 drbddisk::r0 Filesystem::/dev/drbd0::/u::ext3</span></code> <p style="margin-bottom: 0cm;">/etc/ha.d/stonith.ibmrsa on server1 (user and password are still default):</p> <code><span style="font-size:85%;color:#99284c;font-family:Courier 10 Pitch;">server1 10.1.1.14 USERID PASSW0RD</span></code> <p style="margin-bottom: 0cm;">/etc/ha.d/stonith.ibmrsa on server2 (user and password are still default):</p> <code><span style="font-size:85%;color:#99284c;font-family:Courier 10 Pitch;">server2 10.1.1.13 USERID PASSW0RD</span></code> <p style="margin-bottom: 0cm;">You can now start heartbeat on both nodes:</p> <code><span style="font-size:85%;color:#99284c;font-family:Courier 10 Pitch;">[root@server1]# /etc/init.d/heartbeat start<br />[root@server2]# /etc/init.d/heartbeat start</span></code> <p style="margin-bottom: 0cm;">You can check what's going on by tailing /var/log/messages and soon you'll have eth0:0 alias with 10.1.1.12 IP and /u filesystem mounted.</p> <p style="margin-bottom: 0cm;">You should now do some testing, try at least this:</p> <ol><li><p style="margin-bottom: 0cm;">turn the primary node off with holding the power switch</p> </li></ol> <ul><ul><li><p style="margin-bottom: 0cm;">takeover happens ok with STONITH turning primary node back on</p> </li></ul></ul> <ol start="2"><li><p style="margin-bottom: 0cm;">unplug the power cables from primary node</p> </li></ol> <ul><ul><li><p style="margin-bottom: 0cm;">no takeover on this environment since RSA adapter is also without power and heartbeat will not takeover without assurance from STONITH that the node is down! Just make sure both nodes have redundant power supplies and everything will be ok</p> </li></ul></ul> <ol start="3"><li><p style="margin-bottom: 0cm;">unplug production ethernet from eth0 adapter on primary node</p> </li></ol> <ul><ul><li><p style="margin-bottom: 0cm;">takeover happens ok without resetting primary machine with STONITH</p> </li></ul></ul> <p style="margin-bottom: 0cm;"><br /></p> <p style="margin-bottom: 0cm;">To return resources back to the primary machine you should turn it on (if it isn't already on) and wait for DRBD to synchronise the disks. (DRBD should be set to start automatically during the boot)</p> <code><span style="font-size:85%;color:#99284c;font-family:Courier 10 Pitch;">[root@server1]# cat /proc/drbd<br />version: 8.2.6 (api:88/proto:86-88)<br />GIT-hash: 3e69822d3bb4920a8c1bfdf7d647169eba7d2eb4 build by buildsvn@c5-x8664-build, 2008-06-21 08:48:13<br />0: cs:Connected st:Secondary/Primary ds:UpToDate/UpToDate C r---<br /> ns:787924 nr:0 dw:0 dr:795968 al:0 bm:48 lo:2 pe:4 ua:253 ap:0 oos:424921628</span></code> <p style="margin-bottom: 0cm;">When the disks are synchronised start heartbeat on server1 and wait for cluster to stabilise.</p> <code><span style="font-size:85%;color:#99284c;font-family:Courier 10 Pitch;">[root@server1]# /etc/init.d/heartbeat start</span></code> <p style="margin-bottom: 0cm;">Now you have both machines up and running but resources are still on server2. To get them back to server1 turn heartbeat off on server2, wait for resources to get back and then turn it back on.</p> <code><span style="font-size:85%;color:#99284c;font-family:Courier 10 Pitch;">[root@server2]# /etc/init.d/heartbeat stop</span></code> <p style="margin-bottom: 0cm;">Wait for resources to move back...</p> <code><span style="font-size:85%;color:#99284c;font-family:Courier 10 Pitch;">[root@server2]# /etc/init.d/heartbeat start</span></code> <p style="margin-bottom: 0cm;"></p><p></p>But its on Unixhttp://www.blogger.com/profile/02452065392856953443noreply@blogger.com0tag:blogger.com,1999:blog-3845272567137337215.post-48880175864701126072008-12-16T19:22:00.000+01:002008-12-16T19:26:22.940+01:00First postThis is my first post so I'll just describe the basics. I'll use this blog to post about my everyday issues and experiences with Linux, AIX, clustering, networking and scripting. Sometimes it will be only a small comment about something and sometimes a whole cookbook!But its on Unixhttp://www.blogger.com/profile/02452065392856953443noreply@blogger.com0