<?xml version='1.0' encoding='UTF-8'?><rss xmlns:atom='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' version='2.0'><channel><atom:id>tag:blogger.com,1999:blog-934075561374752090</atom:id><lastBuildDate>Sun, 20 May 2012 06:06:09 +0000</lastBuildDate><category>calendar</category><category>mail</category><category>active directory</category><category>fuse</category><category>gparted</category><category>cache</category><category>dd-wrt</category><category>debugging</category><category>keepass</category><category>acl</category><category>reboot</category><category>passwords</category><category>import</category><category>rhel5</category><category>postfix</category><category>fedora</category><category>lvm</category><category>upgrade</category><category>rapidsvn</category><category>linuxcounter popcon stats</category><category>ISP</category><category>disk cloning</category><category>firefox</category><category>sshfs</category><category>redhat</category><category>alia</category><category>ldap</category><category>General</category><category>openfire</category><category>heartbeat</category><category>DSL</category><category>dice</category><category>debian</category><category>tab mix plus</category><category>email</category><category>Add new tag</category><category>clonezilla</category><category>bind</category><category>HOWTO</category><category>apache</category><category>amanda tapes scsi</category><category>system</category><category>nsa</category><category>amanda</category><category>liveusb</category><category>jabber</category><category>httpd</category><category>vmware</category><category>security</category><category>Troubleshooting</category><category>random</category><category>groups</category><category>nagios</category><category>migration</category><category>rcs</category><category>nrpe</category><category>monitoring</category><category>backups</category><category>bash</category><category>blog</category><category>wordpress</category><category>ad</category><category>Blogging</category><category>apache2</category><category>outlook</category><category>spamassassin</category><category>alia services retired</category><category>failover</category><category>authnz_ldap</category><category>FTTH</category><category>custom</category><category>tape</category><category>vmware player</category><category>hardening</category><category>ha</category><category>dns</category><category>virtual host</category><category>trick</category><category>administration</category><category>NameVirtualHost</category><category>Rant</category><category>ubuntu</category><category>apache2ctl</category><category>google apps</category><category>svn</category><category>subversion</category><category>unity</category><title>Ranting, Technically Speaking</title><description>Random grumblings from the Archangle</description><link>http://archangel.thenibble.org/</link><managingEditor>noreply@blogger.com (Dominic Lepiane)</managingEditor><generator>Blogger</generator><openSearch:totalResults>245</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-934075561374752090.post-3777776502928900219</guid><pubDate>Sat, 07 Apr 2012 18:18:00 +0000</pubDate><atom:updated>2012-04-07T11:18:21.149-07:00</atom:updated><title>Windows Server 8 Proudly Joins 5 Years Ago</title><description>I've been poking around a bit to try to get some idea of Windows 8 might be an enticing upgrade in the workplace.&amp;nbsp; I haven't been following too closely so there may be features I'm missing but here's what I've found so far.&lt;br /&gt;&lt;br /&gt;On the desktop - no benefit.&amp;nbsp; New Metro UI is the biggest change and it's primarily a touch-screen friendly interface suitable for tables or smartphones.&amp;nbsp; Not at all for a "working" desktop where you might want to do more advanced tasks such as using a word processor or a spreadsheet.&amp;nbsp; And since Microsoft's plan to compete in the smart phone market is to first surpass Blackberry mostly by waiting for RIM's demise as BlackBerry use hits 0, Metro is irrelevant before even getting out the door.&lt;br /&gt;&lt;br /&gt;On the server - a lot of big benefits and well worth the upgrade.&amp;nbsp; Windows Server 8 looks to be a big step forward from the late 20th century and into the early part of the 21st century.&amp;nbsp; This &lt;a href="http://www.pcmag.com/article2/0,2817,2393449,00.asp"&gt;PC Mag article &lt;/a&gt;from the fall gives a pretty good breakdown.&amp;nbsp; I won't re-hash the author's well written piece and just go for the jugular here.&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;"&lt;span id="intellitxt"&gt;&lt;b&gt;Intellisense Powershell" &lt;/b&gt;lets administrators auto-complete in PowerShell.&amp;nbsp; Big benefit, must-have, and has been readily available to bash and zsh users in Linux-based operating systems for a long long time.&amp;nbsp; Seriously - get real!&amp;nbsp; Microsoft has only just started down the road of a headless server OS path where automation can truly scale out operations and they have a lot of ground to cover.&amp;nbsp; This is our first example of the Microserfs pulling their heads out of &amp;lt;the ground&amp;gt; and look at what's going on outside their &amp;lt;world&amp;gt;.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span id="intellitxt"&gt;&lt;b&gt;"Live Migration" &lt;/b&gt;lets Hyper-V guests be moved without disruption to new hosts.&amp;nbsp; I can't honestly say I'd touch Hyper-V without some sort of hazmat suit on.&amp;nbsp; Seriously, this is a "new" feature for Microsoft?&amp;nbsp; VMware vmotion has be been doing this for vmware customers for a while.&amp;nbsp; Yes, Hyper-V is free and VMware is paid, but with Hyper-V you're not getting your money's worth.&amp;nbsp; Maybe if VMware doesn't innovate at all for the next decade, Hyper-V will catch up enough to make it a viable option for anything other than a test lab or party tricks.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span id="intellitxt"&gt;&lt;b&gt;"NIC Teaming"&lt;/b&gt; oddly I don't consider a "must-have", but this would be a feature possibly 20 years or more behind the times.&amp;nbsp; Hardware independent NIC teaming for bandwidth agreggation and fault tolerance has been the norm on any network operating system outside Microsoft Windows since, well, forever.&amp;nbsp; Where MS admins have historically depended on NIC vendors' drivers to provide this functionality to date, there at least is a path to do this in Winblows so though this is an important feature, I wouldn't buy Windows Server 8 specfically for it.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span id="intellitxt"&gt;&lt;/span&gt;&lt;span id="intellitxt"&gt;&lt;b&gt;"Claim Definitions"&lt;/b&gt;&lt;/span&gt;&lt;span id="intellitxt"&gt;&lt;/span&gt;&lt;b&gt; &lt;/b&gt;is a feature that allows sensitive files to be tagged as confidential, for example and access can be based on these "claim definitions".&amp;nbsp; I have no gripe here - sounds like "access control lists" based on tags.&amp;nbsp; I'd like to see how flexible this functionality is but even as-is can be an important tool under Windows 8.&lt;/li&gt;&lt;li&gt;&lt;span id="intellitxt"&gt;"&lt;/span&gt;&lt;span id="intellitxt"&gt;&lt;b&gt;Flexible Deployment" &lt;/b&gt;means that you can install Windows Server "core" (the stupid headed "headless" install we know from Windows Server 2008) and then, wait for this shocker....&amp;nbsp; Upgrade to full at a later time.&amp;nbsp; #facepalm&amp;nbsp;&amp;nbsp; I mean, seriously?&amp;nbsp; You've got Ubuntu users who do in-place one-click upgrades across major versions, RedHat Enterprise Linux admins who will generally install headlessly just to get a box up and then add in all the features including the GUI in their &lt;i&gt;default&lt;/i&gt; software package manager tool, but Windows Server users are only now going to be able to add the full Windows install into core without reformatting?&amp;nbsp; Maybe with Windows 25 in the year 2050, Microsoft will shock and amaze us by letting their users get software updates for their application all from a common update utility rather getting random prompts every other day to update all the plethora of third-party applications and utilities they have installed just to make their computer usable (actually, this will never happen...).&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;span id="intellitxt"&gt;In summary - looking forward to Windows Server 8.&amp;nbsp; Maybe get myself a pager again to relive life in the pre-iPhone era.&lt;/span&gt;&lt;br /&gt;&lt;span id="intellitxt"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span id="intellitxt"&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/934075561374752090-3777776502928900219?l=archangel.thenibble.org' alt='' /&gt;&lt;/div&gt;</description><link>http://archangel.thenibble.org/2012/04/windows-server-8-proudly-joins-5-years.html</link><author>noreply@blogger.com (Dominic Lepiane)</author><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-934075561374752090.post-7485225121424164588</guid><pubDate>Thu, 01 Mar 2012 00:04:00 +0000</pubDate><atom:updated>2012-02-29T16:04:22.413-08:00</atom:updated><title>Rolling out of nested shells</title><description>I just realized that if I'm really lazy, I can stick &amp;amp;&amp;amp; exit after everything to dump me out of all my nested shells after a program completes.&lt;br /&gt;&lt;blockquote class="tr_bq"&gt;ssh &amp;lt;whateverhost&amp;gt; &amp;amp;&amp;amp; exit&lt;br /&gt;sudo -i &amp;amp;&amp;amp; exit&lt;br /&gt;for item in list ; do someprocessing ; done &amp;amp;&amp;amp; exit&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/934075561374752090-7485225121424164588?l=archangel.thenibble.org' alt='' /&gt;&lt;/div&gt;</description><link>http://archangel.thenibble.org/2012/02/rolling-out-of-nested-shells.html</link><author>noreply@blogger.com (Dominic Lepiane)</author><thr:total>1</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-934075561374752090.post-5693927752995644998</guid><pubDate>Mon, 27 Feb 2012 22:32:00 +0000</pubDate><atom:updated>2012-02-27T14:32:45.476-08:00</atom:updated><title>PC apps are dead?</title><description>I've been looking around from time to time for an app which would let me scan books from our collection at home and build a digital library - most useful for loaning books.&amp;nbsp;&amp;nbsp; I never found much on a PC, I did find &lt;br /&gt;&lt;br /&gt;https://market.android.com/details?id=com.eleybourn.bookcatalogue&amp;amp;feature=also_installed#?t=W251bGwsMSwxLDEwNCwiY29tLmVsZXlib3Vybi5ib29rY2F0YWxvZ3VlIl0.&lt;br /&gt;&lt;br /&gt;In short - yes, apps for desktop seem to be pretty much dead.&amp;nbsp; I can't think of the last time I found a usable desktop application.&amp;nbsp; At most, it's browser plugins like &lt;a href="https://addons.mozilla.org/en-US/firefox/addon/nagios-checker/"&gt;Nagios Checker&lt;/a&gt;.&amp;nbsp; There are some "rich" applications or system management applications with rich clients, like &lt;a href="http://www.intermapper.com/"&gt;InterMapper&lt;/a&gt;, but generally it's all web UI.&lt;br /&gt;&lt;br /&gt;As Martha says, "&lt;a href="http://www.amazon.com/Martha-Stewart-Its-Good-Thing/dp/B000E371W8"&gt;It's a Good Thing&lt;/a&gt;".&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/934075561374752090-5693927752995644998?l=archangel.thenibble.org' alt='' /&gt;&lt;/div&gt;</description><link>http://archangel.thenibble.org/2012/02/pc-apps-are-dead.html</link><author>noreply@blogger.com (Dominic Lepiane)</author><thr:total>4</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-934075561374752090.post-3579549943984865017</guid><pubDate>Sun, 29 Jan 2012 19:22:00 +0000</pubDate><atom:updated>2012-01-29T11:22:24.590-08:00</atom:updated><title>Charting Systems Using Cacti</title><description>There are a lot of great monitoring tools out there.&amp;nbsp; I've posted many times before about &lt;a href="http://www.nagios.org/"&gt;Nagios&lt;/a&gt; and I could post still more on this great tool, but it's not the only tool I use.&amp;nbsp; Another one is &lt;a href="http://www.cacti.net/"&gt;Cacti&lt;/a&gt; which is an excellent tool I've also mentioned before and it is mostly for graphing system resources.&lt;br /&gt;&lt;br /&gt;Out of the box, Cacti will give you a lot of the basics especially when combined with SNMP.&amp;nbsp; Disk usage, network interface usage, CPU, and memory.&amp;nbsp; But what I really like about these great Open Source tools is that there are extensions readily available from the F/OSS community.&amp;nbsp; With Cacti, you can extend by getting new host templates and data queries (and more).&amp;nbsp; Here are some examples.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://docs.cacti.net/usertemplate:data:host_mib:diskio"&gt;Disk IO&lt;/a&gt; - this is a new data query that tracks disk IO usage either in IOPS or MB/s.&amp;nbsp; This is one of the simplest examples of how you can extend cacti.&amp;nbsp; It comes as a xml file defining an SNMP query which you copy into your resrouces/snmp_query installation folder and as a data query template which you import through the Cacti UI.&amp;nbsp; Once you've done this quick installation, you can add the disk io checks to any SNMP enabled host you are already tracking.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://docs.cacti.net/usertemplate:data:dell:environment"&gt;Dell PowerEdge Environment&lt;/a&gt; - this is another simple example which is the same as the Disk IO in that it is an SNMP query plus a data query template but there's 3 checks it adds.&amp;nbsp; System ambient temperature, fan speeds, and system voltages.&amp;nbsp; Its a great example of how Cacti as a generic tool can be tuned to target your specific operating environment whether you're a Dell shop, HP shop, or otherwise.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://docs.cacti.net/usertemplate:data:apc:apcupsd"&gt;APC UPS Daemon&lt;/a&gt; - Another example of an application specific example.&amp;nbsp; This one comes as a host template so its a collection of checks you can use to capture all the data queries on a host using APC UPS Daemon.&amp;nbsp; A great example of where F/OSS tools *far* exceed the stock or closed-source tools provided by vendors.&amp;nbsp; Rather than these cheesy brief inflexible views of how your system works as provided by APC that require overly large utilities to be installed, its quick, lightweight, and much more flexible to use the F/OSS tools.&lt;br /&gt;&lt;br /&gt;Cacti is another of these great tools that works well in conjunction with other tools to give system administrators great insight into the operation of their network.&lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/934075561374752090-3579549943984865017?l=archangel.thenibble.org' alt='' /&gt;&lt;/div&gt;</description><link>http://archangel.thenibble.org/2012/01/charting-systems-using-cacti.html</link><author>noreply@blogger.com (Dominic Lepiane)</author><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-934075561374752090.post-3241436821773494088</guid><pubDate>Sat, 31 Dec 2011 01:09:00 +0000</pubDate><atom:updated>2011-12-30T17:09:32.760-08:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>passwords</category><category domain='http://www.blogger.com/atom/ns#'>security</category><category domain='http://www.blogger.com/atom/ns#'>keepass</category><title>Storing Passwords</title><description>The most effective way to manage your passwords for personal or professional use us to use a &lt;a href="http://en.wikipedia.org/wiki/Password_manager"&gt;password manager&lt;/a&gt;.&amp;nbsp; This allows you to manage unique logins for all the different resources you access (bank vs email vs general forums vs ...) and only have to maintain one master password.&amp;nbsp; Pick a reputable password manager, like &lt;a href="http://keepass.info/"&gt;KeePass&lt;/a&gt;, and remember that backing up and restoring your password database is critical.&lt;br /&gt;&lt;br /&gt;Keeping electronic copies is fine, but also consider keeping a hard-copy as well in a relatively secure location.&amp;nbsp; One suggestion is that you print off your passwords every time you change your master password (annually is pretty minimal) but write that master password down on the print out so you can recover it if you forget it!&amp;nbsp; Useful if you do cycle your master password frequently.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/934075561374752090-3241436821773494088?l=archangel.thenibble.org' alt='' /&gt;&lt;/div&gt;</description><link>http://archangel.thenibble.org/2011/12/storing-passwords.html</link><author>noreply@blogger.com (Dominic Lepiane)</author><thr:total>5</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-934075561374752090.post-5259546981977933984</guid><pubDate>Fri, 16 Dec 2011 14:27:00 +0000</pubDate><atom:updated>2012-01-02T10:55:14.169-08:00</atom:updated><title>WiFi Routers and NAS</title><description>The &lt;a href="http://archangel.thenibble.org/2007/03/more-routers-more-power.html"&gt;last time I bought a new router&lt;/a&gt; was when the Linksys WRT54G was "the king" of home WiFi routers - and mostly because you can replace the useless stock firmware with DD-WRT.&amp;nbsp; Otherwise, it was "a router".&amp;nbsp; At the time, 4 years ago, which is like many generations in Internet time, you had to manually setup security on your WiFi AP still so you saw lots of open WiFi hot-spots like "Linksys" or "Dlink" around. &amp;nbsp; Then the WiFi router manufactuers started providing security setup as part of their setup wizard so you see more SSID customization and security enabled.&amp;nbsp; Now, apparently, everyone auto-configures security with a magic button called "WPS".&amp;nbsp; Then you've got other features USB ports so you can run a file-server from a USB drive or print server and "guest networking" so you can isolate isolate your workstations from other users.&lt;br /&gt;&lt;br /&gt;&lt;strike&gt;"&lt;a href="http://en.wikipedia.org/wiki/Wi-Fi_Protected_Setup"&gt;WPS&lt;/a&gt;" - WiFi Protected Setup is definately a cool feature.&amp;nbsp; It comes as a button on the router so when you press the button, its like the router goes into a sort of "security auto-config mode".&amp;nbsp; WPS, if its supported on your client (I assume it's a software install), will then automatically configure your client and your router with strong security settings. It means no more default passwords and streamlining the security options for users who frankly don't need to have "WEP" as an option.&lt;/strike&gt;&lt;br /&gt;&lt;br /&gt;[Edit: WPS is broken and should be disabled on all routers that support it according to &lt;a href="http://isc.sans.edu/diary.html?storyid=12292"&gt;SANS&lt;/a&gt;.]&lt;br /&gt;&lt;br /&gt;Guest networking is another cool feature on some routers.&amp;nbsp; It is a separate SSID for, well, guests to use your WiFi from.&amp;nbsp; It is isolated from your main network so that guests won't have access to, for example, your network attached printer or to your media collection you stream from your laptop to your television.&amp;nbsp; This is just so cool for people who may be sharing their Internet connection with their neighbours or roommates but just don't want their surfing habbits to infect their own systems :)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;And the USB ports.&amp;nbsp; Many routers seem to have one or two USB ports on them which is interesting, but what's more interesting is what you can do with them.&amp;nbsp; A lot of new routers have built-in file servers so as soon as you attach some storage, you can share files and folders from it to the PCs on your network.&amp;nbsp; How convenient is that?&amp;nbsp; Some routers have more sophisticated web interfaces than others and let you specify which folders are or aren't shared - but either way, if you're buying a new WiFi router anyhow and you get this feature, it means you get a functional NAS for the cost of a USB key or USB attached hard drive!&amp;nbsp; *And* some routers are starting to come out with &lt;a href="http://en.wikipedia.org/wiki/USB_3.0"&gt;USB 3&lt;/a&gt; - SuperSpeed USB which if you consider these routers have not only &lt;a href="http://en.wikipedia.org/wiki/IEEE_802.11n-2009"&gt;802.11n &lt;/a&gt;speed on the WiFi but also Gigabit speed for the network ports, is an awesome feature.&lt;br /&gt;&lt;br /&gt;And that's not the only thing you can do with the USB port - some routers will also act as a print server!&amp;nbsp; So you attach your generic USB printer to the router, and it's now a network printer you can print to from any laptop or PC in the house.&amp;nbsp; Talk about great value-added feature!&amp;nbsp; I love it!&lt;br /&gt;&lt;br /&gt;And did I mention that new routers are all now wireless N with Gigabit LAN interfaces?&amp;nbsp; WiFi is still garbage and a ways away from being reliable outside very small deployments, but N is an improvement over previous specs.&amp;nbsp; Interestingly, I found out the other day as well that if you run your router in "dual band" to support both N and G clients, your wireless speeds on both N and G suffer.&amp;nbsp; So ironically if you have any wireless G clients, unless you really need your N devices to run at "slightly faster than G but nowhere near N speeds", you should still run G only.&lt;br /&gt;&lt;br /&gt;Cool beans!&amp;nbsp; I'm liking some of the features I'm seeing on the box these days from some of the WiFi routers.&amp;nbsp; A nice change from the utter crap they used to shlep out where the only smart thing to do was check if you you run a custom firmware on the device and replace the junk software sold with it.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/934075561374752090-5259546981977933984?l=archangel.thenibble.org' alt='' /&gt;&lt;/div&gt;</description><link>http://archangel.thenibble.org/2011/12/wifi-routers-and-nas.html</link><author>noreply@blogger.com (Dominic Lepiane)</author><thr:total>2</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-934075561374752090.post-2511369035882894624</guid><pubDate>Wed, 19 Oct 2011 16:58:00 +0000</pubDate><atom:updated>2011-10-19T09:58:14.899-07:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>rcs</category><category domain='http://www.blogger.com/atom/ns#'>subversion</category><category domain='http://www.blogger.com/atom/ns#'>rapidsvn</category><category domain='http://www.blogger.com/atom/ns#'>administration</category><category domain='http://www.blogger.com/atom/ns#'>svn</category><title>Source Control for Server Admin</title><description>So you manage a server, or a lot of servers alone or in a team, however you are doing this, you are going to be tweaking configuration files often and creating custom scripts for automation.&amp;nbsp; There are two tools I use for revision control - RCS for configuration files (generally) and SVN for scripts (generally).&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.gnu.org/s/rcs/"&gt;RCS&lt;/a&gt;.&amp;nbsp; The classic.&amp;nbsp; All the documentation you will ever need is in the &lt;a href="http://www.manpagez.com/man/1/rcs/"&gt;man pages&lt;/a&gt;.&amp;nbsp; Well that and some context for how to use it.&amp;nbsp; RCS creates revision files in place.&amp;nbsp; So if you change /etc/dhcpd.conf, it will create /etc/dhcpd.conf,v.&amp;nbsp; This is a very useful setup when controlling local files in arbitrary locations - like most of /etc on most of your servers.&amp;nbsp; There are a few caveats to keep in mind:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;RCS will put revision files (the ,v files) in an RCS folder if present&lt;/li&gt;&lt;li&gt; The default behaviour is to remove a file from its current path on check-in&lt;/li&gt;&lt;/ul&gt;Keeping these in mind, this is my general pattern for working with files under /etc.&lt;br /&gt;&lt;ol&gt;&lt;li&gt;If there is no RCS folder (e.g. /etc/RCS), create it first&lt;/li&gt;&lt;ul&gt;&lt;li style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;mkdir -m 700 ./RCS&lt;/li&gt;&lt;li&gt;Assuming your working folder is where the file in question is, this will create an RCS folder and protect it from other users (typically non-root)&lt;/li&gt;&lt;/ul&gt;&lt;li&gt; If a file doesn't exist in RCS, check it in first&lt;/li&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;ci -u dhcpd.conf &amp;amp;&amp;amp; co -l dhcpd.conf&lt;/span&gt;&lt;/li&gt;&lt;li&gt;ci is short for "check-in", unlike SVN or CVS, "ci" is the command and not an argument to "rcs" &lt;/li&gt;&lt;li&gt;The -u "unlocks" the file leaving it in place (so dhcpd can read it)&lt;/li&gt;&lt;li&gt;co is "check-out" and -l "locks" the file for editing&lt;/li&gt;&lt;ul&gt;&lt;li&gt;&lt;b&gt;I always leave files checked out to capture changes by other users or by the system (like rpm)&lt;/b&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;li&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;If the file does exist in RCS, check for any un-committed changes&lt;/li&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;rcsdiff dhcpd.conf&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family: inherit;"&gt;This does a diff against the last checked-in version by default but you can specify a version if you want to compare against earlier changes&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family: inherit;"&gt;Check-in any un-committed changes or find the person who made the changes and make them do it &lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;&lt;span style="font-family: inherit;"&gt;The file should always be left checked-out (per above comment), otherwise check it out&lt;/span&gt;&lt;/li&gt;&lt;li&gt;Make changes&lt;/li&gt;&lt;li&gt;Check-in changes, and check-out the file for the next user&lt;/li&gt;&lt;ul&gt;&lt;li style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;ci -u dhcpd.conf &amp;amp;&amp;amp; co -l dhcpd.conf&lt;/li&gt;&lt;li&gt;Give a brief log message indicating what the changes were and again, leave the file checked-out to capture changes by the system or other users&lt;/li&gt;&lt;/ul&gt;&lt;/ol&gt;Now the last useful command I'll mention there is &lt;b&gt;rlog&lt;/b&gt; which lets you read the revision history log.&lt;br /&gt; &lt;br /&gt; Now &lt;a href="http://subversion.tigris.org/"&gt;SVN&lt;/a&gt; is a proper centralized source control system.&amp;nbsp; They have excellent documentation on setting up a repository.&amp;nbsp; This is very useful for system admin scripts.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Although most system administration related scripts won't ever have "releases" or "branches", you probably still want to follow the SVN guide and create at least a trunk in case you ever do need to tag a specific version.&amp;nbsp;&amp;nbsp; There's no cost, so I use a trunk even though I've never used it because changing later is a problem.&lt;br /&gt;&lt;br /&gt;With SVN you'll want to keep an updated local working copy ("tip") either on a shared NFS location or locally on each server.&amp;nbsp; How you do it is up to you, just create a cronjob to run "svn update /path/to/tip" and then you can always run scripts from that path.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://rapidsvn.tigris.org/"&gt;RapidSVN&lt;/a&gt; is a great tool, well maybe not great, but works very well for sys admin anyhow and its readily available.&amp;nbsp; So check out your own working copy of the trunk with RapidSVN.&amp;nbsp; I configured RapidSVN to use &lt;a href="http://projects.gnome.org/gedit/"&gt;gedit&lt;/a&gt; as my standard editor and &lt;a href="http://meld.sourceforge.net/"&gt;meld&lt;/a&gt; as my diff tool.&amp;nbsp;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;This gives you everything you need for day-to-day creating and maintain system configuration files and your toolbox of scripts for automated system maintenance.&lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/934075561374752090-2511369035882894624?l=archangel.thenibble.org' alt='' /&gt;&lt;/div&gt;</description><link>http://archangel.thenibble.org/2011/10/source-control-for-server-admin.html</link><author>noreply@blogger.com (Dominic Lepiane)</author><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-934075561374752090.post-417645383789732374</guid><pubDate>Sat, 15 Oct 2011 16:02:00 +0000</pubDate><atom:updated>2011-10-17T06:52:42.590-07:00</atom:updated><title>Debugging Python Scripts</title><description>This is really just props for a site I found with a nice walk-through of using the Python Debugger - pdb.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://pythonconquerstheuniverse.wordpress.com/2009/09/10/debugging-in-python/%20"&gt;http://pythonconquerstheuniverse.wordpress.com/2009/09/10/debugging-in-python/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;pdb your built-in step-through debugger allowing you to inspect objects and all the usual things you need in developing a program.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/934075561374752090-417645383789732374?l=archangel.thenibble.org' alt='' /&gt;&lt;/div&gt;</description><link>http://archangel.thenibble.org/2011/10/debugging-python-scripts.html</link><author>noreply@blogger.com (Dominic Lepiane)</author><thr:total>2</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-934075561374752090.post-7714504621814313809</guid><pubDate>Fri, 09 Sep 2011 16:13:00 +0000</pubDate><atom:updated>2011-09-10T11:53:01.537-07:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>linuxcounter popcon stats</category><title>Running the numbers</title><description>Two interesting tools popped up recently.  &lt;br/&gt;&lt;br/&gt;Good old &lt;a href="http://linuxcounter.net/"&gt;Linux Counter&lt;/a&gt; has been passed down to a new maintainer.  This is a classic project which attempts to get Linux usage data from user input.  Its hard to tell if its particularly relevant, but it is interesting to see relative usage across platforms and by region.  As for estimating global Linux use?  Hard to be convinced this provides a good enough sampling to be very convincing.  Nevertheless, I keep my machines at home registered there.  Or at least some of them :P&lt;br/&gt;&lt;br/&gt;Another one I really like is &lt;a href="http://popcon.debian.org/"&gt;Debian Popcon&lt;/a&gt; which tracks popularity of Debian packages by installs and by "votes".  Popcon is actually just a Debian package which phones home your installed package list and it is installed by default on some distros while not others.  What I like about popcon is that when there are a wide variety of F/OSS tools available, you can check the list to see which tools are ranked highest so you can at least start by trying the most used tool rather than taking a total wild guess.  For example, in looking for a &lt;a href="http://subversion.tigris.org/"&gt;SVN&lt;/a&gt; GUI tool, I did a "yum search svn" and there were a lot of hits.  So I opened up popcon, search the list top to bottom for "svn" and took the highest hit which was a GUI tool which was &lt;a href="http://rapidsvn.tigris.org/"&gt;RapidSVN&lt;/a&gt;.  Well, then I checked with &lt;a href="http://dante.thenibble.org/"&gt;Dante&lt;/a&gt; which tool he used, but lo and behold, it was RapidSVN :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/934075561374752090-7714504621814313809?l=archangel.thenibble.org' alt='' /&gt;&lt;/div&gt;</description><link>http://archangel.thenibble.org/2011/09/running-numbers.html</link><author>noreply@blogger.com (Dominic Lepiane)</author><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-934075561374752090.post-4292776866502294593</guid><pubDate>Thu, 07 Jul 2011 13:06:00 +0000</pubDate><atom:updated>2011-09-16T15:06:08.767-07:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>gparted</category><category domain='http://www.blogger.com/atom/ns#'>ubuntu</category><title>Reorganizing Ubuntu Partitions</title><description>My personal PC at home died.  It was an old PC no matter which way you look at it.   Every part had been replaced or upgraded over time (case, PSU, optical drive, hard drive, memory, CPU, mainboard, NIC, video card) so knowing it's actual age is pretty hard, but it looks like "Friday" as a PC existed for 7 years.  Checking my blog, the first reference I found was &lt;a href="http://archangel.thenibble.org/2004/10/renaming/"&gt;October 31, 2004&lt;/a&gt; indicating Friday was the new name for an old PC called Michael.&lt;br /&gt;&lt;br /&gt;Time for a new new PC.  I've reused the optical drive but everything else is new in Agnes (from &lt;a href="http://en.wikipedia.org/wiki/Immortality_%28novel%29"&gt;Immortality by Milan Kundera&lt;/a&gt;).  I did your basic "install Windows first, Ubuntu second" so pretty much just a mommy-install.  Until I realized I really hadn't made a big enough Windows partition.&lt;br /&gt;&lt;br /&gt;I figured it would be a pain, moving the first Ubuntu partition back on the drive so I backed everything up and booted from the Live CD.  "gparted" is included on the live CD and it was painless to shrink the Ubuntu partition, move it "right" and extend the Windows partition.  I didn't have to reinstall grub or do anything else, it pretty much just worked - for both OSes.  It's always so nice when things just work.&lt;br /&gt;&lt;br /&gt;But I will say, it's pretty dumb that Ubuntu doesn't use LVM.  &lt;a href="http://archangel.thenibble.org/2010/11/disk-management-with-logical-volume.html"&gt;As I have posted before&lt;/a&gt;, &lt;a href="http://archangel.thenibble.org/2011/03/flexible-storage-replication.html"&gt;LVM is very useful&lt;/a&gt;.  What would be nice is if I could have just lumped most of the free space into LVM and then just carved out an LV for home and another for media so I could grow them as needed.  Rather than fiddle too much with that though, I ended up just going with a relatively large /home partition and will just grow that as needed and then if I need space for other things - like more storage under the 'doze, I can put a partition at the end of the disk.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/934075561374752090-4292776866502294593?l=archangel.thenibble.org' alt='' /&gt;&lt;/div&gt;</description><link>http://archangel.thenibble.org/2011/07/reorganizing-ubuntu-partitions.html</link><author>noreply@blogger.com (Dominic Lepiane)</author><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-934075561374752090.post-5968326180067451095</guid><pubDate>Thu, 16 Jun 2011 12:00:00 +0000</pubDate><atom:updated>2011-09-10T11:53:01.464-07:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>ha</category><category domain='http://www.blogger.com/atom/ns#'>failover</category><category domain='http://www.blogger.com/atom/ns#'>heartbeat</category><title>Heartbeat</title><description>I recently have tested out running &lt;a href="http://www.linux-ha.org/wiki/Heartbeat"&gt;Heartbeat&lt;/a&gt; (finally, took too long to get to this, but that's another story).  This is a cluster resource manager (CRM) which polls nodes in a cluster and brings resources up when a node failure is detected.&lt;br/&gt;&lt;br/&gt;It's interesting.  I wouldn't call it elegant really, maybe the newer &lt;a href="http://www.linux-ha.org/wiki/Pacemaker"&gt;Pacemaker&lt;/a&gt; would seem cleaner.  But it is simple and at least in testing it is effective especially when combined with &lt;a href="http://www.drbd.org/"&gt;DRBD&lt;/a&gt; which I posted on &lt;a href="/2011/03/flexible-storage-replication/"&gt;earlier&lt;/a&gt;.  The thing is where DRBD really seems built for top-notch resiliency and flexibility, Heartbeat seems it will work, but it's not obvious that you'll get what you expected - maybe it's just the documentation on DRBD was really well done.&lt;br/&gt;&lt;br/&gt;At any rate, there is great documentation on getting Heartbeat up with DRBD both from the &lt;a href="http://wiki.centos.org/HowTos/Ha-Drbd"&gt;CentOS wiki&lt;/a&gt; and from &lt;a href="http://www.drbd.org/users-guide-emb/ch-heartbeat.html"&gt;DRBD&lt;/a&gt;.  I used heartbeat with drbd83 in CentOS.&lt;br/&gt;&lt;br/&gt;What Heartbeat will do is listen for heartbeats from a peer node in a cluster and if a peer goes down, it will bring up services on the working node.   There's a handful of important things about this to keep in mind.  &lt;br/&gt;&lt;br/&gt;First is the heartbeat - this is just a stand-alone network connection between two nodes so if that connection goes down or the heartbeats get choked out by competing traffic, Heartbeat may well decide you have a node failure.  This is not a trivial problem because now that Heartbeat can kill services on an active node, this is potentially an new point of failure.  And this is common to many HA configurations including DRBD itself though as we know, it will identify split-brain and gives you some recourse for repairs.  So the suggestions here are to use a dedicated connection, preferably a point-to-point connection with a cross-over cable or a serial port - and this is not uncommon for clusters (the point-to-point connection) like in this white paper for &lt;a href="http://www.microsoft.com/downloads/details.aspx?displaylang=en&amp;FamilyID=176a89cd-1250-4670-8ff0-87b1c4c711af"&gt;Microsoft Storage Server&lt;/a&gt;.&lt;br/&gt;&lt;br/&gt;Then there is the issue of resource management - when the CRM is managing the resources, the usual OS procedures should not.  If Heartbeat is in charge of bringing up MySQL, you shouldn't be starting MySQL from the init scripts when the OS boots.  Now the nice thing with DRBD is that it's behaviour is consistent with this paradigm - when DRBD resources start up, they are in "secondary" mode and cannot be accessed by the OS.  So if you have a file share protected by DRBD, Samba wouldn't be started by the OS, and likewise, that file system would be unavailable when the OS starts (by default at least).  So here, Heartbeat makes a lot of sense.  You take a 2 node cluster for example, when the nodes start up, Heartbeat looks for the peer, picks someone to become active, and then would make "primary" the DRBD resource on that peer, mount the file system, start smb.  On the stand-by node, you would both have 'smb' off and the file system would not be writeable which helps ensure consistency.&lt;br/&gt;&lt;br/&gt;I guess I could go on about Heartbeat quite a bit, but there's one last thing to mention specifically here and that's the style of cluster.  There are "R1" style clusters which are simple but limited to 2 resources (and other limitations) and then there are CRM enabled clusters which are more robust but more complicated to configure.  I have only used R1 because it was sufficient for my needs - 2 nodes, one was known "preferred", keeping cluster configuration in sync "manually" wasn't onerous.  But CRM enabled clusters are more interesting because you can add more nodes and it will distribute the cluster configuration automatically, etc.&lt;br/&gt;&lt;br/&gt;The one thing I haven't really touched on is the quorum which others who are more familiar with cluster management will be more familiar with than I.  Basically with Heartbeat in an R1 style cluster, there isn't going to be a quorum.  Your configuration is maintained pretty much manually, services are only running on one node, etc.  In CRM style Heartbeat or other application clusters, the quorum is what all the nodes agree on and typically stored in a file.  On Windows Storage Server and other clusters, the quorum is stored on the shared disk which means any problem there means the cluster fails.   With Heartbeat, the quorum file is copied among the nodes but this is susceptible to becoming out of sync like if there is a communication failure on the heartbeat channel leading to a split brain.  Or this is my limited understanding of this.  At any rate, it is a problem and it isn't trivial in working with active/active or multi-node configurations.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/934075561374752090-5968326180067451095?l=archangel.thenibble.org' alt='' /&gt;&lt;/div&gt;</description><link>http://archangel.thenibble.org/2011/06/heartbeat.html</link><author>noreply@blogger.com (Dominic Lepiane)</author><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-934075561374752090.post-7221118255076199592</guid><pubDate>Fri, 13 May 2011 14:18:00 +0000</pubDate><atom:updated>2011-09-10T11:53:01.432-07:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>openfire</category><category domain='http://www.blogger.com/atom/ns#'>jabber</category><category domain='http://www.blogger.com/atom/ns#'>cache</category><title>Cache in Openfire</title><description>In the course of troubleshooting the office Jabber server the other day, I came across some interesting info about the various caches that Openfire has.  If you log on to the admin console of your Openfire server and go to the cache summary page, you can see what the usage and effectiveness of your various caches are.  Specifically, I found that a couple caches were full - Roster and VCard.  The Roster cache was limited to 0.50MB by default it seemed and it's effectiveness was less than 20% at the time.  &lt;br/&gt;&lt;br/&gt;It is a fairly common issue and it has been discussed in the &lt;a href="http://community.igniterealtime.org/thread/44174"&gt;Ignite Realtime forums&lt;/a&gt;.  The solution posted is to set a couple system properties to override the default:&lt;br/&gt;&lt;br/&gt;cache.username2roster.size&lt;br/&gt;cache.vcardCache.size&lt;br/&gt;&lt;br/&gt;Both of these are given in bytes.  The post in that thread says to go to 5MB, I found that my Vcard cache didn't need to be much bigger than the default and the roster cache only needed 2 or 3 MB.&lt;br/&gt;&lt;br/&gt;After changing this, both cache hit rates are closer to 90%.  &lt;br/&gt;&lt;br/&gt;Our system is very small (less than a couple hundred users total), so the effect is not big on regular usage.  But well worth checking on your server as it is a quick and easy optimization.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/934075561374752090-7221118255076199592?l=archangel.thenibble.org' alt='' /&gt;&lt;/div&gt;</description><link>http://archangel.thenibble.org/2011/05/cache-in-openfire.html</link><author>noreply@blogger.com (Dominic Lepiane)</author><thr:total>1</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-934075561374752090.post-1521573338532429907</guid><pubDate>Thu, 05 May 2011 09:58:00 +0000</pubDate><atom:updated>2011-09-26T08:34:33.326-07:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>amanda</category><category domain='http://www.blogger.com/atom/ns#'>tape</category><category domain='http://www.blogger.com/atom/ns#'>backups</category><title>Again with the tapes</title><description>In a &lt;a href="http://archangel.thenibble.org/2011/01/tape-devices-for-amanda.html"&gt;previous post&lt;/a&gt; I said that to get around devices changing their numbering, it was useful to use the /dev/tape/by-id instead of the generic /dev/nst0.  Unfortunately, this is also imperfect I've just learned as the device which was previously "scsi-35000e11138aa0001-nst" this time came up as "scsi-35000e11138aa0001".  And you can guess how gracefully the software handled that (not at all).  Now I don't know if was a driver update (possible) or if the device was switched to a different SAS interface (also possible), or maybe just the gremlins.  Whatever it was, once again, I had to reconfigure the software to find the new device ID.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/934075561374752090-1521573338532429907?l=archangel.thenibble.org' alt='' /&gt;&lt;/div&gt;</description><link>http://archangel.thenibble.org/2011/05/again-with-tapes.html</link><author>noreply@blogger.com (Dominic Lepiane)</author><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-934075561374752090.post-6963419117534018106</guid><pubDate>Thu, 10 Mar 2011 21:06:00 +0000</pubDate><atom:updated>2011-09-10T11:53:01.399-07:00</atom:updated><title>Flexible Storage Replication</title><description>I have recently been looking quite a lot at different storage setups including storage replication and have been so far mostly relying on running rsync to copy a file system to an appropriate secondary host.  For large file systems - either with a lot of files or simply a lot of changing data, this is slow and resource intensive.  Not really a problem in some cases, but very problematic if you want your secondary system to have very current data.  If you want to cobble something together yourself from commodity hardware, DRBD is an excellent tool and very feature-rich.&lt;br/&gt;&lt;br/&gt;First of all, I can't recommend the &lt;a href="http://www.drbd.org/users-guide/"&gt;DRBD User Guide&lt;/a&gt; enough.  It really lays out the features and usage not just of DRBD but also some common applications you would use alongside like &lt;a href="http://www.tldp.org/HOWTO/LVM-HOWTO/index.html"&gt;LVM &lt;/a&gt; for storage management and &lt;a href="http://www.clusterlabs.org/doc/en-US/Pacemaker/1.0/html/Pacemaker_Explained/s-intro-pacemaker.html"&gt;Pacemaker &lt;/a&gt; and &lt;a href="http://www.linux-ha.org/doc/users-guide/_heartbeat_as_a_cluster_messaging_layer.html"&gt;Heartbeat &lt;/a&gt; (and others) for clustering.  &lt;br/&gt;&lt;br/&gt;What DRBD is going to do is basically copy writes to a block device over the network to a replica device - this storage set is called a "resource".  Generally, you will expect to have two nodes for each resource.  During normal operation, you will have one "Primary" node and one "Secondary" node for each resource which logically indicates that one node is writing changes to the resource while the other is making a copy.  DRBD is generally very slick in handling replication and the status of the nodes.  First of all, when you configure the resource, you specify an IP address for the replication target and generally you are going to want this to be a separate network interface from your general data plane - for example a cross-over cable for point-to-point connection between the two nodes.  If the replication path goes down, DRBD is basically going to mark at what point in time it happened and then keep track of which blocks changed since that point so when the path comes back up, it has a list of which blocks need to be transferred instead of having to resync the whole device.  That's another thing - it does the whole device sync for you too when you create the device.  And also, you get basically the same behaviour if your secondary node tanks, or if both nodes tank for that matter, or even the primary node.&lt;br/&gt;&lt;br/&gt;Unless both nodes end up in a "primary" state during some overlapping time.  So if you automatically bring up the secondary node in case of a primary failure with Pacemaker, for example, but the issue was a path failure and not a node failure, then both nodes may end up in "primary" state.  Since DRBD is tracking when communication is disrupted, it will detect this problem - a "split brain".  You get several options for manual resolution (I think automatic as well) including taking the changes of one node or the other, the node with the "most" changes, the node with the "least" changes, the oldest primary, the youngest primary... You may still be stuck losing some data - but you can keep both nodes in split brain and consolidate externally (e.g. if you have critical data like financial data where you can never drop a transaction).&lt;br/&gt;&lt;br/&gt;DRBD supports three replication "protocols" called, intuitively, A, B, and C.  "A" is asynchronous so writes to local storage device unblock after the local device finishes writing.  "B" is "semi-synchronous" which unblocks after the data has reached the peer.  And "C" which is "synchronous" so the write operation is only complete once the data is written to both devices.   I was finding that "A" and "B" got me similar speeds and "C" was slower - but this is not very rigorous testing and my replication link was 100Mbps through a shared data plane. &lt;br/&gt;&lt;br/&gt;One of the things about any of these replication options compared to rsync is that they are going to generally be much nicer on your memory.  I find that when rsync scrapes the file system, this effectively nukes the OS's disk cache such that after rsync runs, users may notice it takes a while to "warm up" again.  But, replication is not a backup - if a virus eats your files on your primary node, it will eat them on the secondary node synchronously or asynchronously - your choice.&lt;br/&gt;&lt;br/&gt;If you are using LVM (and you should be, I've &lt;a href="http://archangel.thenibble.org/2010/11/disk-management-with-logical-volume-manager-lvm/"&gt;posted about LVM&lt;/a&gt; before, so have &lt;a href="http://www.google.ca/search?q=why+use+lvm"&gt;others&lt;/a&gt;), you'll wonder whether you layer DRBD on top of LVM or vise-versa.  As &lt;a href="http://en.wikipedia.org/wiki/Chef_%28South_Park%29"&gt;Chef&lt;/a&gt; would say: Use DRBD on top of your LVs.  Dramatic over-simplification aside, it does depend on what you are doing.  If you are using LVM to carve up a pool of storage for example for virtualization and then want the storage layer to replicate your VMs, it may make more sense to create your DRBD volume from physical storage, then it will replicate the whole LVM structure to your replica node.  But there's complications like ensuring LVM will even look at DRBD devices for PVs and managing size changes, etc.  There's a time and a place for everything, and that's college.&lt;br/&gt;&lt;br/&gt;Um, what else is awesome about DRBD?  Offline initialization, "truck based replication" (a.k.a. sneakernet), replicate the node locally, ship it to the remote site, turn-up from there.  DRBD Proxy (paid feature) for when you need to buffer replication for slow or unreliable network links.  Dual-primary (for use with something like GFS) operation.  3 node operation by layering DRBD on top of DRBD.&lt;br/&gt;&lt;br/&gt;Yeah, it's cool.  It's Free and free.  You can get it stock with Fedora and CentOS (probably Ubuntu and others, but haven't tried it yet).&lt;br/&gt;&lt;br/&gt;And one last thing - you cannot mount a resource that is "Secondary".  So if you are getting crazy error messages that you can neither mount nor even fsck your file system, it's probably in Secondary - don't bang your head against the wall, just do "drbdadm primary &amp;lt;resourcename&amp;gt;".  Is clear?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/934075561374752090-6963419117534018106?l=archangel.thenibble.org' alt='' /&gt;&lt;/div&gt;</description><link>http://archangel.thenibble.org/2011/03/flexible-storage-replication.html</link><author>noreply@blogger.com (Dominic Lepiane)</author><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-934075561374752090.post-4904328610239477242</guid><pubDate>Wed, 26 Jan 2011 16:15:00 +0000</pubDate><atom:updated>2011-09-10T11:53:01.382-07:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>amanda tapes scsi</category><title>Tape Devices for Amanda</title><description>I've found a few times now that my tape server can be a bit of a pain about tape devices.  Generally, I have &lt;a href="http://www.amanda.org/"&gt;Amanda&lt;/a&gt; configured to use /dev/nst0 but the tape drive isn't always this device if I attach other devices (at least other drives).  So rather than configuring the "nst0" and then changing it to "nst1" after a few days of realizing the backups aren't working for some reason, I've started using the "tape/by-id" device instead.  So my amanda.conf now shows:&lt;br/&gt;&lt;br/&gt;&lt;pre code="bash"&gt;changerdev 	"/dev/tape/by-id/scsi-1IBM_3573-TL_00X2U78M1255_LL0"	# tape device controlled by mtx&lt;br/&gt;tapedev 	"/dev/tape/by-id/scsi-35000e11138aa0001-nst"	# the non-rewind&lt;/pre&gt;&lt;br/&gt;&lt;br/&gt;Is clear?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/934075561374752090-4904328610239477242?l=archangel.thenibble.org' alt='' /&gt;&lt;/div&gt;</description><link>http://archangel.thenibble.org/2011/01/tape-devices-for-amanda.html</link><author>noreply@blogger.com (Dominic Lepiane)</author><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-934075561374752090.post-4802986914555552188</guid><pubDate>Sat, 22 Jan 2011 08:01:00 +0000</pubDate><atom:updated>2011-09-10T11:53:01.348-07:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>alia services retired</category><title>No more mail</title><description>One more service down - no more mail.  All "real" email has been offloaded or canceled except for uro.mine.nu which has basically just been sacked.  I've closed the ports for SMTP, POP, and IMAP.  So now this is it, I'm down to just web applications that I'm hosting from home.&lt;br/&gt;&lt;br/&gt;What I'd like to do is find a dirt-cheap web-host for this stuff.  None of it is high volume - the old URO forums which is still used by some of my gamer buddies (I think - haven't checked in a while) and some personal blogs including this one, and I have a couple personal site type things up.  iweb.ca is still offering hosting for $1.67 / mo so I'd like to give them a shot.  We shall see, I'll try a couple different services over the next couple months.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/934075561374752090-4802986914555552188?l=archangel.thenibble.org' alt='' /&gt;&lt;/div&gt;</description><link>http://archangel.thenibble.org/2011/01/no-more-mail.html</link><author>noreply@blogger.com (Dominic Lepiane)</author><thr:total>1</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-934075561374752090.post-851877701454304609</guid><pubDate>Sun, 26 Dec 2010 10:31:00 +0000</pubDate><atom:updated>2011-09-10T11:53:01.311-07:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>dns</category><category domain='http://www.blogger.com/atom/ns#'>alia</category><category domain='http://www.blogger.com/atom/ns#'>bind</category><category domain='http://www.blogger.com/atom/ns#'>dd-wrt</category><title>One Less Service on Alia</title><description>Alia, the latest in the line of servers hosted at home has one less service to host today.  I've sacked the DNS service which had in the past provided primary DNS for some the public domains I had used.  However, those are all now hosted by the DNS providers.  I cleaned up the Bind configuration and closed that port so that it no longer forwards in from the Internet.&lt;br/&gt;&lt;br/&gt;The last thing it was doing was DNS for local LAN - the internal DNS to lookup the printer (mostly).  This is easily handled by &lt;a href="http://www.dd-wrt.com/wiki/index.php/DNSMasq_as_DHCP_server"&gt;DNSMasq in DD-WRT&lt;/a&gt; which is basically a tick-box to replace everything that Alia was doing for DNS.  And it automatically adds the lookups for statically configured DHCP hosts so I don't have to setup a host once on the router for DHCP and then again on Alia for DNS.&lt;br/&gt;&lt;br/&gt;At this point, it looks like Alia will be the last server I host at home.  I've offloaded Jabber and now DNS leaving SMTP and HTTP.  SMTP is almost ready to go already as there's only one personal domain for one user using that and that user may retire the domain otherwise we can move to Google Apps along with the other email.  And that will leave HTTP which, since I can get shared hosting for less than $2 a month, is an easy one to offload.  Not free, but shutting off Alia, even as an energy efficient system (low-power CPU and everything), will save just over $2 / mo in electricity consumption.&lt;br/&gt;&lt;br/&gt;So we're coming to the end of an era.  It really goes to show just how greatly improved hosted services are today and also the breadth of features you can get from consumer products for home.  To have all the trappings of a full network that is so easy to use and so cheap, it is really amazing.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/934075561374752090-851877701454304609?l=archangel.thenibble.org' alt='' /&gt;&lt;/div&gt;</description><link>http://archangel.thenibble.org/2010/12/one-less-service-on-alia.html</link><author>noreply@blogger.com (Dominic Lepiane)</author><thr:total>1</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-934075561374752090.post-2225756663649770428</guid><pubDate>Mon, 06 Dec 2010 21:08:00 +0000</pubDate><atom:updated>2011-09-10T11:53:01.296-07:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>security</category><title>Patch Your #$%^!</title><description>&lt;a href="http://www.sans.org/top-cyber-security-risks/summary.php"&gt;According to SANS&lt;/a&gt;, the top security threat right now is *drum roll* unpatched applications!  *gasp* *shock*  Yes, it's blindingly obviously, but organizations (and individuals) are downright negligent in patching desktop applications.  Applications that are highly targeted, again no surprise here, Adobe Flash, Adobe Acrobat Reader, Apple Quicktime, and Microsoft Office.  And furthermore, "On average, major organizations take at least twice as long to patch client-side vulnerabilities as they take to patch operating system vulnerabilities. In other words the highest priority risk is getting less attention than the lower priority risk."&lt;br/&gt;&lt;br/&gt;So patch your #$%^ or else Walter is going to come beat the #$%^ out of your new car while shouting "&lt;a href="http://www.imdb.com/title/tt0118715/quotes"&gt;This is what happens when you find a stranger in the Alps!&lt;/a&gt;" .&lt;br/&gt;&lt;br/&gt;Or block Flash, Acrobat Reader, and Quicktime - can't say I'd shed any tears for those apps myself ;)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/934075561374752090-2225756663649770428?l=archangel.thenibble.org' alt='' /&gt;&lt;/div&gt;</description><link>http://archangel.thenibble.org/2010/12/patch-your.html</link><author>noreply@blogger.com (Dominic Lepiane)</author><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-934075561374752090.post-3268264255561070402</guid><pubDate>Sat, 13 Nov 2010 11:31:00 +0000</pubDate><atom:updated>2011-09-10T11:53:01.262-07:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>lvm</category><category domain='http://www.blogger.com/atom/ns#'>General</category><title>Disk management with Logical Volume Manager (LVM)</title><description>There is a lot of documentation on how to use Logical Volume Manager (LVM) Online but I'd like to just go over how I've been using LVM to illustrate some of the strengths and weaknesses.&lt;br/&gt;&lt;br/&gt;The initial driving issue which made LVM a killer app was for handling large disks.  This one system had an older SCSI RAID attached which only supported 2TB drives (a limitation of 32bit LBA, I think) but the sum of the disks (14 x 300GB) was, well, bigger.  The equipment basically let me carve the array into 2TB disks.  Using LVM, I can add those Physical Volumes (PVs) to a Volume Group (VG) and create Logical Volumes (LV) of any size desired including, ultimately, the total capacity of the RAID.&lt;br/&gt;&lt;br/&gt;Another great feature of LVM is snapshots.  Generally, a snapshot means you get a temporally fixed view of the file system for special purposes while general use continues unimpeded by storing the subsequent changes separately.  So I can take a snapshot and then backup the snapshot which will assure that the filesystem (in the snapshot) is consistent from the time the backup starts to the time the backup finishes.  Snapshots can also be used as a facility to simply roll-back files to a previous state.  For example, I take a snapshot, run a test application which modifies a file, then restore that file from the snapshot to revert back.&lt;br/&gt;&lt;br/&gt;However, LVM snapshots aren't as elegant as they are on some platforms.  To create a snapshot, you must first have some unallocated space in your VG.  You then allocate that space to the "snapshot" where disk changes since the snapshot can be stored.  The bummer, man, is that this is a fixed amount of space you have to have on-hand and if it fills up, your "snapshot" device fails and if you had say a long backup running, you have to restart that backup.  Even with this limitation, however, snapshots are still pretty useful.   You can sortof figure out what the minimum size you need for a snapshot and ultimately, if you have snapshot space equal to the live system space, you're snapshot will never fill up.&lt;br/&gt;&lt;br/&gt;The last feature I'd like to rant about is Online filesystem resizing.  Now this is just absolutely great and very useful especially in concert with handling large volumes and managing snapshots.  First of all, if you have a hardware RAID controller which lets you add drives and expand existing arrays as an Online operation, LVM is the layer which will let you expand your volumes to suit.  There's two ways of doing this and first is to expand an existing block device (e.g. grow your sda from 1TB to 1.5TB) and you have to do this by modifying the partition table.  This is slightly tricky but can be done online.  The other way is by adding additional devices.  Some RAID controllers (good ones) would let you add a second "logical disk" (or "virtual disk" depending on your vendor's jargon).  If you add that additional disk, you simply initialize it as a new PV, add it to your VG and then add whatever you want to your LV.  &lt;br/&gt;&lt;br/&gt;Take the first example I had where the equipment would only allow 2TB devices.  So first, you put all your disks in an array, and because you've got a lot of disks, maybe reserve 1 as a hot spare.  So your total capacity is (14 disks - 1 hot spare - 1 for RAID-5 parity) * 300GB = 3600GB.  You carve out your first LD and it's 2TB and appears in the OS as /dev/sda.  Now generally, you should be putting a partition on your drives, to my knowledge, it's not required, but generally accepted that most disk applications will behave saner if they see a partition.  Anyhow, so you've got /dev/sda1, so you initialize it (pvcreate /dev/sda1), you create a volume group (vgcreate myvgblah /dev/sda1), and you spin out your first LV (lvcreate -l 100%FREE -n mylv myvgblah).  Hooray, you create your filesystem (mke2fs -j -L bigfs /dev/myvgblah/mylv) and mount it for regular use.  Now sometime later you fill up that 2TB and realize that there's a pile of unused space.  Well, you carve out another LD with the remaining 1.6TB which appears to the OS as /dev/sdb.  Generally, I would expect this device to just show up, no rebooting or any crap like that.  So you throw a partition on there, initialize the PV (pvcreate /dev/sdb1), add it to the existing volume group (pvextend myvgblah /dev/sdb1).  With this free space, you can either add it all (lvextend -l 100%FREE /dev/myvgblah/mylv) &lt;strong&gt;or&lt;/strong&gt; you could add it incrementally (lvextend -L +100G /dev/myvgblah/mylv) reserving free space for snapshots, additional LVs, and future growth.&lt;br/&gt;&lt;br/&gt;Very handy to have all your disks in a pool (your VG) and be able to add logical drives (LVs), snapshot your drives, and incrementally expand your drives.&lt;br/&gt;&lt;br/&gt;- Arch&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/934075561374752090-3268264255561070402?l=archangel.thenibble.org' alt='' /&gt;&lt;/div&gt;</description><link>http://archangel.thenibble.org/2010/11/disk-management-with-logical-volume.html</link><author>noreply@blogger.com (Dominic Lepiane)</author><thr:total>1</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-934075561374752090.post-7792302061421949032</guid><pubDate>Fri, 10 Sep 2010 08:40:00 +0000</pubDate><atom:updated>2011-09-10T11:53:01.246-07:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>tab mix plus</category><category domain='http://www.blogger.com/atom/ns#'>firefox</category><title>Tab Mix Plus Trick</title><description>I had been using a Firefox plugin called New Tab Jumpstart which for new tabs shows like a splash of recently used pages much like you get with Chrome.  I found that it was rarely useful and I was only using a single page from it, if anything.  So I removed that plugin and found the feature I needed in &lt;a href="https://addons.mozilla.org/en-US/firefox/addon/1122/"&gt;Tab Mix Plus&lt;/a&gt;.  You can control what appears in a new tab including a specific URL.  Since my "home page" is 3 pages, the "home page" isn't quite what I need, but a specific URL does just the trick.  &lt;br/&gt;&lt;br/&gt;So there, now I use 2 features of Tab Mix Plus, but it was already #1 in my &lt;a href="/essential-plugins/"&gt;Essential Plugins&lt;/a&gt; simply for the mouse-wheel tab scrolling.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/934075561374752090-7792302061421949032?l=archangel.thenibble.org' alt='' /&gt;&lt;/div&gt;</description><link>http://archangel.thenibble.org/2010/09/tab-mix-plus-trick.html</link><author>noreply@blogger.com (Dominic Lepiane)</author><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-934075561374752090.post-7539453870382022654</guid><pubDate>Tue, 03 Aug 2010 07:39:00 +0000</pubDate><atom:updated>2011-09-10T11:53:01.226-07:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>acl</category><category domain='http://www.blogger.com/atom/ns#'>ubuntu</category><title>Access Control Lists and Ubuntu</title><description>Basic UNIX permissions: Owner, Group, Others and each with Read, Write, Execute, plus a handful of special permissions (setuid, sticky bits, etc).  Covers 90% maybe say 99.9%, but not 100%.  Sometimes, you really just want to grant more than just the "owner", "group", "everyone" permissions so you need Access Control Lists (ACL).&lt;br/&gt;&lt;br/&gt;To get ACL support, your file system must support ACLs.  If you're using a file system created this century, it probably supports ACLs.  ACL support is usually an option for the file system which can either be set to default on (with tune2fs for example) or can be turned on at mount time with the "acl" option (e.g. in fstab).  Some distros simply default the file systems to have acl on (Fedora, RedHat EL) and others don't (Debian, Ubuntu).&lt;br/&gt;&lt;br/&gt;To view or manipluate ACLs you also need acl tools: getfacl and setfacl.  Distros usually have a package called "acl" available which provides these utilities and with the distros that have ACL defaulting on for file systems (RedHat etc), the package is pre-installed.&lt;br/&gt;&lt;br/&gt;First thing you'll want to know is how to read an ACL.  The utility "getfacl" (Get File ACL) can show you the ACL.  This is what a file looks like that doesn't have an ACL:&lt;br/&gt;&lt;br/&gt;&lt;pre lang="bash"&gt;getfacl torrentflux &lt;br/&gt;# file: torrentflux&lt;br/&gt;# owner: www-data&lt;br/&gt;# group: www-data&lt;br/&gt;# flags: -s-&lt;br/&gt;user::rwx&lt;br/&gt;group::r-x&lt;br/&gt;other::r-x&lt;/pre&gt;&lt;br/&gt;&lt;br/&gt;For files that have ACLs, you will see they have a "+" in their permissions list when using your regular ls -l and then you can view the ACL again with getfacl:&lt;br/&gt;&lt;br/&gt;&lt;pre lang="bash"&gt;$ ls -l&lt;br/&gt;drwxr-s---+  7 www-data  www-data   4096 2009-11-21 15:06 torrentflux&lt;br/&gt;&lt;br/&gt;$ getfacl torrentflux &lt;br/&gt;# file: torrentflux&lt;br/&gt;# owner: www-data&lt;br/&gt;# group: www-data&lt;br/&gt;# flags: -s-&lt;br/&gt;user::rwx&lt;br/&gt;user:archangel:r-x&lt;br/&gt;user:aandrea:r-x&lt;br/&gt;group::r-x&lt;br/&gt;mask::r-x&lt;br/&gt;other::---&lt;/pre&gt;&lt;br/&gt;&lt;br/&gt;As you can see, this is the same directory, but rather than granting global read/execute as under UNIX permissions, we've granted instead read/execute to two specific users with ACLs.  These ACLs were created with setfacl (Set File ACL):&lt;br/&gt;&lt;br/&gt;&lt;pre lang="bash"&gt;$ setfacl -m user:archangel:rx torrentflux&lt;br/&gt;$ setfacl -m user:aandrea:rx torrentflux&lt;/pre&gt;&lt;br/&gt;&lt;br/&gt;If you get some error trying to use "setfacl", it's because the file system does not have the ACL option turned on.  Add "acl" to the mount point in fstab and then remount the file system.&lt;br/&gt;&lt;br/&gt;The last handy thing you may want to know is that getfacl and setfacl can be used to dump and restore ACLs.  With getfacl, you can recursively pull all ACLs and skip files that have only base ACLs (UNIX permissions only).  This dump can then be re-applied with setfacl.  You will find this useful as not all tools that handle files handle ACLs - specifically tar.&lt;br/&gt;&lt;br/&gt;That's Access Control Lists for you.  There's no reason not to use them - they're widely supported and very useful.&lt;br/&gt;&lt;br/&gt;Enjoy!&lt;br/&gt;- Arch&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/934075561374752090-7539453870382022654?l=archangel.thenibble.org' alt='' /&gt;&lt;/div&gt;</description><link>http://archangel.thenibble.org/2010/08/access-control-lists-and-ubuntu.html</link><author>noreply@blogger.com (Dominic Lepiane)</author><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-934075561374752090.post-5030144136440240159</guid><pubDate>Sun, 01 Aug 2010 08:08:00 +0000</pubDate><atom:updated>2011-09-10T11:53:01.205-07:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>ISP</category><category domain='http://www.blogger.com/atom/ns#'>DSL</category><category domain='http://www.blogger.com/atom/ns#'>FTTH</category><title>DSL Speeds</title><description>Just came across this article on the BBC:&lt;br/&gt;&lt;br/&gt;http://www.bbc.co.uk/news/technology-10774406&lt;br/&gt;"The survey found that for DSL services advertised as being "up to" 20Mbps, only 2% of customers got speeds in the range of 14-20Mbps. Of the others, 32% were getting a 8-14Mbps service and 65%, 8Mbps or less."&lt;br/&gt;&lt;br/&gt;2% of users get 75% (or better) of advertised speeds?  That's pretty damned harsh.  That's the kind of thing that your customers ought to know up front.&lt;br/&gt;&lt;br/&gt;But that's DSL for you.  The article gives a fairly good explanation of some of the reasons why DSL sucks. What we need is fiber-to-the-home and none of this DSL crap:&lt;br/&gt;&lt;br/&gt;http://www.newswire.ca/en/releases/archive/February2010/04/c6687.html&lt;br/&gt;http://seekingalpha.com/article/197137-competition-is-starting-to-weigh-on-rogers-communications?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/934075561374752090-5030144136440240159?l=archangel.thenibble.org' alt='' /&gt;&lt;/div&gt;</description><link>http://archangel.thenibble.org/2010/08/dsl-speeds.html</link><author>noreply@blogger.com (Dominic Lepiane)</author><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-934075561374752090.post-1141310101309974235</guid><pubDate>Thu, 01 Jul 2010 13:55:00 +0000</pubDate><atom:updated>2011-09-10T11:53:01.166-07:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>upgrade</category><category domain='http://www.blogger.com/atom/ns#'>ubuntu</category><title>Upgrade from Ubuntu Server 8.04 to 10.04</title><description>Well, decided that today was the day to do the upgrade of my server, Alia, from 8.04 to 10.04.  And, since I'm able to post, you can guess that it went generally fine.&lt;br/&gt;&lt;br/&gt;It was quite brilliant really.  I just ran the following command and followed the prompts:&lt;br/&gt;&lt;br/&gt;&lt;pre lang="bash"&gt;do-release-upgrade --proposed&lt;/pre&gt;&lt;br/&gt;&lt;br/&gt;So far, everything looks good.  New kernel (2.6.32 from 2.6.24), MySQL (5.1 from 5.0), Apache, Postfix, slapd, etc etc.  The one that looks like needs some babysitting is Dovecot which requires an updated config file.&lt;br/&gt;&lt;br/&gt;Everything else worked "out of the box".  And I'd consider this system fairly customized in the sense that a wide variety of applications have been installed but where possible (and almost entirely), taken from the Ubuntu repositories.&lt;br/&gt;&lt;br/&gt;So if there's anyone else out there still waffling, do it!  Do the upgrade!&lt;br/&gt;&lt;br/&gt;- Arch&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/934075561374752090-1141310101309974235?l=archangel.thenibble.org' alt='' /&gt;&lt;/div&gt;</description><link>http://archangel.thenibble.org/2010/07/upgrade-from-ubuntu-server-804-to-1004.html</link><author>noreply@blogger.com (Dominic Lepiane)</author><thr:total>1</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-934075561374752090.post-9154468033236848998</guid><pubDate>Wed, 23 Jun 2010 15:05:00 +0000</pubDate><atom:updated>2011-09-10T11:53:01.150-07:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>groups</category><category domain='http://www.blogger.com/atom/ns#'>email</category><category domain='http://www.blogger.com/atom/ns#'>google apps</category><title>Keeping Copies of Group Emails</title><description>One of the things that's a bit ghetto of groups in Google Apps is that groups are really just a glorified &lt;a href="http://docs.hp.com/en/B2355-90685/ch04s03.html"&gt;alias file&lt;/a&gt;.  Users cannot manage their subscription, get emails delivered in batches, and there's no message archive unlike &lt;a href="http://groups.google.com/"&gt;Google Groups&lt;/a&gt; or a &lt;a href="http://www.gnu.org/software/mailman/index.html"&gt;Mailman&lt;/a&gt; managed list.  And this is the same problem with &lt;a href="http://www.microsoft.com/exchange/"&gt;Microsoft Exchange&lt;/a&gt; (at least up to 2007, probably 2010 too).  &lt;br/&gt;&lt;br/&gt;Okay, so ranting aside, here's a couple quick hacks to squeeze a couple features out of groups in GA.&lt;br/&gt;&lt;br/&gt;Archiving.  Create a mailbox, add it to the group.  Shazzam!   This is better in Exchange were you can share that mailbox easily with many users and limit them to read-only access so people aren't deleting your archive.&lt;br/&gt;&lt;br/&gt;Mailing list features.  Well, you're only answer for now is going to be to forward messages to a mailing list.  So point mylist@example.com to mylist-example-com@googlegroups.com and members should subscribe directly to the Google Group instead.&lt;br/&gt;&lt;br/&gt;Aliases.  Now this is one feature I would have preferred in the face of the above limitations of GA groups.  That is, if I've got a group called "hibuddy@example.com", I also want to have "heybuddy@example.com" and other variations.  So here, create a mailbox called "hibuddy@example.com" and rename (or create) a group called "hibuddy-group@example.com".  You can add as many aliases as you want to the mailbox, and then configure that mailbox to just forward to the group.&lt;br/&gt;&lt;br/&gt;Ciao&lt;br/&gt;- Arch&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/934075561374752090-9154468033236848998?l=archangel.thenibble.org' alt='' /&gt;&lt;/div&gt;</description><link>http://archangel.thenibble.org/2010/06/keeping-copies-of-group-emails.html</link><author>noreply@blogger.com (Dominic Lepiane)</author><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-934075561374752090.post-8294903696343129745</guid><pubDate>Wed, 12 May 2010 09:36:00 +0000</pubDate><atom:updated>2011-09-10T11:53:01.130-07:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>clonezilla</category><category domain='http://www.blogger.com/atom/ns#'>disk cloning</category><title>Clonezilla Good! Fire Bad!</title><description>&lt;a href="http://www.clonezilla.org/"&gt;Clonezilla&lt;/a&gt;, quite simply, is tha bomb.  It's really fast, very flexible, it will do everything including your laundry.&lt;br/&gt;&lt;br/&gt;You get basically two styles of cloning systems (or disks in general).  Either one at a time with the LiveCD or many at a time with a multicasting server.  I've only tried the liveCD method since I was simply doing two hosts.  And in my case, I was dealing with the 'doze which is always more of a pain than it should be. So here's what I did to clone a Windows Server 2003 install to two hosts.&lt;br/&gt;&lt;br/&gt;&lt;ol&gt;&lt;br/&gt;	&lt;li&gt;Get the Windows host installed and setup with all the desired applications but not joined to the domain&lt;/li&gt;&lt;br/&gt;	&lt;li&gt;Create an unattended install file for Sysprep (it's a quick wizard)&lt;/li&gt;&lt;br/&gt;	&lt;li&gt;SAVE THAT SYSPREP FILE (for some reason, sysprep will destroy this as incriminating evidence?)&lt;/li&gt;&lt;br/&gt;	&lt;li&gt;Sysprep the host - this will strip the Security ID (SID), computer name, and remove it from the domain (if you had it on one) and it shuts down the host&lt;/li&gt;&lt;br/&gt;	&lt;li&gt;Get the Clonezilla LiveCD and something for external storage&lt;/li&gt;&lt;br/&gt;	&lt;li&gt;Boot the sysprepped host from the liveCD&lt;/li&gt;&lt;br/&gt;	&lt;li&gt;Basically defaults all the way, it will ask what the storage media for system images is, what disk or partition to copy (I did it by partition, though you could do disk if you wanted to keep the partition info)&lt;/li&gt;&lt;br/&gt;	&lt;li&gt;It ripped a 5.4GB base server install into a ~2GB image in about 5 minutes&lt;/li&gt;&lt;br/&gt;	&lt;li&gt;Reboot, reconfigure PC with a name, join it to the domain, etc&lt;/li&gt;&lt;br/&gt;&lt;/ol&gt;&lt;br/&gt;&lt;br/&gt;Then on each target host,&lt;br/&gt;&lt;br/&gt;&lt;ol&gt;&lt;br/&gt;	&lt;li&gt;Boot from the Clonezilla LiveCD&lt;/li&gt;&lt;br/&gt;	&lt;li&gt;Attach the external storage&lt;/li&gt;&lt;br/&gt;	&lt;li&gt;Follow the wizard&lt;/li&gt;&lt;br/&gt;	&lt;li&gt;It restored the above partition for me in 2 minutes, 17 seconds&lt;/li&gt;&lt;br/&gt;	&lt;li&gt;Reboot, give the PC a name, put it in the domain, etc&lt;/li&gt;&lt;br/&gt;	&lt;li&gt;Repeat for each host you are cloning&lt;/li&gt;&lt;br/&gt;&lt;/ol&gt;&lt;br/&gt;&lt;br/&gt;The crazy thing I was finding was that "proprietary" cloning tools were hard to find.  Basically, Symantec has been buying up everyone in the field, killing the products, and then telling everyone to use Ghost which at least since when they acquired Norton and until recently, did not take offline disk copies.  Instead, you have to install the application in the OS (which you'll note with Sysprep is impossible since the host is SHUT OFF) and it does a "hot backup".  It just doesn't work for cloning at all. WTH?  &lt;br/&gt;&lt;br/&gt;But apparently, between some more sophisticated usage of sysprep and using a "clonezilla server", you could have your PCs, say in a lab, all doing PXE boot, re-imaging themselves, and picking up their name and domain information simultaneously.  Once setup, you could do a lab of, I don't know what size, but whatever the max number of clients is (presumably dozens or hundreds) in less time than it takes to get a &lt;a href="http://www.imdb.com/title/tt0387808/quotes"&gt;Starbucks&lt;/a&gt;.&lt;br/&gt;&lt;br/&gt;- Arch&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/934075561374752090-8294903696343129745?l=archangel.thenibble.org' alt='' /&gt;&lt;/div&gt;</description><link>http://archangel.thenibble.org/2010/05/clonezilla-good-fire-bad.html</link><author>noreply@blogger.com (Dominic Lepiane)</author><thr:total>0</thr:total></item></channel></rss>
