<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet href="/templates/default/atom.css" type="text/css" ?>

<feed version="0.3" 
   xmlns="http://purl.org/atom/ns#"
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/">
    
    <link href="http://www.markround.com/rss.php?version=atom0.3" rel="service.feed" title="Mark's blog" type="application/x.atom+xml" />
    <link href="http://www.markround.com/"                        rel="alternate"    title="Mark's blog" type="text/html" />
    <link href="http://www.markround.com/rss.php?version=2.0"     rel="alternate"    title="Mark's blog" type="application/rss+xml" />
    <title mode="escaped" type="text/html">Mark's blog</title>
    <tagline mode="escaped" type="text/html">Solaris, Linux, BSD and other techie things...</tagline>
    <id>http://www.markround.com/</id>
    <modified>2012-06-15T16:08:45Z</modified>
    <generator url="http://www.s9y.org/" version="1.6.2">Serendipity 1.6.2 - http://www.s9y.org/</generator>
    <dc:language>en</dc:language>
    <info mode="xml" type="text/html">
        <div xmlns="http://www.w3.org/1999/xhtml">You are viewing an ATOM formatted XML site feed. Usually this file is inteded to be viewed in an aggregator or syndication software. If you want to know more about ATOM, please visist <a href="http://atomenabled.org/">Atomenabled.org</a></div>
    </info>

    <entry>
        <link href="http://www.markround.com/archives/67-Adventures-in-IPv6-land.html" rel="alternate" title="Adventures in IPv6 land" type="text/html" />
        <author>
            <name>Mark Round</name>
                    </author>
    
        <issued>2012-06-12T14:42:28Z</issued>
        <created>2012-06-12T14:42:28Z</created>
        <modified>2012-06-15T16:08:45Z</modified>
        <wfw:comment>http://www.markround.com/wfwcomment.php?cid=67</wfw:comment>
        <slash:comments>1</slash:comments>
        <wfw:commentRss>http://www.markround.com/rss.php?version=atom0.3&amp;type=comments&amp;cid=67</wfw:commentRss>
    
        <id>http://www.markround.com/archives/67-guid.html</id>
        <title mode="escaped" type="text/html">Adventures in IPv6 land</title>
        <content type="application/xhtml+xml" xml:base="http://www.markround.com/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p><!-- s9ymdb:89 --><img class="serendipity_image_left" width="150" height="150" src="http://www.markround.com/uploads/ipv6_green.serendipityThumb.png" /> </p> 
<p>As you may have noticed, there's now a new &quot;IPv6 Ready&quot; icon on the right of this page. It's the last piece of my latest project experimenting with IPv6; it now means that my whole home network and this website run over IPv6 as well as IPv4. If you're lucky, it will have turned green like the example on the left - this means you are connecting to this blog natively over IPv6. As I've spent the last few weeks playing with this technology, I thought I'd write my notes up here in the hopes that it will help someone else. I'll cover briefly some of the IPv6 concepts that I initially struggled with, and in the next article show how I set up IPv6 at home through a tunnel-broker despite my ISP (Virgin Media) not offering native IPv6 connectivity. I'll also cover setting up a publicly accessible website over IPv6 and share some firewall scripts and other tools I've found useful.</p> 
<p>I found that the hardest part of getting my head round IPv6 was forgetting what I previously knew about IPv4 networking. The concepts of NAT, private address space, CIDR subnet masks and so on was getting in the way of me understanding what is ultimately a much simpler system. Let's face it, the current IPv4 status quo is pretty broken, and we've got the Internet this far based on a series of hacks built upon hacks. Sure, it sort of works but it's pretty ugly - and I think it's only because we're so used to IPv4 concepts that I never took a step back and thought about how broken it truly is.&#160;</p> 
<p>Needless to say, although the theory should be equally applicable to Windows systems, all this is all written with a heavy Unix-bias as that's what I use most of them time. Also, if you notice any glaring mistakes or omissions I would be grateful if you'd leave a comment below, and I'll go back and edit this article ASAP. Click the &quot;Continue reading&quot; link for the full article...</p> 
<h1><br /></h1> 
<div> </div> 
<p> </p> 
<p> </p> 
<ul style="margin-top: 0.75em; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 3em; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: break-word; color: #000000; font-family: 'Lucida Grande', Verdana, Arial, sans-serif; font-size: 12px; line-height: 19px; background-color: #ffffff; "> </ul> <br /><a href="http://www.markround.com/archives/67-Adventures-in-IPv6-land.html#extended">Continue reading "Adventures in IPv6 land"</a>
            </div>
        </content>

        
    </entry>
    <entry>
        <link href="http://www.markround.com/archives/66-SGI-Irix-packages.html" rel="alternate" title="SGI Irix packages" type="text/html" />
        <author>
            <name>Mark Round</name>
                    </author>
    
        <issued>2012-05-29T10:24:19Z</issued>
        <created>2012-05-29T10:24:19Z</created>
        <modified>2012-05-29T10:24:19Z</modified>
        <wfw:comment>http://www.markround.com/wfwcomment.php?cid=66</wfw:comment>
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://www.markround.com/rss.php?version=atom0.3&amp;type=comments&amp;cid=66</wfw:commentRss>
    
        <id>http://www.markround.com/archives/66-guid.html</id>
        <title mode="escaped" type="text/html">SGI Irix packages</title>
        <content type="application/xhtml+xml" xml:base="http://www.markround.com/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p><img class="serendipity_image_left" width="120" height="117" src="http://www.markround.com/uploads/octane2.serendipityThumb.png" /><!-- s9ymdb:88 -->I have finally got a working build environment for my SGI IRIX systems (an R14k Fuel and a dual R12k Ocatane2) and have packaged some open-source software for the fantastic <a href="http://www.nekochan.net/what-is-nekowar.html" title="Nekoware">Nekoware</a> project. If you're a fan of classic Unix systems, I strongly recommend heading over to their <a href="http://forums.nekochan.net/" title="Nekochan Unix Forums">forums</a>&#160;- there's also a pretty strong Sun and HP contingent there among the SGI fanatics!</p> 
<p>Anyway - the two packages I have built so far are the fantastic <a href="http://www.ivarch.com/programs/pv.shtml" title="pv Pipe Viewer">pv</a> (Pipe Viewer) tool and <a href="http://mercurial.selenic.com/" title="Mercurial DVCS">Mercurial</a> DVCS. &#160;PV is a fantastic utility that can be used to replace &quot;cat&quot;, and displays a progress bar on stderr. See <a href="http://www.ivarch.com/programs/quickref/pv.shtml" title="Pipe Viewer overview">the overview</a> for some examples of what you can do with it. Mercurial should need no introduction; I just had to make a couple of <a href="http://selenic.com/pipermail/mercurial-devel/2012-May/040242.html" title="Irix patch for Mercurial">minor patches</a> (included in the tardist and submitted upstream).&#160;&#160;I've tested both local-only repositories, as well as pushing/cloning/pulling from remote HTTP sites. The only problem I have found is that accessing SSL-enabled repositories produces warnings, due to the old version of Python in Nekoware (2.5). Apart from that, it seems to work great - and the projects do seem to get checked out, it just warns you it can't check the certificate.</p>
<p>Any feedback is always gratefully received; I'm sure there are still some IRIX users out there <img src="http://www.markround.com/templates/default/img/emoticons/smile.png" alt=":-)" style="display: inline; vertical-align: bottom;" class="emoticon" /></p> 
            </div>
        </content>

        
    </entry>
    <entry>
        <link href="http://www.markround.com/archives/65-Solaris-11-Review.html" rel="alternate" title="Solaris 11 Review" type="text/html" />
        <author>
            <name>Mark Round</name>
                    </author>
    
        <issued>2012-03-21T15:04:03Z</issued>
        <created>2012-03-21T15:04:03Z</created>
        <modified>2012-05-17T15:16:03Z</modified>
        <wfw:comment>http://www.markround.com/wfwcomment.php?cid=65</wfw:comment>
        <slash:comments>2</slash:comments>
        <wfw:commentRss>http://www.markround.com/rss.php?version=atom0.3&amp;type=comments&amp;cid=65</wfw:commentRss>
    
        <id>http://www.markround.com/archives/65-guid.html</id>
        <title mode="escaped" type="text/html">Solaris 11 Review</title>
        <content type="application/xhtml+xml" xml:base="http://www.markround.com/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <div>I've finally had the chance to devote some time to experimenting with some of the new features in Solaris 11. This article is really just intended as a walk-through of my first few weeks using Solaris 11 - a &quot;kick of the tyres&quot;, so to speak. There is far too much that is new for me to cover everything, so I'll be adding to this article and updating this site as I go through it. I'm also assuming the reader is familiar with Solaris 10; if you feel some parts need clarification, or if I've skipped over something you'd particularly like covered, feel free to let me know!</div> 
