<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>theducks.org</title>
	<atom:link href="http://theducks.org/feed/" rel="self" type="application/rss+xml" />
	<link>http://theducks.org</link>
	<description>geeky rambling</description>
	<lastBuildDate>Thu, 14 Jan 2010 05:02:21 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Pick of Pics..</title>
		<link>http://theducks.org/2010/01/pick-of-pics/</link>
		<comments>http://theducks.org/2010/01/pick-of-pics/#comments</comments>
		<pubDate>Thu, 14 Jan 2010 05:02:21 +0000</pubDate>
		<dc:creator>alex</dc:creator>
				<category><![CDATA[Gibbering]]></category>

		<guid isPermaLink="false">http://theducks.org/?p=125</guid>
		<description><![CDATA[I&#8217;ve gone through my flickr photos and made up some collections of my favourite photos that I have taken. I&#8217;ve also re-uploaded in full rez any of the smaller ones. Let me know what you think? :)

Nature Scenes
Urban Landscapes
Animals
People

]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve gone through my flickr photos and made up some collections of my favourite photos that I have taken. I&#8217;ve also re-uploaded in full rez any of the smaller ones. Let me know what you think? :)</p>
<ul>
<li><a href="http://www.flickr.com/photos/theducks/sets/72157623081314881/">Nature Scenes</a></li>
<li><a href="http://www.flickr.com/photos/theducks/sets/72157623081310113/">Urban Landscapes</a></li>
<li><a href="http://www.flickr.com/photos/theducks/sets/72157623081311167/">Animals</a></li>
<li><a href="http://www.flickr.com/photos/theducks/sets/72157623202110126/">People</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://theducks.org/2010/01/pick-of-pics/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Around San Francisco</title>
		<link>http://theducks.org/2010/01/around-san-francisco/</link>
		<comments>http://theducks.org/2010/01/around-san-francisco/#comments</comments>
		<pubDate>Tue, 12 Jan 2010 04:51:54 +0000</pubDate>
		<dc:creator>alex</dc:creator>
				<category><![CDATA[Gibbering]]></category>

		<guid isPermaLink="false">http://theducks.org/2010/01/around-san-francisco/</guid>
		<description><![CDATA[



Around San Francisco

Originally uploaded by theducks


Have uploaded my photos from San Francisco. Had a good time, both being a tourist, and seeing some people I hadn&#8217;t seen for a while (including my step sister!)

California Aquarium

Alcatraz

Fisherman&#8217;s Wharf

Mixed photos of San Francisco



]]></description>
			<content:encoded><![CDATA[<div style="float: right; margin-left: 10px; margin-bottom: 10px;">
<a href="http://www.flickr.com/photos/theducks/4267468255/" title="photo sharing"><img src="http://farm5.static.flickr.com/4042/4267468255_a0c273362d_m.jpg" alt="" style="border: solid 2px #000000;" /></a><br />
<br />
<span style="font-size: 0.9em; margin-top: 0px;"><br />
<a href="http://www.flickr.com/photos/theducks/4267468255/">Around San Francisco</a><br />
<br />
Originally uploaded by <a href="http://www.flickr.com/people/theducks/">theducks</a><br />
</span>
</div>
<p>Have uploaded my photos from San Francisco. Had a good time, both being a tourist, and seeing some people I hadn&#8217;t seen for a while (including my step sister!)</p>
<ul></p>
<li><a href="http://www.flickr.com/photos/theducks/sets/72157623193110600/">California Aquarium</li>
<p></p>
<li><a href="http://www.flickr.com/photos/theducks/sets/72157623193170044/">Alcatraz</a></li>
<p></p>
<li><a href="http://www.flickr.com/photos/theducks/sets/72157623068636117/">Fisherman&#8217;s Wharf</a></li>
<p></p>
<li><a href="http://www.flickr.com/photos/theducks/sets/72157623068683681/">Mixed photos of San Francisco</a></li>
<p>
</ul>
<p><br clear="all" /></p>
]]></content:encoded>
			<wfw:commentRss>http://theducks.org/2010/01/around-san-francisco/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A homecoming planned</title>
		<link>http://theducks.org/2010/01/a-homecoming-planned/</link>
		<comments>http://theducks.org/2010/01/a-homecoming-planned/#comments</comments>
		<pubDate>Mon, 04 Jan 2010 04:35:00 +0000</pubDate>
		<dc:creator>alex</dc:creator>
				<category><![CDATA[Gibbering]]></category>
		<category><![CDATA[canada]]></category>

		<guid isPermaLink="false">http://theducks.org/2010/01/a-homecoming-planned/</guid>
		<description><![CDATA[Many moons ago, we booked tickets for Canada, leaving Perth 24 June 2009, returning 17 Feb 2010. We couldn&#8217;t book them for the exact period of time we wanted.. plans were to stick around for a year, so we thought we&#8217;d just change dates.
Well.. erm. We like it here. So we&#8217;re going to take the [...]]]></description>
			<content:encoded><![CDATA[<p>Many moons ago, we booked tickets for Canada, leaving Perth 24 June 2009, returning 17 Feb 2010. We couldn&#8217;t book them for the exact period of time we wanted.. plans were to stick around for a year, so we thought we&#8217;d just change dates.</p>
<p>Well.. erm. We like it here. So we&#8217;re going to take the tickets home, clean up some loose ends then head back here again in early/mid March, probably on a return ticket that would have us back in Perth during Christmas 2010/ NY 2011. </p>
<p>Plans for our time in Perth include dinner at Utopia (firstly probably on the 18th), then O-Day on the 19th of Feb. We&#8217;re also heading up to Karratha to visit family on the long weekend of Feb 26-Mar 1. I&#8217;ve never been there before, so that should be fun. </p>
<p>Not entirely sure where we&#8217;re going to be staying while we&#8217;re in Perth, since both of our parents are talking about renting out their homes, but eh, that&#8217;s part of the excitement :)</p>
]]></content:encoded>
			<wfw:commentRss>http://theducks.org/2010/01/a-homecoming-planned/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Qantas&#8217;s bicycle plane</title>
		<link>http://theducks.org/2010/01/qantas-bicycle-plane/</link>
		<comments>http://theducks.org/2010/01/qantas-bicycle-plane/#comments</comments>
		<pubDate>Fri, 01 Jan 2010 19:21:41 +0000</pubDate>
		<dc:creator>alex</dc:creator>
				<category><![CDATA[Gibbering]]></category>

		<guid isPermaLink="false">http://theducks.org/?p=121</guid>
		<description><![CDATA[Was going through some old digital photos (2002 :P) and came across one of a Qantas 767 with a white tail (instead of a red one). Did some reading up on it. They operated a couple of them after Ansett&#8217;s collapse in 2001. 
One in particular was frame 27909/591, built in 1995. 
Turns out this [...]]]></description>
			<content:encoded><![CDATA[<p>Was going through some old digital photos (2002 :P) and came across one of a Qantas 767 with a white tail (instead of a red one). Did some reading up on it. They operated a couple of them after Ansett&#8217;s collapse in 2001. </p>
<p>One in particular was frame <a href="http://www.airliners.net/search/photo.search?cnsearch=27909/591&#038;distinct_entry=true">27909/591</a>, built in 1995. </p>
<p>Turns out this plane gets around a bit. Since 1995, it has been operated by: </p>
<ul>
<li>Lauda Air</li>
<li>Vietnam Airlines (with Australian registration..)</li>
<li>back to Lauda</li>
<li>untitled with US reg</li>
<li>Kenya Airways (again with Australian reg)</li>
<li>Qantas</li>
<li>back to untitled with US reg</li>
<li>back to Vietnam Airlines (with Vietnam reg)</li>
<li>Air China</li>
<li>Varig</li>
<li>and now with Ethiopian Airlines</li>
</ul>
<p>I think I&#8217;d be worried about hull thickness with the number of times this has been stripped and repainted :P</p>
]]></content:encoded>
			<wfw:commentRss>http://theducks.org/2010/01/qantas-bicycle-plane/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Are you a duck?</title>
		<link>http://theducks.org/2009/12/are-you-a-duck/</link>
		<comments>http://theducks.org/2009/12/are-you-a-duck/#comments</comments>
		<pubDate>Wed, 30 Dec 2009 05:23:24 +0000</pubDate>
		<dc:creator>alex</dc:creator>
				<category><![CDATA[Gibbering]]></category>

		<guid isPermaLink="false">http://theducks.org/?p=117</guid>
		<description><![CDATA[This is a great video I came across a few months ago, and was recently reminded of.

]]></description>
			<content:encoded><![CDATA[<p>This is a great video I came across a few months ago, and was recently reminded of.</p>
<p><object width="440" height="295"><param name="movie" value="http://www.youtube.com/v/8ZWInJ4uhrU&#038;hl=en_US&#038;fs=1&#038;"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/8ZWInJ4uhrU&#038;hl=en_US&#038;fs=1&#038;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="440" height="295"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://theducks.org/2009/12/are-you-a-duck/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Canadian Working Holiday for Australians</title>
		<link>http://theducks.org/2009/12/canadian-working-holiday-for-australians/</link>
		<comments>http://theducks.org/2009/12/canadian-working-holiday-for-australians/#comments</comments>
		<pubDate>Mon, 14 Dec 2009 00:57:12 +0000</pubDate>
		<dc:creator>alex</dc:creator>
				<category><![CDATA[Gibbering]]></category>
		<category><![CDATA[canada]]></category>

		<guid isPermaLink="false">http://theducks.org/?p=113</guid>
		<description><![CDATA[It occurs to me that this may be of interest to some people. My wife Elizabeth and I are currently in Canada on a working holiday, and have been for the last 6 months. Much like in Australia, I&#8217;m currently working in IT for a University, which is a lot of fun and gives me [...]]]></description>
			<content:encoded><![CDATA[<p>It occurs to me that this may be of interest to some people. My wife Elizabeth and I are currently in Canada on a working holiday, and have been for the last 6 months. Much like in Australia, I&#8217;m currently working in IT for a University, which is a lot of fun and gives me fun toys to play with. Elizabeth was working for a software company, but they&#8217;ve moved out of town, so she&#8217;s on.. erm.. home duties right now.</p>
<p>If you&#8217;re someone from the Internet, or someone I know, and interested in doing a working holiday in either Australia or Canada, feel free to email me &#8211; whp@splash.theducks.rog (correct the typo) and I&#8217;m happy to answer any questions you might have.</p>
<p>The basic process:</p>
<ul>
<li>Apply for WHP Visa via http://www.whpcanada.org.au</li>
<li>Once approved, book plane tickets</li>
<li>Sell/store/give away all of your stuff</li>
<li>Tidy up paperwork for things at home (Power bills, car rego, etc)</li>
<li>Start looking for a job in Canada</li>
<li>Book initial accommodation</li>
<li>Make your way to Canada, with proof you have $4000 to support yourself. We weren&#8217;t asked, but you might be. We took a C$5000 bank draft from our Australian bank to a Canadian bank plus bank statements</li>
<li>As soon as you get there, sort out an address to get things posted to</li>
<li>Apply for Social Insurance Number + Card. This gives a piece of government notarised paper with your address on. They mail out the card in a week or two</li>
<li>Open bank account</li>
<li>Get a cellphone account (you can use a Canadian SIM in an unlocked Australian phone)</li>
<li>Get job, get paid</li>
<li>Optional steps: Get driver&#8217;s licence by passing a knowledge test, then a practical driving test. Easy hints &#8211; cyclists are assumed to be insane (and are), and the yellow line down the middle of the road means it&#8217;s 50km/hour limit)</li>
<li>Have fun!</li>
</ul>
<p>Some things to know about banking in Canada as a newcomer</p>
<ul>
<li>If your Australian bank card has a Cirrus or Maestro logo on it, you can use it in an Canadian bank machine (they call ATMs ABMs &#8211; Automatic Bank Machine). You should assume you will be doing this for about a month, even if you get a job</li>
<li>Some banks, I&#8217;m looking at you HSBC, won&#8217;t give you an account if you don&#8217;t have a job (or if you didn&#8217;t have an account with them in another country).</li>
<li>Best bet is probably the one your Australian bank drew the draft on. Deposit the bank draft, and some cash withdrawn from your Australian card to cover bank fees</li>
<li>Most banks will also put a 7 day quarantine on your account for the first month, meaning it takes 7 days for any deposits to be validated</li>
<li>Most banks in Canada don&#8217;t personalise Automated Bank Machine (ABM) cards, so you&#8217;ll probably get one of those straight away. As well as some more official looking paperwork with your name + address on them.</li>
<li>You might even get a few counter cheques, but of course, don&#8217;t use them until your draft has cleared, or until you start getting paid and your pay has cleared.</li>
<li>Once you&#8217;ve had a job for about a month, and two pay cheques, there&#8217;s a good chance you could apply for a Canadian credit card, which is helpful for paying bills over the phone, etc</li>
<li>If you&#8217;re not sharing a house with a Canadian, you will probably need a cheque book ($30-40) for rent, bill payments etc. In comparison to the Australian BSB/Account details to enable easy peer-to-peer transfers into accounts only, the equivalent numbers for Canadian accounts allow withdrawals, so aren&#8217;t used much</li>
</ul>
<p>Some things about applying for jobs in Canada:</p>
<ul>
<li>Canadian employers are required to say &#8220;Canadians and permanent residents of Canada will be given priority&#8221;. My understanding is that generally they mean it.</li>
<li>So unless you have a pre-arranged job, or a reasonable amount of experience, or prepared to work for minimum wage ($8/hour in BC) maybe this isn&#8217;t the place to come.</li>
<li>For more professionally oriented jobs, instead of addressing selection criteria specifically, you cover it more generally in a cover letter</li>
</ul>
<p>I&#8217;ll update this post as I think of more to include&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://theducks.org/2009/12/canadian-working-holiday-for-australians/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Moonrise</title>
		<link>http://theducks.org/2009/12/moonrise/</link>
		<comments>http://theducks.org/2009/12/moonrise/#comments</comments>
		<pubDate>Wed, 02 Dec 2009 04:19:54 +0000</pubDate>
		<dc:creator>alex</dc:creator>
				<category><![CDATA[Gibbering]]></category>

		<guid isPermaLink="false">http://theducks.org/2009/12/moonrise/</guid>
		<description><![CDATA[



Moonrise

Originally uploaded by theducks



]]></description>
			<content:encoded><![CDATA[<div style="float: right; margin-left: 10px; margin-bottom: 10px;">
<a href="http://www.flickr.com/photos/theducks/4151503543/" title="photo sharing"><img src="http://farm3.static.flickr.com/2615/4151503543_695bbf46e3_m.jpg" alt="" style="border: solid 2px #000000;" /></a><br />
<br />
<span style="font-size: 0.9em; margin-top: 0px;"><br />
<a href="http://www.flickr.com/photos/theducks/4151503543/">Moonrise</a><br />
<br />
Originally uploaded by <a href="http://www.flickr.com/people/theducks/">theducks</a><br />
</span>
</div>
<p><br clear="all" /></p>
]]></content:encoded>
			<wfw:commentRss>http://theducks.org/2009/12/moonrise/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Boeing Tour</title>
		<link>http://theducks.org/2009/11/boeing-tour/</link>
		<comments>http://theducks.org/2009/11/boeing-tour/#comments</comments>
		<pubDate>Tue, 01 Dec 2009 04:18:24 +0000</pubDate>
		<dc:creator>alex</dc:creator>
				<category><![CDATA[Gibbering]]></category>

		<guid isPermaLink="false">http://theducks.org/?p=109</guid>
		<description><![CDATA[A preface.. a week or two ago, Boeing rolled out the first 787-8f. I wasn&#8217;t a fan of the livery, and said so on twitter. The twitter rep for Boeing&#8217;s Future of Flight noticed this, and invited me down to have a look at it in person, and take the tour of the factory, for [...]]]></description>
			<content:encoded><![CDATA[<p>A preface.. a week or two ago, Boeing rolled out the first 787-8f. I wasn&#8217;t a fan of the livery, and said so on twitter. The twitter rep for Boeing&#8217;s Future of Flight noticed this, and invited me down to have a look at it in person, and take the tour of the factory, for free *Squee* :D</p>
<p>So we rented a car, and  and her parents and I headed off down there.</p>
<p>Well, back up a second. I rented a <a href="http://www.flickr.com/photos/theducks/4136991967/">Red, 3.5L V6 Dodge Charger</a>. It was a freakin&#8217; awesome car, with only 2400kms on the clock (we did another 380kms). Shame it was raining most of the day. Second hand prices aren&#8217;t too bad either. Hmm! :D</p>
<p>I went on the tour in 1999 with my mum, but I didn&#8217;t have the plane-nerd background I do now, so I knew this was going to be different. Also, we almost got crashed into in a high speed car chase back in 1999, which fortunately didn&#8217;t happen this time. The whole concept of being able to drive to another country for a day trip is cool. Back in 1999, they had a small shop in the middle of a parking lot. They now have a huge exhibition center + store. The exhibition center has all sorts of cool stuff to walk up to and touch and feel, such as a 747 tail, GE90 engine, a 787 carbon fibre re-enforced plastic section 41-43 or so and a 727 cockpit.</p>
<p>The tour starts in the 747 assembly hall, where they were making line number 2 &#8211; 6 of the 747-8f. I was reminded once again just how amazingly complex building a plane is. And that building is something else.. it&#8217;s huge, and contains a mix of offices and assembly areas and cafeterias. I&#8217;d kind of like to work there, much in the same way that as a concept, working in an Apple store would be cool. You then hop back in the bus and go onto the 777/787 production area. Also interesting to see.</p>
<p>All up on the tour, I saw:</p>
<ul>
<li><a href="http://www.flickr.com/photos/theducks/4137008627/sizes/o/">N787EX</a> &#8211; First 787 (as well as the next 12 or so in production)</li>
<li><a href="http://www.flickr.com/photos/theducks/4137008303/sizes/o/">N7808A</a> &#8211; First 747 Dreamlifter</li>
<li>N747EX &#8211; First 747-8f (as well as the next 6 in various stages of production)</li>
<li>A6-ECX &#8211; New 777-300 delivery flight for Emirates</li>
<li>.. and some other stuff</li>
</ul>
<p>So I&#8217;ve now seen the first 737, 747, 757 and 787. The first 727 is also at the Paine Field Airport, but I didn&#8217;t see it. Eventually I&#8217;ll see it and the first 707..</p>
<p>All up, good fun. Thanks so much to Sandy for the invite :)</p>
]]></content:encoded>
			<wfw:commentRss>http://theducks.org/2009/11/boeing-tour/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Expanding LVM Partitions in VMware, on the fly</title>
		<link>http://theducks.org/2009/11/expanding-lvm-partitions-in-vmware-on-the-fly/</link>
		<comments>http://theducks.org/2009/11/expanding-lvm-partitions-in-vmware-on-the-fly/#comments</comments>
		<pubDate>Mon, 16 Nov 2009 23:16:40 +0000</pubDate>
		<dc:creator>alex</dc:creator>
				<category><![CDATA[Gibbering]]></category>

		<guid isPermaLink="false">http://theducks.org/?p=103</guid>
		<description><![CDATA[In my previous post on the subject, I expanded Filesystems on LVM without rebooting, by adding more partitions. As pointed out by Zanchey, there is a much cleaner way to do this, by just resizing existing partitions being used by LVM.
# fdisk /dev/sda
The number of cylinders for this disk is set to 9790.
There is nothing [...]]]></description>
			<content:encoded><![CDATA[<p>In my <a href="http://theducks.org/2009/11/expanding-lvm-on-boot-disk-under-vmware-3-5-without-rebooting/">previous post</a> on the subject, I expanded Filesystems on LVM without rebooting, by adding more partitions. As pointed out by Zanchey, there is a much cleaner way to do this, by just resizing existing partitions being used by LVM.</p>
<p><code># <strong>fdisk /dev/sda</strong></p>
<p>The number of cylinders for this disk is set to 9790.<br />
There is nothing wrong with that, but this is larger than 1024,<br />
and could in certain setups cause problems with:<br />
1) software that runs at boot time (e.g., old versions of LILO)<br />
2) booting and partitioning software from other OSs<br />
   (e.g., DOS FDISK, OS/2 FDISK)</p>
<p>Command (m for help): <strong>p</strong></p>
<p>Disk /dev/sda: <strong>80.5 GB</strong>, 80530636800 bytes<br />
255 heads, 63 sectors/track, 9790 cylinders<br />
Units = cylinders of 16065 * 512 = 8225280 bytes</p>
<p>   Device Boot      Start         End      Blocks   Id  System<br />
/dev/sda1   *           1          14      104391   83  Linux<br />
Partition 1 does not end on cylinder boundary.<br />
/dev/sda2              14        4178    33450007+  8e  Linux LVM<br />
/dev/sda3            4178        8354    33549073+  8e  Linux LVM<br />
/dev/sda4            <strong>8355        9137</strong>     6289447+  8e  Linux LVM</p>
<p>Command (m for help):<strong> q</strong></p>
<p><strong>###<br />
### Extend the VMDK in vCenter<br />
###</strong></p>
<p># <strong>fdisk /dev/sda</strong></p>
<p>The number of cylinders for this disk is set to 9790.<br />
There is nothing wrong with that, but this is larger than 1024,<br />
and could in certain setups cause problems with:<br />
1) software that runs at boot time (e.g., old versions of LILO)<br />
2) booting and partitioning software from other OSs<br />
   (e.g., DOS FDISK, OS/2 FDISK)</p>
<p>Command (m for help): <strong>p</strong></p>
<p>Disk /dev/sda: <strong>80.5 GB</strong>, 80530636800 bytes<br />
255 heads, 63 sectors/track, 9790 cylinders<br />
Units = cylinders of 16065 * 512 = 8225280 bytes</p>
<p>   Device Boot      Start         End      Blocks   Id  System<br />
/dev/sda1   *           1          14      104391   83  Linux<br />
Partition 1 does not end on cylinder boundary.<br />
/dev/sda2              14        4178    33450007+  8e  Linux LVM<br />
/dev/sda3            4178        8354    33549073+  8e  Linux LVM<br />
/dev/sda4            8355        9137     6289447+  8e  Linux LVM</p>
<p>Command (m for help): <strong>q</strong></p>
<p><strong>###<br />
### Whuuuuuut? I can't see the extra space!<br />
###</strong></p>
<p># <strong>echo '1' > /sys/class/scsi_disk/0\:0\:0\:0/device/rescan</strong></p>
<p><strong>###<br />
### Rescan device geometry<br />
###</strong></p>
<p># <strong>fdisk /dev/sda</strong></p>
<p>The number of cylinders for this disk is set to 11096.<br />
There is nothing wrong with that, but this is larger than 1024,<br />
and could in certain setups cause problems with:<br />
1) software that runs at boot time (e.g., old versions of LILO)<br />
2) booting and partitioning software from other OSs<br />
   (e.g., DOS FDISK, OS/2 FDISK)</p>
<p>Command (m for help): <strong>p</strong></p>
<p>Disk /dev/sda: <strong>91.2 GB</strong>, 91268055040 bytes<br />
255 heads, 63 sectors/track, 11096 cylinders<br />
Units = cylinders of 16065 * 512 = 8225280 bytes</p>
<p>   Device Boot      Start         End      Blocks   Id  System<br />
/dev/sda1   *           1          14      104391   83  Linux<br />
Partition 1 does not end on cylinder boundary.<br />
/dev/sda2              14        4178    33450007+  8e  Linux LVM<br />
/dev/sda3            4178        8354    33549073+  8e  Linux LVM<br />
/dev/sda4            8355        9137     6289447+  8e  Linux LVM</p>
<p><strong>###<br />
### Ok, that's much better.<br />
###</strong></p>
<p>Command (m for help): <strong>d</strong><br />
Partition number (1-4): <strong>4</strong></p>
<p><strong>###<br />
### Delete partition 4<br />
###</strong></p>
<p>Command (m for help): <strong>n</strong><br />
Command action<br />
   e   extended<br />
   p   primary partition (1-4)<br />
<strong>p</strong><br />
Selected partition 4</p>
<p><strong>###<br />
### Now recreate it, so it starts in the same place, and ends at the end of the disk<br />
###</strong></p>
<p>First cylinder (8355-11096, default 8355):<br />
Using default value 8355<br />
Last cylinder or +size or +sizeM or +sizeK (8355-11096, default 11096):<br />
Using default value 11096</p>
<p>Command (m for help): <strong>t</strong><br />
Partition number (1-4): <strong>4</strong><br />
Hex code (type L to list codes): <strong>8e</strong><br />
Changed system type of partition 4 to 8e (Linux LVM)</p>
<p><strong>###<br />
### Remember to change the partition type of Linux LVM. Or you'll be in trouble.<br />
###</strong></p>
<p>Command (m for help): <strong>p</strong></p>
<p>Disk /dev/sda: 91.2 GB, 91268055040 bytes<br />
255 heads, 63 sectors/track, 11096 cylinders<br />
Units = cylinders of 16065 * 512 = 8225280 bytes</p>
<p>   Device Boot      Start         End      Blocks   Id  System<br />
/dev/sda1   *           1          14      104391   83  Linux<br />
Partition 1 does not end on cylinder boundary.<br />
/dev/sda2              14        4178    33450007+  8e  Linux LVM<br />
/dev/sda3            4178        8354    33549073+  8e  Linux LVM<br />
/dev/sda4           <strong> 8355       11096</strong>    22025115   8e  Linux LVM</p>
<p>Command (m for help): <strong>w</strong><br />
The partition table has been altered!</p>
<p><strong>###<br />
### Write to disk and away we go<br />
###</strong></p>
<p>Calling ioctl() to re-read partition table.</p>
<p>WARNING: Re-reading the partition table failed with error 16: Device or resource busy.<br />
The kernel still uses the old table.<br />
The new table will be used at the next reboot.<br />
Syncing disks.<br />
# <strong>partprobe -s</strong><br />
/dev/sda: msdos partitions 1 2 3 4</p>
<p><strong>###<br />
### Reprobe partition table<br />
###</strong></p>
<p># <strong>pvresize /dev/sda4</strong><br />
  Physical volume "/dev/sda4" changed<br />
  <strong>1 physical volume(s) resized</strong> / 0 physical volume(s) not resized</p>
<p><strong>###<br />
### Resize the "filesystem" of the LVM partition we've just extended in fdisk,<br />
### Think of this kind of like resize2fs for LVM, but we'll still have to do that on the logical disks later<br />
###  </strong></p>
<p># <strong>vgdisplay</strong><br />
  --- Volume group ---<br />
  VG Name               VGroot<br />
  System ID<br />
  Format                lvm2<br />
  Metadata Areas        3<br />
  Metadata Sequence No  8<br />
  VG Access             read/write<br />
  VG Status             resizable<br />
  MAX LV                0<br />
  Cur LV                3<br />
  Open LV               2<br />
  Max PV                0<br />
  Cur PV                3<br />
  Act PV                3<br />
  VG Size               84.84 GB<br />
  PE Size               32.00 MB<br />
  Total PE              2715<br />
  Alloc PE / Size       1660 / 51.88 GB<br />
  Free  PE / Size       1055 / 32.97 GB<br />
  VG UUID               tSuI0o-Z3mu-mldY-n4pS-qfSZ-g5UP-tXPZlR</p>
<p><strong>###<br />
### Confirm we can now see the extra space in the LVM group<br />
###</strong></p>
<p># <strong>lvdisplay</strong><br />
  --- Logical volume ---<br />
  LV Name                /dev/VGroot/LVroot<br />
  VG Name                VGroot<br />
  LV UUID                HYQp9x-yA5H-RLJw-f033-pmEY-Lohg-loRhXa<br />
  LV Write Access        read/write<br />
  LV Status              available<br />
  # open                 1<br />
  LV Size                7.88 GB<br />
  Current LE             252<br />
  Segments               1<br />
  Allocation             inherit<br />
  Read ahead sectors     auto<br />
  - currently set to     256<br />
  Block device           253:0</p>
<p>  --- Logical volume ---<br />
  LV Name                /dev/VGroot/LVswap<br />
  VG Name                VGroot<br />
  LV UUID                ZXCxs3-nZd4-jR5S-mkCf-zTJP-yVgp-dpq7Mg<br />
  LV Write Access        read/write<br />
  LV Status              available<br />
  # open                 1<br />
  LV Size                4.00 GB<br />
  Current LE             128<br />
  Segments               1<br />
  Allocation             inherit<br />
  Read ahead sectors     auto<br />
  - currently set to     256<br />
  Block device           253:1</p>
<p>  --- Logical volume ---<br />
  LV Name                /dev/VGroot/LVut01<br />
  VG Name                VGroot<br />
  LV UUID                VUv17I-QbdC-pkyr-bE25-f4MC-gLXq-2QKGr0<br />
  LV Write Access        read/write<br />
  LV Status              available<br />
  # open                 1<br />
  LV Size                40.00 GB<br />
  Current LE             1280<br />
  Segments               2<br />
  Allocation             inherit<br />
  Read ahead sectors     auto<br />
  - currently set to     256<br />
  Block device           253:2</p>
<p><strong>###<br />
### Confirm how big our logical volumes are within our LVM pool<br />
###</strong></p>
<p># <strong>df -h</strong><br />
Filesystem            Size  Used Avail Use% Mounted on<br />
/dev/mapper/VGroot-LVroot<br />
                      7.7G  3.3G  4.0G  45% /<br />
/dev/sda1              99M   24M   71M  26% /boot<br />
tmpfs                1014M     0 1014M   0% /dev/shm<br />
/dev/mapper/VGroot-LVut01<br />
                       40G  177M   38G   1% /ut01</p>
<p><strong>###<br />
### Confirm amount of space seen on filesystems within the LVM Logical Volumes<br />
###</strong></p>
<p># <strong>lvextend -L+5G /dev/VGroot/LVut01</strong><br />
  Extending logical volume LVut01 to 45.00 GB<br />
  Logical volume LVut01 successfully resized</p>
<p><strong>###<br />
### Added 5Gb onto our Logical Volume, LVut01<br />
###</strong></p>
<p># <strong>lvdisplay</strong><br />
  --- Logical volume ---<br />
  LV Name                /dev/VGroot/LVroot<br />
  VG Name                VGroot<br />
  LV UUID                HYQp9x-yA5H-RLJw-f033-pmEY-Lohg-loRhXa<br />
  LV Write Access        read/write<br />
  LV Status              available<br />
  # open                 1<br />
  LV Size                7.88 GB<br />
  Current LE             252<br />
  Segments               1<br />
  Allocation             inherit<br />
  Read ahead sectors     auto<br />
  - currently set to     256<br />
  Block device           253:0</p>
<p>  --- Logical volume ---<br />
  LV Name                /dev/VGroot/LVswap<br />
  VG Name                VGroot<br />
  LV UUID                ZXCxs3-nZd4-jR5S-mkCf-zTJP-yVgp-dpq7Mg<br />
  LV Write Access        read/write<br />
  LV Status              available<br />
  # open                 1<br />
  LV Size                4.00 GB<br />
  Current LE             128<br />
  Segments               1<br />
  Allocation             inherit<br />
  Read ahead sectors     auto<br />
  - currently set to     256<br />
  Block device           253:1</p>
<p>  --- Logical volume ---<br />
  LV Name                /dev/VGroot/LVut01<br />
  VG Name                VGroot<br />
  LV UUID                VUv17I-QbdC-pkyr-bE25-f4MC-gLXq-2QKGr0<br />
  LV Write Access        read/write<br />
  LV Status              available<br />
  # open                 1<br />
  LV Size                45.00 GB<br />
  Current LE             1440<br />
  Segments               2<br />
  Allocation             inherit<br />
  Read ahead sectors     auto<br />
  - currently set to     256<br />
  Block device           253:2</p>
<p># <strong>df -h</strong><br />
Filesystem            Size  Used Avail Use% Mounted on<br />
/dev/mapper/VGroot-LVroot<br />
                      7.7G  3.3G  4.0G  45% /<br />
/dev/sda1              99M   24M   71M  26% /boot<br />
tmpfs                1014M     0 1014M   0% /dev/shm<br />
/dev/mapper/VGroot-LVut01<br />
                       40G  177M   38G   1% /ut01</p>
<p><strong>###<br />
### So the space is added to the Logical Volume, but the filesystem in the logical volume is not extended<br />
###</strong></p>
<p># <strong>resize2fs /dev/VGroot/LVut01</strong><br />
resize2fs 1.39 (29-May-2006)<br />
Filesystem at /dev/VGroot/LVut01 is mounted on /ut01; on-line resizing required<br />
Performing an on-line resize of /dev/VGroot/LVut01 to 11796480 (4k) blocks.<br />
The filesystem on /dev/VGroot/LVut01 is now 11796480 blocks long.</p>
<p># <strong>df -h</strong><br />
Filesystem            Size  Used Avail Use% Mounted on<br />
/dev/mapper/VGroot-LVroot<br />
                      7.7G  3.3G  4.0G  45% /<br />
/dev/sda1              99M   24M   71M  26% /boot<br />
tmpfs                1014M     0 1014M   0% /dev/shm<br />
/dev/mapper/VGroot-LVut01<br />
                       45G  181M   42G   1% /ut01</p>
<p><strong>###<br />
### TADA! All done.<br />
###</strong></code></p>
<p>This will also work if your root filesystems (&#8220;/&#8221;) is on LVM, since most of the important stuff is loaded into memory.</p>
]]></content:encoded>
			<wfw:commentRss>http://theducks.org/2009/11/expanding-lvm-partitions-in-vmware-on-the-fly/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Expanding LVM on Boot disk under VMWare 3.5 without rebooting</title>
		<link>http://theducks.org/2009/11/expanding-lvm-on-boot-disk-under-vmware-3-5-without-rebooting/</link>
		<comments>http://theducks.org/2009/11/expanding-lvm-on-boot-disk-under-vmware-3-5-without-rebooting/#comments</comments>
		<pubDate>Sat, 14 Nov 2009 01:17:18 +0000</pubDate>
		<dc:creator>alex</dc:creator>
				<category><![CDATA[Gibbering]]></category>

		<guid isPermaLink="false">http://theducks.org/?p=99</guid>
		<description><![CDATA[Edit 2009-11-16: Use these instructions instead &#8211; much cleaner way of doing it
In my day job, I help look after a pretty big VMware cluster (20 blades running 350+ servers, mix of Linux and Windows). On Linux, we use LVM for flexibility. 
Conventional wisdom on the subject of growing seems to have said that after [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Edit 2009-11-16: Use <a href="http://theducks.org/2009/11/expanding-lvm-partitions-in-vmware-on-the-fly/">these instructions instead</a> &#8211; much cleaner way of doing it</strong></p>
<p>In my day job, I help look after a pretty big VMware cluster (20 blades running 350+ servers, mix of Linux and Windows). On Linux, we use LVM for flexibility. </p>
<p>Conventional wisdom on the subject of growing seems to have said that after resizing your virtual disk, you had to reboot to see the extra space. This is probably not a bad idea, but sometimes you&#8217;re just a bit too impatient for that. Or I am anyway.</p>
<p>Let&#8217;s follow this through our layers of misdirection between the actual filesystem people can store files on, and the physical disks underneath it.</p>
<p>At the lowest level, we run a NetApp filer pair (well, several) with spinning disks, assembled into aggregates, then split into raid sets, then presented as virtual file systems over NFS to our VMware ESX boxes. Virtual Center stores the vmdks associated with VMs on there. These virtual file systems automatically grow, waffle, backup, etc, transparent to the VMs. It&#8217;s very cool.</p>
<p>Ok, growing the file system. The first step is to grow the size of the virtual disk in vCenter (Edit Settings -> Hard Drive 1 -> Resize). Wait for that to finish.</p>
<p>On your Linux VM, rescan the SCSI device:</p>
<p><code># echo 1 &gt; /sys/class/scsi_device/0\:0\:0\:0/device/rescan<br />
</code></p>
<p>Run fdisk, and verify that the disk is now seen as its new size:<br />
<code><br />
# fdisk /dev/sda</p>
<p>The number of cylinders for this disk is set to 9137.<br />
There is nothing wrong with that, but this is larger than 1024,<br />
and could in certain setups cause problems with:<br />
1) software that runs at boot time (e.g., old versions of LILO)<br />
2) booting and partitioning software from other OSs<br />
   (e.g., DOS FDISK, OS/2 FDISK)</p>
<p>Command (m for help): p</p>
<p>Disk /dev/sda: 75.1 GB, 75161927680 bytes<br />
255 heads, 63 sectors/track, 9137 cylinders<br />
Units = cylinders of 16065 * 512 = 8225280 bytes</p>
<p>   Device Boot      Start         End      Blocks   Id  System<br />
/dev/sda1   *           1          14      104391   83  Linux<br />
Partition 1 does not end on cylinder boundary.<br />
/dev/sda2              14        4178    33450007+  8e  Linux LVM<br />
/dev/sda3            4178        8354    33549073+  8e  Linux LVM<br />
</code></p>
<p>Create your new LVM partition in the free space:</p>
<p><code><br />
Command (m for help): n<br />
Command action<br />
   e   extended<br />
   p   primary partition (1-4)<br />
p<br />
Selected partition 4<br />
First cylinder (8355-9137, default 8355):<br />
Using default value 8355<br />
Last cylinder or +size or +sizeM or +sizeK (8355-9137, default 9137):<br />
Using default value 9137</p>
<p>Command (m for help): t<br />
Partition number (1-4): 4<br />
Hex code (type L to list codes): 8e</p>
<p></code></p>
<p>Print out the partition table (p) then write to disk (w) and exit (q).</p>
<p>FDISK will ominously warn:</p>
<p><code>WARNING: Re-reading the partition table failed with error 16: Device or resource busy.<br />
The kernel still uses the old table.<br />
The new table will be used at the next reboot.<br />
Syncing disks.<br />
</code></p>
<p>And if you try to use this new partition, it won&#8217;t be seen.</p>
<p><code><br />
# pvcreate /dev/sda4<br />
  Device /dev/sda4 not found (or ignored by filtering).<br />
</code></p>
<p><strong>The step that every one of the otherwise fine sets of instructions I found online missed out was to rescan the partition table again:</p>
<p><code><br />
# partprobe -s<br />
/dev/sda: msdos partitions 1 2 3 4<br />
</code></strong></p>
<p>And it works!</p>
<p><code><br />
# pvcreate /dev/sda4<br />
  Physical volume "/dev/sda4" successfully created<br />
</code></p>
<p>And we can extend onto it.. </p>
<p><code><br />
# vgextend -v VGroot /dev/sda4<br />
    Checking for volume group "VGroot"<br />
    Archiving volume group "VGroot" metadata (seqno 6).<br />
    Wiping cache of LVM-capable devices<br />
    Adding physical volume '/dev/sda4' to volume group 'VGroot'<br />
    Volume group "VGroot" will be extended by 1 new physical volumes<br />
    Creating volume group backup "/etc/lvm/backup/VGroot" (seqno 7).<br />
  Volume group "VGroot" successfully extended<br />
</code></p>
<p>And create new filesystems, resize filesystems into it, etc. So there you go.</p>
]]></content:encoded>
			<wfw:commentRss>http://theducks.org/2009/11/expanding-lvm-on-boot-disk-under-vmware-3-5-without-rebooting/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
