<?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>Earl C. Ruby III</title>
	<atom:link href="http://earlruby.org/feed/" rel="self" type="application/rss+xml" />
	<link>http://earlruby.org</link>
	<description>this must be the place</description>
	<lastBuildDate>Tue, 01 May 2012 02:56:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Getting rid of self-resizing windows in Ubuntu Linux 12.04</title>
		<link>http://earlruby.org/2012/04/getting-rid-of-self-resizing-windows-in-ubuntu-linux-12-04/</link>
		<comments>http://earlruby.org/2012/04/getting-rid-of-self-resizing-windows-in-ubuntu-linux-12-04/#comments</comments>
		<pubDate>Wed, 25 Apr 2012 17:31:57 +0000</pubDate>
		<dc:creator>Earl Ruby</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Compiz]]></category>
		<category><![CDATA[Gnome]]></category>
		<category><![CDATA[KDE]]></category>
		<category><![CDATA[Precise Pangolin]]></category>
		<category><![CDATA[Snap to Grid]]></category>
		<category><![CDATA[Snappy]]></category>
		<category><![CDATA[Snappy Windows]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[Ubuntu 12.04]]></category>
		<category><![CDATA[Unity]]></category>

		<guid isPermaLink="false">http://earlruby.org/?p=299</guid>
		<description><![CDATA[I&#8217;ve been using a pre-release &#8220;daily build&#8221; installation of Ubuntu 12.04 &#8220;Precise Pangolin&#8221; and noticed that current default for Gnome is for windows to resize themselves when you get close to the edge of the screen. I have two 22&#8243; widescreen monitors and if I moved a window near the top edge it would maximize [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been using a <a title="Download Ubuntu 12.04 Precise Pangolin" href="http://cdimage.ubuntu.com/daily/current/">pre-release &#8220;daily build&#8221; installation of Ubuntu 12.04 &#8220;Precise Pangolin&#8221;</a> and noticed that current default for Gnome is for windows to resize themselves when you get close to the edge of the screen. I have two 22&#8243; widescreen monitors and if I moved a window near the top edge it would maximize and fill the screen. If I moved a window to any edge Gnome would decide for me that what I &#8220;really&#8221; wanted was to enlarge the window to fill half the screen or do something else equally annoying. This might work well on a 10&#8243; netbook screen, but on dual 22&#8243; monitors it&#8217;s annoying as hell.</p>
<p>I tracked the problem down to a setting in Compiz, the screen compositing tool used by many <a title="Comparison of X Window System desktop environments" href="http://en.wikipedia.org/wiki/Comparison_of_X_Window_System_desktop_environments">Linux desktop environments</a>, so if you&#8217;re using KDE or Unity with Compiz and you&#8217;re finding self-resizing windows irritating this fix should work for you as well.</p>
<p>To fix the problem you need to install the CompizConfig Settings Manager, so fire up Synaptic Package Manager and search for &#8220;compizconfig-settings-manager&#8221; and install it.</p>
<p>Once installed, if you&#8217;re using Gnome go to Applications &gt; System Tools &gt; Preferences and click &#8220;CompizConfig Settings Manager&#8221; to start the tool.</p>
<p>Scroll down to &#8220;Window Management.&#8221;</p>
<p>Uncheck &#8220;Place Windows&#8221;.</p>
<p>Leave &#8220;Grid&#8221; checked, but click the word &#8220;Grid&#8221; to get the Grid settings, then go to the Edges tab and change all Resize Actions to &#8220;None&#8221;.</p>
<p>Click Back.</p>
<p>Now your desktop will do what you tell it to do, rather than second-guessing you and doing something that you do not want.</p>
<p>One thing that you can now do (that you probably really don&#8217;t want) is to have the title bar (and it&#8217;s controls) move off-screen, which means you can&#8217;t move or resize the window unless you Alt-right-click on it. To fix that issue:</p>
<p>Check the &#8220;Put&#8221; plugin.</p>
<p>Click the word &#8220;Put&#8221; to bring up more options, go to the &#8220;Misc Options&#8221; tab, check &#8220;Avoid Offscreen&#8221;, click Back, then Close Window.</p>
<p>Hope you find this useful.</p>
]]></content:encoded>
			<wfw:commentRss>http://earlruby.org/2012/04/getting-rid-of-self-resizing-windows-in-ubuntu-linux-12-04/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Synchronizing Thunderbird e-mail filters using Dropbox</title>
		<link>http://earlruby.org/2011/12/synchronizing-thunderbird-e-mail-filters-using-dropbox/</link>
		<comments>http://earlruby.org/2011/12/synchronizing-thunderbird-e-mail-filters-using-dropbox/#comments</comments>
		<pubDate>Sat, 17 Dec 2011 22:18:59 +0000</pubDate>
		<dc:creator>Earl Ruby</dc:creator>
				<category><![CDATA[Cool Hacks]]></category>
		<category><![CDATA[Dropbox]]></category>
		<category><![CDATA[IMAP]]></category>
		<category><![CDATA[mail filters]]></category>
		<category><![CDATA[synchronization]]></category>
		<category><![CDATA[Thunderbird]]></category>

		<guid isPermaLink="false">http://earlruby.org/?p=282</guid>
		<description><![CDATA[Two words: Use symlinks. If you already know what a symlink is then you don&#8217;t need to read the rest of this article. If you want a better explanation, read on&#8230; I use the Thunderbird e-mail client to read mail stored on my company&#8217;s IMAP mail server. I have a lot of filters set up [...]]]></description>
			<content:encoded><![CDATA[<p>Two words: Use symlinks.</p>
<p>If you already know what a symlink is then you don&#8217;t need to read the rest of this article. If you want a better explanation, read on&#8230;</p>
<p>I use the Thunderbird e-mail client to read mail stored on my company&#8217;s IMAP mail server. I have a lot of filters set up that sort the mail into different folders, and Thunderbird stores the filter definitions in a file called <code>msgFilterRules.dat</code>. I read mail on different machines, some running various Linux distros and some running Mac OS X. I wanted all of the different machines to use the same rules for filtering e-mail into different folders, and if I make changes to the filters on one host I want those changes to take effect on all of the other hosts as well.</p>
<p>To do this I first <a title="Get a Dropbox account" href="http://db.tt/xbH6PzNW">set up a Dropbox account</a> and installed the Dropbox software on my different machines, so now there&#8217;s a directory called &#8220;Dropbox&#8221; in my home directory that is synchronized between all of my different machines. I moved my filter file into the Dropbox directory and symlinked that to the location where Thunderbird expects to find the filter rules. </p>
<p>The step-by-step explanation if you want to do this:</p>
<p>Set up Dropbox on all of your machines.</p>
<p>Shut down Thunderbird if it&#8217;s running.</p>
<p>Start up a terminal window.</p>
<p>Find the <code>msgFilterRules.dat</code> file that you want to use as your &#8220;master&#8221; copy. On both my Mac laptop and Linux hosts the file is stored in <code>~/.thunderbird/[profile name]/ImapMail/[imap server name]/</code>, where [profile name] is your Thunderbird profile name on that host, usually some random characters followed by &#8216;.default&#8217;. (Type <code>cat ~/.thunderbird/profiles.ini</code> if you want to see all of your profile names.)</p>
<p>Make a backup copy of the <code>msgFilterRules.dat</code> file:</p>
<pre>cd ~/.thunderbird/[profile name]/ImapMail/[imap server name]/

cp msgFilterRules.dat msgFilterRules.dat.backup</pre>
<p>Move the filter file to Dropbox:</p>
<pre>mv msgFilterRules.dat ~/Dropbox/</pre>
<p>Symlink the Dropbox copy of the file to the current directory, where Thunderbird expects to find it:</p>
<pre>ln -s ~/Dropbox/msgFilterRules.dat .</pre>
<p>Verify that the symlink was created correctly:</p>
<pre>ls -al</pre>
<p>You should see a line that looks like:</p>
<pre>lrwxrwxrwx  1 earl users        37 Oct 25 21:12 msgFilterRules.dat -&gt; /home/earl/Dropbox/msgFilterRules.dat</pre>
<p>Now the machine you&#8217;re on is using the Dropbox copy of the filter file. To set this up on your other machines:</p>
<p>Verify that the file exists in the ~/Dropbox directory:</p>
<pre>ls -al ~/Dropbox</pre>
<p>Get to the directory where the filter file lives, remove the local copy, then create the symlink:</p>
<pre>cd ~/.thunderbird/[profile name]/ImapMail/[imap server name]/

rm msgFilterRules.dat

ln -s ~/Dropbox/msgFilterRules.dat .</pre>
<p>One word of warning: Thunderbird reads the filters into memory when it starts, and writes them back to disk when it exits. That means that if you have two hosts and Thunderbird is running on both of them, the last host that exits will write it&#8217;s version of the filters to disk. So if you make a change to the filters on one host and exit from Thunderbird, then exit from Thunderbird on the second host, the older filters on second host will overwrite the filter you just added. Because of this, I recommend exiting from Thunderbird whenever you leave your computer. I added a &#8220;killall thunderbird-bin&#8221; that runs from cron at 2am just to make sure that my copy at work isn&#8217;t running if I check mail from home in the morning.</p>
]]></content:encoded>
			<wfw:commentRss>http://earlruby.org/2011/12/synchronizing-thunderbird-e-mail-filters-using-dropbox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fixing the &#8220;broken horizontal scrollbar&#8221; problem in LibreOffice Calc</title>
		<link>http://earlruby.org/2011/11/fixing-the-broken-horizontal-scrollbar-problem-in-libreoffice-calc/</link>
		<comments>http://earlruby.org/2011/11/fixing-the-broken-horizontal-scrollbar-problem-in-libreoffice-calc/#comments</comments>
		<pubDate>Fri, 11 Nov 2011 01:47:37 +0000</pubDate>
		<dc:creator>Earl Ruby</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Calc]]></category>
		<category><![CDATA[Horizontal Scroll Bar]]></category>
		<category><![CDATA[KDE]]></category>
		<category><![CDATA[KDE4]]></category>
		<category><![CDATA[KDE4 Oxygen]]></category>
		<category><![CDATA[LibreOffice]]></category>
		<category><![CDATA[OpenSUSE]]></category>

		<guid isPermaLink="false">http://earlruby.org/?p=257</guid>
		<description><![CDATA[This problem affects people using the KDE4 desktop with the &#8220;Oxygen&#8221; style and a recent version of the LibreOffice suite. (I&#8217;m running LibreOffice 3.4.2 on OpenSUSE 11.4) The horizontal scrollbar in Calc just doesn&#8217;t work, so if your spreadsheet is wider than your screen you can&#8217;t use the scollbar to view the right hand side. [...]]]></description>
			<content:encoded><![CDATA[<p>This problem affects people using the KDE4 desktop with the &#8220;Oxygen&#8221; style and a recent version of the LibreOffice suite. (I&#8217;m running LibreOffice 3.4.2 on OpenSUSE 11.4) The horizontal scrollbar in Calc just doesn&#8217;t work, so if your spreadsheet is wider than your screen you can&#8217;t use the scollbar to view the right hand side.</p>
<p>The problem is with the Oxygen widget style. On a host running OpenSUSE 11.4 you can change this by going to:</p>
<p>Applications &gt; Configure Desktop &gt; Application Appearance &gt; Style</p>
<p>Then set &#8220;Widget Style&#8221; to any style except &#8220;Oxygen&#8221;. Click Apply.</p>
<p>Problem solved.</p>
]]></content:encoded>
			<wfw:commentRss>http://earlruby.org/2011/11/fixing-the-broken-horizontal-scrollbar-problem-in-libreoffice-calc/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Work-around for a locked-up Gnome 3 screen saver in Ubuntu 11.10</title>
		<link>http://earlruby.org/2011/10/work-around-for-a-locked-up-gnome-3-screen-saver-in-ubuntu-11-10/</link>
		<comments>http://earlruby.org/2011/10/work-around-for-a-locked-up-gnome-3-screen-saver-in-ubuntu-11-10/#comments</comments>
		<pubDate>Sun, 23 Oct 2011 00:48:21 +0000</pubDate>
		<dc:creator>Earl Ruby</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Gnome]]></category>
		<category><![CDATA[Gnome 3]]></category>
		<category><![CDATA[gnome-screensaver]]></category>
		<category><![CDATA[screen saver]]></category>
		<category><![CDATA[screensaver]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[xscreensaver]]></category>

		<guid isPermaLink="false">http://earlruby.org/?p=241</guid>
		<description><![CDATA[Gnome 3 has a screen saver (or more accurately a screen blanker &#8212; there are no pretty pictures) which is turned on by default and which password-protects (locks) your desktop by default when it activates. Unfortunately it&#8217;s been known to be buggy since it was released as part of Gnome 2, often refusing to unlock [...]]]></description>
			<content:encoded><![CDATA[<p>Gnome 3 has a screen saver (or more accurately a screen blanker &#8212; there are no pretty pictures) which is turned on by default and which password-protects (locks) your desktop by default when it activates. <a href="http://ubuntuforums.org/showthread.php?t=1652891">Unfortunately it&#8217;s been known to be buggy since it was released as part of Gnome 2, often refusing to unlock your screen and forcing you to reboot your system.</a></p>
<p>Users of the Gnome 3 desktop shell are reporting that for some video card and monitor combinations the Gnome 3 screen saver, after getting a key press / mouse movement that should prompt you for your password to unlock the screen:</p>
<ul>
<li>Won&#8217;t unlock the screen at all.</li>
<li>Will display a mouse pointer but no password prompt.</li>
<li>Will display your original screen and all open documents (without prompting for a password) but will not allow you to click on anything, basically appearing as a locked-up desktop.</li>
</ul>
<p>My setup reliably produces situation #3.</p>
<p>To unlock a locked-up desktop:</p>
<ul>
<li>Ctrl-Alt-F1 will give you a text-based terminal login.</li>
<li>Log in with your user name and password.</li>
<li>Type: &#8220;killall gnome-screensaver&#8221;</li>
<li>Ctrl-Alt-F7 to get back to the (now unlocked) Gnome 3 desktop.</li>
</ul>
<p>To replace the Gnome 3 screen saver with something less buggy:</p>
<ul>
<li>Activities &gt; Applications &gt; Other &gt; Synaptic Package Manager</li>
<li>Quick filter: xscreensaver</li>
<li>Right click &#8216;xscreensaver&#8217; and select &#8216;Mark for Installation&#8217;</li>
<li>Click &#8216;Apply&#8217; to install</li>
<li>Activities &gt; Applications &gt; System Tools  &gt; System Settings &gt; Screen</li>
<li>Set &#8220;Turn off after&#8221; to &#8216;Never&#8217; and &#8220;Lock&#8221; to &#8216;OFF&#8217;. This disables gnome-screensaver.</li>
<li>Activities &gt; Applications &gt; All &gt; Screensaver</li>
<li>Follow the prompts to activate xscreensaver</li>
</ul>
<p>If you try to uninstall gnome-screensaver Synaptic Package Manager will also want to uninstall gnome and gnome-core, which is a bad idea if you want to run Gnome. Gnome will always start gnome-screensaver even if you have it disabled, and xscreensaver won&#8217;t run if gnome-screensaver is running. So you basically need to kill gnome-screensaver after Gnome has started and then start xscreensaver. You can do this by adding a startup program:</p>
<ul>
<li>Activities &gt; Applications &gt; Other &gt; Startup Programs &gt; Add</li>
<li>Name: &#8220;Screen Saver&#8221;</li>
<li>Command: &#8220;sleep 30; killall gnome-screensaver; sleep 5; xscreensaver&#8221;</li>
<li>Comment: &#8220;Kill gnome-screensaver, start xscreensaver&#8221;</li>
<li>Click &#8220;Add&#8221;</li>
</ul>
<p>Hope you find this useful.</p>
]]></content:encoded>
			<wfw:commentRss>http://earlruby.org/2011/10/work-around-for-a-locked-up-gnome-3-screen-saver-in-ubuntu-11-10/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Adding a task bar to Gnome 3 on Ubuntu 11.10</title>
		<link>http://earlruby.org/2011/10/adding-a-task-bar-to-gnome-3-on-ubuntu-11-10/</link>
		<comments>http://earlruby.org/2011/10/adding-a-task-bar-to-gnome-3-on-ubuntu-11-10/#comments</comments>
		<pubDate>Wed, 19 Oct 2011 17:12:40 +0000</pubDate>
		<dc:creator>Earl Ruby</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Gnome 3]]></category>
		<category><![CDATA[task bar]]></category>
		<category><![CDATA[taskbar]]></category>
		<category><![CDATA[tint2]]></category>
		<category><![CDATA[Ubuntu 11.10]]></category>

		<guid isPermaLink="false">http://earlruby.org/?p=237</guid>
		<description><![CDATA[To install Gnome 3 on Ubuntu 11.10 start up a terminal and type: sudo apt-get install gnome-shell To use Gnome 3 instead of Unity: when you log in, click the &#8220;gear&#8221; above your password. Select &#8220;Gnome&#8221;, log in. After you get tired of &#8220;click Activities, find the window you want, click the window&#8221; every time [...]]]></description>
			<content:encoded><![CDATA[<p>To install Gnome 3 on Ubuntu 11.10 start up a terminal and type:</p>
<pre>sudo apt-get install gnome-shell</pre>
<p>To use Gnome 3 instead of Unity: when you log in, click the &#8220;gear&#8221; above your password. Select &#8220;Gnome&#8221;, log in.</p>
<p>After you get tired of &#8220;click Activities, find the window you want, click the window&#8221; every time you want to switch from one window to another, and you decide you really need a taskbar again to maintain your sanity, start up a terminal and type:</p>
<pre>sudo apt-get install tint2
tint2 &#038;</pre>
<p>You now have a taskbar again. To get it to appear every time you start Gnome 3 go to Activities > Applications > Other > Startup Applications, then click &#8220;Add&#8221;, Name: &#8220;tint2 task bar&#8221;, Command: &#8220;tint2&#8243;,  click &#8220;Save&#8221;. </p>
<p>Done.</p>
<p>Hope you find this useful.</p>
]]></content:encoded>
			<wfw:commentRss>http://earlruby.org/2011/10/adding-a-task-bar-to-gnome-3-on-ubuntu-11-10/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How to turn off smart quotes in Libre Office Writer</title>
		<link>http://earlruby.org/2011/08/how-to-turn-off-smart-quotes-in-libre-office-writer/</link>
		<comments>http://earlruby.org/2011/08/how-to-turn-off-smart-quotes-in-libre-office-writer/#comments</comments>
		<pubDate>Wed, 03 Aug 2011 18:23:07 +0000</pubDate>
		<dc:creator>Earl Ruby</dc:creator>
				<category><![CDATA[Tools]]></category>
		<category><![CDATA[Libre Office]]></category>
		<category><![CDATA[smart quotes]]></category>

		<guid isPermaLink="false">http://earlruby.org/?p=221</guid>
		<description><![CDATA[To turn off smart quotes in Libre Office Writer, so that the double quote character is shown in the document as &#8221; &#8212; exactly as you typed it &#8212; and doesn&#8217;t get converted into something curly: Go to Tools &#62; Autocorrect Options Select the Localized Options tab Click the button under Start Quote. If you&#8217;re [...]]]></description>
			<content:encoded><![CDATA[<p>To turn off smart quotes in <a href="http://www.libreoffice.org/">Libre Office Writer</a>, so that the double quote character is shown in the document as &#8221; &#8212; exactly as you typed it &#8212; and doesn&#8217;t get converted into something curly:</p>
<ul>
<li>Go to <strong>Tools &gt; Autocorrect Options</strong></li>
<li>Select the <strong>Localized Options</strong> tab</li>
<li>Click the button under <strong>Start Quote</strong>. If you&#8217;re using the <strong>Basic Latin</strong> character set, scroll all the way to the top of the character set display and click the &#8221; box (third box from the top left row, next to the !). If you are using some other character set try searching near the top of the set for the &#8221; character.</li>
<li>Click <strong>OK</strong></li>
<li>Click the button under <strong>End Quote</strong>. Scroll all the way to the top of the character set display and click the &#8221; box (third box from the top left row, next to the !)</li>
<li>Click <strong>OK</strong></li>
<li>Click <strong>OK</strong></li>
</ul>
<p>Smart quotes are now off for the document that you&#8217;re working on. They will also be off for any new documents that you create, including spreadsheets and files created by other Libre Office applications.</p>
<p>To get rid of smart quotes already in a document:</p>
<ul>
<li>Highlight any <strong>start smart quote</strong> and copy it (Ctrl-C or File &gt; Copy)</li>
<li>Select <strong>Edit &gt; Find &amp; Replace</strong></li>
<li>Paste the smart quote into the <strong>Search for</strong> box</li>
<li>Type &#8221; in the <strong>Replace with</strong> box</li>
<li>Click the <strong>Replace All</strong> button</li>
<li>Click <strong>Close</strong></li>
<li>Repeat these steps using a copy of the <strong>end smart quote</strong></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://earlruby.org/2011/08/how-to-turn-off-smart-quotes-in-libre-office-writer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Recovering from a lost connection when upgrading Ubuntu via ssh</title>
		<link>http://earlruby.org/2011/05/recovering-from-a-lost-connection-when-upgrading-ubuntu-via-ssh/</link>
		<comments>http://earlruby.org/2011/05/recovering-from-a-lost-connection-when-upgrading-ubuntu-via-ssh/#comments</comments>
		<pubDate>Mon, 30 May 2011 23:34:29 +0000</pubDate>
		<dc:creator>Earl Ruby</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[screen]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[upgrade]]></category>

		<guid isPermaLink="false">http://earlruby.org/?p=212</guid>
		<description><![CDATA[I wanted to upgrade my desktop machine at work to the latest version of Ubuntu, but since it takes several hours to upgrade an Ubuntu host, and I have work to do during the day, I figured I could log into my workstation from home in using ssh and start the upgrade remotely. So I [...]]]></description>
			<content:encoded><![CDATA[<p>I wanted to upgrade my desktop machine at work to the latest version of Ubuntu, but since it takes several hours to upgrade an Ubuntu host, and I have work to do during the day, I figured I could log into my workstation from home in using ssh and start the upgrade remotely.</p>
<p>So I logged into my workstation from home and ran:</p>
<pre>
> sudo apt-get install update-manager-core
> sudo do-release-upgrade
</pre>
<p>The upgrade script warned me that I was using ssh and asked if I was sure I wanted to continue. I said &#8220;Y&#8221;, and a little while later the upgrade manager was busy downloading upgrade packages.</p>
<p>I planned to check it a couple of times that night, answer any package upgrade questions that popped up, and then in the morning when I got to work the upgrade would be complete.</p>
<p>Of course what actually happened was that I got side-tracked onto some other problem that night, forgot about the upgrade in progress, and when I got to work the next day my workstation was in a state of limbo, with the upgrade halfway complete, waiting for me to answer some question on the screen &#8212; at my house.</p>
<p>Luckily the Ubuntu developers who created the ssh upgrade process run that upgrade inside of a <strong>screen</strong> session. As the screen pages states, &#8220;Screen is a full-screen window manager that multiplexes a physical terminal between several processes (typically interactive shells).&#8221;</p>
<p>So at work all I had to do was get the list of current screen sessions:</p>
<pre>
> sudo screen -list
There are screens on:
        9129.ubuntu-release-upgrade-screen-window       (05/17/2011 08:50:08 PM)        (Attached)
2 Sockets in /var/run/screen/S-root.
</pre>
<p>Invoke screen using the &#8220;-d -r sessionowner/[pid.tty.host]&#8221; flags:</p>
<pre>
> sudo screen -d -r root/9129.ubuntu-release-upgrade-screen-window
</pre>
<p>&#8230; and I could pull up the screen at work that had been displaying at my home. Once I answered the remaining questions about whether to keep my custom configuration files or use the new, packaged configuration files my workstation rebooted and the latest version of Ubuntu booted right up.</p>
]]></content:encoded>
			<wfw:commentRss>http://earlruby.org/2011/05/recovering-from-a-lost-connection-when-upgrading-ubuntu-via-ssh/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>A Quick Guide to Understanding the Actual Dangers of Radiation</title>
		<link>http://earlruby.org/2011/03/a-quick-guide-to-understanding-the-actual-dangers-of-radiation/</link>
		<comments>http://earlruby.org/2011/03/a-quick-guide-to-understanding-the-actual-dangers-of-radiation/#comments</comments>
		<pubDate>Fri, 18 Mar 2011 22:09:30 +0000</pubDate>
		<dc:creator>Earl Ruby</dc:creator>
				<category><![CDATA[Current Events]]></category>
		<category><![CDATA[Daiichi]]></category>
		<category><![CDATA[Diablo Canyon Nuclear Power Plant]]></category>
		<category><![CDATA[Fukushima]]></category>
		<category><![CDATA[Fukushima Daiichi]]></category>
		<category><![CDATA[Japanese Disaster]]></category>
		<category><![CDATA[Nuclear Power]]></category>
		<category><![CDATA[Radiation Exposure]]></category>
		<category><![CDATA[Radioactive Contamination]]></category>

		<guid isPermaLink="false">http://earlruby.org/?p=193</guid>
		<description><![CDATA[A quick guide to understanding what people should and should not be concerned about with the partial meltdowns in progress at the Fukushima Daiichi Nuclear Power Plant Complex in Japan.]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve seen a lot of misleading and incorrect information on the TV when it comes to radiation exposure.</p>
<p>In college I had a co-op job at <a href="http://en.wikipedia.org/wiki/Diablo_Canyon_Power_Plant">Diablo Canyon Nuclear Power Plant</a>. That doesn&#8217;t make me a nuclear expert, but along with every other new employee at the plant I had to take a series of classes so that I understood the risks of radiation exposure, how to keep from getting irradiated, and what to do if things go Very Wrong. I&#8217;ve been reviewing some of that information so that I could give family and friends this quick guide to understanding what they should and should not be concerned about with the partial meltdowns in progress at the <a href="http://en.wikipedia.org/wiki/Fukushima_I_Nuclear_Power_Plant">Fukushima Daiichi Nuclear Power Plant Complex</a> in Japan. Hopefully after reading this you&#8217;ll have a better understanding of whether or not you are in any danger when you hear something on the news or read something on the Internet.</p>
<p>The first thing you need to understand is that there are two very different types of danger from radiation:</p>
<ul>
<li>Radiation Exposure</li>
<li>Radioactive Contamination</li>
</ul>
<p>Radioactive materials such as Uranium,  <a href="http://en.wikipedia.org/wiki/Caesium-137">Caesium-137</a><sup>[1]</sup> , and <a href="http://en.wikipedia.org/wiki/Iodine-131">Iodine-131</a> emit high energy particles. When these particles hit your body they impart energy to your body. This is what is meant by <strong>Radiation Exposure</strong>. It&#8217;s <em>similar to</em> <sup>[2]</sup> the way a microwave oven imparts energy to a hot dog, or an EasyBake oven bakes a cake, or sitting out in the sun makes your skin tan (or, in my case, burn).</p>
<p><strong>Radioactive Contamination</strong> is when radioactive materials actually get into your body, either through your skin or by being inhaled.</p>
<p>When it comes to Radiation Exposure there are three things that determine how much danger you&#8217;re in:</p>
<ul>
<li>The <strong>strength</strong> of the source of radiation. (How many high energy particles does it emit per second? What type of particles does it emit? How energetic are those particles?)</li>
<li>Your <strong>distance</strong> from the source of radioactivity.</li>
<li>How much <strong>time</strong> you spend next to that source while it&#8217;s emitting radioactivity.</li>
</ul>
<p><strong>Strength:</strong> Different sources of radiation have different strengths, this is why Uranium, Caesium-137, and Iodine-131 are considered so dangerous, they&#8217;re strong sources of radiation, they emit a lot of very high energy particles that can damage human tissue.</p>
<p><strong>Distance:</strong> If you&#8217;re standing right next to a 100W light bulb it&#8217;s very bright. If you&#8217;re 1000 yards away it&#8217;s dim. If you&#8217;re on the other side of town you can&#8217;t see it at all. With radioactive materials, the closer you are to a source of radiation the more high energy particles are going to hit your body. As you get farther away fewer particles hit your body. Get far enough enough away from the bulb and you can&#8217;t see it. Get far enough away from a radioactive source and there&#8217;s no danger.</p>
<p><strong>Time:</strong> A chest X-Ray is a very intense burst of radiation, but the amount of time you&#8217;re exposed to that radiation is very short, so while there&#8217;s no danger from getting a single chest X-Ray, you don&#8217;t want to get one every hour of every day for weeks on end. If you stay out in the sun for an hour you might get a tan, stay out in the hot sun all day and you get burned. If you stroll past the Fukushima Daiichi Nuclear Power Plant you&#8217;ll get less radiation exposure than if you pull up a chair and sit there for a couple of hours. The amount of time you&#8217;re exposed to a radioactive source affects the dose of radiation you receive.</p>
<p>You may hear news people talking about how many “millisieverts of radiation” people are exposed to at Fukushima Daiichi. <a href="http://en.wikipedia.org/wiki/Sievert">A millisievert (mSv) is a measurement based on the amount and type of radiation your body would be exposed to over some period of time.</a> Any news story that quotes a sievert number without including the amount of time it takes to get that dosage is just spreading misleading information. If a news person quotes a sievert number without including the duration of the exposure they do not know what they are talking about and you are wasting your time listening to that news source.</p>
<p>Just like other metric measurements there are 1000 millisieverts in one sievert, so if you hear a news commentator mixing up millisieverts and sieverts you can safely change the channel – the commentator has no idea what they&#8217;re talking about.</p>
<p>If you hear the commentator talking about “radiation” without making clear whether they&#8217;re talking about exposure or contamination chances are the commentator has no idea what they&#8217;re talking about.</p>
<p><strong>There is no safe dose of radiation exposure</strong>, but there are dose levels that will definitely cause you harm and there are dose levels that will kill you. If you get a dose of 250 mSv within one day you won&#8217;t even have any symptoms. Some people are going to show signs of <a href="http://en.wikipedia.org/wiki/Radiation_poisoning">radiation poisoning</a> with a dose of 250-1000 mSv within one day. Anyone exposed to 1000-3000 mSv within one day will show signs of radiation poisoning. 3000-6000 mSv and you&#8217;re almost definitely going to die without medical treatment and probably going to die even with medical treatment. 6000-10000 will kill 95% of people exposed, over 10000 mSv within one day will kill anyone.</p>
<p>I saw a report on this morning that said that the radiation level outside of Fukushima Daiichi was 400 millisieverts (mSv). This is a completely meaningless number unless without a time measurement is included. Would someone get a dose of 400 mSv in an hour? In a day? In a minute? It&#8217;s not like a chest X-Ray where your exposure is limited to a few seconds, the plant leakage is on-going, so any dose levels have to be considered over some period of time. </p>
<p>According to an <a href="http://www.iaea.org/newscenter/news/tsunamiupdate01.html">IAEA report</a> it was 400 mSv per hour, but it was limited to a single location and during a single point in time on March 15. On that same day at 00:00 UTC the level observed was 11.9  mSv per hour and at 06:00 UTC it was 0.6 mSv per hour. If I had just listened to the TV news report of &#8220;400 millisieverts&#8221; &#8212; without knowing about the other measurements that were made or how long the 400 mSv measurement lasted &#8212; I&#8217;d be scared shitless. However, in context what this means is that if you were at Fukushima Daiichi standing right between reactor units 3 and 4 all day you&#8217;d be having a Bad Day and you&#8217;d have a higher risk of cancer for the rest of your life, but you wouldn&#8217;t fall over dead. If you were anywhere else on the planet you&#8217;d be fine.</p>
<p>In terms of Radiation Exposure, if you&#8217;re in Japan near the reactor complex the reactors themselves are the source of radiation you need to worry about.</p>
<p>If you&#8217;re not in Japan the source of radiation you need to worry about is the steam and debris being spewed out by the plant. As long as the wind is out to sea most of that debris is going into the Pacific Ocean, but some is going to make it across the ocean. You will hear reports that the amount of radiation from this cloud represents a very low dose, and that there is nothing to worry about. <em>This is half true. In terms of radiation exposure, the cloud is not a major threat. The problem is radioactive contamination.</em></p>
<p>The contamination is being spread across northern Japan and across the Pacific Ocean. If you get contaminated with radioactive debris, that means that in the spot on your body where that debris enters your skin or gets lodged in your lungs, that one spot is going to continue to get dosed by radiation for a very long time. <em>That is the major concern of contamination – long term exposure to radiation of a single spot on your body.</em> The dosage per hour can be very low, but because the duration is so long (sometimes years if the particle gets stuck in your lungs) and the focus point of the energy is so small the danger is much larger.</p>
<p>The two major things to worry about when it comes to contamination are:</p>
<ul>
<li>What type radioactive material did you get on (or in) your body?</li>
<li>How much radioactive material did you get on (or in) your body?</li>
</ul>
<p>The type of material will tell you how strong of a source of radiation you&#8217;re dealing with. The more material there is, the more high energy particles it will emit per second. Most highly-radioactive materials are also heavy, so they&#8217;ll end up in the ocean or in the soil of northern Japan, but some will make it across the ocean. Keeping yourself from getting contaminated with this radioactive debris is what you want to be concerned about.</p>
<p>Before you start freaking out, consider that during the 1950&#8242;s the U.S. Army was busy blowing holes in Nevada and New Mexico with nuclear weapons and the fallout from those explosions drifted over the Eastern United States. The debris from those explosions was far, far more dangerous than what&#8217;s coming out of Japan these days. Most of the people who lived through the 1950&#8242;s did not die from radiation poisoning, and the cancer rate in the United States has been declining for the past several decades.</p>
<p>So yes, there&#8217;s a danger, but it&#8217;s not huge and it&#8217;s probably not going to kill you tomorrow. The farther you are from Fukushima Daiichi the less danger you&#8217;re in. Right next to it or just downwind of the plant, lots of danger. Across the ocean, right now, not so much. I would not want to be living in Northern Japan right now, but I&#8217;m not too worried about living in Northern California.</p>
<p>However, conditions change. When you watch or read news reports look for terms like “millisieverts per hour”, “contamination” and “fallout” and pay careful attention to where these measurements were made. If the measurement is 400 millisieverts per hour during one particular hour near the reactor in Japan &#8212; and you&#8217;re in San Francisco &#8212; you are not in any danger. If the report says “radioactive cloud headed for Los Angeles” &#8212; but gives no measurement of radiation strength or type of contamination present – turn off the TV and go find <a href="http://en.wikipedia.org/wiki/Fukushima_I_nuclear_accidents">a news source that has useful news</a> and not useless scaremongering. </p>
<p>And if a report says that a rainstorm is washing radioactive particles out of the sky, stay out of the rain.</p>
<hr />
<p>The people of Japan have been hit by an earthquake, a tsunami, and now nuclear radiation and contamination. If you want to help, <a href="https://american.redcross.org/site/SPageServer?pagename=cogp_main">donate to the Red Cross today</a>. Want to do more? One of the first things done for victims of <a href="http://en.wikipedia.org/wiki/Radiation_poisoning">acute radiation poisoning</a> is a blood transfusion, so <a href="http://www.redcross.org/donate/give/">go to your local Red Cross office and give blood</a>. Your blood donation might be used to help save someone&#8217;s life in Japan, but even if it isn&#8217;t, it will help save someone.</p>
<hr />
<p><sup>[1]</sup> &#8220;Caesium&#8221; is the spelling recommended by the <a href="http://www.iupac.org/">International Union of Pure and Applied Chemistry (IUPAC)</a>. The <a href="http://www.acs.org/">American Chemical Society (ACS)</a> has used the spelling &#8220;cesium&#8221; since 1921, following Webster’s Third New International Dictionary. I prefer the spelling &#8220;caesium&#8221;, so that&#8217;s what I use.</p>
<p><sup>[2]</sup> I say <em>similar to</em>, and emphasize the words <em>similar to</em>, because they&#8217;re not the same, but the similarity to these other forms of (non-ionizing) radiation <em>that people have everyday experience with</em> is one way that people can wrap their heads around this idea. I hope no one misunderstands the words <em>similar to</em> and takes them to mean <em>the same as</em>, because that&#8217;s not what <em>similar to</em> means.</p>
]]></content:encoded>
			<wfw:commentRss>http://earlruby.org/2011/03/a-quick-guide-to-understanding-the-actual-dangers-of-radiation/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Turn off trackpad pinch-to-zoom on Firefox on Mac OS X</title>
		<link>http://earlruby.org/2010/10/turn-off-pinch-to-zoom-on-firefox-on-mac-os-x/</link>
		<comments>http://earlruby.org/2010/10/turn-off-pinch-to-zoom-on-firefox-on-mac-os-x/#comments</comments>
		<pubDate>Tue, 26 Oct 2010 06:04:23 +0000</pubDate>
		<dc:creator>Earl Ruby</dc:creator>
				<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[about:config]]></category>
		<category><![CDATA[OS/X]]></category>
		<category><![CDATA[Pinch]]></category>
		<category><![CDATA[Pinch to zoom]]></category>
		<category><![CDATA[pinch zoom]]></category>
		<category><![CDATA[track pad]]></category>
		<category><![CDATA[trackpad]]></category>
		<category><![CDATA[Zoom]]></category>

		<guid isPermaLink="false">http://earlruby.org/?p=183</guid>
		<description><![CDATA[If you browse the web using Firefox on a Mac laptop you&#8217;ve probably brushed the track pad the wrong way and accidentally zoomed in on content. I&#8217;ve never used the pinch gesture to zoom in on purpose, it always happens by accident, then I have to press Command-0 to reset the screen back to normal. [...]]]></description>
			<content:encoded><![CDATA[<p>If you browse the web using Firefox on a Mac laptop you&#8217;ve probably brushed the track pad the wrong way and accidentally zoomed in on content. I&#8217;ve never used the pinch gesture to zoom in on purpose, it always happens by accident, then I have to press Command-0 to reset the screen back to normal.</p>
<p>I tried Googling for an answer, and found a bunch of people annoyed by the same experience, but no solutions.</p>
<p>I thought there might be a Firefox setting to control this, so I looked and I found one. Here&#8217;s what I did:</p>
<ul>
<li>I typed &#8220;about:config&#8221; into the Firefox location bar to get to the configure-anything screen.</li>
<li>I clicked past the &#8220;this voids your warranty&#8221; disclaimer.</li>
<li>Type &#8220;zoom&#8221; in the search bar to find settings related to zoom.</li>
<li>The zoom in / zoom out gesture settings are browser.gesture.pinch.in and browser.gesture.pinch.out.  Click browser.gesture.pinch.in to edit the setting. It&#8217;s usually set to &#8220;cmd_fullZoomReduce&#8221; and I changed that to &#8220;cmd_fullZoomReduce-disable&#8221;. (That way if I ever want to re-enable it all I have to do is remove the &#8220;-disable&#8221; part.)</li>
<li>Click browser.gesture.pinch.out and change its setting from &#8220;cmd_fullZoomEnlarge&#8221; to &#8220;cmd_fullZoomEnlarge-disable&#8221;.</li>
</ul>
<p>That&#8217;s it. No more annoying track pad zoom.</p>
<p>Hope you find this useful.</p>
]]></content:encoded>
			<wfw:commentRss>http://earlruby.org/2010/10/turn-off-pinch-to-zoom-on-firefox-on-mac-os-x/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Increasing the size of an LVM Physical Volume (PV) while running multipathd &#8212; without rebooting</title>
		<link>http://earlruby.org/2010/10/increasing-the-size-of-an-lvm-physical-volume-pv-while-running-multipathd-without-rebooting/</link>
		<comments>http://earlruby.org/2010/10/increasing-the-size-of-an-lvm-physical-volume-pv-while-running-multipathd-without-rebooting/#comments</comments>
		<pubDate>Sun, 17 Oct 2010 22:08:47 +0000</pubDate>
		<dc:creator>Earl Ruby</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://earlruby.org/?p=166</guid>
		<description><![CDATA[How to enlarge a physical volume (PV) within an LVM volume group on a SAN running multipathd without rebooting.]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re using the Linux <a href="http://en.wikipedia.org/wiki/Logical_Volume_Manager_%28Linux%29">Logical Volume Manager (LVM)</a> to manage your disk space it&#8217;s easy to enlarge a logical volume while a server is up and running. It&#8217;s also easy to add new drives to an existing volume group.</p>
<p>But if you&#8217;re using a SAN the underlying physical drives can have different performance characteristics because they&#8217;re assigned to different QOS bands on the SAN. If you want to keep performance optimized it&#8217;s important to know what physical volume a logical volume is assigned to &#8212; otherwise you can split a single logical volume across multiple physical volumes and end up degrading system performance. If you run out of space on a physical volume and then enlarge a logical volume you will split the LV across two or more PVs. To prevent this from happening you need to enlarge the LUN, tell multipathd about the change, then enlarge the PV, then enlarge the LV, and finally enlarge the file system.</p>
<p>I have three SANs at the company where I work (two <a href="http://www.pillardata.com/">Pillar Axioms</a> and a <a href="http://www.xyratex.com/">Xyratex</a>) which are attached two two fibrechannel switches and several racks of blade servers. Each blade is running an <a href="http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html">Oracle database</a> with multiple physical volumes (PVs) grouped together into a single LVM. The PVs are tagged and as logical volumes (LVs) are added they&#8217;re assigned to the base physical volume with the same tag name as the logical volume. That way we can assign the PV to a higher or lower performance band on the SAN and optimize the database&#8217;s performance. Oracle tablespaces that contain frequently-accessed data get assigned to a PV with a higher QOS band on the SAN. Archival data gets put on a PV with a lower QOS band.</p>
<p>We run <a href="http://www.opensuse.org/">OpenSUSE 11.x</a> using <a href="http://christophe.varoqui.free.fr/refbook.html">multipathd</a> to deal with the multiple fiber paths available between each blade and a SAN. Since each blade has 2 fiber ports for redundancy, which are attached to two fiber switches, each of which is cross-connected to 2 ports on 2 different controllers on the SAN, so there are 4 different fiber paths that data can take between the blade and the SAN. If any path fails, or one port on a fiber card fails, or one fiber switch fails, multipathd re-routes the data using the remaining data paths and everything keeps working. If a blade fails we switch to another blade. </p>
<p>If we run out of space on a PV I can log into the SAN&#8217;s administrative interface and enlarge the size of the underlying LUN, but getting the operating system on the blade to recognize the fact that more physical disk space was available is tricky. LVM&#8217;s pvresize command would claim that it was enlarging the PV, but nothing would happen unless the server was rebooted and then pvresize was run again. I wanted to be able to enlarge physical volumes without taking a database off-line and rebooting its server. Here&#8217;s how I did it:</p>
<ul>
<li>First log into the SAN&#8217;s administrative interface and enlarge the LUN in question.</li>
<li>Open two xterm windows on the host as root</li>
<li>Gather information &#8211; you will need the physical device name, the multipath block device names, and the multipath map name. (Since our setup gives us 4 data paths for each LUN there are 4 multipath block device names.)</li>
<li>List the physical volumes and their associated tags with <strong>pvs -o +tags</strong>:
<pre># pvs -o +tags
  PV         VG     Fmt  Attr PSize   PFree   PV Tags
  /dev/dm-1  switch lvm2 a-   500.38G 280.38G db024-lindx,lindx
  /dev/dm-10 switch lvm2 a-     1.95T 801.00G db024-ldata,ldata
  /dev/dm-11 switch lvm2 a-    81.50G      0  db024-mindx,mindx
  /dev/dm-12 switch lvm2 a-   650.00G 100.00G db024-reports,reports
  /dev/dm-13 switch lvm2 a-    51.25G  31.25G db024-log,log
  /dev/dm-14 switch lvm2 a-   450.12G  50.12G db024-home,home
  /dev/dm-15 switch lvm2 a-     1.76T 342.00G db024-q_backup,q_backup
  /dev/dm-16 switch lvm2 a-     1.00G 640.00M db024-control,control
  /dev/dm-2  switch lvm2 a-   301.38G 120.38G db024-dbs,dbs
  /dev/dm-3  switch lvm2 a-   401.88G 101.88G db024-cdr_data,cdr_data
  /dev/dm-5  switch lvm2 a-   450.62G 290.62G db024-archlogs,archlogs
  /dev/dm-6  switch lvm2 a-    40.88G  22.50G db024-boot,boot
  /dev/dm-7  switch lvm2 a-    51.25G   1.25G db024-rbs,rbs
  /dev/dm-8  switch lvm2 a-    51.25G  27.25G db024-temp,temp
  /dev/dm-9  switch lvm2 a-   201.38G 161.38G db024-summary,summary  </pre>
</li>
<li>Find the device that corresponds to the LUN you just enlarged, e.g. <strong>/dev/dm-11</strong></li>
<li>Run <strong>multipath -ll</strong>, find the device name in the listing. The large hex number at the start of the line is the multipath map name and the sdX block devices after the device name are the multipath block devices. So in this example the map name is <strong>2000b080112002142</strong> and the block devices are <strong>sdy</strong>, <strong>sdan</strong>, <strong>sdj</strong>, and <strong>sdbc</strong>:
<pre>2000b080112002142 dm-11 Pillar,Axiom 500
[size=82G][features=1 queue_if_no_path][hwhandler=0][rw]
\_ round-robin 0 [prio=100][active]
 \_ 0:0:5:9  sdy        65:128 [active][ready]
 \_ 1:0:4:9  sdan       66:112 [active][ready]
\_ round-robin 0 [prio=20][enabled]
 \_ 0:0:4:9  sdj        8:144  [active][ready]
 \_ 1:0:5:9  sdbc       67:96  [active][ready]  </pre>
</li>
<li>Next get multipath to recognize that the device is larger:</li>
<ul>
<li>For each block device do <strong>echo 1 > /sys/block/sdX/device/rescan</strong>:
<pre># echo 1 > /sys/block/sdy/device/rescan
# echo 1 > /sys/block/sdan/device/rescan
# echo 1 > /sys/block/sdj/device/rescan
# echo 1 > /sys/block/sdbc/device/rescan</pre>
</li>
<li>In the second root window, pull up a multipath command line with <strong>multipathd -k</strong></li>
<li>Delete and re-add the first block device from each group. Since multipathd provides multiple paths to the underlying SAN, the device will remain up and on-line during this process:
<pre>multipathd> del path sdy
ok
multipathd> add path sdy
ok
multipathd> del path sdj
ok
multipathd> add path sdj
ok  </pre>
</li>
<li>In the first root window run <strong>multipath -ll</strong> again and verify that the block devices were re-added:
<pre>2000b080112002142 dm-11 Pillar,Axiom 500
[size=82G][features=1 queue_if_no_path][hwhandler=0][rw]
\_ round-robin 0 [prio=100][active]
 \_ 1:0:4:9  sdan       66:112 [active][ready]
 \_ 0:0:5:9  sdy        65:128 [active][ready]
\_ round-robin 0 [prio=20][enabled]
 \_ 1:0:5:9  sdbc       67:96  [active][ready]
 \_ 0:0:4:9  sdj        8:144  [active][ready]     </pre>
</li>
<li>Delete and re-add the remaining two block devices in the second root window:
<pre>multipathd> del path sdan
ok
multipathd> add path sdan
ok
multipathd> del path sdbc
ok
multipathd> add path sdbc
ok   </pre>
</li>
<li>In the first root window run <strong>multipath -ll</strong> again and verify that the block devices were re-added.</li>
<li>Tell multipathd to resize the block device map using the map name:
<pre>multipathd> resize map 2000b080112002142
ok</pre>
</li>
<li>Press Ctrl-D to exit multipathd command line.</li>
</ul>
<li>In the first root window run <strong>multipath -ll</strong> again to verify that multipath sees the new physical device size. The device below went from 82G to 142G:
<pre>2000b080112002142 dm-11 Pillar,Axiom 500
[size=142G][features=1 queue_if_no_path][hwhandler=0][rw]
\_ round-robin 0 [prio=100][active]
 \_ 0:0:5:9  sdy        65:128 [active][ready]
 \_ 1:0:4:9  sdan       66:112 [active][ready]
\_ round-robin 0 [prio=20][enabled]
 \_ 0:0:4:9  sdj        8:144  [active][ready]
 \_ 1:0:5:9  sdbc       67:96  [active][ready]</pre>
</li>
<li>Finally, get the LVM volume group to recognize that the physical volume is larger using <strong>pvresize</strong>:
<pre># pvresize /dev/dm-11
  Physical volume "/dev/dm-11" changed
  1 physical volume(s) resized / 0 physical volume(s) not resized
# pvs -o +tags
  PV         VG     Fmt  Attr PSize   PFree   PV Tags
  /dev/dm-1  switch lvm2 a-   500.38G 280.38G db024-lindx,lindx
  /dev/dm-10 switch lvm2 a-     1.95T 801.00G db024-ldata,ldata
  /dev/dm-11 switch lvm2 a-   141.50G  60.00G db024-mindx,mindx
  /dev/dm-12 switch lvm2 a-   650.00G 100.00G db024-reports,reports
  /dev/dm-13 switch lvm2 a-    51.25G  31.25G db024-log,log
  /dev/dm-14 switch lvm2 a-   450.12G  50.12G db024-home,home
  /dev/dm-15 switch lvm2 a-     1.76T 342.00G db024-q_backup,q_backup
  /dev/dm-16 switch lvm2 a-     1.00G 640.00M db024-control,control
  /dev/dm-2  switch lvm2 a-   301.38G 120.38G db024-dbs,dbs
  /dev/dm-3  switch lvm2 a-   401.88G 101.88G db024-cdr_data,cdr_data
  /dev/dm-5  switch lvm2 a-   450.62G 290.62G db024-archlogs,archlogs
  /dev/dm-6  switch lvm2 a-    40.88G  22.50G db024-boot,boot
  /dev/dm-7  switch lvm2 a-    51.25G   1.25G db024-rbs,rbs
  /dev/dm-8  switch lvm2 a-    51.25G  27.25G db024-temp,temp
  /dev/dm-9  switch lvm2 a-   201.38G 161.38G db024-summary,summary</pre>
<p><strong>pvs</strong> shows that <strong>/dev/dm-11</strong> is now 141.5G.</li>
</ul>
<p>At this point you can enlarge any logical volumes residing on the underlying physical volume without splitting the logical volume across multiple (non-contiguous) physical volumes using <strong>lvresize</strong> and enlarge the file system using the file system tools, e.g. <strong>resize2fs</strong>.</p>
<p>If you ran out of space, your LVs were split across multiple PVs, and you need to coalesce a PV onto a single LV use <strong>pvmove</strong> to move the physical volume to a single device.</p>
<p>Hope you find this useful.</p>
]]></content:encoded>
			<wfw:commentRss>http://earlruby.org/2010/10/increasing-the-size-of-an-lvm-physical-volume-pv-while-running-multipathd-without-rebooting/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic page generated in 0.795 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2012-05-11 09:48:26 -->