<h2>Download</h2> 
<div> 
<p>I am a little unclear as to the new licensing restrictions around Solaris 11. My understanding (<em>Caveat: I Am Not A Lawyer<span style="background-color: #ffffff; color: #444444; font-family: sans-serif, arial, 'Arial Unicode MS', 'lucida grande', tahoma, verdana; line-height: 26px; text-align: justify; "></span></em>) is that it is free to use for personal and non-commercial purposes, but anything after a 30-day trial period must be licensed if you intend to use it for any kind of commercial purposes - this includes development and testing environments. You also do not get access to patches or software updates without a support contract; sadly that now includes things like BIOS and firmware updates that used to be freely available in the Sun days. All part of the new regime, I suppose - we all have to get used to contributing to Larry's yacht fund now.</p> 
<p> </p> 
</div> 
<div> 
<p>Heading on over to Oracle's online store reveals that a &quot;Oracle Solaris Premier Subscription for Non-Oracle Hardware (1-4 socket server)&quot; starts at £672.00, which does compare favourably with Red Hat Linux. Excluding the 2-socket tier, an equivalent 4-socket Red Hat license would set you back around £1,000 and only includes a license for 1 virtual machine. More details of what's included in the support offering are at <a href="http://www.oracle.com/us/support/systems/operating-systems/index.html">http://www.oracle.com/us/support/systems/operating-systems/index.html</a>.</p> 
<p><strong>Update</strong> : An anonymous reader provides some clarification - it looks like it may not be such a great deal after all :&#160;</p> 
</div> 
<blockquote style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 40px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; border-image: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "> 
<div> 
<p><span style="background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; ">The list price comparison to RHEL intrigued me. &#160;I think the Solaris&#160;</span><span style="background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; ">price is higher than £672/$1000 for the 4 socket example you're giving&#160;</span><span style="background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; ">as according to the Oracle store description page for the 1-4 socket&#160;</span><span style="background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; ">non-Oracle option:</span></p><em><span style="color: #222222; font-family: arial, sans-serif; background-color: rgba(255, 255, 255, 0.917969); ">&#160;&quot;Please note, this subscription is based on the number of sockets in&#160;</span><span style="color: #222222; font-family: arial, sans-serif; background-color: rgba(255, 255, 255, 0.917969); ">the system you need to support, when ordering enter the number of&#160;</span><span style="color: #222222; font-family: arial, sans-serif; background-color: rgba(255, 255, 255, 0.917969); ">sockets in the quantity field.&quot;</span></em><br style="color: #222222; font-family: arial, sans-serif; background-color: rgba(255, 255, 255, 0.917969); " /><br style="color: #222222; font-family: arial, sans-serif; background-color: rgba(255, 255, 255, 0.917969); " /><span style="color: #222222; font-family: arial, sans-serif; background-color: rgba(255, 255, 255, 0.917969); ">So that'd be £672 * 4 = £2688 (or $4000). &#160;I'm assuming premier is the&#160;</span><span style="color: #222222; font-family: arial, sans-serif; background-color: rgba(255, 255, 255, 0.917969); ">same sort of service + SLAs on both. &#160;The equivalent to the single&#160;</span><span style="color: #222222; font-family: arial, sans-serif; background-color: rgba(255, 255, 255, 0.917969); ">socket £672/$1000 subscription would be the RHEL 2-socket premium&#160;</span><span style="color: #222222; font-family: arial, sans-serif; background-color: rgba(255, 255, 255, 0.917969); ">subscription at $1299/yr. &#160;Hopefully I'm not missing anything here.</span> 
</div> 
</blockquote> 
<div> 
<p> </p> 
<p>I would be interested to hear of any experiences of Oracle's support when using non-Oracle hardware, as to date (apart from some non-production environments running on HP ProLiant systems) everything I have run Solaris on has been a Sun/Oracle SPARC or x64 system, and the OS support was included under a larger company support contract. <strong>Update 2</strong> : There's some experience of Solaris on HP kit in the comments below.&#160;</p> 
</div> 
<div>Anyway, the first step is to download the software and unlike previous Solaris releases, there's now a variety of different installation media so you have to pick the correct one for your needs. The available downloads are :</div> 
<div> 
<ul> 
<li><strong>Text Install</strong> : This is very similar to the old Solaris text-mode installs (SPARC and x86) and even has the same colour-scheme and &quot;F2_Continue&quot; shortcuts down the bottom. Takes me right back to installing Solaris 8 on old Pentium systems!<br /><br /></li> 
<li><strong>Automated Installer</strong> : This provides a &quot;hands-free&quot; network installation system, and replaces the old Jumpstart system. You need to have your own IPS repository (more on that later) set up, or have access to the Internet so you can reach Oracle's IPS repository.<br /><br /></li> 
<li><strong>Live Media</strong> : This is only available for x86 systems, and is very similar to the Linux &quot;live environments&quot; on Ubuntu and Fedora etc. It lets you run the system off the CD and experiment with it before actually installing it. It's pretty slow and you'll need a lot of memory so I personally didn't find it of much use other than to check hardware compatibility and so on.<br /><br /></li> 
<li><strong>Repository Image</strong> : Unlike previous Solaris releases, the installation media does not contain all available packages. Instead, it contains a smaller subset of software which will allow you to get a basic system up and running. After that, you need to connect to Oracle's pkg.oracle.com server to download other packages, or use this image to either setup a local IPS server on your network (or mount it and use it as a local repository).<br /><br /></li> 
<li><strong>USB Install Images</strong> : Again, only available for x86. I didn't test this out as I didn't have a need for it, but it would be a useful addition to the Solaris Sysadmin's toolbox.<br /><br /></li> 
<li><strong>Virtual Machine Downloads</strong> : These are VM images that can be imported directly into a variety of hypervisors - could be useful for getting started quickly, but most admins will either be using the text or automated installers.</li> 
</ul> 
</div> 
<div> 
<p>There's also a &quot;Oracle Solaris 11 Preflight Application Checker&quot; available, which checks an application running on Solaris 10 and indicates whether it should run without problems on Solaris 11. However, given the Solaris binary compatibility guarantee it's unlikely you'd encounter problems. In any case, you could always run a Solaris 10-branded zone under Solaris 11 - indeed, creating a Solaris 10 zone from a running system (using flash images) is a supported configuration and process.</p> 
</div> 
<h2>Installation</h2> 
<div>I grabbed the x86 text installation images and installed a system using Oracle Virtualbox. As with Solaris 10, the boot menu (grub) lets you choose an install over a local terminal or serial ports. The latter option is particularly useful in an environment using Sun/Oracle servers without a graphics card - while you can use iLOM/ALOM, going straight to the serial port is much faster.</div> 
<div><br /></div> 
<div>The setup starts off much the same as Solaris 7 onwards, with the usual region/keyboard selection, and then you get presented with a new menu :</div> 
<pre>1 Install Oracle Solaris
2 Install Additional Drivers
3 Shell
4 Terminal Type (currently sun-color)
5 Reboot</pre> 
<div>Choosing option 3 (Shell) drops you into a basic rescue-like environment, and typing &quot;exit&quot; (or hitting Ctrl-D) at any point returns you to menu. This environment is extremely useful for performing emergency maintenence or recover tasks and while you could always use &quot;boot -s&quot; from older Solaris installation media, it's is a very welcome addition to have it so easily available. In this shell environment &quot;svcadm enable ssh&quot; starts a SSH server, and if you create a new user (you can't login as root), you can also login over network.</div> 
<div><br /></div> 
<div><a class="serendipity_image_link" href="http://www.markround.com/uploads/install-disks.png"><!-- s9ymdb:85 --><img class="serendipity_image_left" width="220" height="172" src="http://www.markround.com/uploads/install-disks.serendipityThumb.png" /></a>The next screen that has noticably changed is the disks screen.&#160;UFS has been completely removed as an option, so instead of choosing your slices for filesystems, you now only get to pick which slice whould be used for the ZFS root pool. It is recommended that you use the entire disk/LUN where possible, as this lets ZFS make much better use of the underlying volume (see <a href="http://www.solarisinternals.com/wiki/index.php/ZFS_Best_Practices_Guide">http://www.solarisinternals.com/wiki/index.php/ZFS_Best_Practices_Guide</a> for more information).</div> 
<div><br /></div> 
<div>There is no choice as to ZFS filesystem layout, although as it can so easily be modified it really doesn't matter. Whatever slice or LUN you select is assigned to the &quot;rpool&quot; volume.</div> 
<div><br /></div> 
<div>After the network configuration (which has changed slightly but still provides the same choices of &quot;DHCP, Manually or None&quot;), you reach the User creation step. This again is noticably different: Firstly, it now enforces password complexity. Secondly, you have to create a new user account as well. The traditional root account is now a role, and you can't login directly as root. Like most Linux distros, the first user account created has the ability to use sudo/RBAC to work as root when needed.&#160;</div> 
<div><br /></div> 
<div>After this step, the installation starts in earnest. The install is very quick, and after the slow initial reboot (when it loads smf service descriptions), you can login.&#160;</div> 
<p><strong><em>Click the &quot;continue reading&quot; link for the rest of the review...</em></strong></p> 
<div> </div> <br /><a href="http://www.markround.com/archives/65-Solaris-11-Review.html#extended">Continue reading "Solaris 11 Review"</a>
            </div>
        </content>

        
    </entry>
    <entry>
        <link href="http://www.markround.com/archives/63-Citrix-XenServer-5.6-Review.html" rel="alternate" title="Citrix XenServer 5.6 Review" type="text/html" />
        <author>
            <name>Mark Round</name>
                    </author>
    
        <issued>2010-09-23T15:44:28Z</issued>
        <created>2010-09-23T15:44:28Z</created>
        <modified>2011-05-18T16:04:56Z</modified>
        <wfw:comment>http://www.markround.com/wfwcomment.php?cid=63</wfw:comment>
        <slash:comments>9</slash:comments>
        <wfw:commentRss>http://www.markround.com/rss.php?version=atom0.3&amp;type=comments&amp;cid=63</wfw:commentRss>
    
        <id>http://www.markround.com/archives/63-guid.html</id>
        <title mode="escaped" type="text/html">Citrix XenServer 5.6 Review</title>
        <content type="application/xhtml+xml" xml:base="http://www.markround.com/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <h2>Introduction</h2> 
