<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>*NIX In Hell</title>
	<atom:link href="http://nixinhell.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://nixinhell.wordpress.com</link>
	<description>UNIX Tips for System Administrators</description>
	<lastBuildDate>Mon, 23 Jan 2012 19:50:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='nixinhell.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>*NIX In Hell</title>
		<link>http://nixinhell.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://nixinhell.wordpress.com/osd.xml" title="*NIX In Hell" />
	<atom:link rel='hub' href='http://nixinhell.wordpress.com/?pushpress=hub'/>
		<item>
		<title>[Linux] &#8211; Mounting LVM volumes in single user mode</title>
		<link>http://nixinhell.wordpress.com/2011/10/18/linux-mounting-lvm-volumes-in-single-user-mode/</link>
		<comments>http://nixinhell.wordpress.com/2011/10/18/linux-mounting-lvm-volumes-in-single-user-mode/#comments</comments>
		<pubDate>Tue, 18 Oct 2011 03:07:00 +0000</pubDate>
		<dc:creator>William</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[boot]]></category>
		<category><![CDATA[filesystem]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[lvm]]></category>
		<category><![CDATA[single]]></category>
		<category><![CDATA[user]]></category>

		<guid isPermaLink="false">http://nixinhell.wordpress.com/2011/10/18/linux-mounting-lvm-volumes-in-single-user-mode/</guid>
		<description><![CDATA[&#160; Some of the usual tasks for a system administrator is to recover crashed systems or root passwords. Such kind of tasks usually requires that the system is started in some recovery mode in order to have access to the OS filesystems. On Linux, having the OS filesystems mounted may turn out into a tricky [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nixinhell.wordpress.com&amp;blog=9832399&amp;post=115&amp;subd=nixinhell&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>&nbsp;</p>
<p>Some of the usual tasks for a system administrator is to recover crashed systems or root passwords. Such kind of tasks usually requires that the system is started in some recovery mode in order to have access to the OS filesystems. On Linux, having the OS filesystems mounted may turn out into a tricky task when LVM is used.</p>
<p>This post will show briefly, how to have access to the basic OS logical volumes.</p>
<p><span style="font-size:large;"><strong>Boot the System</strong></span></p>
<p style="padding-left:30px;">Using the CD-ROM, boot the system in single-user mode (RedHat has the &#8220;rescue&#8221; mode).</p>
<p><strong><span style="font-size:large;">Scan the Physical Volumes</span></strong></p>
<p style="padding-left:30px;">To mount the filesystems, first we need to make the system aware of the Volume Groups. We can do that by scanning the physical volumes.</p>
<p style="padding-left:30px;"><em># lvm pvscan</em></p>
<p><strong><span style="font-size:large;">Scan the Volume Groups</span></strong></p>
<p style="padding-left:30px;">Next, scan the volume groups</p>
<p style="padding-left:30px;"><em># lvm vgscan</em></p>
<p><strong><span style="font-size:large;">Scan the Logical Volumes</span></strong></p>
<p style="padding-left:30px;">At this point, the Logical Volumes should already be available. Just in case, check for the logical volumes</p>
<p style="padding-left:30px;"><em># lvm lvscan</em></p>
<p style="padding-left:30px;">The logical volumes will appear with the status of <strong><em>inactive, </em></strong>don&#8217;t panic!!</p>
<p><strong><span style="font-size:large;">Activate the Logical Volumes</span></strong></p>
<p style="padding-left:30px;">The following command will make the Logical Volume active.</p>
<p style="padding-left:30px;"><em># lvm lvchange -ay &lt;logical_volume&gt;</em></p>
<p style="padding-left:30px;"><strong>Note</strong>: if you want to perform a batch activation, use:</p>
<p style="padding-left:30px;"><em># lvm lvscan | awk &#8216;{ print $2 }&#8217; | xargs -i lvm lvchange -ay {}</em></p>
<p style="padding-left:30px;">&nbsp;Check your volumes again with <em>lvscan </em>and you should see all of them activated.</p>
<p style="padding-left:30px;">&nbsp;Now you can fsck or mount your filesystems to change the root password or whatever you want to do.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nixinhell.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nixinhell.wordpress.com/115/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nixinhell.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nixinhell.wordpress.com/115/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nixinhell.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nixinhell.wordpress.com/115/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nixinhell.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nixinhell.wordpress.com/115/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nixinhell.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nixinhell.wordpress.com/115/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nixinhell.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nixinhell.wordpress.com/115/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nixinhell.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nixinhell.wordpress.com/115/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nixinhell.wordpress.com&amp;blog=9832399&amp;post=115&amp;subd=nixinhell&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nixinhell.wordpress.com/2011/10/18/linux-mounting-lvm-volumes-in-single-user-mode/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a4c35b966141be3afb5ce4d46b716958?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">wzanatta</media:title>
		</media:content>
	</item>
		<item>
		<title>[AIX] &#8211; Reorganizing physical partitions with lmigratepp</title>
		<link>http://nixinhell.wordpress.com/2011/04/10/aix-reorganizing-physical-partitions-with-lmigratepp/</link>
		<comments>http://nixinhell.wordpress.com/2011/04/10/aix-reorganizing-physical-partitions-with-lmigratepp/#comments</comments>
		<pubDate>Sun, 10 Apr 2011 21:10:00 +0000</pubDate>
		<dc:creator>William</dc:creator>
				<category><![CDATA[AIX]]></category>
		<category><![CDATA[aix]]></category>
		<category><![CDATA[lmigratepp]]></category>
		<category><![CDATA[move]]></category>
		<category><![CDATA[pp]]></category>
		<category><![CDATA[vg]]></category>

		<guid isPermaLink="false">http://nixinhell.wordpress.com/?p=94</guid>
		<description><![CDATA[Introduction Suppose that you got a VG with several disks, let&#8217;s say&#8230; 46 LUNs and now you&#8217;re in need not only to add more disks but also add larger disks. Now, imagine that you cannot work with the VG factor attribute for playing with the MAX PPs per PV because it would actually decrease the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nixinhell.wordpress.com&amp;blog=9832399&amp;post=94&amp;subd=nixinhell&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h2>Introduction</h2>
<p>Suppose that you got a VG with several disks, let&#8217;s say&#8230; 46 LUNs and now you&#8217;re in need not only to add more disks but also add larger disks. Now, imagine that you cannot work with the VG factor attribute for playing with the MAX PPs per PV because it would actually decrease the number of disks you can add to the VG.</p>
<p>It may be time to convert your VG to a Big or Scalable type and get rid of these limits.</p>
<p>On this article I will show you some of the magics this undocumented command can do for us.</p>
<h2>The task</h2>
<p>First of all, let&#8217;s take a look to the <strong>vg_hellpit </strong>for some important information. Observe that it has a PP Size of 128Mb, the MAX PVs is 128 and the MAX PPs per PV is 1016, which allows me to add LUNs up to 127Gb.</p>
<p style="padding-left:30px;">root@hellhound::/&gt; lsvg vg_hellpit<br />
 <strong>VOLUME GROUP:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; vg_hellpit</strong> VG IDENTIFIER:&nbsp; 00c061fa00004c000000012a73949e63<br />
 VG STATE:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; active&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <strong>PP SIZE:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 128 megabyte(s)</strong><br />
 VG PERMISSION:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; read/write&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TOTAL PPs:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 36744 (4703232 megabytes)<br />
 MAX LVs:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 512&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FREE PPs:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 63 (8064 megabytes)<br />
 LVs:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 6&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; USED PPs:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 36681 (4695168 megabytes)<br />
 OPEN LVs:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 6&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; QUORUM:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 24 (Enabled)<br />
 TOTAL PVs:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 46&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; VG DESCRIPTORS: 46<br />
 STALE PVs:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; STALE PPs:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0<br />
 ACTIVE PVs:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 46&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AUTO ON:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; yes<br />
 MAX PPs per VG:&nbsp;&nbsp;&nbsp;&nbsp; 130048<br />
 <strong>MAX PPs per PV:&nbsp;&nbsp;&nbsp;&nbsp; 1016&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MAX PVs:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 128</strong><br />
 LTG size (Dynamic): 256 kilobyte(s)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AUTO SYNC:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; no<br />
 HOT SPARE:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; no&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BB POLICY:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; relocatable</p>
<p>Now let&#8217;s consider that the world changes and needs changes&#8230;and  that now 127Gb is no longer considered a big LUN. Let&#8217;s think a little bigger&#8230;  300Gb. Your old VG does not support it anymore. Yes, you have a few  choices, but along with the simple technical stuff, comes the complexity  of the customer, a production environment and the need to increase that  same filesystems. And now you&#8217;re f**** up, as usual.</p>
<p>In order to convert your volume group to big or scalable, you will need to have enough free PP on <strong>each disk </strong>of the Volume Group you&#8217;re converting. Let&#8217;s take a brief look to <strong>vg_hellpit</strong> (I will show only a few disks) and see what we have.</p>
<p style="padding-left:30px;">root@hellhound::/&gt; lsvg -p vg_hellpit | egrep &#8220;hdisk(10|11|12|13|14)&#8221;<br />
 hdisk10 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; active&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 799&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 00..00..00..00..00<br />
 hdisk11 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; active&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 799&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 00..00..00..00..00<br />
 hdisk12 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; active&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 799&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 00..00..00..00..00<br />
 hdisk13 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; active&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 799&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 00..00..00..00..00<br />
 hdisk14 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; active&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 799&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 5&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 00..00..00..00..05</p>
<p>Oh shit, 4 of my PVs have no free PPs available. The first logical though would be to run a reorgvg and get things done. But wait, we are dealing with a huge VG, (only 4Tb of data) and that task could take hours to complete.</p>
<p>Hmm, what if we could migrate 1 single PP from hdisk10, hdisk11, hdisk12 and hdisk13 to hdisk14?? We would get the space we want! And now you ask, but how??</p>
<p>The <strong>lmigratepp </strong>command will migrate exactly 1 PP between 2 given PVs from the same VG. If you ever had the curiosity to check what <em>reorgvg </em>does when it is running, you have probably seen this program running. The syntax is sort of simple:</p>
<p style="padding-left:30px;"><em>Usage: lmigratepp -g VGid -p SourcePVid -n SourcePPnumber -P DestinationPVid -N DestinationPPnumber</em></p>
<p style="padding-left:30px;"><em><br />
 </em></p>
<h2>Using the command</h2>
<p>With that syntax in mind, let&#8217;s get the information we need to use the command.</p>
<p>First of all, we need the <strong>VGid</strong>.</p>
<p style="padding-left:30px;">root@hellhound::/&gt; lsvg vg_hellpit | grep IDENTIFIER<br />
 VOLUME GROUP:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; vg_hellpit &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; VG IDENTIFIER:&nbsp; <strong>00c061fa00004c000000012a73949e63</strong></p>
<p>Now, get the <strong>PVid</strong> from the source disk, let&#8217;s take <strong>hdisk10 as the source </strong>disk and <strong>hdisk14 as the destination </strong>disk.</p>
<p style="padding-left:30px;">root@hellhound::/&gt; lspv -L hdisk10 | grep IDENTIFIER<br />
 <strong>PV IDENTIFIER:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 00c061faf380a2b5</strong> VG IDENTIFIER&nbsp;&nbsp;&nbsp;&nbsp; 00c061fa00004c000000012a73949e63</p>
<p style="padding-left:30px;">root@hellhound::/&gt; lspv -L hdisk14 | grep IDENTIFIER<br />
 <strong>PV IDENTIFIER:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 00c061fa3bc03a3e</strong> VG IDENTIFIER&nbsp;&nbsp;&nbsp;&nbsp; 00c061fa00004c000000012a73949e63</p>
<p>You must have noticed that the VG IDENTIFIER is the same for both disks, obviously.</p>
<p>Now, let us choose one PP to be migrated from <strong>hdisk10 </strong>to <strong>hdisk14</strong>. Let make the PP number 1. For this specific situation, it could be any arbitrary PP as the <em><strong>chvg </strong></em>command would reorganize the PPs as needed during the conversion.</p>
<p>We&#8217;re almost there. It is time to find where to place that PP we are moving from <strong>hdisk10 </strong>on <strong>hdisk14</strong>. The <em><strong>lspv </strong></em>command should give you that information.</p>
<p style="padding-left:30px;">root@hellhound::/&gt; lspv -p hdisk14 | grep free<br />
 <strong>640-644&nbsp;&nbsp; free&nbsp;&nbsp;&nbsp; inner edge</strong></p>
<p>From the result the PPs at positions 640, 641, 642, 643 and 644 are free on hdisk14. Now, let&#8217;s put it all together&#8230;</p>
<p style="padding-left:30px;"><strong>VGID</strong>: 00c061fa00004c000000012a73949e63 (vg_hellpit)<br />
 <strong>Source PVID</strong>: 00c061faf380a2b5 (hdisk10)<br />
 <strong>Source PP</strong>: 0001<br />
 <strong>Destination PVID</strong>: 00c061fa3bc03a3e (hdisk14)<br />
 <strong>Destination PP</strong>: 640 (the first free PP taken from lspv)</p>
<p style="padding-left:30px;">&nbsp;</p>
<h2>Running the command</h2>
<p>The command is quiet it will not return you any messages upon success.</p>
<p style="padding-left:30px;">root@hellhound::/&gt; lmigratepp -g 00c061fa00004c000000012a73949e63 -p 00c061faf380a2b5 -n 0001 -P 00c061fa3bc03a3e -N 640</p>
<p>Let&#8217;s check the free PPs on hdisk14 again.</p>
<p style="padding-left:30px;">root@hellhound::/&gt; lspv -p hdisk14 | grep free<br />
 641-644&nbsp;&nbsp; free&nbsp;&nbsp;&nbsp; inner edge</p>
<p>Nice!! It changed!! Further, let&#8217;s check the PV map&#8230;</p>
<p style="padding-left:30px;">root@hellhound::/&gt; lsvg -p vg_data_file | egrep &#8220;hdisk(10|11|12|13|14)&#8221;<br />
 hdisk10 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; active&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 799&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 01..00..00..00..00<br />
 hdisk11 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; active&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 799&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 00..00..00..00..00<br />
 hdisk12 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; active&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 799&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 00..00..00..00..00<br />
 hdisk13 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; active&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 799&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 00..00..00..00..00<br />
 hdisk14 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; active&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 799&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 4 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 00..00..00..00..04</p>
<p>Wooohooo. Cool! We moved 1 PP from hdisk10 to hdisk14 and now hdisk10 has 1 free PP and hdisk14 has 4 free PPs, instead of the 5 initial PPs. Repeating the process for the other disks will give you this final result:</p>
<p style="padding-left:30px;">root@hellhound::/&gt; lsvg -p vg_data_file | egrep &#8220;hdisk(10|11|12|13|14)&#8221;<br />
 hdisk10 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; active&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 799&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 01..00..00..00..00<br />
 hdisk11 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; active&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 799&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 01..00..00..00..00<br />
 hdisk12 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; active&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 799&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 01..00..00..00..00<br />
 hdisk13 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; active&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 799&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 01..00..00..00..00<br />
 hdisk14 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; active&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 799&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 00..00..00..00..01</p>
<p>Hot stuff! You can now work on converting the VG to scalable mode and satisfy your DBA fellows with plenty of disk space.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nixinhell.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nixinhell.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nixinhell.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nixinhell.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nixinhell.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nixinhell.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nixinhell.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nixinhell.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nixinhell.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nixinhell.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nixinhell.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nixinhell.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nixinhell.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nixinhell.wordpress.com/94/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nixinhell.wordpress.com&amp;blog=9832399&amp;post=94&amp;subd=nixinhell&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nixinhell.wordpress.com/2011/04/10/aix-reorganizing-physical-partitions-with-lmigratepp/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a4c35b966141be3afb5ce4d46b716958?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">wzanatta</media:title>
		</media:content>
	</item>
		<item>
		<title>[AIX] &#8211; GPFS Basic Administration</title>
		<link>http://nixinhell.wordpress.com/2011/04/07/gpfs-basic-administration/</link>
		<comments>http://nixinhell.wordpress.com/2011/04/07/gpfs-basic-administration/#comments</comments>
		<pubDate>Thu, 07 Apr 2011 23:37:00 +0000</pubDate>
		<dc:creator>William</dc:creator>
				<category><![CDATA[AIX]]></category>
		<category><![CDATA[add]]></category>
		<category><![CDATA[aix]]></category>
		<category><![CDATA[disk]]></category>
		<category><![CDATA[gpfs]]></category>
		<category><![CDATA[remove]]></category>

		<guid isPermaLink="false">http://nixinhell.wordpress.com/?p=63</guid>
		<description><![CDATA[GPFS Basic Administration Note: this post is based on GPFS 3.1. The procedures described here may be different on newer versions. Make sure you check the documentation for updates. Adding a new disk to an existing GPFS filesystem Adding a disk to a GPFS filesystem is a simple task to accomplish but may be kind [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nixinhell.wordpress.com&amp;blog=9832399&amp;post=63&amp;subd=nixinhell&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong><span style="font-size:x-large;">GPFS Basic Administration</span></strong></p>
<p><em>Note: this post is based on GPFS 3.1</em>. <em>The procedures described here may be different on newer versions. Make sure you check the documentation for updates.</em></p>
<h1>Adding a new disk to an existing GPFS filesystem<em><br />
 </em></h1>
<p><strong> </strong>Adding a disk to a GPFS filesystem is a simple task to accomplish but may be kind of tricky for those who are not used to this feature. On this tutorial I am assuming that the procedure for configuring or recognizing a new disk on the system is well known.</p>
<p>You must be aware that the maximum disk size supported by the filesystem depends on the size of the disks used during the creation of the filesystem.</p>
<p>The basic steps to accomplish the whole task are:</p>
<ol>
<li>Configure the disk and set its PVID on all nodes where it must be available.</li>
<li>Create the description file for the new disks</li>
<li>Create the NSD (Network Shared Disk)</li>
<li>Add the disk to the desired filesystem</li>
</ol>
<h2><strong>Step 1 &#8211; Create the disk descriptor file</strong></h2>
<p>To create a NSD, you must have a file describing how your disk is going to be used on GPFS.</p>
<p>You can use the command <strong> mmlsnsd</strong> to show the current filesystems and the disks associated to them. That helps if you are not aware of how the system is organized.</p>
<p>The description file format is consisted of one single line per disk using the following format:</p>
<p style="padding-left:30px;"><em>DiskName:PrimaryServer:BackupServer:DiskUsage:FailureGroup:DesiredName:StoragePool</em></p>
<p style="padding-left:30px;">Example:</p>
<p style="padding-left:60px;"><em>hdisk1:hostmgr1:hostmgr2:dataAndMetadata:4001:nsddisk1:system</em></p>
<p>Here, <strong>hdisk1</strong> will be managed by the hosts <strong>hostmgr1 and hostmgr2</strong>, it will <strong>contain both data and metadata</strong>, will belong to the failure group<strong> 4001</strong>, its NSD worldwide name will be <strong>nsddisk1 </strong>and it will reside on the<strong> system</strong> storage pool.</p>
<p>The NSD name (<em>DesiredName</em>) is a unique disk identifier among the nodes on the cluster. You can think of it like a PVID.</p>
<p>Notice that, when you specify the <em>PrimaryServer </em>and <em>BackupServer, </em>you are instructing your entire cluster to do the I/O through these 2 nodes. If all of your nodes on the cluster have <strong>SAN-attached disks</strong> and they have all the same disks configured, you should ommit the <em>PrimaryServer </em>and <em>BackupServer </em>instructions <strong>to get a local I/O behavior</strong>.</p>
<h2><strong>Step 2 &#8211; Create the Network Shared Disk</strong></h2>
<p>This step will prepare the disks described on the description file to be used on the GPFS</p>
<p style="padding-left:30px;"><em>mmcrnsd -F &lt;description_file&gt;</em></p>
<p style="padding-left:30px;"><em> </em>Note: The <strong>mmcrnsd</strong> command also modifies the description file so that it can be used for other operations. If you <em>cat</em> the file you will see that the original description will be commented out and a new definition will appear below that line.</p>
<p>The new description file can be used for tasks like adding the disk to a filesystem or deleting it from the filesystem.</p>
<h2><strong>Step 3 &#8211; Add the new NSD to a filesystem</strong></h2>
<p>Using the description file modified on <strong>Step 2</strong>, add the disk to the filesystem. Make sure that the description file only contains the NSD entries you want to add to the filesystem. The<strong> mmadddisk</strong> command will add all disks found on the description file to the specified filesystem.</p>
<p style="padding-left:30px;"><em>mmadddisk &lt;filesystem_name&gt; -F &lt;description_file&gt;</em></p>
<h1>Removing a disk from a GPFS filesystem<em><br />
 </em></h1>
<p><strong> </strong>Removing a disk from a GPFS filesystem is a simple task. With a simple command, the GPFS will attempt to reallocate all data from the disk being removed to the remaining disks on the filesystem prior to the removal. It will also, optionally, rebalance the filesystem.</p>
<p>It is recommended that disk removal tasks are performed when system I/O is low. The reallocation of data will demand I/O from the server.</p>
<p>If you have the disk descriptor file with the disks you want to remove:</p>
<p style="padding-left:30px;"><em>mmdeldisk &lt;filesystem&gt; -F &lt;description_file&gt;</em></p>
<p>If you do not have the file, you can specify the NSD name of the disk:</p>
<p style="padding-left:30px;"><em>mmdeldisk &lt;filesystem&gt; &lt;NSD&gt;</em></p>
<h1>References</h1>
<ul>
<li>GPFS V3.1 Administration and Programming Reference</li>
</ul>
<ul>
<li>GPFS V3.1 Concepts, Planning, and Installation Guide</li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nixinhell.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nixinhell.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nixinhell.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nixinhell.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nixinhell.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nixinhell.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nixinhell.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nixinhell.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nixinhell.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nixinhell.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nixinhell.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nixinhell.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nixinhell.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nixinhell.wordpress.com/63/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nixinhell.wordpress.com&amp;blog=9832399&amp;post=63&amp;subd=nixinhell&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nixinhell.wordpress.com/2011/04/07/gpfs-basic-administration/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a4c35b966141be3afb5ce4d46b716958?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">wzanatta</media:title>
		</media:content>
	</item>
		<item>
		<title>[Linux] &#8211; Resolve RPM hang</title>
		<link>http://nixinhell.wordpress.com/2011/01/17/linux-resolve-rpm-hang/</link>
		<comments>http://nixinhell.wordpress.com/2011/01/17/linux-resolve-rpm-hang/#comments</comments>
		<pubDate>Mon, 17 Jan 2011 11:28:00 +0000</pubDate>
		<dc:creator>William</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[linux rpm hang rebuild]]></category>

		<guid isPermaLink="false">http://nixinhell.wordpress.com/2011/01/17/linux-resolve-rpm-hang/</guid>
		<description><![CDATA[First of all, make sure no rpm process are running. # # remove the rpm lock files # rm /var/lib/rpm/__db* # # then rebuild the RPM database # rpm &#8211;rebuilddb<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nixinhell.wordpress.com&amp;blog=9832399&amp;post=61&amp;subd=nixinhell&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>First of all, make sure no rpm process are running.</p>
<p>#<br />
# remove the rpm lock files<br />
#<br />
rm /var/lib/rpm/__db*</p>
<p>#<br />
# then rebuild the RPM database<br />
#<br />
rpm &#8211;rebuilddb</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nixinhell.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nixinhell.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nixinhell.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nixinhell.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nixinhell.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nixinhell.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nixinhell.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nixinhell.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nixinhell.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nixinhell.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nixinhell.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nixinhell.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nixinhell.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nixinhell.wordpress.com/61/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nixinhell.wordpress.com&amp;blog=9832399&amp;post=61&amp;subd=nixinhell&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nixinhell.wordpress.com/2011/01/17/linux-resolve-rpm-hang/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a4c35b966141be3afb5ce4d46b716958?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">wzanatta</media:title>
		</media:content>
	</item>
		<item>
		<title>[pSeries] &#8211; Upgrade system firmware (LIC)</title>
		<link>http://nixinhell.wordpress.com/2011/01/17/pseries-upgrade-system-firmware/</link>
		<comments>http://nixinhell.wordpress.com/2011/01/17/pseries-upgrade-system-firmware/#comments</comments>
		<pubDate>Mon, 17 Jan 2011 11:28:00 +0000</pubDate>
		<dc:creator>William</dc:creator>
				<category><![CDATA[pSeries]]></category>
		<category><![CDATA[hmc pseries]]></category>

		<guid isPermaLink="false">http://nixinhell.wordpress.com/2011/01/17/pseries-upgrade-system-firmware/</guid>
		<description><![CDATA[A common SA task is to keep all systems with the Licensed Internal Code (a.k.a. system firmware) up to date. During the upgrade process we often face problems due to failed hardware. Thus a good step to take prior to install a new LIC version is to check whether the system is ready to receive [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nixinhell.wordpress.com&amp;blog=9832399&amp;post=57&amp;subd=nixinhell&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>A common SA task is to keep all systems with the Licensed Internal Code (a.k.a. system firmware) up to date.</p>
<p>During the upgrade process we often face problems due to failed hardware. Thus a good step to take prior to install a new LIC version is to check whether the system is ready to receive a new LIC version.</p>
<p>On the HMC CLI this is easily accomplished w/ the following command.</p>
<p>#<br />
# Check whether the system is ready for a firmware operation.<br />
#<br />
updlic -o k -m &lt;frame&gt;</p>
<p style="padding-left:30px;"><em>hscroot@hmc:~&gt; updlic -o k -m myframe</em><br />
<em>Licensed Internal Code Readiness Check detected the following errors:</em><br />
<em>HSCF0071E Communication error to Secondary Flexible Service Processor on myframe:</em><br />
<em>No connection exists.</em></p>
<p>The example above shows that the secondary FSP needs maintenance. This means that an upgrade of the system firmware will not work until we have that problem fixed.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nixinhell.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nixinhell.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nixinhell.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nixinhell.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nixinhell.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nixinhell.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nixinhell.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nixinhell.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nixinhell.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nixinhell.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nixinhell.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nixinhell.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nixinhell.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nixinhell.wordpress.com/57/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nixinhell.wordpress.com&amp;blog=9832399&amp;post=57&amp;subd=nixinhell&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nixinhell.wordpress.com/2011/01/17/pseries-upgrade-system-firmware/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a4c35b966141be3afb5ce4d46b716958?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">wzanatta</media:title>
		</media:content>
	</item>
		<item>
		<title>[AIX] &#8211; 0506-040 Cannot find the Vfs value for file system /dev/hd9var</title>
		<link>http://nixinhell.wordpress.com/2010/12/06/aix-0506-040-cannot-find-the-vfs-value-for-file-system-devhd9var/</link>
		<comments>http://nixinhell.wordpress.com/2010/12/06/aix-0506-040-cannot-find-the-vfs-value-for-file-system-devhd9var/#comments</comments>
		<pubDate>Mon, 06 Dec 2010 12:49:02 +0000</pubDate>
		<dc:creator>William</dc:creator>
				<category><![CDATA[AIX]]></category>
		<category><![CDATA[aix]]></category>
		<category><![CDATA[filesystem]]></category>
		<category><![CDATA[fsck]]></category>
		<category><![CDATA[mount]]></category>
		<category><![CDATA[vfs]]></category>

		<guid isPermaLink="false">http://nixinhell.wordpress.com/2010/12/05/aix-0506-040-cannot-find-the-vfs-value-for-file-system-devhd9var/</guid>
		<description><![CDATA[After adding some memory modules to a frame this morning, a friend would not be able to bring one of the LPARs up. We spent around 2~3 hours trying to figure out what was going on. We were able to bring the server up to single-user mode but most of the commands we tried on [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nixinhell.wordpress.com&amp;blog=9832399&amp;post=52&amp;subd=nixinhell&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>After adding some memory modules to a frame this morning, a friend would not be able to bring one of the LPARs up. We spent around 2~3 hours trying to figure out what was going on. We were able to bring the server up to single-user mode but most of the commands we tried on the system would hang everything.</p>
<p>I started digging up for errors. Nothing found on the LPAR or the VIOS. Then I noticed that whenever we tried accessing anything on /var (read/write) the system would hang. Well, simple! I just needed to rung a filesystem check on /var. But wait&#8230; how?</p>
<p>Whenever the system comes up, /var is mounted on boot and some services start using it (i.e. the error daemon). On this specific filesystem, I tried fsck -n, umount -f and a remount, all without success.</p>
<p>Then I decided to for the following plan:</p>
<ul>
<li>Create a new empty filesystem</li>
<li>Restore /var backups from TSM (only the basic strucutre would fit)</li>
<li>Bring the server up in single user</li>
<li>Check and fix the original filesystem.</li>
</ul>
<p>Followed the plan and by the time I was running fsck on hd9var, I got the following results:</p>
<p style="padding-left:30px;">root@hellhound::/&gt; fsck /dev/hd9var<br />
fsck: 0506-040 Cannot find the Vfs value for file system /dev/hd9var.</p>
<p>Looking out for that message I found the command <strong>getlvcb </strong>which is undocumented but is found on IBM&#8217;s Redbook <strong>AIX Logical Volume Manager from A to Z: Troubleshooting and Commands</strong>.</p>
<p style="padding-left:30px;">#<br />
# getlvcb reads information from the Logical Volume Control Block.<br />
#<br />
getlvcb -AT /dev/hd9var</p>
<p>This returned nothing to me.</p>
<p style="padding-left:30px;">root@hellhound::/&gt; getlvcb -AT /dev/hd9var<br />
root@hellhound::/&gt;</p>
<p>The solution would be much simpler than I thought. I just added a new temporary reference to hd9var on /etc/filesystems and</p>
<p style="padding-left:30px;">#<br />
# chfs /tempvar will update the <strong>L</strong>ogical <strong>V</strong>olume <strong>C</strong>ontrol <strong>B</strong>lock (lvcb) information.<br />
#<br />
root@hellhound::/&gt; chfs /tempvar</p>
<p style="padding-left:30px;">#<br />
# fsck now knew what it is dealing with and would be able to repair the filesystem<br />
#<br />
root@hellhound::/&gt; fsck -y /tempvar<br />
The current volume is: /dev/hd9var<br />
&#8220;/etc/filesystems&#8221; 237 lines, 3945 characters<br />
*** Phase 1 &#8211; Initial inode scan<br />
Directory inode 4 has a node with an invalid sorting table (FIXED)<br />
Superblock marked dirty because repairs are about to be written.<br />
*** Phase 2 &#8211; Process remaining directories<br />
*** Phase 3 &#8211; Process remaining files<br />
*** Phase 4 &#8211; Check and repair inode allocation map<br />
*** Phase 5 &#8211; Check and repair block allocation map<br />
Inodes not connected to the root directory<br />
tree have been detected.  Will reconnect.<br />
File system is clean.<br />
Superblock is marked dirty (FIXED)<br />
All observed inconsistencies have been repaired.</p>
<p>After a double check, mounts and umounts, fixed the /etc/filesystems back to the correct state (/<strong>var over /dev/hd9var</strong>) and the system would boot up gracefully in multi-user mode.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nixinhell.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nixinhell.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nixinhell.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nixinhell.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nixinhell.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nixinhell.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nixinhell.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nixinhell.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nixinhell.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nixinhell.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nixinhell.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nixinhell.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nixinhell.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nixinhell.wordpress.com/52/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nixinhell.wordpress.com&amp;blog=9832399&amp;post=52&amp;subd=nixinhell&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nixinhell.wordpress.com/2010/12/06/aix-0506-040-cannot-find-the-vfs-value-for-file-system-devhd9var/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a4c35b966141be3afb5ce4d46b716958?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">wzanatta</media:title>
		</media:content>
	</item>
		<item>
		<title>[AIX] &#8211; startsrc will not start sendmail</title>
		<link>http://nixinhell.wordpress.com/2010/11/25/aix-startsrc-will-not-start-sendmail/</link>
		<comments>http://nixinhell.wordpress.com/2010/11/25/aix-startsrc-will-not-start-sendmail/#comments</comments>
		<pubDate>Thu, 25 Nov 2010 20:10:44 +0000</pubDate>
		<dc:creator>William</dc:creator>
				<category><![CDATA[AIX]]></category>
		<category><![CDATA[aix]]></category>
		<category><![CDATA[chssys]]></category>
		<category><![CDATA[odm]]></category>
		<category><![CDATA[sendmail]]></category>

		<guid isPermaLink="false">http://nixinhell.wordpress.com/2010/11/25/aix-startsrc-will-not-start-sendmail/</guid>
		<description><![CDATA[A few days ago I was implementing some modifications to a system on which I had to stop sendmail for some time. After the modifications have been made, starting sendmail turned into some frustration. $ startsrc -s sendmail 0513-059 The sendmail Subsystem has been started. Subsystem PID is 241830. Everything appeared to be fine. However [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nixinhell.wordpress.com&amp;blog=9832399&amp;post=42&amp;subd=nixinhell&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>A few days ago I was implementing some modifications to a system on which I had to stop sendmail for some time. After the modifications have been made, starting sendmail turned into some frustration.</p>
<p style="padding-left:30px;">$ startsrc -s sendmail<br />
<em>0513-059 The sendmail Subsystem has been started. Subsystem PID is 241830.</em></p>
<p>Everything appeared to be fine. However ps would reveal that sendmail was not running.</p>
<p>After struggling a while, I checked the console logs and found the message:</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <em>0 Fri Nov 12 13:17:00 EST 2010 Invalid operation mode: use the &#8220;-bd&#8221; flag when invoking sendmail via SRC</em></p>
<p>Then I wondered how to check for the starting flags&#8230;and I found it!</p>
<p style="padding-left:30px;">$ odmget -q subsysname=sendmail SRCsubsys<br />
SRCsubsys:<br />
&nbsp;&nbsp;&nbsp; subsysname = &#8220;sendmail&#8221;<br />
&nbsp;&nbsp;&nbsp; synonym = &#8220;&#8221;<br />
&nbsp;&nbsp;&nbsp; <strong>cmdargs = &#8220;&#8221;</strong><br />
&nbsp;&nbsp;&nbsp; path = &#8220;/usr/lib/sendmail&#8221;<br />
&nbsp;&nbsp;&nbsp; uid = 0<br />
&nbsp;&nbsp;&nbsp; auditid = 0<br />
&nbsp;&nbsp;&nbsp; standin = &#8220;/dev/console&#8221;<br />
&nbsp;&nbsp;&nbsp; standout = &#8220;/dev/console&#8221;<br />
&nbsp;&nbsp;&nbsp; standerr = &#8220;/dev/console&#8221;<br />
&nbsp;&nbsp;&nbsp; action = 2<br />
&nbsp;&nbsp;&nbsp; multi = 0<br />
&nbsp;&nbsp;&nbsp; contact = 3<br />
&nbsp;&nbsp;&nbsp; svrkey = 0<br />
&nbsp;&nbsp;&nbsp; svrmtype = 0<br />
&nbsp;&nbsp;&nbsp; priority = 20<br />
&nbsp;&nbsp;&nbsp; signorm = 0<br />
&nbsp;&nbsp;&nbsp; sigforce = 0<br />
&nbsp;&nbsp;&nbsp; display = 1<br />
&nbsp;&nbsp;&nbsp; waittime = 20<br />
&nbsp;&nbsp;&nbsp; grpname = &#8220;mail&#8221;</p>
<p>How to change it? Simple, chssys!!</p>
<p style="padding-left:30px;">$ chssys -s sendmail -a &#8220;-bd&#8221;</p>
<p>After that sendmail started gracefully.</p>
<p style="padding-left:30px;">$ startsrc -s sendmail<br />
<em>0513-059 The sendmail Subsystem has been started. Subsystem PID is 6201366.</em></p>
<p style="padding-left:30px;">&nbsp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nixinhell.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nixinhell.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nixinhell.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nixinhell.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nixinhell.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nixinhell.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nixinhell.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nixinhell.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nixinhell.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nixinhell.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nixinhell.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nixinhell.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nixinhell.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nixinhell.wordpress.com/42/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nixinhell.wordpress.com&amp;blog=9832399&amp;post=42&amp;subd=nixinhell&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nixinhell.wordpress.com/2010/11/25/aix-startsrc-will-not-start-sendmail/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a4c35b966141be3afb5ce4d46b716958?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">wzanatta</media:title>
		</media:content>
	</item>
		<item>
		<title>[AIX] &#8211; HACMP and SNMP Community Names</title>
		<link>http://nixinhell.wordpress.com/2010/11/25/aix-hacmp-and-snmp-community-names/</link>
		<comments>http://nixinhell.wordpress.com/2010/11/25/aix-hacmp-and-snmp-community-names/#comments</comments>
		<pubDate>Thu, 25 Nov 2010 18:04:33 +0000</pubDate>
		<dc:creator>William</dc:creator>
				<category><![CDATA[AIX]]></category>
		<category><![CDATA[HACMP]]></category>
		<category><![CDATA[aix hacmp snmp community]]></category>

		<guid isPermaLink="false">http://nixinhell.wordpress.com/?p=39</guid>
		<description><![CDATA[# # Get the community name used by HACMP. That is the first one different from &#8220;private&#8221; or &#8220;system&#8221;. # $ lssrc -ls snmpd &#124; grep -i community # # Test the community name found # # HACMP 5.4 $ /usr/es/sbin/cluster/utilities/clsnmpinfo -c &#60;community&#62; -m dump<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nixinhell.wordpress.com&amp;blog=9832399&amp;post=39&amp;subd=nixinhell&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>#<br />
# Get the community name used by HACMP. That is the first one different from &#8220;private&#8221; or &#8220;system&#8221;.<br />
#</p>
<p>$ lssrc -ls snmpd | grep -i community</p>
<p>#<br />
# Test the community name found<br />
#</p>
<p># HACMP 5.4<br />
$ /usr/es/sbin/cluster/utilities/clsnmpinfo -c &lt;community&gt; -m dump</p>
<table width="762">
</table>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nixinhell.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nixinhell.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nixinhell.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nixinhell.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nixinhell.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nixinhell.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nixinhell.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nixinhell.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nixinhell.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nixinhell.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nixinhell.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nixinhell.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nixinhell.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nixinhell.wordpress.com/39/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nixinhell.wordpress.com&amp;blog=9832399&amp;post=39&amp;subd=nixinhell&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nixinhell.wordpress.com/2010/11/25/aix-hacmp-and-snmp-community-names/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a4c35b966141be3afb5ce4d46b716958?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">wzanatta</media:title>
		</media:content>
	</item>
		<item>
		<title>[AIX] &#8211; Paging Space Usage</title>
		<link>http://nixinhell.wordpress.com/2010/11/08/aix-paging-space-usage/</link>
		<comments>http://nixinhell.wordpress.com/2010/11/08/aix-paging-space-usage/#comments</comments>
		<pubDate>Mon, 08 Nov 2010 15:05:05 +0000</pubDate>
		<dc:creator>William</dc:creator>
				<category><![CDATA[AIX]]></category>
		<category><![CDATA[aix]]></category>
		<category><![CDATA[memory]]></category>
		<category><![CDATA[paging]]></category>
		<category><![CDATA[pgsp]]></category>
		<category><![CDATA[process]]></category>
		<category><![CDATA[space]]></category>
		<category><![CDATA[swap]]></category>
		<category><![CDATA[user]]></category>

		<guid isPermaLink="false">http://localhost/wordpress/?p=10</guid>
		<description><![CDATA[# # List paging space usage by processes # $ svmon -P -O pgsz=on # # List paging space usage by user # $ svmon -U -O pgsz=on<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nixinhell.wordpress.com&amp;blog=9832399&amp;post=25&amp;subd=nixinhell&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>#<br />
# List paging space usage by processes<br />
#</p>
<p>$ svmon -P -O pgsz=on</p>
<p>#<br />
# List paging space usage by user<br />
#</p>
<p>$ svmon -U -O pgsz=on</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nixinhell.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nixinhell.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nixinhell.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nixinhell.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nixinhell.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nixinhell.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nixinhell.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nixinhell.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nixinhell.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nixinhell.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nixinhell.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nixinhell.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nixinhell.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nixinhell.wordpress.com/25/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nixinhell.wordpress.com&amp;blog=9832399&amp;post=25&amp;subd=nixinhell&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nixinhell.wordpress.com/2010/11/08/aix-paging-space-usage/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a4c35b966141be3afb5ce4d46b716958?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">wzanatta</media:title>
		</media:content>
	</item>
		<item>
		<title>[AIX] &#8211; Processes and open files</title>
		<link>http://nixinhell.wordpress.com/2010/11/03/aix_processes_and_open_files/</link>
		<comments>http://nixinhell.wordpress.com/2010/11/03/aix_processes_and_open_files/#comments</comments>
		<pubDate>Wed, 03 Nov 2010 19:46:15 +0000</pubDate>
		<dc:creator>William</dc:creator>
				<category><![CDATA[AIX]]></category>
		<category><![CDATA[aix]]></category>
		<category><![CDATA[files]]></category>
		<category><![CDATA[open]]></category>
		<category><![CDATA[pid]]></category>
		<category><![CDATA[process]]></category>
		<category><![CDATA[svmon]]></category>

		<guid isPermaLink="false">http://localhost/wordpress/?p=5</guid>
		<description><![CDATA[A few days ago I was asked by a friend about how would I get the name of the files opened by some processes. By that time he was trying lsof being able to see only the directory but not the file itself. Apparently that was some sort of version limitation. Compiling a new version [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nixinhell.wordpress.com&amp;blog=9832399&amp;post=24&amp;subd=nixinhell&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>A few days ago I was asked by a friend about how would I get the name of the files opened by some processes. By that time he was trying <em>lsof</em> being able to see only the directory but not the file itself. Apparently that was some sort of version limitation.</p>
<p>Compiling a new version would not be a viable solution as we&#8217;re dealing with customer&#8217;s servers lacking the necessary tools for compiling a new version.</p>
<p>After some research I came up by finding a way to get that information with the <em>svmon </em>command.</p>
<p>#<br />
# List processes and files open<br />
#<br />
svmon -P -O filename=on | awk &#8216;{if(/Pid/) { getline; print $0; }; if(NF == 1) { print $0 }; }&#8217;</p>
<p>Ouput:</p>
<p style="padding-left:30px;"><em>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</em><br />
<em> 6029462 dsmc             44499     7983        0    42374</em><br />
<em> /usr/tivoli/tsm/client/ba/bin/dsmc</em><br />
<em> /var/dsm_sched.log</em><br />
<em> /var/dsm_error.log</em><br />
<em> /usr/tivoli/tsm/client/lang/en_US/dsmclientV3.cat</em><br />
<em>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</em><br />
<em> 4915356 IBM.CSMAgentR    18754     7992        0    18091</em><br />
<em> /usr/sbin/rsct/bin/vac8/IBM.CSMAgentRMd</em><br />
<em> /var/ct/3484560716/registry/local_tree/IBM,ManagementSe</em><br />
<em> /var/ct/3484560716/lck/mc/RMIBM.CSMAgentRM</em><br />
<em> /var/ct/3484560716/registry/local_tree/IBM,ManagementSe</em><br />
<em> /var/ct/IBM.CSMAgentRM.stderr</em></p>
<p style="padding-left:30px;"><em><br />
</em></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nixinhell.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nixinhell.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nixinhell.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nixinhell.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nixinhell.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nixinhell.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nixinhell.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nixinhell.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nixinhell.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nixinhell.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nixinhell.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nixinhell.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nixinhell.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nixinhell.wordpress.com/24/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nixinhell.wordpress.com&amp;blog=9832399&amp;post=24&amp;subd=nixinhell&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nixinhell.wordpress.com/2010/11/03/aix_processes_and_open_files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a4c35b966141be3afb5ce4d46b716958?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">wzanatta</media:title>
		</media:content>
	</item>
	</channel>
</rss>
