<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1299897531020692416</id><updated>2011-08-20T07:41:27.939-07:00</updated><title type='text'>OpenBSD</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://openbsd-osnew.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1299897531020692416/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://openbsd-osnew.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Siju</name><uri>http://www.blogger.com/profile/11528426956253442878</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>7</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1299897531020692416.post-3081075910541676733</id><published>2011-08-19T02:30:00.000-07:00</published><updated>2011-08-19T02:32:41.869-07:00</updated><title type='text'>SSH Productivity Tips for Working with Remote Servers</title><content type='html'>&lt;p&gt;SSH has many features which are helpful when working regularly with  files on remote servers; together they can give a vast increase in  productivity over the bare use of SSH. If you regularly use SSH, it’s  worth spending a little time learning about these and configuring your  environment to make your life easier.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1299897531020692416-3081075910541676733?l=openbsd-osnew.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://blogs.perl.org/users/smylers/2011/08/ssh-productivity-tips.html' title='SSH Productivity Tips for Working with Remote Servers'/><link rel='replies' type='application/atom+xml' href='http://openbsd-osnew.blogspot.com/feeds/3081075910541676733/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1299897531020692416&amp;postID=3081075910541676733' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1299897531020692416/posts/default/3081075910541676733'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1299897531020692416/posts/default/3081075910541676733'/><link rel='alternate' type='text/html' href='http://openbsd-osnew.blogspot.com/2011/08/ssh-productivity-tips-for-working-with.html' title='SSH Productivity Tips for Working with Remote Servers'/><author><name>Siju</name><uri>http://www.blogger.com/profile/11528426956253442878</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1299897531020692416.post-445521742732094533</id><published>2008-05-03T00:33:00.000-07:00</published><updated>2011-08-19T03:09:01.834-07:00</updated><title type='text'>LiveCDs &amp; DVDs of OpenBSD 4.3-release</title><content type='html'>&lt;p style="margin-left: 1.58in; color: rgb(0, 51, 0);"&gt;The &lt;b&gt;Basic LiveCD&lt;/b&gt; has no 3&lt;sup&gt;rd&lt;/sup&gt; party applications at all. &lt;span style=""&gt;An optional ISO image containing the Dillo browser is available.&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-left: 1.58in; color: rgb(0, 51, 0);"&gt;&lt;span style=""&gt;The &lt;/span&gt;&lt;b&gt;FluxBox LiveCD&lt;/b&gt; &lt;span style=""&gt;includes the FluxBox window manager and the Dillo browser.&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-left: 1.58in; color: rgb(0, 51, 0);"&gt;The &lt;b&gt;XFCE LiveCD&lt;/b&gt; includes the complete XFCE environment and the Dillo browser.&lt;/p&gt; &lt;p style="margin-left: 1.58in; color: rgb(0, 51, 0);"&gt;The &lt;b&gt;KDE LiveDVD&lt;/b&gt; includes the complete KDE environment, including Koffice and the Konqueror browser. The i18n internationalizations are not included.&lt;/p&gt; &lt;p style="margin-left: 1.58in; color: rgb(0, 51, 0);"&gt;The &lt;b&gt;Gnome LiveDVD&lt;/b&gt; includes the complete Gnome environment, including the Epiphany browser.&lt;/p&gt;&lt;p style="margin-left: 1.58in; color: rgb(0, 51, 0);"&gt;&lt;a href="http://http//jggimi.homeip.net/"&gt;http://jggimi.homeip.net/&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="margin-left: 1.58in; color: rgb(255, 255, 153);"&gt;&lt;span style="font-weight: bold; color: rgb(0, 51, 0);font-size:130%;" &gt;&lt;a href="http://jggimi.homeip.net/livecd/faq.html#others"&gt;Other Live CDs&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1299897531020692416-445521742732094533?l=openbsd-osnew.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://jggimi.homeip.net/' title='LiveCDs &amp; DVDs of OpenBSD 4.3-release'/><link rel='replies' type='application/atom+xml' href='http://openbsd-osnew.blogspot.com/feeds/445521742732094533/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1299897531020692416&amp;postID=445521742732094533' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1299897531020692416/posts/default/445521742732094533'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1299897531020692416/posts/default/445521742732094533'/><link rel='alternate' type='text/html' href='http://openbsd-osnew.blogspot.com/2008/05/livecds-dvds-of-openbsd-43-release.html' title='LiveCDs &amp; DVDs of OpenBSD 4.3-release'/><author><name>Siju</name><uri>http://www.blogger.com/profile/11528426956253442878</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1299897531020692416.post-8671999376859529181</id><published>2008-04-25T06:02:00.000-07:00</published><updated>2011-08-19T03:07:46.737-07:00</updated><title type='text'>Turn on Mac mini in "server mode"</title><content type='html'>&lt;pre style="color: rgb(255, 255, 153);"&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;# Magic tweak to put a Mac mini in "server mode" meaning it will&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;# reboot after a power failure.  Requires machdep.allowaperture=1&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;# (or better)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;#&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;if [ -x /usr/X11R6/bin/pcitweak ]; then&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;       /usr/X11R6/bin/pcitweak -w 00:1f:0 -b 0xa4 0x00&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;       if [ "$(/usr/X11R6/bin/pcitweak -r 0:1f:0 -b 0xa4)" = "0x00" ]; then&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;               echo -n ' server-mode'&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;       fi&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;fi&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;// marc&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a style="color: rgb(102, 0, 0);" href="http://marc.info/?l=openbsd-misc&amp;amp;m=120631077513584&amp;amp;w=2"&gt;Courtesy&lt;/a&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1299897531020692416-8671999376859529181?l=openbsd-osnew.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://marc.info/?l=openbsd-misc&amp;m=120631077513584&amp;w=2' title='Turn on Mac mini in &quot;server mode&quot;'/><link rel='replies' type='application/atom+xml' href='http://openbsd-osnew.blogspot.com/feeds/8671999376859529181/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1299897531020692416&amp;postID=8671999376859529181' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1299897531020692416/posts/default/8671999376859529181'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1299897531020692416/posts/default/8671999376859529181'/><link rel='alternate' type='text/html' href='http://openbsd-osnew.blogspot.com/2008/04/turn-on-mac-mini-in-server-mode.html' title='Turn on Mac mini in &quot;server mode&quot;'/><author><name>Siju</name><uri>http://www.blogger.com/profile/11528426956253442878</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1299897531020692416.post-1576734675719889878</id><published>2007-11-10T08:28:00.000-08:00</published><updated>2007-11-10T08:37:24.306-08:00</updated><title type='text'>Running Linux binaries on OpenBSD Howto - example Skype</title><content type='html'>&lt;pre&gt;I did this on a 4.1/i386.&lt;br /&gt;For other versions it would be similar however since we are going to&lt;br /&gt;use the Skype Linux Binary we will need an x86 system. Linux emulation&lt;br /&gt;is available only for x86 systems.&lt;br /&gt;&lt;br /&gt;1) Enable Linux Emulation option in kernel&lt;br /&gt;&lt;br /&gt;You will have a line&lt;br /&gt;&lt;br /&gt;#kern.emul.linux=1               # enable running Linux binaries&lt;br /&gt;&lt;br /&gt;in your "/etc/sysctl.conf" file. You need to uncomment it ( remove the&lt;br /&gt;# in the begining ) and make it look like&lt;br /&gt;&lt;br /&gt;kern.emul.linux=1               # enable running Linux binaries&lt;br /&gt;&lt;br /&gt;In the next step when you install the "fedora_base-4.0p2.tgz" pakage&lt;br /&gt;it will automatically enable this option temporarily in the running&lt;br /&gt;kernel but if the change has to last after a reboot you need to do the edit&lt;br /&gt;mentioned above in "/etc/sysctl.conf" :-)&lt;br /&gt;&lt;br /&gt;2) Install "fedora_base-4.0p2.tgz" package.&lt;br /&gt;&lt;br /&gt;#export PKG_PATH=&lt;a href="ftp://ftp.openbsd.org/pub/OpenBSD/4.1/packages/i386/"&gt;ftp://ftp.openbsd.org/pub/OpenBSD/4.1/packages/i386/&lt;/a&gt;&lt;br /&gt;#pkg_add fedora_base-4.0p2.tgz&lt;br /&gt;&lt;br /&gt;We do this to get most of the required Linux library files that the&lt;br /&gt;Skype Linux Binary will need. Though their website says it is&lt;br /&gt;statically linked we will soon find out that this is not the case :-(&lt;br /&gt;&lt;br /&gt;At this point if you are more interested in details you can read&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.openbsd.org/cgi-bin/man.cgi?query=compat_linux&amp;amp;sektion=8"&gt;http://www.openbsd.org/cgi-bin/man.cgi?query=compat_linux&amp;amp;sektion=8&lt;/a&gt;&lt;br /&gt;or&lt;br /&gt;$man 8 compat_linux&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;3) Download the Skype Linux Binary.&lt;br /&gt;&lt;br /&gt;====================================================&lt;br /&gt;#cd /tmp&lt;br /&gt;#ftp &lt;a href="http://www.skype.com/go/getskype-linux-static"&gt;http://www.skype.com/go/getskype-linux-static&lt;/a&gt;&lt;br /&gt;Trying 204.9.163.136...&lt;br /&gt;Requesting &lt;a href="http://www.skype.com/go/getskype-linux-static"&gt;http://www.skype.com/go/getskype-linux-static&lt;/a&gt;&lt;br /&gt;Redirected to &lt;a href="http://download.skype.com/linux/skype_static-1.4.0.99.tar.bz2"&gt;http://download.skype.com/linux/skype_static-1.4.0.99.tar.bz2&lt;/a&gt;&lt;br /&gt;Trying 130.117.72.89...&lt;br /&gt;Requesting &lt;a href="http://download.skype.com/linux/skype_static-1.4.0.99.tar.bz2"&gt;http://download.skype.com/linux/skype_static-1.4.0.99.tar.bz2&lt;/a&gt;&lt;br /&gt; 0% |                                                   |     0       --:-- ETA&lt;br /&gt;====================================================&lt;br /&gt;&lt;br /&gt;After the download is over on the OpenBSD System you are working on&lt;br /&gt;you need to put the files in the appropriate places.&lt;br /&gt;&lt;br /&gt;====================================================&lt;br /&gt;#pwd&lt;br /&gt;/tmp&lt;br /&gt;#bunzip2 skype_static-1.4.0.99.tar.bz2&lt;br /&gt;#tar -xvf skype_static-1.4.0.99.tar&lt;br /&gt;#mv skype_static-1.4.0.99 skype&lt;br /&gt;====================================================&lt;br /&gt;&lt;br /&gt;If you want there is a README file inside the "skype" directory now.&lt;br /&gt;It explains some things other things have to be guessed :-)&lt;br /&gt;So continuing our setup&lt;br /&gt;&lt;br /&gt;====================================================&lt;br /&gt;#pwd&lt;br /&gt;/tmp&lt;br /&gt;#mv skype /emul/linux/usr/share&lt;br /&gt;#cd /emul/linux/usr/share/skype&lt;br /&gt;#mv skype /emul/linux/usr/bin&lt;br /&gt;#mkdir /emul/linux/etc/skype&lt;br /&gt;#mv skype.conf /emul/linux/etc/skype&lt;br /&gt;====================================================&lt;br /&gt;&lt;br /&gt;Now at this point if you start skype it will give an error.&lt;br /&gt;&lt;br /&gt;====================================================&lt;br /&gt;$ /emul/linux/usr/bin/skype&lt;br /&gt;/emul/linux/usr/bin/skype: error while loading shared libraries:&lt;br /&gt;libasound.so.2: cannot open shared object file: No such file or&lt;br /&gt;directory&lt;br /&gt;====================================================&lt;br /&gt;&lt;br /&gt;So now investigating this problem we will find that&lt;br /&gt;&lt;br /&gt;1) Skype Linux Binary is not fully statically linked as their website says&lt;br /&gt;2) Even the "fedora_base-4.0p2.tgz" package we installed earlier does&lt;br /&gt;not provide all the library files required to run skype.&lt;br /&gt;&lt;br /&gt;====================================================&lt;br /&gt;$ ldd /emul/linux/usr/bin/skype&lt;br /&gt;/emul/linux/usr/bin/skype:&lt;br /&gt;       libasound.so.2 =&gt; not found&lt;br /&gt;       librt.so.1 =&gt; /lib/librt.so.1 (0x48874000)&lt;br /&gt;       libSM.so.6 =&gt; /usr/X11R6/lib/libSM.so.6 (0x5635f000)&lt;br /&gt;       libICE.so.6 =&gt; /usr/X11R6/lib/libICE.so.6 (0x4ef0a000)&lt;br /&gt;       libXi.so.6 =&gt; /usr/X11R6/lib/libXi.so.6 (0x4f700000)&lt;br /&gt;       libXrender.so.1 =&gt; /usr/X11R6/lib/libXrender.so.1 (0x4960d000)&lt;br /&gt;       libXrandr.so.2 =&gt; /usr/X11R6/lib/libXrandr.so.2 (0x4b7ad000)&lt;br /&gt;       libXfixes.so.3 =&gt; /usr/X11R6/lib/libXfixes.so.3 (0x4f1c4000)&lt;br /&gt;       libXcursor.so.1 =&gt; /usr/X11R6/lib/libXcursor.so.1 (0x4cd49000)&lt;br /&gt;       libXinerama.so.1 =&gt; /usr/X11R6/lib/libXinerama.so.1 (0x4c147000)&lt;br /&gt;       libfreetype.so.6 =&gt; /usr/lib/libfreetype.so.6 (0x4b546000)&lt;br /&gt;       libfontconfig.so.1 =&gt; /usr/lib/libfontconfig.so.1 (0x4b22b000)&lt;br /&gt;       libXext.so.6 =&gt; /usr/X11R6/lib/libXext.so.6 (0x4dee6000)&lt;br /&gt;       libX11.so.6 =&gt; /usr/X11R6/lib/libX11.so.6 (0x53161000)&lt;br /&gt;       libdl.so.2 =&gt; /lib/libdl.so.2 (0x4f1b9000)&lt;br /&gt;       libpthread.so.0 =&gt; /lib/libpthread.so.0 (0x514e9000)&lt;br /&gt;       libsigc-2.0.so.0 =&gt; not found&lt;br /&gt;       libstdc++.so.6 =&gt; /usr/lib/libstdc++.so.6 (0x56a43000)&lt;br /&gt;       libm.so.6 =&gt; /lib/libm.so.6 (0x5171b000)&lt;br /&gt;       libgcc_s.so.1 =&gt; /lib/libgcc_s.so.1 (0x50840000)&lt;br /&gt;       libc.so.6 =&gt; /lib/libc.so.6 (0x55057000)&lt;br /&gt;       /lib/ld-linux.so.2 (0x53a9e000)&lt;br /&gt;       libz.so.1 =&gt; /usr/lib/libz.so.1 (0x51f77000)&lt;br /&gt;       libexpat.so.0 =&gt; /usr/lib/libexpat.so.0 (0x52c4d000)&lt;br /&gt;$ ldd /emul/linux/usr/bin/skype |grep not&lt;br /&gt;       libasound.so.2 =&gt; not found&lt;br /&gt;       libsigc-2.0.so.0 =&gt; not found&lt;br /&gt;$&lt;br /&gt;====================================================&lt;br /&gt;&lt;br /&gt;So "libasound.so.2" and "libsigc-2.0.so.0" are not in the OpenBSD system.&lt;br /&gt;&lt;br /&gt;We can get it from any recent Linux System.&lt;br /&gt;I used my Debian Etch. Martynas Venckus also provided me with the files.&lt;br /&gt;If you have no access to a Linux system I can send the files to you :-)&lt;br /&gt;&lt;br /&gt;Now on the Linux System we check for these libraries.&lt;br /&gt;&lt;br /&gt;====================================================&lt;br /&gt;$ ssh &lt;a href="http://www.bsd-india.org/mailman/listinfo/bsd-india"&gt;root at 172.16.2.0&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.bsd-india.org/mailman/listinfo/bsd-india"&gt;root at 172.16.2.0&lt;/a&gt;'s password:&lt;br /&gt;# cat /proc/version&lt;br /&gt;Linux version 2.6.18-5-686 (Debian 2.6.18.dfsg.1-13etch2)&lt;br /&gt;(&lt;a href="http://www.bsd-india.org/mailman/listinfo/bsd-india"&gt;dannf at debian.org&lt;/a&gt;) (gcc version 4.1.2 20061115 (prerelease) (Debian&lt;br /&gt;4.1.1-21)) #1 SMP Thu Aug 30 02:19:07 UTC 2007&lt;br /&gt;&lt;br /&gt;#locate libasound.so.2&lt;br /&gt;/usr/lib/libasound.so.2&lt;br /&gt;/usr/lib/libasound.so.2.0.0&lt;br /&gt;&lt;br /&gt;# file /usr/lib/libasound.so.2&lt;br /&gt;/usr/lib/libasound.so.2: symbolic link to `libasound.so.2.0.0'&lt;br /&gt;#ls -l /usr/lib/libasound.so.2&lt;br /&gt;lrwxrwxrwx 1 root root 18 2007-03-12 15:13 /usr/lib/libasound.so.2 -&gt;&lt;br /&gt;libasound.so.2.0.0&lt;br /&gt;&lt;br /&gt;# locate libsigc-2.0.so.0&lt;br /&gt;/usr/lib/libsigc-2.0.so.0&lt;br /&gt;/usr/lib/libsigc-2.0.so.0.0.0&lt;br /&gt;&lt;br /&gt;# file /usr/lib/libsigc-2.0.so.0&lt;br /&gt;/usr/lib/libsigc-2.0.so.0: symbolic link to `libsigc-2.0.so.0.0.0'&lt;br /&gt;# ls -l /usr/lib/libsigc-2.0.so.0&lt;br /&gt;lrwxrwxrwx 1 root root 20 2006-11-02 11:45 /usr/lib/libsigc-2.0.so.0&lt;br /&gt;-&gt; libsigc-2.0.so.0.0.0&lt;br /&gt;====================================================&lt;br /&gt;&lt;br /&gt;so we find that "libasound.so.2" and "libsigc-2.0.so.0" are actualy&lt;br /&gt;symbolic links to "libasound.so.2.0.0" and "libsigc-2.0.so.0.0.0"&lt;br /&gt;respectively.&lt;br /&gt;&lt;br /&gt;We then need to get the actual files "libasound.so.2.0.0" and&lt;br /&gt;"libsigc-2.0.so.0.0.0" to our OpenBSD system.&lt;br /&gt;&lt;br /&gt;So on the OpenBSD system you can use scp to fetch these files from the&lt;br /&gt;Linux System to "/emul/linux/usr/lib" and create appropriate symbolic&lt;br /&gt;links&lt;br /&gt;&lt;br /&gt;====================================================&lt;br /&gt;# cd /emul/linux/usr/lib&lt;br /&gt;# scp &lt;a href="http://www.bsd-india.org/mailman/listinfo/bsd-india"&gt;root at 172.16.2.0&lt;/a&gt;:/usr/lib/libasound.so.2.0.0 .&lt;br /&gt;&lt;a href="http://www.bsd-india.org/mailman/listinfo/bsd-india"&gt;root at 172.16.2.0&lt;/a&gt;'s password:&lt;br /&gt;libasound.so.2.0.0                             100%  766KB 765.6KB/s   00:00&lt;br /&gt;# scp &lt;a href="http://www.bsd-india.org/mailman/listinfo/bsd-india"&gt;root at 172.16.2.0&lt;/a&gt;:/usr/lib/libsigc-2.0.so.0.0.0 .&lt;br /&gt;&lt;a href="http://www.bsd-india.org/mailman/listinfo/bsd-india"&gt;root at 172.16.2.0&lt;/a&gt;'s password:&lt;br /&gt;libsigc-2.0.so.0.0.0                           100%   18KB  18.2KB/s   00:00&lt;br /&gt;#ln -s libasound.so.2.0.0 libasound.so.2&lt;br /&gt;#ln -s libsigc-2.0.so.0.0.0 libsigc-2.0.so.0&lt;br /&gt;====================================================&lt;br /&gt;&lt;br /&gt;Now Checking if everything is fine again on the OpenBSD system&lt;br /&gt;&lt;br /&gt;====================================================&lt;br /&gt;&lt;br /&gt;$ ldd /emul/linux/usr/bin/skype&lt;br /&gt;/emul/linux/usr/bin/skype:&lt;br /&gt;       libasound.so.2 =&gt; /usr/lib/libasound.so.2 (0x502c4000)&lt;br /&gt;       librt.so.1 =&gt; /lib/librt.so.1 (0x537c0000)&lt;br /&gt;       libSM.so.6 =&gt; /usr/X11R6/lib/libSM.so.6 (0x53f81000)&lt;br /&gt;       libICE.so.6 =&gt; /usr/X11R6/lib/libICE.so.6 (0x4c089000)&lt;br /&gt;       libXi.so.6 =&gt; /usr/X11R6/lib/libXi.so.6 (0x56bb5000)&lt;br /&gt;       libXrender.so.1 =&gt; /usr/X11R6/lib/libXrender.so.1 (0x4c7db000)&lt;br /&gt;       libXrandr.so.2 =&gt; /usr/X11R6/lib/libXrandr.so.2 (0x4fde0000)&lt;br /&gt;       libXfixes.so.3 =&gt; /usr/X11R6/lib/libXfixes.so.3 (0x50a47000)&lt;br /&gt;       libXcursor.so.1 =&gt; /usr/X11R6/lib/libXcursor.so.1 (0x518ac000)&lt;br /&gt;       libXinerama.so.1 =&gt; /usr/X11R6/lib/libXinerama.so.1 (0x4caaf000)&lt;br /&gt;       libfreetype.so.6 =&gt; /usr/lib/libfreetype.so.6 (0x4c494000)&lt;br /&gt;       libfontconfig.so.1 =&gt; /usr/lib/libfontconfig.so.1 (0x52b3c000)&lt;br /&gt;       libXext.so.6 =&gt; /usr/X11R6/lib/libXext.so.6 (0x521a1000)&lt;br /&gt;       libX11.so.6 =&gt; /usr/X11R6/lib/libX11.so.6 (0x49204000)&lt;br /&gt;       libdl.so.2 =&gt; /lib/libdl.so.2 (0x56cdc000)&lt;br /&gt;       libpthread.so.0 =&gt; /lib/libpthread.so.0 (0x573c6000)&lt;br /&gt;       libsigc-2.0.so.0 =&gt; /usr/lib/libsigc-2.0.so.0 (0x57c6f000)&lt;br /&gt;       libstdc++.so.6 =&gt; /usr/lib/libstdc++.so.6 (0x4c5b6000)&lt;br /&gt;       libm.so.6 =&gt; /lib/libm.so.6 (0x4b201000)&lt;br /&gt;       libgcc_s.so.1 =&gt; /lib/libgcc_s.so.1 (0x4cfcb000)&lt;br /&gt;       libc.so.6 =&gt; /lib/libc.so.6 (0x578f3000)&lt;br /&gt;       /lib/ld-linux.so.2 (0x49fd7000)&lt;br /&gt;       libz.so.1 =&gt; /usr/lib/libz.so.1 (0x4e6a1000)&lt;br /&gt;       libexpat.so.0 =&gt; /usr/lib/libexpat.so.0 (0x50745000)&lt;br /&gt;$&lt;br /&gt;====================================================&lt;br /&gt;&lt;br /&gt;Things are fine. There is no "not found" message for any :-)&lt;br /&gt;&lt;br /&gt;Just start skype now. It should come up :-)))))))))))&lt;br /&gt;&lt;br /&gt;#/emul/linux/usr/bin/skype&lt;br /&gt;&lt;br /&gt;You can chat but if you try to make a call the skype window will give&lt;br /&gt;you the error&lt;br /&gt;&lt;br /&gt;"Call Failed: Problem with Audio Playback"&lt;br /&gt;&lt;br /&gt;and in the terminal you will find&lt;br /&gt;&lt;br /&gt;===================================================&lt;br /&gt;$ /emul/linux/usr/bin/skype&lt;br /&gt;ALSA lib control.c:910:(snd_ctl_open_noupdate) Invalid CTL default&lt;br /&gt;ALSA lib control.c:910:(snd_ctl_open_noupdate) Invalid CTL default&lt;br /&gt;ALSA lib control.c:910:(snd_ctl_open_noupdate) Invalid CTL default&lt;br /&gt;ALSA lib control.c:910:(snd_ctl_open_noupdate) Invalid CTL default&lt;br /&gt;===================================================&lt;br /&gt;&lt;br /&gt;Also if you quit skype and try to start it again it will give an error&lt;br /&gt;&lt;br /&gt;"Another Skype instance may exist"&lt;br /&gt;&lt;br /&gt;So just delete the .Skype in your home directory&lt;br /&gt;$rm -rf ~/.Skype&lt;br /&gt;&lt;br /&gt;and it should start again.&lt;br /&gt;&lt;br /&gt;Thanks a lot again Martynas :-))))))))))&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1299897531020692416-1576734675719889878?l=openbsd-osnew.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://marc.info/?l=openbsd-misc&amp;m=119039040500478&amp;w=2' title='Running Linux binaries on OpenBSD Howto - example Skype'/><link rel='replies' type='application/atom+xml' href='http://openbsd-osnew.blogspot.com/feeds/1576734675719889878/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1299897531020692416&amp;postID=1576734675719889878' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1299897531020692416/posts/default/1576734675719889878'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1299897531020692416/posts/default/1576734675719889878'/><link rel='alternate' type='text/html' href='http://openbsd-osnew.blogspot.com/2007/11/running-linux-binaries-on-openbsd-howto.html' title='Running Linux binaries on OpenBSD Howto - example Skype'/><author><name>Siju</name><uri>http://www.blogger.com/profile/11528426956253442878</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1299897531020692416.post-5288225128733487421</id><published>2007-08-05T03:31:00.000-07:00</published><updated>2007-11-12T03:23:11.476-08:00</updated><title type='text'>Booting From RAIDFRAME in multiuser before Parity  re-write</title><content type='html'>Continuation of&lt;br /&gt;&lt;h3 class="post-title entry-title"&gt;              &lt;a href="http://openbsd-osnew.blogspot.com/2007/03/software-raid-on-openbsd-using.html"&gt;Software RAID on OpenBSD using RAIDFRAME&lt;/a&gt;             &lt;/h3&gt;&lt;br /&gt;&lt;a href="http://www.cs.usask.ca/staff/oster/"&gt;Greg Oster&lt;/a&gt; ( RAIDFRAME Developer ) &lt;a href="http://marc.info/?t=118563388300003&amp;amp;r=1&amp;amp;w=2"&gt;writes at misc@openbsd(.)org&lt;/a&gt; on how to deal with long parity writes that keep the system from booting to multi user for a long time.&lt;br /&gt;&lt;br /&gt;====================================================================&lt;br /&gt;&lt;br /&gt;RAIDframe, like hardware RAID and rsync, is just another tool.&lt;br /&gt;Understand the pros and cons of each, but be willing to accept the&lt;br /&gt;risks associated with whatever you choose... (if you think hardware&lt;br /&gt;RAID is riskless, then you've never had a 2TB RAID set suddenly&lt;br /&gt;decide that all components were "offline" and mark them as such!)&lt;br /&gt;&lt;br /&gt;For the folks who dislike the "long parity checks"... If you're&lt;br /&gt;willing to accept a window during which some of your data *might* be&lt;br /&gt;at risk, change:&lt;br /&gt;raidctl -P all&lt;br /&gt;to something like&lt;br /&gt;sleep 3600 ; raidctl -P all &amp;amp;&lt;br /&gt;------------------------------------------------&lt;br /&gt;correction from Greg it should be:&lt;br /&gt;(sleep 3600 ; raidctl  -P  all) &amp;amp;&lt;br /&gt;------------------------------------------------&lt;br /&gt;in /etc/rc .  This will, of course, delay the start of the parity&lt;br /&gt;computation for an hour or so, giving your system a chance to do the&lt;br /&gt;fscks and get back to multi-user as quickly as possible.&lt;br /&gt;&lt;br /&gt;The risk here is as follows (this is for RAID 1.. risks for RAID 5&lt;br /&gt;are slightly higher):&lt;br /&gt;1) even though parity is marked 'dirty', it might actually be in&lt;br /&gt;sync.  In this case if you have a component failure, your data is&lt;br /&gt;fine.&lt;br /&gt;2) until the parity check is done, only the 'master' component is&lt;br /&gt;used for reading.  But any writes will be done are mirrored to both&lt;br /&gt;components.  That means that when the fsck is being done, any&lt;br /&gt;problems found will be fixed on *both* components, and writes will&lt;br /&gt;keep the two in sync even before parity is checked.&lt;br /&gt;3) Where the risk of data loss comes in is if the master dies&lt;br /&gt;before the parity check gets done.  In this case, data on the master&lt;br /&gt;that was not re-written or that was out-of-sync with the slave will&lt;br /&gt;be lost.  This could result in the loss of pretty much anything.&lt;br /&gt;&lt;br /&gt;The important thing here is for you to evaluate your situation and&lt;br /&gt;decide whether this level of risk is acceptable... For me, I use the&lt;br /&gt;equivalent to 'sleep 3600' on my home desktop.. and slightly modified&lt;br /&gt;versions of it on other home servers and other boxen I look after..&lt;br /&gt;But don't blindly listen to me or anyone else -- learn what the risks&lt;br /&gt;are for your situation, determine what level of risk you can accept,&lt;br /&gt;and go from there...&lt;br /&gt;&lt;br /&gt;Later...&lt;br /&gt;&lt;span class="sg"&gt;&lt;br /&gt;Greg Oster&lt;br /&gt;&lt;br /&gt;================================================&lt;br /&gt;&lt;/span&gt;Greg does a minor correction&lt;br /&gt;it should actually be&lt;br /&gt;&lt;br /&gt;(sleep 3600 ; raidctl -P all) &amp;amp;&lt;br /&gt;&lt;br /&gt;What I do id I comment out&lt;br /&gt;&lt;div class="Ih2E3d"&gt;&lt;br /&gt;raidctl -P all&lt;br /&gt;&lt;br /&gt;in /etc/rc&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;and put&lt;br /&gt;&lt;br /&gt;(sleep 600; raidctl -P all) &amp;amp;&lt;br /&gt;&lt;br /&gt;at the end of  /etc/rc.local.&lt;br /&gt;&lt;br /&gt;So the parity rebuild starts only 10 minutes after the system is up an&lt;br /&gt;running from the master disk.&lt;br /&gt;=============================================&lt;br /&gt;&lt;span class="sg"&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1299897531020692416-5288225128733487421?l=openbsd-osnew.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://marc.info/?l=openbsd-misc&amp;m=118624313311571&amp;w=2' title='Booting From RAIDFRAME in multiuser before Parity  re-write'/><link rel='replies' type='application/atom+xml' href='http://openbsd-osnew.blogspot.com/feeds/5288225128733487421/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1299897531020692416&amp;postID=5288225128733487421' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1299897531020692416/posts/default/5288225128733487421'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1299897531020692416/posts/default/5288225128733487421'/><link rel='alternate' type='text/html' href='http://openbsd-osnew.blogspot.com/2007/08/booting-from-raidframe-in-multiuser.html' title='Booting From RAIDFRAME in multiuser before Parity  re-write'/><author><name>Siju</name><uri>http://www.blogger.com/profile/11528426956253442878</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1299897531020692416.post-2755074584742892612</id><published>2007-08-01T20:03:00.000-07:00</published><updated>2007-08-01T20:18:49.630-07:00</updated><title type='text'>BIND 9 cache poisoning vulnerability does not affect OpenBSD due to Proactive Security Steps</title><content type='html'>&lt;p&gt;&lt;span style="font-family:arial,helvetica;"&gt;From the &lt;a href="http://undeadly.org"&gt;OpenBSD Journal&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:arial,helvetica;"&gt;Jakob Schlyter (jakob@) wrote to &lt;a href="http://marc.info/?l=openbsd-misc&amp;m=118539211412877&amp;amp;w=2"&gt;misc@&lt;/a&gt;:&lt;br /&gt; &lt;/span&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;pre&gt;&lt;span style="font-family:arial,helvetica;"&gt;as some of you may have noticed, a new weakness in BIND 9 has&lt;br /&gt;recently been discovered.  using this weakness, an attacker can&lt;br /&gt;remotely poison the cache of any BIND 9 server.  the attacker can do&lt;br /&gt;this due to a weakness in the transaction ID generation algorithm used.&lt;br /&gt;&lt;br /&gt;when BIND 9 was first imported into OpenBSD, we decided not to use&lt;br /&gt;the default ID generation algorithm (LFSR, Linear Feedback Shift&lt;br /&gt;Register) but to use a more proven algorithm (LCG, Linear&lt;br /&gt;Congruential Generator) instead.  thanks to this wise decision, the&lt;br /&gt;BIND 9 shipped with OpenBSD does not have this weakness.&lt;br /&gt;&lt;br /&gt;the proactive security of OpenBSD strikes again,&lt;br /&gt;&lt;br /&gt;       jakob&lt;br /&gt;&lt;br /&gt;ref: &lt;a href="http://www.trusteer.com/docs/bind9dns.html"&gt;http://www.trusteer.com/docs/bind9dns.html&lt;/a&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1299897531020692416-2755074584742892612?l=openbsd-osnew.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.undeadly.org/cgi?action=article&amp;sid=20070725193920&amp;mode=expanded&amp;count=15' title='BIND 9 cache poisoning vulnerability does not affect OpenBSD due to Proactive Security Steps'/><link rel='replies' type='application/atom+xml' href='http://openbsd-osnew.blogspot.com/feeds/2755074584742892612/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1299897531020692416&amp;postID=2755074584742892612' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1299897531020692416/posts/default/2755074584742892612'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1299897531020692416/posts/default/2755074584742892612'/><link rel='alternate' type='text/html' href='http://openbsd-osnew.blogspot.com/2007/08/bind-9-cache-poisoning-vulnerability.html' title='BIND 9 cache poisoning vulnerability does not affect OpenBSD due to Proactive Security Steps'/><author><name>Siju</name><uri>http://www.blogger.com/profile/11528426956253442878</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1299897531020692416.post-7927946748670366671</id><published>2007-03-07T12:08:00.000-08:00</published><updated>2007-03-07T12:27:44.586-08:00</updated><title type='text'>Software RAID on OpenBSD using RAIDFRAME</title><content type='html'>Thankyou so much Vijay :-) You saved me just in time with this post!&lt;br /&gt;Posted here for others.&lt;br /&gt;&lt;br /&gt;===================================================================&lt;br /&gt;Good day,&lt;br /&gt;&lt;br /&gt;I set up RAIDFRAME on HP DL380 G4 servers sometime in 2004 because we&lt;br /&gt;had problems with hardware RAID (SmartArray 6402 controller with 15000&lt;br /&gt;rpm drives). We are no longer using RAIDFrame because OpenBSD 3.9&lt;br /&gt;support for RAID on our machines is excellent and we no longer have&lt;br /&gt;problems with 15K rpm drives. So unfortunately, I am not able to get you&lt;br /&gt;a dmesg from this specific server when it was running RAIDFRAME.&lt;br /&gt;&lt;br /&gt;Anyways, here is a cut and paste of what may be useful from my write up&lt;br /&gt;at that time. It was written for operators whose primary expertise is&lt;br /&gt;not OpenBSD, and the objective was just to help us rebuild our OpenBSD&lt;br /&gt;servers quickly if there were any hardware failures. So it just shows&lt;br /&gt;the steps to take within our environment and may not be appropriate for&lt;br /&gt;your situation. Sorry that it looks a bit disjointed but I had to delete&lt;br /&gt;all material that was specific to the data center. Hopefully it is still&lt;br /&gt;readable. If you want the OpenOffice version of this document, please&lt;br /&gt;let me know as well.&lt;br /&gt;&lt;br /&gt;Hope this helps,&lt;br /&gt;&lt;br /&gt;Vijay&lt;br /&gt;&lt;br /&gt;FROM THE SERVER CONFIGURATION DOCUMENT&lt;br /&gt;&lt;br /&gt;BASICS&lt;br /&gt;&lt;br /&gt;Install OpenBSD, using 4GB for /, 2GB for swap, and leave the rest for&lt;br /&gt;RAID&lt;br /&gt;&lt;br /&gt;Install KDE Base&lt;br /&gt;&lt;br /&gt;Make sure base installation is working properly.&lt;br /&gt;&lt;br /&gt;I modified the generic kernel with the following changes -- RAID&lt;br /&gt;support, a number of kernel optimizations including DUMMY_NOOPS, removal&lt;br /&gt;of support for 386/486/586 processors, no math emulation, and support&lt;br /&gt;for RAID Auto-configuration. I then built two custom kernels, one for&lt;br /&gt;single processors (bsd.vijay.sp) and one for SMP machines&lt;br /&gt;(bsd.vijay.mp). The objective was to provide similar or better&lt;br /&gt;performance than the Solaris boxes. Copy the two custom kernels built&lt;br /&gt;(bsd.vijay.mp and bsd.vijay.sp) to /&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Rename /bsd as /bsd.original and rename bsd.vijay.mp as /bsd&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I had copied the kernels to /home/vijay. So in this situation, I typed&lt;br /&gt;in the following commands:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;honyp34# cd /&lt;br /&gt;&lt;br /&gt;honyp34# mv bsd bsd.original&lt;br /&gt;&lt;br /&gt;honyp34# cp /home/vijay/bsd.vijay.mp /bsd&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;This will replace the generic kernel with a custom kernel that supports&lt;br /&gt;RAID and is optimized for the Proliant DL380 G4 Server.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now comes the slightly complicated part.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;DISKLABEL&lt;br /&gt;disklabel sd0 &gt; disklabel.sd0&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;You will get output as follows:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;# /dev/rsd0c:&lt;br /&gt;&lt;br /&gt;type: SCSI&lt;br /&gt;&lt;br /&gt;disk: SCSI disk&lt;br /&gt;&lt;br /&gt;label: BF07288576&lt;br /&gt;&lt;br /&gt;flags:&lt;br /&gt;&lt;br /&gt;bytes/sector: 512&lt;br /&gt;&lt;br /&gt;sectors/track: 723&lt;br /&gt;&lt;br /&gt;tracks/cylinder: 4&lt;br /&gt;&lt;br /&gt;sectors/cylinder: 2892&lt;br /&gt;&lt;br /&gt;cylinders: 49158&lt;br /&gt;&lt;br /&gt;total sectors: 142264000&lt;br /&gt;&lt;br /&gt;rpm: 15000&lt;br /&gt;&lt;br /&gt;interleave: 1&lt;br /&gt;&lt;br /&gt;trackskew: 0&lt;br /&gt;&lt;br /&gt;cylinderskew: 0&lt;br /&gt;&lt;br /&gt;headswitch: 0 # microseconds&lt;br /&gt;&lt;br /&gt;track-to-track seek: 0 # microseconds&lt;br /&gt;&lt;br /&gt;drivedata: 0&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;16 partitions:&lt;br /&gt;&lt;br /&gt;# size offset fstype [fsize bsize cpg]&lt;br /&gt;&lt;br /&gt;a: 8389629 63 4.2BSD 2048 16384 416 # Cyl 0*- 2900&lt;br /&gt;&lt;br /&gt;b: 4193400 8389692 swap # Cyl 2901 - 4350&lt;br /&gt;&lt;br /&gt;c: 142264000 0 unused 0 0 # Cyl 0 - 49192*&lt;br /&gt;&lt;br /&gt;d: 129672483 12583092 RAID # Cyl 4351 - 49189*&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now copy this to disklabel.sd1 and edit the new file so that we have:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;# /dev/rsd1c:&lt;br /&gt;&lt;br /&gt;type: SCSI&lt;br /&gt;&lt;br /&gt;disk: SCSI disk&lt;br /&gt;&lt;br /&gt;label: BF07288576&lt;br /&gt;&lt;br /&gt;flags:&lt;br /&gt;&lt;br /&gt;bytes/sector: 512&lt;br /&gt;&lt;br /&gt;sectors/track: 723&lt;br /&gt;&lt;br /&gt;tracks/cylinder: 4&lt;br /&gt;&lt;br /&gt;sectors/cylinder: 2892&lt;br /&gt;&lt;br /&gt;cylinders: 49158&lt;br /&gt;&lt;br /&gt;total sectors: 142264000&lt;br /&gt;&lt;br /&gt;rpm: 15000&lt;br /&gt;&lt;br /&gt;interleave: 1&lt;br /&gt;&lt;br /&gt;trackskew: 0&lt;br /&gt;&lt;br /&gt;cylinderskew: 0&lt;br /&gt;&lt;br /&gt;headswitch: 0 # microseconds&lt;br /&gt;&lt;br /&gt;track-to-track seek: 0 # microseconds&lt;br /&gt;&lt;br /&gt;drivedata: 0&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;16 partitions:&lt;br /&gt;&lt;br /&gt;# size offset fstype [fsize bsize cpg]&lt;br /&gt;&lt;br /&gt;a: 8389629 63 4.2BSD 2048 16384 416 # Cyl 0*- 2900&lt;br /&gt;&lt;br /&gt;b: 4193400 8389692 swap # Cyl 2901 - 4350&lt;br /&gt;&lt;br /&gt;c: 142264000 0 unused 0 0 # Cyl 0 - 49192*&lt;br /&gt;&lt;br /&gt;d: 129672483 12583092 RAID # Cyl 4351 - 49189*&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;MATCH DRIVES&lt;br /&gt;&lt;br /&gt;fdisk -i sd1&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;-----------------------------------------------------&lt;br /&gt;&lt;br /&gt;------ ATTENTION - UPDATING MASTER BOOT RECORD ------&lt;br /&gt;&lt;br /&gt;-----------------------------------------------------&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Do you wish to write new MBR and partition table? [n] y&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;disklabel -R -r sd1 disklabel.sd1&lt;br /&gt;&lt;br /&gt;# using MBR partition 3: type A6 off 63 (0x3f) size 142255512&lt;br /&gt;(0x87aa598)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now, set up the new filesystem using the commands:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;newfs /dev/sd1a&lt;br /&gt;&lt;br /&gt;newfs /dev/sd1d&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Create and save a file called raid0.conf in /etc with the following&lt;br /&gt;contents:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;START array&lt;br /&gt;&lt;br /&gt;1 2 0&lt;br /&gt;&lt;br /&gt;START disks&lt;br /&gt;&lt;br /&gt;/dev/sd0d&lt;br /&gt;&lt;br /&gt;/dev/sd1d&lt;br /&gt;&lt;br /&gt;START layout&lt;br /&gt;&lt;br /&gt;128 1 1 1&lt;br /&gt;&lt;br /&gt;START queue&lt;br /&gt;&lt;br /&gt;fifo 100&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;mount /dev/sd1a /sd1&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;cd /&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;pax -r -w -p e -v .profile bin boot bsd bsd.original dev dvd etc home&lt;br /&gt;mnt root sbin sd0 sys tmp usr var stand altroot /sd1/&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;dump -0f - / | restore -rf b is another alternative and is recommended&lt;br /&gt;by many people. I had problems with this command, when implementing a&lt;br /&gt;graphical OpenBSD. So resorted to the less popular pax.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;After the restore is completed successfully, copy the boot sectors to&lt;br /&gt;the second hard drive:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;/usr/mdec/installboot -v /sd1/boot /usr/mdec/biosboot sd1&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Do not forget to edit fstab on the second hard drive so&lt;br /&gt;that /sd1/etc/fstab looks like:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;/dev/sd1a / ffs rw 1 1&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Reboot so that we use the custom, RAID-enabled kernel.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;SET UP RAID&lt;br /&gt;&lt;br /&gt;If you followed all the steps listed above breligiouslyb then most&lt;br /&gt;probably you wonbt get too many errors. Most probably if you are running&lt;br /&gt;your commands from the console you may notice the following errors.&lt;br /&gt;Since raidctl ignores them, you can safely ignore them too!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;honyp34# raidctl -C /etc/raid0.conf raid0&lt;br /&gt;&lt;br /&gt;Jun 21 10:19:33 honyp34 /bsd: vnode was NULL&lt;br /&gt;&lt;br /&gt;Jun 21 10:20:19 honyp34 /bsd: Hosed component: /dev/sd0d.&lt;br /&gt;&lt;br /&gt;Jun 21 10:20:19 honyp34 /bsd: Hosed component: /dev/sd0d.&lt;br /&gt;&lt;br /&gt;Jun 21 10:20:19 honyp34 /bsd: raid0: Ignoring /dev/sd0d.&lt;br /&gt;&lt;br /&gt;Jun 21 10:20:19 honyp34 /bsd: raid0: Ignoring /dev/sd0d.&lt;br /&gt;&lt;br /&gt;honyp34# Jun 21 10:20:19 honyp34 /bsd: raid0: Component /dev/sd1d being&lt;br /&gt;configured at row: 0 col: 1&lt;br /&gt;&lt;br /&gt;Jun 21 10:20:19 honyp34 /bsd: raid0: Component /dev/sd1d being&lt;br /&gt;configured at row: 0 col: 1&lt;br /&gt;&lt;br /&gt;Jun 21 10:20:19 honyp34 /bsd: Row: 16 Column: 24 Num Rows: 1200 Num&lt;br /&gt;Columns: 184&lt;br /&gt;&lt;br /&gt;Jun 21 10:20:19 honyp34 /bsd: Row: 16 Column: 24 Num Rows: 1200 Num&lt;br /&gt;Columns: 184&lt;br /&gt;&lt;br /&gt;Jun 21 10:20:19 honyp34 /bsd: Version: 0 Serial Number: 0 Mod Counter: 8&lt;br /&gt;&lt;br /&gt;Jun 21 10:20:19 honyp34 /bsd: Version: 0 Serial Number: 0 Mod Counter: 8&lt;br /&gt;&lt;br /&gt;Jun 21 10:20:19 honyp34 /bsd: Clean: Yes Status: 1119363391&lt;br /&gt;&lt;br /&gt;Jun 21 10:20:19 honyp34 /bsd: Clean: Yes Status: 1119363391&lt;br /&gt;&lt;br /&gt;Jun 21 10:20:19 honyp34 /bsd: Row out of alignment for: /dev/sd1d.&lt;br /&gt;&lt;br /&gt;Jun 21 10:20:19 honyp34 /bsd: Row out of alignment for: /dev/sd1d.&lt;br /&gt;&lt;br /&gt;Jun 21 10:20:19 honyp34 /bsd: Column out of alignment for: /dev/sd1d.&lt;br /&gt;&lt;br /&gt;Jun 21 10:20:19 honyp34 /bsd: Column out of alignment for: /dev/sd1d.&lt;br /&gt;&lt;br /&gt;Jun 21 10:20:19 honyp34 /bsd: Number of rows do not match&lt;br /&gt;for: /dev/sd1d.&lt;br /&gt;&lt;br /&gt;Jun 21 10:20:19 honyp34 /bsd: Number of rows do not match&lt;br /&gt;for: /dev/sd1d.&lt;br /&gt;&lt;br /&gt;Jun 21 10:20:19 honyp34 /bsd: Number of columns do not match&lt;br /&gt;for: /dev/sd1d.&lt;br /&gt;&lt;br /&gt;Jun 21 10:20:19 honyp34 /bsd: Number of columns do not match&lt;br /&gt;for: /dev/sd1d.&lt;br /&gt;&lt;br /&gt;Jun 21 10:20:19 honyp34 /bsd: raid0: There were fatal errors&lt;br /&gt;&lt;br /&gt;Jun 21 10:20:19 honyp34 /bsd: raid0: There were fatal errors&lt;br /&gt;&lt;br /&gt;Jun 21 10:20:19 honyp34 /bsd: raid0: Fatal errors being ignored.&lt;br /&gt;&lt;br /&gt;Jun 21 10:20:19 honyp34 /bsd: raid0: Fatal errors being ignored.&lt;br /&gt;&lt;br /&gt;Jun 21 10:20:19 honyp34 /bsd: raid0 (root)&lt;br /&gt;&lt;br /&gt;Jun 21 10:20:19 honyp34 /bsd: raid0 (root)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;honyp34# raidctl -I 100 raid0&lt;br /&gt;&lt;br /&gt;Jun 21 10:20:38 honyp34 /bsd: raid0: no disk label&lt;br /&gt;&lt;br /&gt;Jun 21 10:20:38 honyp34 /bsd: raid0: no disk label&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;honyp34# raidctl -iv raid0&lt;br /&gt;&lt;br /&gt;Parity Re-Write status:&lt;br /&gt;&lt;br /&gt;3% |* | ETA: 13:36 |&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;honyp34# disklabel -E raid0&lt;br /&gt;&lt;br /&gt;Jun 21 10:37:44 honyp34 /bsd: raid0: no disk label&lt;br /&gt;&lt;br /&gt;Jun 21 10:37:44 honyp34 /bsd: raid0: no disk label&lt;br /&gt;&lt;br /&gt;disklabel: Can't get bios geometry: Device not configured&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Initial label editor (enter '?' for help at any prompt)&lt;br /&gt;&lt;br /&gt;&gt; a a&lt;br /&gt;&lt;br /&gt;offset: [0]&lt;br /&gt;&lt;br /&gt;size: [129672320] 4g&lt;br /&gt;&lt;br /&gt;FS type: [4.2BSD]&lt;br /&gt;&lt;br /&gt;&gt; a b&lt;br /&gt;&lt;br /&gt;offset: [8388608]&lt;br /&gt;&lt;br /&gt;size: [121283712] 2g&lt;br /&gt;&lt;br /&gt;FS type: [swap]&lt;br /&gt;&lt;br /&gt;&gt; a d&lt;br /&gt;&lt;br /&gt;offset: [12582912]&lt;br /&gt;&lt;br /&gt;size: [117089408] 4g&lt;br /&gt;&lt;br /&gt;FS type: [4.2BSD]&lt;br /&gt;&lt;br /&gt;&gt; a e&lt;br /&gt;&lt;br /&gt;offset: [20971520]&lt;br /&gt;&lt;br /&gt;size: [108700800] 8g&lt;br /&gt;&lt;br /&gt;FS type: [4.2BSD]&lt;br /&gt;&lt;br /&gt;&gt; a f&lt;br /&gt;&lt;br /&gt;offset: [37748736]&lt;br /&gt;&lt;br /&gt;size: [91923584] 8g&lt;br /&gt;&lt;br /&gt;FS type: [4.2BSD]&lt;br /&gt;&lt;br /&gt;&gt; a g&lt;br /&gt;&lt;br /&gt;offset: [54525952]&lt;br /&gt;&lt;br /&gt;size: [75146368]&lt;br /&gt;&lt;br /&gt;FS type: [4.2BSD]&lt;br /&gt;&lt;br /&gt;&gt; w&lt;br /&gt;&lt;br /&gt;&gt; q&lt;br /&gt;&lt;br /&gt;No label changes.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The following commands will set up new file systems on the RAID array.&lt;br /&gt;Please note that rraid stands for raw raid, a convention adopted from&lt;br /&gt;standard UNIX practice. For example, rsd0a stands for raw sd0a.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;newfs /dev/rraid0a&lt;br /&gt;&lt;br /&gt;newfs /dev/rraid0d&lt;br /&gt;&lt;br /&gt;newfs /dev/rraid0e&lt;br /&gt;&lt;br /&gt;newfs /dev/rraid0f&lt;br /&gt;&lt;br /&gt;newfs /dev/rraid0g&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I have included the five newfs commands above in the file&lt;br /&gt;construct-filesystems-1.sh so that you donbt have to type it in. This is&lt;br /&gt;the first step (as indicated by the -1 in the scriptbs name).&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Next, enter the following commands:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;mount /dev/raid0a /mnt&lt;br /&gt;&lt;br /&gt;cd /mnt&lt;br /&gt;&lt;br /&gt;mkdir tmp&lt;br /&gt;&lt;br /&gt;mkdir var&lt;br /&gt;&lt;br /&gt;mkdir usr&lt;br /&gt;&lt;br /&gt;mkdir home&lt;br /&gt;&lt;br /&gt;mount /dev/raid0d /mnt/tmp&lt;br /&gt;&lt;br /&gt;mount /dev/raid0e /mnt/var&lt;br /&gt;&lt;br /&gt;mount /dev/raid0f /mnt/usr&lt;br /&gt;&lt;br /&gt;mount /dev/raid0g /mnt/home&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I entered these commands in the file mount-raid-2.sh and you can&lt;br /&gt;alternately run that file to mount the partitions. This is step 2,&lt;br /&gt;indicated by the -2 in the file name. Then&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;cd /&lt;br /&gt;&lt;br /&gt;pax -r -w -p e -v .profile bin boot bsd bsd.original dev dvd etc home&lt;br /&gt;root sbin sd0 sys tmp usr var stand altroot /mnt/&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;will copy OpenBSD installation.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Carefully edit the file system table in /mnt/etc/fstab so that it looks&lt;br /&gt;like the following:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;/dev/raid0a / ffs rw 1 1&lt;br /&gt;&lt;br /&gt;/dev/raid0b none swap sw 0 0&lt;br /&gt;&lt;br /&gt;/dev/raid0d /tmp ffs rw,nodev,nosuid,softdep 1 2&lt;br /&gt;&lt;br /&gt;/dev/raid0e /var ffs rw,nodev,nosuid,softdep 1 2&lt;br /&gt;&lt;br /&gt;/dev/raid0f /usr ffs rw,nodev,softdep 1 2&lt;br /&gt;&lt;br /&gt;/dev/raid0g /home ffs rw,nodev,nosuid,softdep 1 2&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;You may want to copy the file /home/vijay/script/fstab using the&lt;br /&gt;following command:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;honyp34# cp fstab /mnt/etc/fstab&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now, we should make the RAID partitions bootable using the command:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;honyp34# raidctl -A root raid0&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;raid0: Autoconfigure: Yes&lt;br /&gt;&lt;br /&gt;raid0: Root: Yes&lt;br /&gt;&lt;br /&gt;CHECKS&lt;br /&gt;&lt;br /&gt;Checks&lt;br /&gt;Before proceeding further, do the following checks. You should not have&lt;br /&gt;any problems with each of the following reboots. If you do, first figure&lt;br /&gt;out what is wrong, fix it, and then do the checks again:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;    1. Reboot&lt;br /&gt;     &lt;br /&gt;    2. Remove the first hard drive and reboot&lt;br /&gt;     &lt;br /&gt;    3. Remove the second hard drive and reboot&lt;br /&gt;     &lt;br /&gt;    4. Boot from hd1a:/bsd&lt;br /&gt;     &lt;br /&gt;    5. Boot from hd0a/bsd&lt;br /&gt;     &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;With each of the checks:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;            1. You should be able to logon on as root&lt;br /&gt;             &lt;br /&gt;            2. You should be able to start X-Windows&lt;br /&gt;             &lt;br /&gt;            3. You should be able to start KDE&lt;br /&gt;             &lt;br /&gt;--&lt;br /&gt;Vijay Sankar, M.Eng., P.Eng.&lt;br /&gt;ForeTell Technologies Limited&lt;br /&gt;59 Flamingo Avenue, Winnipeg, MB, Canada R3J 0X6&lt;br /&gt;Phone: 204 885 9535, E-Mail: vsankar &gt; @ &lt; foretell.ca&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1299897531020692416-7927946748670366671?l=openbsd-osnew.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://marc.theaimsgroup.com/?l=openbsd-misc&amp;m=116360194522004&amp;w=2' title='Software RAID on OpenBSD using RAIDFRAME'/><link rel='replies' type='application/atom+xml' href='http://openbsd-osnew.blogspot.com/feeds/7927946748670366671/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1299897531020692416&amp;postID=7927946748670366671' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1299897531020692416/posts/default/7927946748670366671'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1299897531020692416/posts/default/7927946748670366671'/><link rel='alternate' type='text/html' href='http://openbsd-osnew.blogspot.com/2007/03/software-raid-on-openbsd-using.html' title='Software RAID on OpenBSD using RAIDFRAME'/><author><name>Siju</name><uri>http://www.blogger.com/profile/11528426956253442878</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry></feed>