<p>I've been using and evaluating <a title="Citrix Xenserver product page" href="http://www.citrix.com/xenserver">Citrix XenServer</a> now for a while, and felt I should really post a review. I haven't seen much detailed coverage of this product at the level I'm interested in, so what follows is my take on it from a Unix Sysadmin's perspective. There won't be any funky screenshots or graphics; instead, I tried to cover the sort of things I wanted to know about when I was looking at it as a candidate for our virtualization solution at work. &#160;<br /><br />After all, implementing a new hypervisor is a big step, and a decision that you'll likely be stuck with for a long time. If there's anything else you'd like to know, just post in the comments section and I'll do my best to answer.<br /><br />As some background: I've been using the open source Xen hypervisor as a virtualization platform, alongside VMware for Windows hosts for a good few years now at work. Part of the reason for picking Xen was that it was the standard on the systems I inherited, and also it was free and well-supported on most Linux distributions at the time. To date, I have been using <a title="CentOS Linux Distribution" href="http://www.centos.org/">CentOS</a> as a Dom0 - as it's a free &quot;clone&quot; of Red Hat Enterprise Linux, it follows the same support schedules (up to 2014 for RHEL/CentOS 5.x) and is supported by pretty much every hardware vendor out there. It also has the <a title="Libvirt Virtualization API" href="http://libvirt.org/">libvirt</a> tools built into it, as well as up to date packages for storage infrastructure such as <a title="DRBD replication" href="http://www.drbd.org/">DRBD</a> and <a title="Open-iSCSI project" href="http://www.open-iscsi.org/">open-iscsi</a>. It's well supported, and even though it is a conservative &quot;stable&quot; distro, point releases occur regularly with back-ported drivers and user-land updates.<br /><br />With some work, you can roll your own management tools and scripts, and end up with a very flexible solution. However, it lacks some management ease of use, particularly for other systems administrators who may not be totally comfortable in a Linux environment. We also wanted to standardise on one virtualization platform if possible, and this all coincided nicely with a planned upgrade/migration off the VMware stack.<br /><br />XenServer therefore presents a very attractive proposition: A well known, widely tested and supported open source hypervisor, with a superior management stack. The basic product is free, although support and enterprise features are available for a price. The prices for the advanced features are very reasonable, all the more so when you compare against VMware's offerings. Also consider that the free product allows you to connect to a wide range of networked storage systems and includes live migration, something that the free&#160;<a title="ESXi" href="http://www.vmware.com/products/vsphere-hypervisor/index.html">ESXi</a> doesn't offer.<br /><br />All of what follows covers the freely downloadable XenServer 5.6; Both <a title="Dell and XenServer" href="http://content.dell.com/us/en/enterprise/d/virtualization/CitrixXenServerDellEditionVirtualizationforeveryserver.aspx">Dell</a> and <a title="HP and XenServer" href="http://h18000.www1.hp.com/products/servers/software/citrix/virtualization/index.html">HP</a> offer embedded versions for some of their servers, however running and managing these systems should be near enough identical apart from the installation steps. </p> 
<p><strong>Update :</strong> Just after writing this, the beta of &quot;FP1&quot; (an update to XenServer 5.6) was <a title="XenServer beta announcement" href="http://www.citrix.com/lang/English/lp/lp_1340047.asp">announced</a>. Full details of what will be in this update are <a title="FP1 release notes" href="http://downloadns.citrix.com.edgesuite.net/akdlm/5305/XenServer-5.6.0-fp1-beta-releasenotes.htm">here</a>&#160;in the release notes. It looks like there will be plenty of significant improvements across all areas (including MPP RDAC, scheduled backups, supported jumbo frames, on-line coalescing of snapshot&#160;space&#160;and various other things of particular interest to me). Bear in mind when reading this review, that many of the little issues I have with XenServer may well be resolved in the upcoming version, and other areas may be totally overhauled. As soon as the final version is released I'll post a full update...</p> 
<p><strong>Update 2 :</strong> FP1 is indeed a big improvement. I've been using it in production now for a few months and should have an update soon, covering the new features such as the distributed switch, self-service portal etc. <br /></p> 
<p>Click the &quot;Continue reading&quot; link for the full review. </p> <br /><a href="http://www.markround.com/archives/63-Citrix-XenServer-5.6-Review.html#extended">Continue reading "Citrix XenServer 5.6 Review"</a>
            </div>
        </content>

        
    </entry>
    <entry>
        <link href="http://www.markround.com/archives/61-Xenserver-snapshot-and-template-based-backup-script.html" rel="alternate" title="Xenserver snapshot and template based backup script" type="text/html" />
        <author>
            <name>Mark Round</name>
                    </author>
    
        <issued>2010-08-17T13:24:14Z</issued>
        <created>2010-08-17T13:24:14Z</created>
        <modified>2011-05-18T11:40:36Z</modified>
        <wfw:comment>http://www.markround.com/wfwcomment.php?cid=61</wfw:comment>
        <slash:comments>31</slash:comments>
        <wfw:commentRss>http://www.markround.com/rss.php?version=atom0.3&amp;type=comments&amp;cid=61</wfw:commentRss>
    
        <id>http://www.markround.com/archives/61-guid.html</id>
        <title mode="escaped" type="text/html">Xenserver snapshot and template based backup script</title>
        <content type="application/xhtml+xml" xml:base="http://www.markround.com/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p>
