<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Mark Ottaway on Medium]]></title>
        <description><![CDATA[Stories by Mark Ottaway on Medium]]></description>
        <link>https://medium.com/@deligatedgeek?source=rss-c645a4ddd128------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*-Y9ZGsjEuKPMfrXniQYbmg.jpeg</url>
            <title>Stories by Mark Ottaway on Medium</title>
            <link>https://medium.com/@deligatedgeek?source=rss-c645a4ddd128------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 20:38:39 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@deligatedgeek/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Kickstart-Anaconda-Cobbler-Puppet: Why and How I got here]]></title>
            <link>https://medium.com/coders-log/kickstart-anaconda-cobbler-puppet-why-and-how-i-got-here-7dc2475de138?source=rss-c645a4ddd128------2</link>
            <guid isPermaLink="false">https://medium.com/p/7dc2475de138</guid>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Mark Ottaway]]></dc:creator>
            <pubDate>Tue, 27 Mar 2018 17:33:41 GMT</pubDate>
            <atom:updated>2018-03-27T17:33:41.442Z</atom:updated>
            <content:encoded><![CDATA[<p>Kickstart-Anaconda-Cobbler-Puppet: Why and How I got here</p><p>When I first arrived at my current job the company were in-sourcing by creating a new support team and I was the Unix/Linux support. There was no build environment in place, all Linux servers were built from live DVD version of CentOS.</p><p>I needed to put a build environment together which could accommodate my current and future requirements. I needed to start building servers quickly and simply but with room for more complex builds and configurations later. My environment was VMware, some physical servers, and an OpenStack area.</p><p>First I needed an internal repository of packages for the OS I was going to build, then I can sync at night and not continuously build the same systems across the company internet link. On this repository I also created an area for kickstart files, I could then manually start network builds and I was already saving time and my builds would be consistent. The last part of this process would be creating a profile in VMWare for each server I needed to build, this would set the hostname and network parameters such as IP, domain, dns servers.</p><p>Now I was building production servers but still needed to be more efficient, I considered what was available for my budget, of nothing and did a lot of research into my options, basically Chef, Cfgengine and Puppet would solve my problem so Proof Of Concept time, I chose to test Puppet first because I liked the way the configuration files (manifests) flowed, it was simple, almost like a programming language. The POC for Puppet was successful and thus I rebuilt the Puppet master and started again (as you should do, its hard to diagnose a fluke). It worked same way so I chose Puppet.</p><p>A big advantage of Puppet was that I could start very simple with a Puppet server and a few manifests to build out the rest of the immediate infrastructure. Then later, when I had time, I could add the Cobbler web GUI and produce arbitrarily complex manifests as required. For example, my first manifests were configuring Puppet agent (obviously), SNMP and the yum repositories on each server, then a short time later NTP. As each manifest was created and added, these changes were rolled out to all existing servers. I used puppet dashboard to view the results</p><p>Puppet needed to be hosted in Apache to maintain the performance, Cobbler and Puppet Dashboard could be hosted on the same webserver. This combination used very little resources and required very little attention once built and running. After some time I had to increase the VM’s memory to 768M to cope with 250+ servers being managed. Currently its 2G of ram and 2 cores, but also houses Mysql and some project creep.</p><p>I had one complication to stop me automating builds, no DHCP on the server estate, so no PXE boot builds, The solution to this was Koan (Kickstart Over A Network), which worked perfectly with Cobbler and allowed me to build and rebuild to any system I had added to Cobbler. Koan is a very custom Ruby application which requires many libraries but wasn’t at the time, easy to install on CentOS 6.4, so considering the environment was VMWare and I only needed a small part of Koan to complete a repeatable build process, I decided to create my own version of what I needed called koan.pl</p><p>A Perl script could replicate Koans process of pulling the correct kernel and initrd for a system profile, then update Grub, Upon reboot the VM would build itself (or occasionally not) caveat for fat fingers and misunderstanding documentation (Yes I actually read documentation). Once I had worked out what was required I wrote a Perl script that did exactly what I needed, it wasn’t actually that complicated.</p><p>The final part of the jigsaw for full automation was already there in VMWare, but I could now make it simpler. When creating a new VM from a template in VMWare, I no longer needed to create a hardware profile for each server, just one for the template. It can use the same IP for each build, and upon reboot the IP settings had changed to what Koan had set. When building VMWare would change the hostname of the linux VM being built to the VM name, a simple ‘hostname -f’ would provide the name to my ‘koan’ script and voila, completely automated builds with an easy to support environment.</p><p>My original build environment was</p><p>CentOS 6.3</p><p>Cobbler 2.4</p><p>Puppet 3.2.3</p><p>My build template is currently still CentOS 6.4, for the whole first boot, then it becomes whatever is configured in Cobbler.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7dc2475de138" width="1" height="1" alt=""><hr><p><a href="https://medium.com/coders-log/kickstart-anaconda-cobbler-puppet-why-and-how-i-got-here-7dc2475de138">Kickstart-Anaconda-Cobbler-Puppet: Why and How I got here</a> was originally published in <a href="https://medium.com/coders-log">Coders Log</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Upgrading Ontap to 9.3 with CIFS Auditing enabled may cause a serious issue]]></title>
            <link>https://medium.com/coders-log/upgrading-ontap-to-9-3-with-cifs-auditing-enabled-may-cause-a-serious-issue-b0890752a127?source=rss-c645a4ddd128------2</link>
            <guid isPermaLink="false">https://medium.com/p/b0890752a127</guid>
            <category><![CDATA[cif]]></category>
            <category><![CDATA[ontap]]></category>
            <category><![CDATA[netapp]]></category>
            <category><![CDATA[auditing]]></category>
            <dc:creator><![CDATA[Mark Ottaway]]></dc:creator>
            <pubDate>Wed, 21 Mar 2018 00:00:00 GMT</pubDate>
            <atom:updated>2018-10-11T13:56:33.829Z</atom:updated>
            <content:encoded><![CDATA[<p>A short while ago we updated our NetApps from 9.2 to 9.3, the upgrade was done using NetApp upgrade instructions and was successful, except…..</p><p>About a week and a bit later users could no longer save files, I managed to fix the symptom and give users back the ability to save files, but the problem remains.</p><h4>CIFS Auditing Simple Overview</h4><p>First create a CIFS/NFS share where the audit logs will be saved, then create an auditing policy which specifies what should be logged, the configuration should reference the CIFS/NFS share which you have created and what actions you would like to audit.</p><p>Auditing is then enabled on the NetApp, this action causes the creation of a “hidden” staging volume and an Audit Log Consolidation job is created.</p><p>Finally set the permissions on files/folders in a CIFS share which need to be audited.</p><p>Now when you perform specific actions on a file (Actions that you have listed in the audit policy) data is written to the staging volume and then the consolidation job runs and converts this data into a log file.</p><p>This has been working very well since and we chose to output XML which eventually ends up in Elastic and viewed in Kibana. So well did this work that we starting a process of rolling out the permission across the environment.</p><h4>Then the upgrade to 9.3</h4><p>We decided to upgrade Ontap to 9.3 as there are some nice new features with increase storage capacity efficiency.</p><p>We followed the required NetApp upgrade process and it was successful, there were no outages and all services were as they should be. a perfect upgrade.</p><p>Then about 10 days later I started receiving emails from OpenNMS about traps it was receiving from the NetApp appliances, quite a deluge of stuff I hadn’t seen before. A staging volume was 95% full? Not the kind of emails you want to see on a Friday afternoon! Some investigation showed that a system volume was near full and CIFS access would be affected if it wasn’t resolved.</p><h4>The Staging Volume</h4><p>One staging volume is created per aggregate the names are “MDV_aud_” and the Aggregate UUID. They can only be seen on the command line, the System Manager and OCUM web GUI’s will not show them and OCUM will not generate volume full (near full, etc) alarms for them.</p><p>You can only see issues with them in syslog and traps directly from the NetApp heads, <strong>you will get no other warning until you have CIFS issues</strong>, probably because staging volumes simply just shouldn’t fill up.</p><p>Further investigation showed that the Log Consolidation Job that creates the actual log files and effectively manages the data on the staging volumes had been deleted by the upgrade process somehow.</p><h4>Check your staging volumes</h4><p>To check if your staging volumes are filling up just run “df -h MDV*” on your NetApp cluster as an account with cluster admin privileges. e.g.</p><pre>toaster::&gt; df -h MDV* <br>Filesystem                 total used avail capacity Mounted Vserver /vol/MDV_aud_76a5..ea04f4/         1945MB 1004MB 0MB 52% --- toaster <br>/vol/MDV_aud_76a5..ea04f4/.snapshot 102MB 50MB 102MB 49% --- toaster</pre><p>If your capacity is above 80% used, check if your consolidation job is still running (as below) and call your support if its missing.</p><pre>toaster::&gt; job show -name Cons* <br>There are no entries matching your query.</pre><h3>The workarounds</h3><p>In an emergency, to continue service there are two workarounds, the first is to increase the volume size and the second is to turn off audit guarantee. If you are using auditing for compliance then you only have one option, increase volume size.</p><p>Both options involve diagnostic mode, which should only be used in emergency, go back into admin ASAP.</p><h4>1) Increase staging volume size</h4><p>When increasing the volume size, remember the volume lives on the cluster “vserver”.</p><pre>toaster::&gt; set diag <br>toaster::*&gt; volume size -vserver toaster -volume MDV_aud_76a..4f4 3g <br>toaster::*&gt; set admin</pre><h4>2) Disable audit guarantee (Will break compliance)</h4><p>The below shows the process of checking audit guarantee of vserver svm01, setting to audit guarantee to false, checking audit guarantee again, and finally leaving diag privilege before doing anything else.</p><pre>toaster::&gt; set diag <br>toaster::*&gt; vserver audit show -fields audit-guarantee <br>vserver        audit-guarantee <br>-------------- --------------- <br>svm01          true</pre><pre>toaster::*&gt; vserver audit modify -vserver svm01 -destination /audit_log -audit-guarantee false </pre><pre>toaster::*&gt; vserver audit show -fields audit-guarantee <br>vserver        audit-guarantee <br>-------------- --------------- <br>svm01          false </pre><pre>toaster::*&gt; set admin</pre><p><em>Originally published at </em><a href="https://deligatedgeek.blogspot.com/2018/03/upgrading-ontap-to-93-with-cifs.html"><em>deligatedgeek.blogspot.com</em></a><em> on March 21, 2018.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b0890752a127" width="1" height="1" alt=""><hr><p><a href="https://medium.com/coders-log/upgrading-ontap-to-9-3-with-cifs-auditing-enabled-may-cause-a-serious-issue-b0890752a127">Upgrading Ontap to 9.3 with CIFS Auditing enabled may cause a serious issue</a> was originally published in <a href="https://medium.com/coders-log">Coders Log</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[NetApp Ontap 9.2 — review first]]></title>
            <link>https://medium.com/coders-log/netapp-ontap-9-2-review-first-e7d95079c166?source=rss-c645a4ddd128------2</link>
            <guid isPermaLink="false">https://medium.com/p/e7d95079c166</guid>
            <category><![CDATA[netapp]]></category>
            <category><![CDATA[ontap]]></category>
            <dc:creator><![CDATA[Mark Ottaway]]></dc:creator>
            <pubDate>Fri, 08 Dec 2017 00:00:00 GMT</pubDate>
            <atom:updated>2018-10-11T13:34:24.656Z</atom:updated>
            <content:encoded><![CDATA[<h3>NetApp Ontap 9.2 — review first</h3><p>This is simply to ask you to review your configuration before upgrading to Ontap 9.2, still upgrade, just check first.</p><p>I discovered an issue just over a month ago, after an upgrade to Ontap 9.2. It has now been confirmed by NetApp, but its not a bug, just a change in network stack that changes the way it routes particular protocols.</p><p>Had the change to the Ontap OS been known, I would have made infrastructure changes before the upgrade, rather than having to raise support tickets and now have to make changes to to restore resilience to our infrastructure.</p><p>I will state that I have been very impressed with the performance of the new all flash NetApps and with the exception of one major bug, the systems have been bullet proof in general operation on our environment for the last year.</p><p>NetApp have removed a feature called “Fastpath” from Ontap 9.2, this feature stores the interface of each incoming network packet and ensures it goes back out the same interface. This was originally implemented for performance as it saved the time of checking the routing table. This feature has enabled servers to send storage traffic to any NetApp virtual interface and teh packet would egress from the same interface irrespective of the network infrastructure.</p><p>During the upgrade to 9.2 we had several outages and lost monitoring from On Command Unified Manager, we restored monitoring by moving OCUM to another subnet but we had to live with some loss of NFS resilience until we had confirmation of the cause.</p><p>Though each virtual interface still has a profile (data, management, intercluster, etc.) for incoming traffic, the response packet can go out through any interface within the same SVM and now uses the routing table.</p><p>The loss of monitoring from OCUM was caused by the https responses from polling via the cluster management interface, leaving the NetApp via an intercluster interface, which happened to be on the OCUM server’s subnet.</p><p>NFS issues were caused by using a NAS interface on the same node as the SVM admin interface, once I realised we moved all servers NFS to the node without the admin interface.</p><p>A new feature of Ontap 9.2, a tcpdump like command, allowed viewing traffic in wireshark and confirmation of the asymmetric routing from the netapp side.</p><p>We are now in the process of moving intercluster and admin interfaces to their own subnets. Hopefully upon completion 9.3 will be GA and we can gain some more space back.</p><p><em>Originally published at </em><a href="https://deligatedgeek.blogspot.com/2017/12/netapp-ontap-92-review-first.html"><em>deligatedgeek.blogspot.com</em></a><em> on December 8, 2017.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e7d95079c166" width="1" height="1" alt=""><hr><p><a href="https://medium.com/coders-log/netapp-ontap-9-2-review-first-e7d95079c166">NetApp Ontap 9.2 — review first</a> was originally published in <a href="https://medium.com/coders-log">Coders Log</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[FPolicy on OnTap 9]]></title>
            <link>https://medium.com/coders-log/fpolicy-on-ontap-9-6459bd639133?source=rss-c645a4ddd128------2</link>
            <guid isPermaLink="false">https://medium.com/p/6459bd639133</guid>
            <category><![CDATA[netapp]]></category>
            <category><![CDATA[cif]]></category>
            <category><![CDATA[fpolicy]]></category>
            <dc:creator><![CDATA[Mark Ottaway]]></dc:creator>
            <pubDate>Mon, 15 May 2017 00:00:00 GMT</pubDate>
            <atom:updated>2018-10-11T13:43:24.008Z</atom:updated>
            <content:encoded><![CDATA[<p>A very quick tutorial for anyone using NetApp OnTap 9 and wants to stop WannaCry and derivatives from destroying their NAS data.</p><p>This protection blocks the creation of specific file extensions and therefore will stop encrypted files being created, it should be used as part of a wider protection strategy.</p><p>** If you have an FPolicy server then this guide is not for you. **</p><p>NetApp has a native FPolicy server built into OnTap which is enough to stop malware based on file extension. This is how to do it.</p><ol><li>Firstly check if any fpolicies already exist vserver</li></ol><pre>fpolicy policy show </pre><p>2. An event policy needs to be created which specifies file action, protocol and vserver. In the below example an event is created called testEvent1 which has the following configuration. vserver SVM1, protocol CIFS, and file actions create and write. We can also configure for NFS but have not in this case.</p><pre>vserver fpolicy policy event create -vserver SVM1 -event-name testEvent1 -protocol cifs -file-operations read,write,rename,create,delete </pre><p>3) An fpolicy policy is created based on the new event called testPolicy1, to use fpolicy without an external fpolicy server the “engine” should be set to native</p><pre>vserver fpolicy policy create -vserver SVM1 -policy-name testPolicy1 -events testEvent1 -engine native </pre><p>4) The next stage is to create a scope to define what file extensions to block and on what CIFS shares. This example covers all shares on the SVM for the current list of wannacry extensions. The configuration can also specify volumes and export policies.</p><pre>vserver fpolicy policy scope create -vserver SVM1 -policy-name testPolicy1 -file-extensions-to-include wnry,wcry,wncry,WNCRY,WCRY -shares-to-include * </pre><p>5) Finally we enable the policy, in our case assuming there are no other policies and thus we use sequence number 1</p><pre>vserver fpolicy enable -vserver SVM1 -policy-name testPolicy1 -sequence-number 1</pre><p><em>Originally published at </em><a href="https://deligatedgeek.blogspot.com/2017/05/fpolicy-on-ontap-9.html"><em>deligatedgeek.blogspot.com</em></a><em> on May 15, 2017.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6459bd639133" width="1" height="1" alt=""><hr><p><a href="https://medium.com/coders-log/fpolicy-on-ontap-9-6459bd639133">FPolicy on OnTap 9</a> was originally published in <a href="https://medium.com/coders-log">Coders Log</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>