We have recently started using <a href="http://www.citrix.com/English/ps2/products/product.asp?contentID=683148" title="Citrix Xenserver">Citrix Xenserver</a> in production at work (fantastic product, see <a href="http://www.markround.com/archives/63-Citrix-XenServer-5.6-Review.html" title="Citrix XenServer Review">my review </a>for more information) and needed a simple backup solution. Our VMs run from an iSCSI SAN and are backed up daily through various methods - e.g. <a href="http://www.bacula.org/en/" title="Bacula backup system">Bacula</a> for the Unix/Linux systems. However, we wanted the ability to quickly roll back to a previous VM snapshot, and get up and running quickly if our SAN failed for whatever reason. Our solution was to create a large shared NFS storage repository, and periodically snapshot VMs and copy the templates over to this SR. Doing this means that if the SAN fails, we can create a new VM quickly from this NFS store (using the Xenserver's local disks, or even the NFS SR itself as storage). Once up and running, we can bring VMs back up to date by restoring the latest backup to them. <br /><br />In order to automate this, I wrote a quick script which I thought may prove useful to someone else, so decided to post it here : <a href="http://www.markround.com/static/snapback.sh" title="Xenserver snapshot and template backup script">snapback.sh</a>.</p> 
<p><strong>Update:</strong> This script is now being hosted at <a href="https://github.com/markround/XenServer-snapshot-backup">GitHub</a>. This means you can check out the latest version from there, by doing :</p> 
<p> </p> 
<pre>git clone https://github.com/markround/XenServer-snapshot-backup.git</pre> 
<p>or accessing the raw script file at&#160;<a href="https://github.com/markround/XenServer-snapshot-backup/raw/master/snapback.sh">https://github.com/markround/XenServer-snapshot-backup/raw/master/snapback.sh</a></p> 
<p> </p> 
<p>It is very simple, and although it may serve well as your only backup solution, it's really intended as an image-level compliment to your primary file-system based backup system such as Bacula, Amanda, Netbackup etc. It also has not had much testing, and I fully appreciate the scripting is pretty rudimentary and could do with some optimisation - there's no error checking, for instance. I kept it pretty verbose on purpose though, so you can get a good idea of exactly what it's doing at each step; it may be better to think of this as a template you can base your own scripts off!<br /> </p> 
<h2>Overview</h2> 
<p>The script creates a snapshot of a running VM on a configurable schedule, and then creates a template from this snapshot. It will copy all these backup templates over to a configurable storage repository, and then clean up any old backups according to a specified retention policy. These backups are full backups, so if you have a 10GB VM and keep 7 previous copies you will need a total of 80GB disk space on your backup VM. Non-running VMs, and those not configured (as detailed below) will be skipped.</p> 
<p><strong>Important</strong>: See <a href="http://support.citrix.com/article/CTX123400">http://support.citrix.com/article/CTX123400</a>.&#160;After backing up each VM, you will end up with a new VDI, so you may need to manually coalesce your VDIs again to reclaim disk space.</p> 
<h2>Installation and usage</h2>First, copy the script to your Xenserver pool master, and make it executable. A good location for this is /usr/local/bin/snapback.sh.<br /><br />Next, create a cron entry for the script - to make it run daily just after 1AM, you'd create /etc/cron.d/backup with the following contents :<br /> 
<pre>2 1 * * * root /usr/local/bin/snapback.sh &gt; /var/log/snapback.log 2&gt;&amp;1</pre> 
<p>This will also record a log of it's actions to /var/log/snapback.log. You now need to edit the script and change the <strong>DEST_SR</strong> variable to the UUID of your backup storage repository. You can find this value by clicking on the SR in Xencenter; the UUID will be displayed as a value like &quot;2c01dc26-f525-70d6-dedf-00baaec76645&quot;.<br /><br />Lastly, you need to configure your backup and retention policy for your VMs. In Xencenter, right click your VM, and select &quot;Properties&quot;. Click on &quot;Custom Fields&quot;, and then &quot;Edit Custom Fields&quot;. You should add two text fields :<br /></p> 
<ul> 
<li><strong>backup</strong> : Can be one of &quot;daily&quot;, &quot;weekly&quot;, or &quot;monthly&quot;. If it is set to weekly, it will by default run on a Sunday, and if it set to monthly, it will run on the first Sunday of the month. This day can be changed at the top of the script - see the <strong>WEEKLY_ON</strong> and <strong>MONTHLY_ON</strong> variables. </li> 
<li><strong>retain</strong> : How many previous backups (in addition to the currently running backup) to keep. So, setting this to a value of &quot;2&quot; would mean that after a backup has run, you would end up with 3 backups in total. </li> 
</ul> 
<div style="width: 321px;" class="serendipity_imageComment_center"> 
<div class="serendipity_imageComment_img"><!-- s9ymdb:76 --><img height="289" width="321" src="http://www.markround.com/uploads/uploads/newfield.png" alt="Adding a custom field" title="Adding a custom field" class="serendipity_image_center" /></div> 
<div class="serendipity_imageComment_txt">Adding a custom field</div> 
</div> 
<p>The script will look for these fields when it is run, and will skip any VM that doesn't have them set. You can also see them in the Xencenter summary and properties for the VM : </p> 
<div style="width: 220px;" class="serendipity_imageComment_center"> 
<div class="serendipity_imageComment_img"><a href="http://www.markround.com/uploads/uploads/summary.png" title="VM summary showing the custom fields" class="serendipity_image_link"><!-- s9ymdb:78 --><img height="105" width="220" src="http://www.markround.com/uploads/uploads/summary.serendipityThumb.png" alt="VM summary showing the custom fields" title="VM summary showing the custom fields" class="serendipity_image_center" /></a></div> 
<div class="serendipity_imageComment_txt">VM summary showing the custom fields</div> 
</div> 
<p>You can now either run the script manually, or wait until the cron job kicks off. It will produce a detailed log to the console (or log file if run through cron), and when it's finished, you'll see your template backup VMs listed in Xencenter, similar to this :</p> 
<div style="width: 187px;" class="serendipity_imageComment_center"> 
<div class="serendipity_imageComment_img"><!-- s9ymdb:77 --><img height="37" width="187" src="http://www.markround.com/uploads/uploads/backups.png" alt="Backups listed in Xencenter" title="Backups listed in Xencenter" class="serendipity_image_center" /></div> 
<div class="serendipity_imageComment_txt">Backups listed in Xencenter</div> 
</div><br />If you find that this clutters up the Xencenter view a little, you can always hide them (View-&gt;Server View-&gt;Custom Templates). To restore a VM from a backup, just right click, and choose &quot;New template from backup&quot;. Anyway, I hope this helps someone else!<br /><br /> 
            </div>
        </content>

        
    </entry>
    <entry>
        <link href="http://www.markround.com/archives/60-The-setting-sun.html" rel="alternate" title="The setting sun" type="text/html" />
        <author>
            <name>Mark Round</name>
                    </author>
    
        <issued>2010-07-16T07:54:58Z</issued>
        <created>2010-07-16T07:54:58Z</created>
        <modified>2010-08-17T09:33:01Z</modified>
        <wfw:comment>http://www.markround.com/wfwcomment.php?cid=60</wfw:comment>
        <slash:comments>1</slash:comments>
        <wfw:commentRss>http://www.markround.com/rss.php?version=atom0.3&amp;type=comments&amp;cid=60</wfw:commentRss>
    
        <id>http://www.markround.com/archives/60-guid.html</id>
        <title mode="escaped" type="text/html">The setting sun</title>
        <content type="application/xhtml+xml" xml:base="http://www.markround.com/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p>
Well, that's that, then. Solaris as we knew it is pretty much dead. I've suspected for a while now that Oracle's intentions regarding Solaris were not what the community, or us &quot;old-school&quot; Solaris sysadmins wanted or had hoped for.  </p> 
<p>In the last few months, Oracle have completely alienated and 
scared off the community around OpenSolaris, killed any lines of 
communication by clamping down on employee blogs and have ignored open 
letters from highly influential and important community members begging 
for <em>any</em> kind of information. Theyve forbidden Sun/Oracle employees 
from heading up the Solaris user groups and booted the meetings out of 
their buildings; turned Solaris 10 into a 90-day trial, and pushed back 
the 2010.x release of OpenSolaris with no word as to its planned 
release date, or even if it is being continued as a product. And now, in a final act of desperation, the OGB has essentially threatened to &quot;<a href="http://ptribble.blogspot.com/2010/07/moving-opensolaris-forward.html">shoot itself in the head</a>&quot;. </p> 
<div class="commentBody"> 
<div id="comment_body_32901998"> 
<p>Even ignoring the OpenSolaris project, It's not at all rosy in &quot;real&quot; Solaris land, either. Requests for information and clarification are going unanswered, and I know 
of several managers who have had hardware quotes and support tickets 
ignored - there's a near total blackout of information from Oracle. People are fleeing Solaris in droves, and migrating to anything they can: Linux, FreeBSD (Dtrace and ZFS), AIX - hell, even HP-UX looks like a safer bet at the moment. And I never thought I'd find myself saying that!<br /></p> 
<p>It certainly appears that Oracle
 are doing a superb job of killing Solaris. But why would they do this, having paid all that money for Sun and announcing that they will increase
 spending on Solaris development ?&#160; <br /></p> 
<p>Well,  <a href="http://developers.slashdot.org/comments.pl?sid=1719254&amp;cid=32903400" title="Oracle engineer confirms plans for Solaris">this
 post</a> on Slashdot (allegedly from a Sun/Oracle employee) confirms my
 suspicions as to why they may be doing this. Oracle just really doesn't care about Solaris as a general 
purpose data centre OS any more. There's just no money in it, and although I 
personally find it tragic it does make sense. It's probably also why they're killing all 
their OEM deals - why help a competitor sell hardware, when all you'll see from it is a possible support contract for the OS ? Oracle's overall aim is to have 
Solaris relegated to the role of running as the bottom layer in an 
Oracle &quot;database machine&quot;, Java appserver bundle or inside a &quot;<a href="http://blogs.sun.com/bmc/entry/fishworks_now_it_can_be">Fishworks</a>&quot; storage appliance.</p> 
<p>It excels at 
these tasks, and it would obviously fit into Oracle's stated goal of 
being a one stop shop, where if you want to run Oracle, they'll sell you
 the bundle - hardware, storage, OS and software. If they no longer want Solaris to be a dominant general purpose OS, then their approach 
makes sense. They don't need a &quot;community&quot; around the product, they 
don't need open source developers porting applications to it, and they 
certainly don't need the overhead of running and managing a community 
portal any more. Unless you are running (and paying for) Oracle applications on Solaris, you're probably more of an annoyance to them at the moment and I get the very strong idea that they'd rather you just quietly went elsewhere. </p> 
<p>I just wish that if this was their plan, they'd make some sort of statement about it; rather than ignoring the Solaris community in the hopes that they'll eventually get frustrated and leave without Oracle having to spell it out for them. I think the way they are going about it 
reprehensible and it's a tragic end for such a historic and innovative 
OS. Sadly though, Larry is all about the bottom line and the old, altruistic Sun approach 
just wasn't bringing in the big bucks. As the Slashdot poster said : &quot;Profit is king here.  Anything else is overhead, and overhead eats into 
Larry's yacht fund.&quot;</p>
<p><strong>Edit:</strong> Now it's official : <a href="http://www.theregister.co.uk/2010/08/13/opensolaris_is_dead/" title="OpenSolaris is dead">http://www.theregister.co.uk/2010/08/13/opensolaris_is_dead/ </a><br /></p> 
</div> 
</div> 
            </div>
        </content>

        
    </entry>
    <entry>
        <link href="http://www.markround.com/archives/58-Centreon-review.html" rel="alternate" title="Centreon review" type="text/html" />
        <author>
            <name>Mark Round</name>
                    </author>
    
        <issued>2010-02-05T14:59:13Z</issued>
        <created>2010-02-05T14:59:13Z</created>
        <modified>2010-03-10T15:56:54Z</modified>
        <wfw:comment>http://www.markround.com/wfwcomment.php?cid=58</wfw:comment>
        <slash:comments>3</slash:comments>
        <wfw:commentRss>http://www.markround.com/rss.php?version=atom0.3&amp;type=comments&amp;cid=58</wfw:commentRss>
    
        <id>http://www.markround.com/archives/58-guid.html</id>
        <title mode="escaped" type="text/html">Centreon review</title>
        <content type="application/xhtml+xml" xml:base="http://www.markround.com/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                One of my favourite interview questions I used to ask candidates was a variation of &quot;Desert Island Discs&quot; : Imagine you are going off to be a sysadmin on a desert island, with no internet access, and further imagine that the previous sysadmin was a total fascist with a minimalist install policy. We're talking a bare-bones &quot;classic&quot; Solaris installation, or a minimal Debian system here. You've got SSH installed, but not much else. Before you hop on the boat, however, you are given a couple of hours high-speed internet access and a USB stick. You can take up to 5 tools with you to this desert island: What do you pick ?<br /><br />It was always an interesting question to ask, because it gave you an insight into the kind of sysadmin tasks someone had been doing before, and it also served as a nice, relaxed &quot;ice breaker&quot; type question. For my money, aside from some tools like rsync and screen which I couldn't live without, a decent monitoring package would have to be top of my priorities. There are a bunch out there: some of them free; some of them commercial, but the one that would make it on to my USB stick would have to be <a title="Nagios homepage" href="http://www.nagios.org/">Nagios</a>. <br /><br />It's open source, extremely well documented and widely implemented, and there are a ton of useful add-ons and plugins available for it. The only draw backs I can find with it are it's ugly web interface, the complexity involved in setting up a new system for monitoring, and the disjoint between availability and performance monitoring. If you have money to throw at a problem, then software like <a href="http://www.uptimesoftware.com/">Uptime</a> or <a href="http://www.hyperic.com/">Hyperic</a> neatly deal with all of these issues, but they can be quite pricey if you have a large number of systems to manage and a tight budget.<br /><br />So, you can imagine my excitement when I first discovered <a href="http://www.centreon.com/">Centreon</a>. It's essentially a monitoring platform that uses Nagios at it's core. You could think of it as a fancy frontend to &quot;stock&quot; Nagios, but it's so much more than that: besides the attractive interface, it also bridges the gap between availability and performance monitoring, and makes Nagios administration a snap. Due to the reliance on Nagios though, I'd go so far as to say that before you experiment with Centreon, you really should have set up &quot;stock&quot; Nagios, and be familiar with the plugin architecture, <a title="NRPE documentation" href="http://nagios.sourceforge.net/docs/nrpe/NRPE.pdf">NRPE</a> and how alerts / escalations are managed. Ideally, you should have a stock Nagios installation you can use to duplicate on Centreon/Nagios.<br /><br /><br /> <br /><a href="http://www.markround.com/archives/58-Centreon-review.html#extended">Continue reading "Centreon review"</a>
            </div>
        </content>

        
    </entry>
    <entry>
        <link href="http://www.markround.com/archives/57-Cacti-iostat-scripts-now-support-FreeBSD.html" rel="alternate" title="Cacti iostat scripts now support FreeBSD" type="text/html" />
        <author>
            <name>Mark Round</name>
                    </author>
    
        <issued>2009-11-18T18:57:36Z</issued>
        <created>2009-11-18T18:57:36Z</created>
        <modified>2009-11-18T19:04:56Z</modified>
        <wfw:comment>http://www.markround.com/wfwcomment.php?cid=57</wfw:comment>
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://www.markround.com/rss.php?version=atom0.3&amp;type=comments&amp;cid=57</wfw:commentRss>
    
        <id>http://www.markround.com/archives/57-guid.html</id>
        <title mode="escaped" type="text/html">Cacti iostat scripts now support FreeBSD</title>
        <content type="application/xhtml+xml" xml:base="http://www.markround.com/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p>Thanks to the awesome work of Boogie Shafer, there is now a FreeBSD port of my <a title="Linux, FreeBSD and Solaris iostat scripts and templates for Cacti" href="http://www.markround.com/archives/48-Linux,-Solaris-and-FreeBSD-iostat-monitoring-with-Cacti.html">iostat scripts and templates for Cacti</a>. I have included the modified tarball that was sent to me, this is inside the archive as &quot;cacti-iostat-1.x-boogie_freebsd_linux_changes.tar.gz&quot;. </p> 
<p>FreeBSD users should unpack this archive and follow the instructions inside. I have not had time to go through and merge these changes into one unified distribution yet, but as people were asking for the FreeBSD port, here it is! The next release of these scripts should see the FreeBSD scripts and templates etc. merged in, much the same as the Solaris modifications by Marwan Shaher and Eric Schoeller.</p> 
<p>Follow the link to the <a title="Linux, Solaris and FreeBSD iostat templates for Cacti" href="http://www.markround.com/archives/48-Linux,-Solaris-and-FreeBSD-iostat-monitoring-with-Cacti.html">original post</a> to find the download link.<br /> </p> 
            </div>
        </content>

        
    </entry>
    <entry>
        <link href="http://www.markround.com/archives/56-Dell-MD3000i.html" rel="alternate" title="Dell MD3000i" type="text/html" />
        <author>
            <name>Mark Round</name>
                    </author>
    
        <issued>2009-09-14T11:08:59Z</issued>
        <created>2009-09-14T11:08:59Z</created>
        <modified>2012-03-22T13:03:38Z</modified>
        <wfw:comment>http://www.markround.com/wfwcomment.php?cid=56</wfw:comment>
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://www.markround.com/rss.php?version=atom0.3&amp;type=comments&amp;cid=56</wfw:commentRss>
    
        <id>http://www.markround.com/archives/56-guid.html</id>
        <title mode="escaped" type="text/html">Dell MD3000i</title>
        <content type="application/xhtml+xml" xml:base="http://www.markround.com/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                I've just got a new array to play with at work for a small Xen
virtualisation setup. It's the Dell MD3000i, which I've seen a few posts about before but though I'd chime in with my experiences. It is a budget array, but I have to say for
the price it's not a bad bit of kit.<br /> <br />
We've got it configured with dual controllers, 8x300Gb and 7x146GB 15k
SAS drives. Throughput is around GigE wire speed - 110MB/s for both
reads and writes. I'm also seeing a respectable IOPS figure depending
on workloads: During an iozone run, I could see it sustaining around
1.5k IOPS.<br /> <br />
True, the management features fall a little short when compared to the usual Sun and
NetApp storage kit I'm used to, but it does the job. My main gripes are :<br /> 
<ul> 
<li>No built in graphing (seriously, Dell - WTF?), but you can do it from the CLI - see <a title="MD3000i performance monitoring" href="http://www.delltechcenter.com/page/MD3000i+Performance+Monitoring">here</a>.<br /> </li> 
<li>Can't resize or change the I/O profile of a virtual disk once
it's setup. This is a real pain, so make sure you set things up correctly
the first time! You can however change the RAID level of a disk group
once it's been created.<br /> </li> 
<li>You need a Windows or RHEL box to run the administration GUI
on - I'm sure you can probably hack a way to get the CLI running under
Debian, but I haven't tried. You're probably straight out of luck if you want to run it
on anything else like Solaris.  </li> 
<li>Can't mix SAS and SATA in the same enclosure. The controllers
do support SATA as well as SAS, although SATA drives don't show up as
options in the Dell pricing configuration thingy. Our account manager
advised us that although technically you can mix SAS and SATA in the
same enclosure, they'd experienced a higher than average number of disk
failures in that configuration, due to the vibration patterns created
by disks spinning at different rates (15K SAS and 7.2K SATA). If you
need to mix the two types, your only real option is to attach a MD1000
array to the back (you can add up to two of these) and have each
chassis filled with just one type of drive.<br /> </li> 
</ul> 
<p>  
The hardware failover works nicely - the array is active/passive for
each virtual disk, as both controllers are typically active, each
handling separate virtual disks for load-balancing purposes. When a
controller fails, the remaining &quot;good&quot; controller takes over the
virtual disks or disk groups from the failed controller. Failback is
pretty transparent - the GUI guides you through the steps, but I found
that simply inserting a replacement HD/Controller/etc. just did the job
automagically.<br /> <br />
Multipath support under RHEL/CentOS with multipath-tools (dm-multipath) works fine with some tweaking - it
uses the RDAC modules which lead to some oddness on CentOS 5.3. What
tends to happen is that the first time device mapper picks up the
paths, RDAC doesn't get a chance to initialise things properly
(scsi_dh_rdac module isn't loaded) so you end up with all sorts of SCSI
errors showing up in your logs. After flushing your paths (multipath
-F) and restarting multipathd, things are OK. This is <a href="https://bugzilla.redhat.com/show_bug.cgi?id=487293" title="MD3000i in RHEL 5.4">apparently fixed
in RHEL 5.4</a>, so should make it's way out to CentOS from there. I'm unsure what the status is on other distros, though. </p> 
<p> It also works great with <a title="Xenserver Review" href="http://www.markround.com/archives/63-Citrix-XenServer-5.6-Review.html">Citrix Xenserver</a>, although you have to use 
MPP-RDAC instead of DM-Multipath due to performance issues with the 
latter.<br /> <br />
My multipath.conf contains the following :<br /> </p> 
<div class="bbc-block code"> 
<pre>devices {
        device {
                vendor "DELL"
                product "MD3000i"
                product_blacklist "Universal Xport"
                path_grouping_policy group_by_prio
                getuid_callout "/sbin/scsi_id -g -u -s /block/%n"
                path_checker rdac
                prio_callout "/sbin/mpath_prio_rdac /dev/%n"
                hardware_handler "1 rdac"
                failback immediate
        }
}
</pre> 
</div>And with everything working, multipath -ll shows :<br /> 
<div class="bbc-block code"> 
<pre>360026b90002ab6f40000056a4aa9e87b dm-12 DELL,MD3000i
[size=409G][features=0][hwhandler=1 rdac][rw]
_ round-robin 0 [prio=200][active]
 _ 21:0:0:1  sdi 8:128 [active][ready]
 _ 22:0:0:1  sdj 8:144 [active][ready]
_ round-robin 0 [prio=0][enabled]
 _ 20:0:0:1  sdg 8:96  [active][ghost]
 _ 23:0:0:1  sdh 8:112 [active][ghost] 
</pre> 
</div> 
<p><strong>Update:</strong> It looks like the admin tool and SMcli are just shell
script wrappers that run Java apps. I tried a quick'n'dirty hack of installing
everything under RHEL, tarring up /opt/dell and /var/opt/SM and then
transferring them over to a Debian Lenny host. All I had to change was
the #!/bin/sh to #!/bin/bash at the top of the SMcli and SMclient
wrappers, and they seem to work. I haven't put them through any serious
testing though...</p> 
            </div>
        </content>

        
    </entry>
    <entry>
        <link href="http://www.markround.com/archives/55-Building-a-redundant-iSCSI-and-NFS-cluster-with-Debian-Part-5.html" rel="alternate" title="Building a redundant iSCSI and NFS cluster with Debian - Part 5" type="text/html" />
        <author>
            <name>Mark Round</name>
                    </author>
    
        <issued>2009-06-24T10:47:56Z</issued>
        <created>2009-06-24T10:47:56Z</created>
        <modified>2009-06-25T15:32:38Z</modified>
        <wfw:comment>http://www.markround.com/wfwcomment.php?cid=55</wfw:comment>
        <slash:comments>12</slash:comments>
        <wfw:commentRss>http://www.markround.com/rss.php?version=atom0.3&amp;type=comments&amp;cid=55</wfw:commentRss>
    
        <id>http://www.markround.com/archives/55-guid.html</id>
        <title mode="escaped" type="text/html">Building a redundant iSCSI and NFS cluster with Debian - Part 5</title>
        <content type="application/xhtml+xml" xml:base="http://www.markround.com/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                This is part 5 of a series on building a redundant iSCSI and NFS SAN with Debian.<br /> 
<p>Part 1 - <a title="Overview, network layout and DRBD installation on Debian" href="http://www.markround.com/archives/44-Building-a-redundant-iSCSI-and-NFS-cluster-with-Debian-Part-1.html">Overview, network layout and DRBD installation</a><br />Part 2 - <a title="DRBD and LVM on a Debian cluster" href="http://www.markround.com/archives/45-Building-a-redundant-iSCSI-and-NFS-cluster-with-Debian-Part-2.html">DRBD and LVM</a><br />Part 3 - <a title="Heartbeat and automated failover" href="http://www.markround.com/archives/49-Building-a-redundant-iSCSI-and-NFS-cluster-with-Debian-Part-3.html">Heartbeat and automated failover</a><br />Part 4 - <a title="iSCSI and IP failover" href="http://www.markround.com/archives/50-Building-a-redundant-iSCSI-and-NFS-cluster-with-Debian-Part-4.html">iSCSI and IP failover</a><br />Part 5 - <a title="Multipathing and client configuration" href="http://www.markround.com/archives/55-Building-a-redundant-iSCSI-and-NFS-cluster-with-Debian-Part-5.html">Multipathing and client configuration</a><br />Part 6 - Anything left over!</p> 
<p>In this part of the series, we'll configure an iSCSI client (&quot;initiator&quot;), connect it to the storage servers and set up multipathing. Note : Since Debian Lenny has been released since this series of articles started, that's the version we'll use for the client.<br /><br />If you refer back to <a href="http://www.markround.com/archives/44-Building-a-redundant-iSCSI-and-NFS-cluster-with-Debian-Part-1.html">part one</a> to refresh your memory of the network layout, you can see that the storage client (&quot;badger&quot; in that diagram) should have 3 network interfaces :</p> 
<ul> 
<li>eth0 : 172.16.7.x for the management interface, this is what you'll use to SSH into it. </li> 
</ul> 
<p>And two storage interfaces. As the storage servers (&quot;targets&quot;) are using 192.168.x.1 and 2, I've given this client the following addresses :<br /></p> 
<ul> 
<li>eth1: 192.168.1.10 </li> 
<li>eth2: 192.168.2.10 </li> 
</ul> 
<p>Starting at .10 on each range keeps things clear - I've found it can help to have a policy of servers being in a range of, say, 1 to 10, and clients being above this. Before we continue, make sure that these interfaces are configured, and you can ping the storage server over both interfaces, e.g. try pinging 192.168.1.1 and 192.168.2.1.<br /><br />Assuming the underlying networking is configured and working, the first thing we need to do is install open-iscsi (which is the &quot;initiator&quot; - the iSCSI client). This is done by a simple :</p> 
<pre># aptitude install open-iscsi</pre> 
<p>You should see the package get installed, and the service started :<br /><br /></p> 
<pre>Setting up open-iscsi (2.0.870~rc3-0.4) ...
Starting iSCSI initiator service: iscsid.
Setting up iSCSI targets:
iscsiadm: No records found!</pre> 
<p>At this point, we have all we need to start setting up some connections.&#160; </p> <br /><a href="http://www.markround.com/archives/55-Building-a-redundant-iSCSI-and-NFS-cluster-with-Debian-Part-5.html#extended">Continue reading "Building a redundant iSCSI and NFS cluster with Debian - Part 5"</a>
            </div>
        </content>

        
    </entry>
    <entry>
        <link href="http://www.markround.com/archives/54-Updated-Cacti-iostat-package-now-supports-Solaris.html" rel="alternate" title="Updated Cacti iostat package now supports Solaris" type="text/html" />
        <author>
            <name>Mark Round</name>
                    </author>
    
        <issued>2009-05-18T10:05:11Z</issued>
        <created>2009-05-18T10:05:11Z</created>
        <modified>2009-06-22T09:00:42Z</modified>
        <wfw:comment>http://www.markround.com/wfwcomment.php?cid=54</wfw:comment>
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://www.markround.com/rss.php?version=atom0.3&amp;type=comments&amp;cid=54</wfw:commentRss>
    
        <id>http://www.markround.com/archives/54-guid.html</id>
        <title mode="escaped" type="text/html">Updated Cacti iostat package now supports Solaris</title>
        <content type="application/xhtml+xml" xml:base="http://www.markround.com/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p>Just a quick update to my <a title="Cactio iostat monitoring scripts and templates" href="http://www.markround.com/archives/48-Linux-iostat-monitoring-with-Cacti.html">Cacti iostat monitoring scripts and templates</a> - thanks to the work of Marwan Shaher and Eric Schoeller, the package now supports Solaris! The updated package is available here :&#160;
<a href="http://www.markround.com/uploads/uploads/cacti-iostat-1.4.tar.gz" title="cacti-iostat-1.4.tar.gz" target="_blank">cacti-iostat-1.4.tar.gz</a>.</p> 
<p> I have also updated the original blog post with the new package.<br /></p> 
            </div>
        </content>

        
    </entry>
    <entry>
        <link href="http://www.markround.com/archives/53-Oracle-to-buy-Sun.html" rel="alternate" title="Oracle to buy Sun" type="text/html" />
        <author>
            <name>Mark Round</name>
                    </author>
    
        <issued>2009-04-20T13:19:10Z</issued>
        <created>2009-04-20T13:19:10Z</created>
        <modified>2009-04-24T10:48:40Z</modified>
        <wfw:comment>http://www.markround.com/wfwcomment.php?cid=53</wfw:comment>
        <slash:comments>1</slash:comments>
        <wfw:commentRss>http://www.markround.com/rss.php?version=atom0.3&amp;type=comments&amp;cid=53</wfw:commentRss>
    
        <id>http://www.markround.com/archives/53-guid.html</id>
        <title mode="escaped" type="text/html">Oracle to buy Sun</title>
        <content type="application/xhtml+xml" xml:base="http://www.markround.com/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p><!-- s9ymdb:55 --></p> 
<p>My response to today's news:</p> 
<p><img width="400" height="164" src="http://www.markround.com/uploads/no.jpg" style="border: 0px none ; padding-left: 5px; padding-right: 5px;" class="serendipity_image_center" /></p> 
<p><!-- s9ymdb:56 --><img width="400" height="400" src="http://www.markround.com/uploads/no2.jpg" style="border: 0px none ; padding-left: 5px; padding-right: 5px;" class="serendipity_image_center" /> </p> 
            </div>
        </content>

        
    </entry>
    <entry>
        <link href="http://www.markround.com/archives/52-Cracking-dictionary-passwords.html" rel="alternate" title="Cracking dictionary passwords" type="text/html" />
        <author>
            <name>Mark Round</name>
                    </author>
    
        <issued>2009-04-17T14:22:33Z</issued>
        <created>2009-04-17T14:22:33Z</created>
        <modified>2011-08-05T11:34:35Z</modified>
        <wfw:comment>http://www.markround.com/wfwcomment.php?cid=52</wfw:comment>
        <slash:comments>3</slash:comments>
        <wfw:commentRss>http://www.markround.com/rss.php?version=atom0.3&amp;type=comments&amp;cid=52</wfw:commentRss>
    
        <id>http://www.markround.com/archives/52-guid.html</id>
        <title mode="escaped" type="text/html">Cracking dictionary passwords</title>
        <content type="application/xhtml+xml" xml:base="http://www.markround.com/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p>I was talking a few days ago, and the subject of password security came up. Now, we all know that we're supposed to pick a secure password, use at least 8 characters and never to pick a word from the dictionary. But then I was asked how long it would take to brute-force a password using a dictionary attack, and I had to admit I had no idea. I knew it would only be a matter of minutes, but wanted to give it a try.</p> 
<p>So, For anyone who is interested, I knocked up a quick BASH script to compare a MD5 hashed password against the contents of /usr/share/dict/words, which on a Red Hat 5.3 system contains 479,623 words. The script is as follows :</p>
<pre>#!/bin/bash
TARGET_HASH=$1
while read WORD; do
&#160;&#160;&#160;&#160;&#160;&#160;&#160; WORD_HASH=$(echo $WORD | md5sum | awk '{print $1}')
&#160;&#160;&#160;&#160;&#160;&#160;&#160; if [ "$WORD_HASH" == "$TARGET_HASH" ]; then
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; echo "Found match!"
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; echo "Password is : $WORD"
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; exit
&#160;&#160;&#160;&#160;&#160;&#160;&#160; fi
done &lt; /usr/share/dict/words</pre> 
<p>Now, this was just a quick hack to satisfy my curiosity, and only something I threw together after a few seconds. Of particular relevance is the fact that it's a shell script, and uses a lot of forking to generate the MD5 hashes of the dictionary. If I wrote it in C, I'm sure it would be faster by an order of magnitude.</p> 
<p>But anyway, on to the test - I created a MD5 phrase for it to crack, and timed it :</p>
<pre># time ./crack.sh 3a783fb2aa3a2318499f0a60d7ef6078
Found match!
Password is : hedgehog</pre>
<pre>real&#160;&#160;&#160; 8m43.432s
user&#160;&#160;&#160; 1m48.410s
sys&#160;&#160;&#160;&#160; 8m27.030s</pre> 
<p>Not bad - just under 9 minutes. Obviously, that'd take longer if I used a word starting with &quot;x&quot; or &quot;z&quot;!&#160; I then realised it would be a lot faster if I generated a &quot;compiled&quot; version of the dictionary file with the MD5 hashes preprepared :</p>
<pre>while read WORD; do echo "$WORD:$(echo $WORD | md5sum | awk '{print $1}')"; done &lt; /usr/share/dict/words&#160; &gt; md5.txt</pre> 
<p>Obviously, I could then generate compiled dictionary files for each hashing algorithm I wanted to crack (assuming that they are non-Salted algorithms).&#160; This took around 30 minutes, but now I don't have to generate the hashes again, all I need to do is check against the second column of the file for a match. It is also irrelevant whether the word lies near the start or end of the file, it now takes about the same time to find a match :</p>
<pre># time grep ac23b37db0039dda62896bb21f312755 md5.txt | cut -d':' -f1
aardvark</pre>
<pre>real&#160;&#160;&#160; 0m0.019s
user&#160;&#160;&#160; 0m0.008s
sys&#160;&#160;&#160;&#160; 0m0.011s</pre>
<pre># time grep 981fe627ab4906b677ce9d3e6eff499f md5.txt | cut -d':' -f1
zoology</pre>
<pre>real&#160;&#160;&#160; 0m0.019s
user&#160;&#160;&#160; 0m0.006s
sys&#160;&#160;&#160;&#160; 0m0.014s</pre> 
<p>So there you have it. It was an interesting way to spend a few minutes, and I now have an answer whenever someone asks &quot;how long would it take to crack a password based on a dictionary word&quot;: Assuming you have the compiled hash files, around 0.019 seconds.</p> 
<p><br /> </p> 
            </div>
        </content>

        
    </entry>
    <entry>
        <link href="http://www.markround.com/archives/51-OpenVPN-on-Windows-XP-and-Vista.html" rel="alternate" title="OpenVPN on Windows XP and Vista" type="text/html" />
        <author>
            <name>Mark Round</name>
                    </author>
    
        <issued>2009-02-13T09:20:44Z</issued>
        <created>2009-02-13T09:20:44Z</created>
        <modified>2009-02-13T10:52:13Z</modified>
        <wfw:comment>http://www.markround.com/wfwcomment.php?cid=51</wfw:comment>
        <slash:comments>1</slash:comments>
        <wfw:commentRss>http://www.markround.com/rss.php?version=atom0.3&amp;type=comments&amp;cid=51</wfw:commentRss>
    
        <id>http://www.markround.com/archives/51-guid.html</id>
        <title mode="escaped" type="text/html">OpenVPN on Windows XP and Vista</title>
        <content type="application/xhtml+xml" xml:base="http://www.markround.com/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p>Just a quick post this time, as I thought this may help others in the same situation I found myself in recently. At work, we've been using <a title="OpenVPN" href="http://openvpn.org/">OpenVPN</a> which works a treat with Unix clients; Windows clients (Vista in particular) were more problematic, though. </p><p>None of our regular users have admin privileges (for <a title="A very good reason to restrict admin rights" href="http://www.computerworld.com/action/article.do?command=viewarticlebasic&articleid=9127318">obvious reasons</a>), but this caused problems with the routing setup: users could use the GUI tool, but could not create the necessary routes required to direct traffic over the VPN. We experimented for a while with setting up persistent routes, but this didn't work for multiple users. I'd read all kinds of posts about running the executables as an Administrator, disabling Vista UAC, registry tweaks and other voodoo - either they didn't work, or they were unacceptable in our environment. </p><p>I then hit upon a simple workaround that also <a href="http://osdir.com/ml/network.openvpn.devel/2006-11/msg00005.html">seems to work</a> on Windows XP: Just add the user to the &quot;Network Configuration Operators&quot; group:</p><p>Administrative Tools -&gt; Computer Management -&gt; Local Users and Groups -&gt; Groups -&gt; Network Configuration Operators</p><p>Now, everything works right out of the box on Vista SP1 with the 2.1RC builds of OpenVPN (<a href="http://openvpn.org/index.php/downloads.html">OpenVPN 2.1_rc15</a> was the version we tested). You have to install this as an Administrator, and you do have to be happy with giving your VPN users slightly elevated privileges - but at least it stops way short of having to give them administrator rights. </p><p>For reference, here's the client config file as well :</p><pre>client<br />script-security 3 system<br />dev tun<br />proto udp<br />remote &lt;openvpn server address&gt; 1194<br />nobind<br />persist-key<br />persist-tun<br />ca ca.crt<br />cert &lt;user.name&gt;.crt<br />key &lt;user.name&gt;.key<br />cipher BF-CBC <br />comp-lzo<br />verb 3<br />mute 20<br />route-method exe<br />route-delay 2</pre> 
            </div>
        </content>

        
    </entry>
    <entry>
        <link href="http://www.markround.com/archives/50-Building-a-redundant-iSCSI-and-NFS-cluster-with-Debian-Part-4.html" rel="alternate" title="Building a redundant iSCSI and NFS cluster with Debian - Part 4" type="text/html" />
        <author>
            <name>Mark Round</name>
                    </author>
    
        <issued>2009-02-09T14:27:21Z</issued>
        <created>2009-02-09T14:27:21Z</created>
        <modified>1970-01-01T00:00:00Z</modified>
        <wfw:comment>http://www.markround.com/wfwcomment.php?cid=50</wfw:comment>
        <slash:comments>8</slash:comments>
        <wfw:commentRss>http://www.markround.com/rss.php?version=atom0.3&amp;type=comments&amp;cid=50</wfw:commentRss>
    
        <id>http://www.markround.com/archives/50-guid.html</id>
        <title mode="escaped" type="text/html">Building a redundant iSCSI and NFS cluster with Debian - Part 4</title>
        <content type="application/xhtml+xml" xml:base="http://www.markround.com/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p>This is part&#160;4 of a series on building a redundant iSCSI and NFS SAN with Debian.</p>
<p>Part 1 - <a title="Overview, network layout and DRBD installation on Debian" href="archives/44-Building-a-redundant-iSCSI-and-NFS-cluster-with-Debian-Part-1.html">Overview, network layout and DRBD installation</a><br />Part 2 - <a title="DRBD and LVM on a Debian cluster" href="archives/45-Building-a-redundant-iSCSI-and-NFS-cluster-with-Debian-Part-2.html">DRBD and LVM</a><br />Part 3 - <a title="Heartbeat and automated failover" href="archives/49-Building-a-redundant-iSCSI-and-NFS-cluster-with-Debian-Part-3.html">Heartbeat and automated failover</a><br />Part 4 - <a title="iSCSI and IP failover" href="archives/50-Building-a-redundant-iSCSI-and-NFS-cluster-with-Debian-Part-4.html">iSCSI and IP failover</a><br />Part 5 - <a title="Multipathing and client configuration" href="archives/55-Building-a-redundant-iSCSI-and-NFS-cluster-with-Debian-Part-5.html">Multipathing and client configuration</a><br />Part 6 - Anything left over!</p>
<p>In this part, we'll configure Heartbeat to manage IP address failover on the two storage interfaces. We'll also install and configure an iSCSI target to provide block-level storage to clients.</p> <br /><a href="http://www.markround.com/archives/50-Building-a-redundant-iSCSI-and-NFS-cluster-with-Debian-Part-4.html#extended">Continue reading "Building a redundant iSCSI and NFS cluster with Debian - Part 4"</a>
            </div>
        </content>

        
    </entry>
</feed>