<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>World is Welcome To Our World!!! » LVM</title>
	
	<link>http://blog.worldiswelcome.com</link>
	<description>The Power of Diversity...</description>
	<lastBuildDate>Sat, 16 May 2009 08:58:23 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language />
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/WorldIsWelcomeToOurBlogLvm" type="application/rss+xml" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><item>
		<title>The mkvg FAQs</title>
		<link>http://feedproxy.google.com/~r/WorldIsWelcomeToOurBlogLvm/~3/XF7a2JQ7H9Y/</link>
		<comments>http://blog.worldiswelcome.com/science-and-technology/aix/lvm/2009/04/the-mkvg-faqs/#comments</comments>
		<pubDate>Wed, 22 Apr 2009 22:45:33 +0000</pubDate>
		<dc:creator>Ganesh Dutt Sharma</dc:creator>
				<category><![CDATA[LVM]]></category>
		<category><![CDATA[AIX]]></category>
		<category><![CDATA[IBM]]></category>
		<category><![CDATA[logical volume]]></category>
		<category><![CDATA[Logical Volume Manager]]></category>
		<category><![CDATA[LV]]></category>
		<category><![CDATA[Physical Volume]]></category>
		<category><![CDATA[PV]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[VG]]></category>
		<category><![CDATA[Volume Group]]></category>
		<category><![CDATA[Volume Manager]]></category>
		<category><![CDATA[world is welcome]]></category>

		<guid isPermaLink="false">http://www.worldiswelcome.com/?p=1720</guid>
		<description><![CDATA[Here in this post I'm presenting few things in the form of FAQs. The can be used as a ready reference while creating Volume Groups. To know how to create Volume Group read the article: How To Create Volume Group.]]></description>
			<content:encoded><![CDATA[<p>Here in this post I&#8217;m presenting few things in the form of FAQs. The can be used as a ready reference while creating Volume Groups. To know how to create Volume Group read the article: <a href="http://www.worldiswelcome.com/science-and-technology/aix/lvm/2009/04/how-to-create-volume-group/">How To Create Volume Group</a>.</p>
<p><strong>Q 1.</strong> While creating Volume Group can I use Physical Volumes which are part of other Volume Groups?<br />
<strong>Answer:</strong> <strong>No</strong> and <strong>Yes</strong>.<br />
<strong>No:</strong> The Physical Volumes specified are checked to see if these are part of other Volume Groups. If they are used in other Volume Groups, the command terminates without creating Volume Group.<br />
<strong>Yes: </strong>If you specify -f option while creating a new Volume Group, then its possible. See what happens.<br />
Let&#8217;s say you have issued the following command:<br />
mkvg -f -y my_vg hdisk2 hdisk3 hdisk4</p>
<p>Let&#8217;s say hdisk3 is part of another Volume Group: my_other_vg. Here two things happen:</p>
<ol>
<li>If the Volume Group: my_other_vg is varied off at the time of creating new Volume Group my_vg, the Volume Group my_vg will be created with the Physical Volumes hdisk2, hdisk3 and hdisk4. But, <em><strong>the previous contents of hdisk3 will be lost</strong></em>.</li>
<li>If the Volume Group: my_other_vg is varied on, the command will terminate and Volume Group my_vg will not be created.</li>
</ol>
<p><strong>Q2</strong>. Which users can create a Volume Group?<br />
<strong>Answer:</strong> The user should be either <strong>root</strong> or someone belonging to <strong>System</strong> group.</p>
<p><strong>Q3</strong>. Is it necessary to specify the Physical Partition size while creating Volume Group?<br />
<strong>Answer</strong>: Obviously <strong>No</strong>. The mkvg command automatically adjusts the size of Physical Partitions according to the size of Physical Volume. If however you need to specify the size of Physical Partitions, then keep in mind that it should be large enough to accommodate the full Physical Volume.</p>
<p>For example: if suppose you have physical volume of size 130GB the Physical Partitions size is automatically adjusted to 128MB by the system. If you need to change it to 64MB, then specify -s 64 and -t 2. See this article: <a href="http://www.worldiswelcome.com/science-and-technology/aix/lvm/2009/04/how-to-create-volume-group/">How To Create Volume Group</a> to know more.</p>
<p><strong>Q4</strong>. How can I specify the Physical Partitions size less than the default size?<br />
<strong>Answer</strong>: Refer to Q3.</p>
<p><strong>Q5</strong>. While creating Volume Group can I use Physical Volumes which are part of third party Volume Managers?<br />
<strong>Answer</strong>: <strong>No</strong>: The command terminates if it detects that the Physical Volume specified is being used by some other third party Volume Manager e.g VxVM(Veritas Volume Manager).</p>
<p><strong>Q6</strong>. How can I use the Physical Volume in Volume Group creation which was in use of some other third party Volume Manager?<br />
<strong>Answer</strong>: You have to clear the Physical Volume of the third party volume manager. Specify -C option with chpv as below:<br />
<em><strong>chpv -C hdisk3</strong></em></p>
<p><strong>Q7</strong>. Does Volume Group varyon always automatically?<br />
<strong>Answer</strong>: <strong>No</strong>. By default the Volume Group varies on automatically after creation.<br />
In following two conditions, the Volume Group will not varyon automatically:</p>
<ol>
<li>If you specify -n option with mkvg command.</li>
<li>If you specify -C option, to make it concurrent capable, then it&#8217;s not varied on automatically</li>
</ol>
<p><strong>Q8</strong>. Can I specify total number of Physical Partitions in Volume Group at the time of creation?<br />
<strong>Answer</strong>: <strong>Yes</strong>. You can use -P option. The valid values are: 32, 64, 128, 256, 512, 1024, 2048. Specifying any value will limit maximum number of physical partitions to: <strong>value</strong>X<strong>1024</strong> partitions. e.g 32 will limit maximum number of physical partitions in Volume Group to : 32X1024=32768 partitions.</p>
<p><strong>Q9</strong>. Can I specify total number of Logical Volumes in Volume Group at the time of creation?<br />
<strong>Answer</strong>: <strong>Yes</strong>. You can use -v option. The valid values are: 256, 512, 1024, 2048. Specifying any value will limit maximum number of Logical Volumes in Volume Group to : <strong>value</strong> Logical Volumes. e.g 512 will limit maximum number of Logical Volumes in Volume Group to : 512 Logical Volumes.</p>
<p><strong>Q10</strong>. Can I import Volume Group created in AIX 5.3 to AIX 5.2 or lower?<br />
<strong>Answer</strong>: By default <strong>No</strong>. But if you want to do it, specifying -I option at the time of creation of Volume Group, you will be able to import in AIX 5.2 or lower.</p>
<p><strong>Q11</strong>. Are there any conditions when I can not import Volume Groups created in AIX 5.3 to lower versions of AIX?<br />
<strong>Answer</strong>: <strong>Yes</strong>. In the following two conditions:</p>
<ol>
<li>If Volume Group is Big VG, created with -B flag then you can not import it to AIX 4.3.1 or lower.</li>
<li>If Volume Group is Scalable VG, created with -S flag then you can not import it to AIX 5.2 or lower.</li>
</ol>
<img src="http://feeds.feedburner.com/~r/WorldIsWelcomeToOurBlogLvm/~4/XF7a2JQ7H9Y" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.worldiswelcome.com/science-and-technology/aix/lvm/2009/04/the-mkvg-faqs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.worldiswelcome.com/science-and-technology/aix/lvm/2009/04/the-mkvg-faqs/</feedburner:origLink></item>
		<item>
		<title>How To Create Volume Group</title>
		<link>http://feedproxy.google.com/~r/WorldIsWelcomeToOurBlogLvm/~3/cNfa-SAITHY/</link>
		<comments>http://blog.worldiswelcome.com/science-and-technology/aix/lvm/2009/04/how-to-create-volume-group/#comments</comments>
		<pubDate>Wed, 22 Apr 2009 06:15:45 +0000</pubDate>
		<dc:creator>Ganesh Dutt Sharma</dc:creator>
				<category><![CDATA[LVM]]></category>
		<category><![CDATA[AIX]]></category>
		<category><![CDATA[IBM]]></category>
		<category><![CDATA[logical volume]]></category>
		<category><![CDATA[Logical Volume Manager]]></category>
		<category><![CDATA[LV]]></category>
		<category><![CDATA[Physical Volume]]></category>
		<category><![CDATA[PV]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[VG]]></category>
		<category><![CDATA[Volume Group]]></category>
		<category><![CDATA[Volume Manager]]></category>
		<category><![CDATA[world is welcome]]></category>

		<guid isPermaLink="false">http://www.worldiswelcome.com/?p=1711</guid>
		<description><![CDATA[Lots of things need to be considered while creating Volume Groups. In this post I'm presenting various scenarios of Volume Group creation. In the previous post I introduced you to listing of Volume Groups. For the ones interested in fundamentals of Logical Volume Manager read the previous article: Aix Logical Volume Manager A Brief Introduction... ]]></description>
			<content:encoded><![CDATA[<p>Lots of things need to be considered while creating Volume Groups. In this post I&#8217;m presenting various scenarios of Volume Group creation. In the previous post I introduced you to listing of Volume Groups. For the ones interested in fundamentals of Logical Volume Manager read the previous article: <span style="text-decoration: underline;"><a href="http://www.worldiswelcome.com/science-and-technology/aix/lvm/2009/04/aix-logical-volume-manager-a-brief-introduction/">Aix Logical Volume Manager A Brief Introduction</a></span>&#8230;</p>
<p>To add a Volume Group, we need to have few things in mind:</p>
<ol>
<li>The name of <a href="http://www.worldiswelcome.com/science-and-technology/aix/lvm/2009/04/volume-group-in-aix-a-primer/">Volume Group</a>.</li>
<li>Whether you want to limit the maximum number of <span style="text-decoration: underline;"><a href="http://www.worldiswelcome.com/science-and-technology/aix/lvm/2009/03/physical-volume-in-aix-a-primer/">Physical Volumes</a></span> in this Volume Group.</li>
<li>Names of Physical Volumes used while creating Volume Group.</li>
<li>The size of Physical Partition.</li>
</ol>
<p>I assume the size of all Physical Volumes to be hdisk2 and hdisk3 each of size 130GB.</p>
<p><strong>How To Create A Volume Group</strong><br />
If you want to keep default settings the Physical Partition size will be: 130*1000/1016 MB which turns about to be around 128MB.</p>
<p>So, you VG creation command will be:<br />
<em><strong>mkvg -y my_vg hdisk2 hdisk3</strong></em></p>
<p><strong>How To Create A Volume Group With More Than 1016 Physical Partitions Per Physical Volume</strong><br />
Now, let&#8217;s say you want to have maximum number of Physical Partitions to be more than 1016 or you want lower than 128MB Physical Partition size, you can use <em><strong>t-factor</strong></em>. The t-factor helps you increase the maximum number of Physical Partitions per Physical Volume. But it decreases the maximum possible Physical Volume in a Volume Group. If you could have 32 Pvs previously, with a t-factor of 2, you will have now maximum of 16 Pvs. T-factor can only be an integer.</p>
<p>Now see what happens:</p>
<p>Maximum no. of PPs: 2*1016=2032<br />
Size of PV: 130GB.<br />
Size of single PP:130*1000/2032=64MB</p>
<p>So, you will need to specify s also, which stands for the size of Physical Partition to use. Which in our case will be 64MB.</p>
<p><em><strong>mkvg -s 64 -t 2 -y my_vg hdisk2 hdisk3</strong></em></p>
<p><strong>How To Create A Big Volume Group</strong><br />
To create a Big Volume Group, specify -B option. With this option you can have maximum of 128 Physical Volumes and 512 Logical Volumes.<br />
Issue the command:<br />
<em><strong>mkvg -B -v 512 -y my_vg hdisk2 hdisk3</strong></em></p>
<p>-v option is used to specify the number of <span style="text-decoration: underline;"><a href="http://www.worldiswelcome.com/science-and-technology/aix/lvm/2009/04/aix-logical-volume-manager-a-brief-introduction/">Logical Volumes</a></span>. The valid values of -v are: 256, 512, 1024 and 2048.</p>
<p><strong>How To Create A Scalable Volume Group</strong><br />
To create a Scalable Volume Group, specify -S option. With this option you can have maximum of 1016 Physical Volumes and 2048 Logical Volumes.<br />
Issue the command:<br />
<em><strong>mkvg -S -v 2048 -y my_vg hdisk2 hdisk3</strong></em></p>
<p><strong>How To Create A Volume Group With A Given Major Number</strong><br />
Let&#8217;s say for example you want to create a Volume Group with a Major Number 43.<br />
Issue the command:<br />
<em><strong>mkvg -V 43 -y my_vg hdisk2 hdisk3</strong></em></p>
<p>To know the major number, you should issue the command:<br />
<em><strong>wiw_labs:$ lvlstmajor</strong></em><br />
<em><strong>43&#8230;</strong></em></p>
<p><strong>How To Create A Volume Group And Accept Physical Volumes From Standard Input</strong><br />
To accept list of Physical Volume from standard input you need to issue mkvg command with -i option.<br />
<em><strong>echo &#8220;hdisk2 hdisk3&#8243; | mkvg -i -y my_vg</strong></em></p>
<p><span style="text-decoration: underline;">  </span></p>
<p><strong>How To Create An Enhanced Concurrent Capable Volume Group </strong></p>
<p>For enhanced concurrent capable Volume Group you need to issue mkvg command with -c option. See this article for more information on types of Volume Group. <a href="http://www.worldiswelcome.com/science-and-technology/aix/2009/01/non-concurrent-concurrent-and-enhanced-concurrent-volume-groups/"></a>.</p>
<p> <em><strong>mkvg -c -y my_vg hdisk2 hdisk3</strong></em></p>
<p>If you are using HACMP then use:<br />
<em><strong>mkvg -C -y my_vg hdisk2 hdisk3</strong></em></p>
<p><strong>How To Create A Volume Group Which Does Not Vary on Automatically</strong><br />
For creating a Volume Group which does not varyon automatically, you need to issue mkvg command with -n option.<br />
<em><strong>mkvg -n -y my_vg hdisk2 hdisk3</strong></em></p>
<img src="http://feeds.feedburner.com/~r/WorldIsWelcomeToOurBlogLvm/~4/cNfa-SAITHY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.worldiswelcome.com/science-and-technology/aix/lvm/2009/04/how-to-create-volume-group/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.worldiswelcome.com/science-and-technology/aix/lvm/2009/04/how-to-create-volume-group/</feedburner:origLink></item>
		<item>
		<title>How To List Volume Groups and Their Characteristics</title>
		<link>http://feedproxy.google.com/~r/WorldIsWelcomeToOurBlogLvm/~3/O1H07YkmTTY/</link>
		<comments>http://blog.worldiswelcome.com/science-and-technology/aix/lvm/2009/04/how-to-list-volume-groups-and-their-characteristics/#comments</comments>
		<pubDate>Sat, 18 Apr 2009 10:00:05 +0000</pubDate>
		<dc:creator>Ganesh Dutt Sharma</dc:creator>
				<category><![CDATA[LVM]]></category>

		<guid isPermaLink="false">http://www.worldiswelcome.com/?p=1697</guid>
		<description><![CDATA[I introduced Volume Groups in one of my previous posts. In this post I'm going to discuss, how to carry out common operations on Volume Groups. For more information you can see the previous article: Aix Logical Volume Manager A Brief Introduction.
Here are few things which I'm gonna discuss in this post:
]]></description>
			<content:encoded><![CDATA[<p>I introduced <a href="http://www.worldiswelcome.com/science-and-technology/aix/lvm/2009/04/volume-group-in-aix-a-primer/">Volume Groups</a> in one of my previous posts. In this post I&#8217;m going to discuss, how to carry out common operations on Volume Groups. For more information you can see the previous article: <a href="http://www.worldiswelcome.com/science-and-technology/aix/lvm/2009/04/aix-logical-volume-manager-a-brief-introduction/">Aix Logical Volume Manager A Brief Introduction</a>.</p>
<p>Here are few things which I&#8217;m gonna discuss in this post:</p>
<p><strong>How To List Volume Groups</strong><br />
Using command <strong><em>lsvg</em></strong> provides the complete list of Volume Groups available in the system. That does not matter whether the volume group is varied on or varied off.<br />
e.g.<br />
<strong><em>wiw_labs:$ lsvg</em></strong><br />
<strong><em>altinst_rootvg</em></strong><br />
<strong><em>rootvg</em></strong><br />
<strong><em>myvg</em></strong><br />
<strong><em>appvg</em></strong></p>
<p><strong>How To List Only Varied On Volume Groups</strong><br />
Using command <strong><em>lsvg</em></strong>, with <strong><em>-o</em></strong> option provides the list of Volume Groups which are currently varied on. Varied on means the Volume Group is open for use.<br />
e.g.<br />
<strong><em>wiw_labs:$ lsvg -o</em></strong><br />
<strong><em>rootvg</em></strong><br />
<strong><em>appvg</em></strong></p>
<p><strong>How To List Volume Group Characteristics</strong><br />
To list characteristics of a particular <a href="http://www.worldiswelcome.com/science-and-technology/aix/lvm/2009/04/volume-group-in-aix-a-primer/">Volume Group</a>, we use the <strong><em>lsvg</em></strong> command with <strong><em>-l</em></strong> option and name of Volume Group.</p>
<p>e.g <strong><em>wiw_labs:$ lsvg appvg</em></strong></p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td>
<p align="right">VOLUME GROUP</p>
</td>
<td>
<p align="right">appvg</p>
</td>
<td>
<p align="right">VG IDENTIFIER</p>
</td>
<td>
<p align="right">005ab34300004c00000000ff753cd62b</p>
</td>
</tr>
<tr>
<td>
<p align="right">VG STATE</p>
</td>
<td>
<p align="right">active</p>
</td>
<td>
<p align="right">PP SIZE</p>
</td>
<td>
<p align="right">64 megabyte(s)</p>
</td>
</tr>
<tr>
<td>
<p align="right">VG PERMISSION</p>
</td>
<td>
<p align="right">read/write</p>
</td>
<td>
<p align="right">TOTAL PPs</p>
</td>
<td>
<p align="right">1618 (103552 megabytes)</p>
</td>
</tr>
<tr>
<td>
<p align="right">MAX LVs</p>
</td>
<td>
<p align="right">256</p>
</td>
<td>
<p align="right">FREE PPs</p>
</td>
<td>
<p align="right">215 (13760 megabytes)</p>
</td>
</tr>
<tr>
<td>
<p align="right">LVs</p>
</td>
<td>
<p align="right">25</p>
</td>
<td>
<p align="right">USED PPs</p>
</td>
<td>
<p align="right">1403 (89792 megabytes)</p>
</td>
</tr>
<tr>
<td>
<p align="right">OPEN LVs</p>
</td>
<td>
<p align="right">25</p>
</td>
<td>
<p align="right">QUORUM</p>
</td>
<td>
<p align="right">1 (Disabled)</p>
</td>
</tr>
<tr>
<td>
<p align="right">TOTAL PVs</p>
</td>
<td>
<p align="right">2</p>
</td>
<td>
<p align="right">VG DESCRIPTORS</p>
</td>
<td>
<p align="right">3</p>
</td>
</tr>
<tr>
<td>
<p align="right">STALE PVs</p>
</td>
<td>
<p align="right">0</p>
</td>
<td>
<p align="right">STALE PPs</p>
</td>
<td>
<p align="right">0</p>
</td>
</tr>
<tr>
<td>
<p align="right">ACTIVE PVs</p>
</td>
<td>
<p align="right">2</p>
</td>
<td>
<p align="right">AUTO ON</p>
</td>
<td>
<p align="right">yes</p>
</td>
</tr>
<tr>
<td>
<p align="right">MAX PPs per VG</p>
</td>
<td>
<p align="right">32512</p>
</td>
<td>
<p align="right"> </p>
</td>
<td>
<p align="right"> </p>
</td>
</tr>
<tr>
<td>
<p align="right">MAX PPs per PV</p>
</td>
<td>
<p align="right">2032</p>
</td>
<td>
<p align="right">MAX PVs</p>
</td>
<td>
<p align="right">16</p>
</td>
</tr>
<tr>
<td>
<p align="right">LTG size</p>
</td>
<td>
<p align="right">128 kilobyte(s)</p>
</td>
<td>
<p align="right">AUTO SYNC</p>
</td>
<td>
<p align="right">no</p>
</td>
</tr>
<tr>
<td>
<p align="right">HOT SPARE</p>
</td>
<td>
<p align="right">no</p>
</td>
<td>
<p align="right">BB POLICY</p>
</td>
<td>
<p align="right">relocatable</p>
</td>
</tr>
</tbody>
</table>
<p>Below is explained the meaning of various terms used in the listing:</p>
<ol type="1">
<li><strong>Volume Group:</strong> Name of Volume Group.</li>
<li><strong>VG State:</strong> active/partial. Partial indicates that some of the Physical Volumes in the Volume Group are not active. See <a href="http://www.worldiswelcome.com/science-and-technology/aix/lvm/2009/04/volume-group-in-aix-a-primer/">this</a> for more on VG state.</li>
<li><strong>VG Permission:</strong> It indicates if the volume group is <strong><em>read-only </em></strong>or <strong><em>read-write</em></strong>.</li>
<li><strong>Max LVs:</strong> Maximum number of <a href="http://www.worldiswelcome.com/science-and-technology/aix/lvm/2009/04/logical-volume-in-aix-%e2%80%93-a-primer/">Logical Volumes</a> allowed in Volume Group.</li>
<li><strong>LVs:</strong> Total number of Logical Volumes at present in Volume Group.</li>
<li><strong>Open LVs:</strong> Number of LVs open at present in the Volume Group for any Read Write operation.</li>
<li><strong>Total PVs:</strong> Total number of <a href="http://www.worldiswelcome.com/science-and-technology/aix/lvm/2009/03/physical-volume-in-aix-a-primer/">Physical Volumes</a> present in Volume Group.</li>
<li><strong>Stale PVs:</strong> How many stale Physical Volumes are there in Volume Group. The stale Physical Volumes are those ones on which I/O operations are not possible.</li>
<li><strong>Active PVs:</strong> Total number of Physical Volumes which are active in Volume Group.</li>
<li><strong>Max PPs per VG:</strong> Maximum no. of Physical Partitions which can be there in the Volume Group.</li>
<li><strong>Max PPs per PV:</strong> Maximum number of Physical Partitions which can be there in Physical Volume.</li>
<li><strong>VG Identifier:</strong> The very long string to identify Volume Group.</li>
<li><strong>PP Size:</strong> The size of Physical Partition used in every Physical Volume of Volume Group.</li>
<li><strong>Total PPs:</strong> Total number of Physical Partitions in Volume Group.</li>
<li><strong>Free PPs:</strong> Total number of free Physical Partitions with in Volume Group.</li>
<li><strong>Used PPs:</strong> Total number of Physical Partitions in use in Volume Group.</li>
<li><strong>Quorum:</strong> Whether the quorum is on or not in Volume Group.</li>
<li><strong>VG Descriptors:</strong> Number of Volume Group Descriptor Areas(VGDA) in Volume Group.</li>
<li><strong>Stale PPs:</strong> How many Physical Partitions are stale or unable to perform I/O operations.</li>
<li><strong>Auto On:</strong> Whether the Volume Group will varyon on system startup or not.</li>
<li><strong>Max PVs:</strong> Maximum number of Physical Volumes allowed in this Volume Group.</li>
<li><strong>Auto Sync:</strong> Whether this Volume Group should sync automatically or not.</li>
<li><strong><a href="http://www.worldiswelcome.com/science-and-technology/aix/lvm/2009/04/how-does-aix-deal-with-bad-blocks/">BB Policy</a>:</strong> Its bad block relocation policy. So, this value here is relocatable, that means we are allowed to relocate bad blocks in this Volume Group if need be.</li>
</ol>
<p>(Refer AIX Manpages for more details.)</p>
<img src="http://feeds.feedburner.com/~r/WorldIsWelcomeToOurBlogLvm/~4/O1H07YkmTTY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.worldiswelcome.com/science-and-technology/aix/lvm/2009/04/how-to-list-volume-groups-and-their-characteristics/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.worldiswelcome.com/science-and-technology/aix/lvm/2009/04/how-to-list-volume-groups-and-their-characteristics/</feedburner:origLink></item>
		<item>
		<title>Reorganize Volume Group What Is It And How To Do It?</title>
		<link>http://feedproxy.google.com/~r/WorldIsWelcomeToOurBlogLvm/~3/vTC8yRGgWHU/</link>
		<comments>http://blog.worldiswelcome.com/science-and-technology/aix/lvm/2009/04/reorganize-volume-group-what-is-it-and-how-to-do-it/#comments</comments>
		<pubDate>Mon, 13 Apr 2009 00:45:44 +0000</pubDate>
		<dc:creator>Ganesh Dutt Sharma</dc:creator>
				<category><![CDATA[LVM]]></category>
		<category><![CDATA[AIX]]></category>
		<category><![CDATA[How to reorganize volume group]]></category>
		<category><![CDATA[IBM]]></category>
		<category><![CDATA[Logical Partition]]></category>
		<category><![CDATA[logical volume]]></category>
		<category><![CDATA[LV]]></category>
		<category><![CDATA[Physical Partition]]></category>
		<category><![CDATA[PV]]></category>
		<category><![CDATA[reorgvg]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[Volume Group]]></category>
		<category><![CDATA[world is welcome]]></category>

		<guid isPermaLink="false">http://www.worldiswelcome.com/?p=1596</guid>
		<description><![CDATA[What is reorganization of a Volume Group and why its needed, is a bit confusing for the system administrators. Here in this article I am explaining it to make it easier for the reader]]></description>
			<content:encoded><![CDATA[<p>What is reorganization of a Volume Group and why its needed, is a bit confusing for the system administrators. Here in this article I am explaining it to make it easier for the reader.</p>
<p><strong>Why Does Logical Volume Become Fragmented</strong><br />
A file system needs to be created on a Logical Volume to make it usable. When we run out of space on a File System, we have to add additional space to the Logical Volume, with which the file system is related. Now, Logical Volume&#8217;s space is increased by adding new Logical Partitions to it, which in turn point to Physical Partitions on Physical Volumes. <strong><em>Its not necessary that the Logical Partitions, which we are providing to a Logical Volume are close to its previous Logical Partitions.</em></strong> The very next Physical Partitions available on Physical Volume are assigned to Logical Partitions and those Logical Partitions are assigned to Logical Volume. As a result fragmentation occurs in a Logical Volume with time. This leads to performance issues later on.</p>
<p><strong>What is Volume Group Reorganization</strong><br />
To get best performance from a Volume Group, its required that all the Logical Partitions within respective Logical Volumes must be contiguous. Or to say it more clearly, the Physical Partitions should be contiguous. For this purpose we need to reorganize the Volume Group. In this process, the Physical Partitions within Physical Volumes are assigned to Logical Volumes as per their characteristics. The net result is that the Logical Partitions point to Contiguous Physical Partitions within the Logical Volume.</p>
<p><strong>Command Used To Reorganize A Volume Group</strong><br />
The command provided by Aix is reorgvg. The reorgvg command is used to reorganize the VG. The general format is:</p>
<blockquote><p><strong><em>reorgvg [-i] VG [LV1 LV2 LV3...]</em></strong></p>
<p>-i: This option specifies that the input Physical Volumes comes from standard input. Only LVs within those Physical Volumes will be reorganized.<br />
e.g<br />
<strong><em>reorgvg my_vg lv2 lv5 lv9</em></strong></p>
<p>This command is to reorganize Logical Volumes lv2, lv5 and lv9 within Volume Group my_vg.</p></blockquote>
<p>If you want to specify that Physical Partitions from particular Physical Volumes only should be reorganized then you give command:</p>
<blockquote><p><strong><em>echo &#8220;hdisk2 hdisk3&#8243; | reorgvg my_vg lv2 lv5 lv9</em></strong></p></blockquote>
<p>Now, whichever Physical Partitions related to lv2, lv5 and lv9 reside on hdisk2 and hdisk3, will be reorganized.</p>
<p><strong>Things To Take Care About reorgvg Command</strong><br />
There are several things which should be taken care of while using reorgvg command:</p>
<ol type="1">
<li>At least one Physical Partition should be free on Physical Volume. Otherwise command will fail.</li>
<li>User should be either root user or system group member.</li>
<li>if no arguments are given to reorgvg command, the whole Volume Group is reorganized.</li>
<li>
<p class="MsoNormal" style="margin: 0in 0in 0pt;"><span style="font-size: small; font-family: Times New Roman;">The reorganization flag of Logical Volume Should be set to Yes. Use:</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt;"><span style="font-size: small;"><span style="font-family: Times New Roman;"><strong style="mso-bidi-font-weight: normal;"><em style="mso-bidi-font-style: normal;">chlv –r lv<span style="mso-spacerun: yes;">   </span></em></strong>to do this, it’s not enabled.<strong style="mso-bidi-font-weight: normal;"><em style="mso-bidi-font-style: normal;"></em></strong></span></span></p>
</li>
</ol>
<p><strong>What is The Limitation of reorgvg Command</strong><br />
The command has limitation that it does not recognize the placement of allocated Physical Partitions for striped Logical Volumes. As a result you may not run command on striped metaluns.</p>
<p><strong>Is This reorgvg Command Disallowed Somewhere</strong><br />
Yes, The command is not allowed on snapshot Volume Group. Also the Volume Group should not be concurrent.</p>
<img src="http://feeds.feedburner.com/~r/WorldIsWelcomeToOurBlogLvm/~4/vTC8yRGgWHU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.worldiswelcome.com/science-and-technology/aix/lvm/2009/04/reorganize-volume-group-what-is-it-and-how-to-do-it/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.worldiswelcome.com/science-and-technology/aix/lvm/2009/04/reorganize-volume-group-what-is-it-and-how-to-do-it/</feedburner:origLink></item>
		<item>
		<title>How To Work With Physical Volumes</title>
		<link>http://feedproxy.google.com/~r/WorldIsWelcomeToOurBlogLvm/~3/uTntBh8KWKU/</link>
		<comments>http://blog.worldiswelcome.com/science-and-technology/aix/lvm/2009/04/how-to-work-with-physical-volumes/#comments</comments>
		<pubDate>Sat, 11 Apr 2009 04:44:12 +0000</pubDate>
		<dc:creator>Ganesh Dutt Sharma</dc:creator>
				<category><![CDATA[LVM]]></category>
		<category><![CDATA[AIX]]></category>
		<category><![CDATA[IBM]]></category>
		<category><![CDATA[logical volume]]></category>
		<category><![CDATA[Logical Volume Manager]]></category>
		<category><![CDATA[LV]]></category>
		<category><![CDATA[Physical Volume]]></category>
		<category><![CDATA[PV]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[VG]]></category>
		<category><![CDATA[Volume Group]]></category>
		<category><![CDATA[Volume Manager]]></category>
		<category><![CDATA[world is welcome]]></category>

		<guid isPermaLink="false">http://www.worldiswelcome.com/?p=1579</guid>
		<description><![CDATA[I’ve written in my previous posts about introduction to Physical Volumes. There I also discussed some operations to be carried out on Physical Volumes. Now, I’ll be discussing some other operations on Physical Volumes like listing Physical Volumes, Logical Volumes on Physical Volumes, Physical Partitions allocations etc. For more information you can see the previous article: Aix Logical Volume Manager A Brief Introduction. ]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve written in my previous posts about introduction to <a href="http://www.worldiswelcome.com/science-and-technology/aix/lvm/2009/03/physical-volume-in-aix-a-primer/">Physical Volumes</a>. There I also discussed some operations to be carried out on Physical Volumes. Now, I&#8217;ll be discussing some other operations on Physical Volumes like listing Physical Volumes, Logical Volumes on Physical Volumes, <a href="http://www.worldiswelcome.com/science-and-technology/aix/lvm/2009/04/aix-logical-volume-manager-a-brief-introduction/">Physical Partitions</a> allocations etc. For more information you can see the previous article: <a href="http://www.worldiswelcome.com/science-and-technology/aix/lvm/2009/04/aix-logical-volume-manager-a-brief-introduction/">Aix Logical Volume Manager A Brief Introduction</a>.</p>
<p><strong>How To List Physical Volumes In Aix</strong><br />
To list <a href="http://www.worldiswelcome.com/science-and-technology/aix/lvm/2009/03/physical-volume-in-aix-a-primer/">Physical Volumes</a> in Aix lspv command is used. This command gives the output as name of Physical Volume, its identifier which is a 16 character serial number, the Volume Group to which it belongs and the state of the physical volume whether its active or not. The identifier is also called PVID. Below is the command:</p>
<p><strong>wiw_labs:$ lspv</strong></p>
<p><strong>hdisk0 034cd34d03b25531 altinst_rootvg</strong></p>
<p><strong>hdisk1 034cd34d7533e52b altinst_rootvg</strong></p>
<p><strong>hdisk2 034cd34d753ca221 rootvg active</strong></p>
<p><strong>hdisk3 034cd34d753ca5a8 rootvg active</strong></p>
<p><strong></strong></p>
<p><strong>How To List Connectivity Information of Physical Volume</strong><br />
To see the connectivity information of a Physical Volume you need to issue lsdev command. Here is how you issue this command:</p>
<p><strong>wiw_labs:$ lsdev -C -c disk</strong><br />
<strong>hdisk0 Available 23-06-00-6,0 16 Bit LVD SCSI Disk Drive</strong><br />
<strong>hdisk1 Available 3p-06-00-6,0 16 Bit LVD SCSI Disk Drive</strong><br />
<strong>hdisk2 Available 4b-06-00-6,0 16 Bit LVD SCSI Disk Drive</strong><br />
<strong>hdisk3 Available 5M-06-00-6,0 16 Bit LVD SCSI Disk Drive</strong></p>
<p>-C: Device Class<br />
-c: Device subclass(disk in this case)</p>
<p>Here you see the name of the disk, the status of the disk(available), its connectivity information and type of the disk.</p>
<p><strong>How To List Overall Information About A Physical Volume</strong><br />
To see the overview of a physical volume let&#8217;s say hdisk2, we issue the command lspv with hdisk2 as argument as below:</p>
<p><strong>wiw_labs:$ lspv hdisk2</strong></p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td><strong>PHYSICAL VOLUME</strong></td>
<td><strong>hdisk2</strong></td>
<td><strong>VOLUME GROUP</strong></td>
<td><strong>rootvg</strong></td>
</tr>
<tr>
<td><strong>PV IDENTIFIER</strong></td>
<td><strong>002cd34d753ca221</strong></td>
<td><strong>VG IDENTIFIER 002cd34d00004c000000010cfa6a1c1e</strong></td>
<td><strong></strong></td>
</tr>
<tr>
<td><strong>PV STATE</strong></td>
<td><strong>active</strong></td>
<td><strong></strong></td>
<td><strong></strong></td>
</tr>
<tr>
<td><strong>STALE PARTITIONS</strong></td>
<td><strong>0</strong></td>
<td><strong>ALLOCATABLE</strong></td>
<td><strong>yes</strong></td>
</tr>
<tr>
<td><strong>PP SIZE</strong></td>
<td><strong>64 megabyte(s)</strong></td>
<td><strong>LOGICAL VOLUMES</strong></td>
<td><strong>11</strong></td>
</tr>
<tr>
<td><strong>TOTAL PPs</strong></td>
<td><strong>542 (34688 megabytes)</strong></td>
<td><strong>VG DESCRIPTORS</strong></td>
<td><strong>2</strong></td>
</tr>
<tr>
<td><strong>FREE PPs</strong></td>
<td><strong>258 (16512 megabytes)</strong></td>
<td><strong>HOT SPARE</strong></td>
<td><strong>no</strong></td>
</tr>
<tr>
<td><strong>USED PPs</strong></td>
<td><strong>284 (18176 megabytes)</strong></td>
<td><strong>MAX REQUEST</strong></td>
<td><strong>256 kilobytes</strong></td>
</tr>
<tr>
<td><strong>FREE DISTRIBUTION</strong></td>
<td><strong>28..13..00..108..109</strong></td>
<td><strong></strong></td>
<td><strong></strong></td>
</tr>
<tr>
<td><strong>USED DISTRIBUTION</strong></td>
<td><strong>81..95..108..00..00</strong></td>
<td><strong></strong></td>
<td><strong></strong></td>
</tr>
</tbody>
</table>
<p>*(Verify the distribution parameters by adding the PPs in a particular region and then check in overall information.)</p>
<p>The above command gives information about name, state, ID, Physical Partition Size, No of PP, Free and used PP, distribution of PPs, VG, allocatability and other parameters.</p>
<p><strong>How To See What Logical Volumes Are Present On Physical Volume</strong><br />
To see the <a href="http://www.worldiswelcome.com/science-and-technology/aix/lvm/2009/04/aix-logical-volume-manager-a-brief-introduction/">Logical Volume</a> information on a <a href="http://www.worldiswelcome.com/science-and-technology/aix/lvm/2009/03/physical-volume-in-aix-a-primer/">Physical Volumes</a>, you need to issue the command lspv with -l(logical volume) option. This gives information of Logical Volume name, no. of <a href="http://www.worldiswelcome.com/science-and-technology/aix/lvm/2009/04/aix-logical-volume-manager-a-brief-introduction/">Logical Partitions</a> in LV, No. of Physical Volume, the allocation distribution and mount point. Here is an example output:</p>
<p><strong>wiw_labs:$ lspv -l hdisk2</strong></p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td><strong>LV</strong><strong> NAME</strong></td>
<td><strong>LPs</strong></td>
<td><strong>PPs</strong></td>
<td><strong>DISTRIBUTION</strong></td>
<td width="100" valign="bottom"><strong>MOUNT POINT</strong></td>
</tr>
<tr>
<td><strong>hd10opt</strong></td>
<td>
<p align="right"><strong>2</strong></p>
</td>
<td>
<p align="right"><strong>2</strong></p>
</td>
<td><strong>00..01..01..00..00</strong></td>
<td width="100" valign="bottom"><strong>/opt</strong></td>
</tr>
<tr>
<td><strong>hd9var</strong></td>
<td>
<p align="right"><strong>39</strong></p>
</td>
<td>
<p align="right"><strong>39</strong></p>
</td>
<td><strong>00..05..34..00..00</strong></td>
<td width="100" valign="bottom"><strong>/var</strong></td>
</tr>
<tr>
<td><strong>hd2</strong></td>
<td>
<p align="right"><strong>55</strong></p>
</td>
<td>
<p align="right"><strong>55</strong></p>
</td>
<td><strong>00..04..51..00..00</strong></td>
<td width="100" valign="bottom"><strong>/usr</strong></td>
</tr>
<tr>
<td><strong>hd1</strong></td>
<td>
<p align="right"><strong>1</strong></p>
</td>
<td>
<p align="right"><strong>1</strong></p>
</td>
<td><strong>00..00..01..00..00</strong></td>
<td width="100" valign="bottom"><strong>/home</strong></td>
</tr>
<tr>
<td><strong>hd3</strong></td>
<td>
<p align="right"><strong>32</strong></p>
</td>
<td>
<p align="right"><strong>32</strong></p>
</td>
<td><strong>00..20..12..00..00</strong></td>
<td width="100" valign="bottom"><strong>/tmp</strong></td>
</tr>
<tr>
<td><strong>hd6</strong></td>
<td>
<p align="right"><strong>64</strong></p>
</td>
<td>
<p align="right"><strong>64</strong></p>
</td>
<td><strong>00..64..00..00..00</strong></td>
<td width="100" valign="bottom"><strong>N/A</strong></td>
</tr>
<tr>
<td><strong>hd5</strong></td>
<td>
<p align="right"><strong>1</strong></p>
</td>
<td>
<p align="right"><strong>1</strong></p>
</td>
<td><strong>01..00..00..00..00</strong></td>
<td width="100" valign="bottom"><strong>N/A</strong></td>
</tr>
<tr>
<td><strong>hd4</strong></td>
<td>
<p align="right"><strong>8</strong></p>
</td>
<td>
<p align="right"><strong>8</strong></p>
</td>
<td><strong>00..00..08..00..00</strong></td>
<td width="100" valign="bottom"><strong>/</strong></td>
</tr>
<tr>
<td><strong>hd8</strong></td>
<td>
<p align="right"><strong>1</strong></p>
</td>
<td>
<p align="right"><strong>1</strong></p>
</td>
<td><strong>00..00..01..00..00</strong></td>
<td width="100" valign="bottom"><strong>N/A</strong></td>
</tr>
<tr>
<td><strong>hd7</strong></td>
<td>
<p align="right"><strong>80</strong></p>
</td>
<td>
<p align="right"><strong>80</strong></p>
</td>
<td><strong>80..00..00..00..00</strong></td>
<td width="100" valign="bottom"><strong>N/A</strong></td>
</tr>
<tr>
<td><strong>loglv00</strong></td>
<td>
<p align="right"><strong>1</strong></p>
</td>
<td>
<p align="right"><strong>1</strong></p>
</td>
<td><strong>00..01..00..00..00</strong></td>
<td width="100" valign="bottom"><strong>N/A</strong></td>
</tr>
</tbody>
</table>
<p><strong>How To See Physical Partition Information of Physical Volume</strong><br />
To see the <a href="http://www.worldiswelcome.com/science-and-technology/aix/lvm/2009/04/aix-logical-volume-manager-a-brief-introduction/">Physical Partition</a> information of a particular Physical Volume, you need to issue lspv command with -p flag.</p>
<p><strong>wiw_labs:$ lspv -p hdisk2</strong></p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td><strong>PP RANGE</strong></td>
<td><strong>STATE</strong></td>
<td><strong>REGION</strong></td>
<td><strong>LV</strong><strong> NAME</strong></td>
<td><strong>TYPE</strong></td>
<td><strong>MOUNT POINT</strong></td>
</tr>
<tr>
<td><strong>1-1</strong></td>
<td><strong>used</strong></td>
<td><strong>outer edge</strong></td>
<td><strong>hd5</strong></td>
<td><strong>boot</strong></td>
<td><strong>N/A</strong></td>
</tr>
<tr>
<td><strong>2-29</strong></td>
<td><strong>free</strong></td>
<td><strong>outer edge</strong></td>
<td><strong></strong></td>
<td><strong></strong></td>
<td><strong></strong></td>
</tr>
<tr>
<td><strong>30-109</strong></td>
<td><strong>used</strong></td>
<td><strong>outer edge</strong></td>
<td><strong>hd7</strong></td>
<td><strong>sysdump</strong></td>
<td><strong>N/A</strong></td>
</tr>
<tr>
<td><strong>110-173</strong></td>
<td><strong>used</strong></td>
<td><strong>outer middle</strong></td>
<td><strong>hd6</strong></td>
<td><strong>paging</strong></td>
<td><strong>N/A</strong></td>
</tr>
<tr>
<td><strong>174-174</strong></td>
<td><strong>used</strong></td>
<td><strong>outer middle</strong></td>
<td><strong>loglv00</strong></td>
<td><strong>jfslog</strong></td>
<td><strong>N/A</strong></td>
</tr>
<tr>
<td><strong>175-187</strong></td>
<td><strong>free</strong></td>
<td><strong>outer middle</strong></td>
<td><strong></strong></td>
<td><strong></strong></td>
<td><strong></strong></td>
</tr>
<tr>
<td><strong>188-188</strong></td>
<td><strong>used</strong></td>
<td><strong>outer middle</strong></td>
<td><strong>hd10opt</strong></td>
<td><strong>jfs2</strong></td>
<td><strong>/opt</strong></td>
</tr>
<tr>
<td><strong>189-192</strong></td>
<td><strong>used</strong></td>
<td><strong>outer middle</strong></td>
<td><strong>hd2</strong></td>
<td><strong>jfs2</strong></td>
<td><strong>/usr</strong></td>
</tr>
<tr>
<td><strong>193-212</strong></td>
<td><strong>used</strong></td>
<td><strong>outer middle</strong></td>
<td><strong>hd3</strong></td>
<td><strong>jfs2</strong></td>
<td><strong>/tmp</strong></td>
</tr>
<tr>
<td><strong>213-217</strong></td>
<td><strong>used</strong></td>
<td><strong>outer middle</strong></td>
<td><strong>hd9var</strong></td>
<td><strong>jfs2</strong></td>
<td><strong>/var</strong></td>
</tr>
<tr>
<td><strong>218-218</strong></td>
<td><strong>used</strong></td>
<td><strong>center</strong></td>
<td><strong>hd8</strong></td>
<td><strong>jfs2log</strong></td>
<td><strong>N/A</strong></td>
</tr>
<tr>
<td><strong>219-226</strong></td>
<td><strong>used</strong></td>
<td><strong>center</strong></td>
<td><strong>hd4</strong></td>
<td><strong>jfs2</strong></td>
<td><strong>/</strong></td>
</tr>
<tr>
<td><strong>227-277</strong></td>
<td><strong>used</strong></td>
<td><strong>center</strong></td>
<td><strong>hd2</strong></td>
<td><strong>jfs2</strong></td>
<td><strong>/usr</strong></td>
</tr>
<tr>
<td><strong>278-288</strong></td>
<td><strong>used</strong></td>
<td><strong>center</strong></td>
<td><strong>hd9var</strong></td>
<td><strong>jfs2</strong></td>
<td><strong>/var</strong></td>
</tr>
<tr>
<td><strong>289-300</strong></td>
<td><strong>used</strong></td>
<td><strong>center</strong></td>
<td><strong>hd3</strong></td>
<td><strong>jfs2</strong></td>
<td><strong>/tmp</strong></td>
</tr>
<tr>
<td><strong>301-301</strong></td>
<td><strong>used</strong></td>
<td><strong>center</strong></td>
<td><strong>hd1</strong></td>
<td><strong>jfs2</strong></td>
<td><strong>/home</strong></td>
</tr>
<tr>
<td><strong>302-302</strong></td>
<td><strong>used</strong></td>
<td><strong>center</strong></td>
<td><strong>hd10opt</strong></td>
<td><strong>jfs2</strong></td>
<td><strong>/opt</strong></td>
</tr>
<tr>
<td><strong>303-325</strong></td>
<td><strong>used</strong></td>
<td><strong>center</strong></td>
<td><strong>hd9var</strong></td>
<td><strong>jfs2</strong></td>
<td><strong>/var</strong></td>
</tr>
<tr>
<td><strong>326-433</strong></td>
<td><strong>free</strong></td>
<td><strong>inner middle</strong></td>
<td><strong></strong></td>
<td><strong></strong></td>
<td><strong></strong></td>
</tr>
<tr>
<td><strong>434-542</strong></td>
<td><strong>free</strong></td>
<td><strong>inner edge</strong></td>
<td><strong></strong></td>
<td><strong></strong></td>
<td><strong></strong></td>
</tr>
</tbody>
</table>
<p><strong>PP Range</strong>: Tells about Physical Partitions being used.<br />
<strong>State</strong>: Whether PP is used or free.<br />
<strong>Region</strong>: Where the PP is located on disk: outer edge, outer middle, center, inner middle or inner edge.<br />
<strong>LV</strong>: Which Logical Volume is using these PPs.<br />
<strong>Type</strong>: What type of Logical volume is there like boot, sysdump, jfs2, jfslog, paging etc.<br />
<strong>Mount Point</strong>: It&#8217;s the mount point where a particular LV is mounted.</p>
<p><strong>How To Determine Which Physical Partition is Mapped To Which Logical Partition</strong><br />
To determine the partition mapping from PP to LP, you need to issue lspv command with -M option. Let&#8217;s see the output below:</p>
<p><strong>wiw_labs:$ lspv -M hdisk2</strong></p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td><strong>hdisk2:1</strong></td>
<td><strong>hd5:1:1</strong></td>
</tr>
<tr>
<td><strong>hdisk2:2-29</strong></td>
<td><strong></strong></td>
</tr>
<tr>
<td><strong>hdisk2:30</strong></td>
<td><strong>hd7:1</strong></td>
</tr>
<tr>
<td><strong>hdisk2:31</strong></td>
<td><strong>hd7:2</strong></td>
</tr>
<tr>
<td><strong>hdisk2:32</strong></td>
<td><strong>hd7:3</strong></td>
</tr>
<tr>
<td><strong>hdisk2:33</strong></td>
<td><strong>hd7:4</strong></td>
</tr>
<tr>
<td><strong>hdisk2:34</strong></td>
<td><strong>hd7:5</strong></td>
</tr>
<tr>
<td><strong>hdisk2:35</strong></td>
<td><strong>hd7:6</strong></td>
</tr>
<tr>
<td><strong>hdisk2:36</strong></td>
<td><strong>hd7:7</strong></td>
</tr>
<tr>
<td><strong>hdisk2:37</strong></td>
<td><strong>hd7:8</strong></td>
</tr>
</tbody>
</table>
<p>The output is truncated, because of space considerations.</p>
<p>The output shows which <a href="http://www.worldiswelcome.com/science-and-technology/aix/lvm/2009/04/aix-logical-volume-manager-a-brief-introduction/">Physical Partition</a> on hdisk2 is mapped to which Logical Partition on a Logical Volume.</p>
<img src="http://feeds.feedburner.com/~r/WorldIsWelcomeToOurBlogLvm/~4/uTntBh8KWKU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.worldiswelcome.com/science-and-technology/aix/lvm/2009/04/how-to-work-with-physical-volumes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.worldiswelcome.com/science-and-technology/aix/lvm/2009/04/how-to-work-with-physical-volumes/</feedburner:origLink></item>
		<item>
		<title>File Systems In AIX-A Primer</title>
		<link>http://feedproxy.google.com/~r/WorldIsWelcomeToOurBlogLvm/~3/3lffWEk6hMM/</link>
		<comments>http://blog.worldiswelcome.com/science-and-technology/aix/lvm/2009/04/file-systems-in-aix-a-primer/#comments</comments>
		<pubDate>Thu, 09 Apr 2009 06:47:30 +0000</pubDate>
		<dc:creator>Ganesh Dutt Sharma</dc:creator>
				<category><![CDATA[LVM]]></category>
		<category><![CDATA[AIX]]></category>
		<category><![CDATA[IBM]]></category>
		<category><![CDATA[logical volume]]></category>
		<category><![CDATA[Logical Volume Manager]]></category>
		<category><![CDATA[LV]]></category>
		<category><![CDATA[Physical Volume]]></category>
		<category><![CDATA[PV]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[VG]]></category>
		<category><![CDATA[Volume Group]]></category>
		<category><![CDATA[Volume Manager]]></category>
		<category><![CDATA[world is welcome]]></category>

		<guid isPermaLink="false">http://www.worldiswelcome.com/?p=1551</guid>
		<description><![CDATA[Generally talking, the File Systems are collection of files, directories etc. within a single partition or Logical Volume in a Volume Group. Collecting files and directories from different Logical Volumes or Partitions does not qualify to be named as File System. Aix supports mainly three types of File Systems: JFS, NFS and CDRFS. All these are being discussed here in this article. For more information you can see the previous article: Aix Logical Volume Manager A Brief Introduction]]></description>
			<content:encoded><![CDATA[<p>Generally talking, the File Systems are collection of files, directories etc. within a single partition or <a href="http://www.worldiswelcome.com/science-and-technology/aix/lvm/2009/04/logical-volume-in-aix-%e2%80%93-a-primer/">Logical Volume</a> in a <a href="http://www.worldiswelcome.com/science-and-technology/aix/lvm/2009/04/volume-group-in-aix-a-primer/">Volume Group</a>. Collecting files and directories from different Logical Volumes or Partitions does not qualify to be named as File System. Aix supports mainly three types of File Systems: JFS, NFS and CDRFS. All these are being discussed here in this article. For more information you can see the previous article: <a href="http://www.worldiswelcome.com/science-and-technology/aix/lvm/2009/04/aix-logical-volume-manager-a-brief-introduction/">Aix Logical Volume Manager A Brief Introduction</a>.</p>
<p><strong>What Are The Components of A File System</strong><br />
The File System normally has the below mentioned components, depending upon the partition/logical volume and Operating System type:</p>
<ol type="1">
<li>Boot Block.</li>
<li>Super Block.</li>
<li>Bitmaps.</li>
<li>Allocation Groups.</li>
</ol>
<p> <br />
<strong>Aix Supported File Systems</strong><br />
The Aix OS supports mainly three types of File Systems:</p>
<ol type="1">
<li>Journaled File System(JFS/JFS2).</li>
<li>Network File System(NFS).</li>
<li>CD-ROM File System(CDRFS).</li>
</ol>
<p> <br />
<strong>Journaled File System</strong><br />
The Journaled File System is native to AIX. This File System retain a journal for every I/O transaction on a <a href="http://www.worldiswelcome.com/science-and-technology/aix/lvm/2009/03/physical-volume-in-aix-a-primer/">Physical Volumes</a>. One Logical Volume can contain only one Journaled File System. In order to use the File System, the Operating System has to mount it. The File Systems which are critical to the booting and operation of the Operating System, are mounted during boot time operation.</p>
<p>The Journaled File Systems are of two types: JFS and JFS2. AIX 5.3 onwards JFS2 is the default File System. Earlier it used to be JFS. JFS2 has some enhancements over JFS.</p>
<p><strong>Network File System</strong><br />
The NFS is used to allow the users to access the files and directories over the network. NFS has been in use since the very beginning for almost all kind of *nix Operating Systems. Almost every *nix OS supports NFS. NFS is a distributed File System and provides seamless access to the files from the server side.</p>
<p><strong>CD-ROM File System</strong><br />
The CDRFS is the one typical to CDs.</p>
<p><strong>Journaled File System Structure</strong><br />
The entire JFS is nothing but a set of logical blocks.</p>
<p><strong>0Boot Record</strong>: This is the first logical block in the File System and is reserved for bootstrap program. File System does not use it.</p>
<p><strong>Superblock</strong>: The super block keeps and maintains information about total File System Its size is 4096Bytes. It has several types of information:</p>
<ol type="1">
<li>File System size.</li>
<li>Total Number of data blocks in File System.</li>
<li>Flag to indicate the state of File System.</li>
<li>Allocation Group Sizes.</li>
</ol>
<p> <br />
<strong>Allocation Groups</strong>: The total File System is a collection of logical blocks. After leaving initial few logical blocks, the logical blocks in rest of the File System are grouped together. Then additional space is allocated in group of these logical blocks. That&#8217;s why these are called allocation groups. The i-nodes refer to these data blocks. So, allocating the i-nodes means allocating these groups of data blocks.</p>
<img src="http://feeds.feedburner.com/~r/WorldIsWelcomeToOurBlogLvm/~4/3lffWEk6hMM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.worldiswelcome.com/science-and-technology/aix/lvm/2009/04/file-systems-in-aix-a-primer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.worldiswelcome.com/science-and-technology/aix/lvm/2009/04/file-systems-in-aix-a-primer/</feedburner:origLink></item>
		<item>
		<title>Logical Volume In AIX – A Primer</title>
		<link>http://feedproxy.google.com/~r/WorldIsWelcomeToOurBlogLvm/~3/c-4AH2Vo4r4/</link>
		<comments>http://blog.worldiswelcome.com/science-and-technology/aix/lvm/2009/04/logical-volume-in-aix-%e2%80%93-a-primer/#comments</comments>
		<pubDate>Wed, 08 Apr 2009 06:17:44 +0000</pubDate>
		<dc:creator>Ganesh Dutt Sharma</dc:creator>
				<category><![CDATA[LVM]]></category>
		<category><![CDATA[AIX]]></category>
		<category><![CDATA[IBM]]></category>
		<category><![CDATA[logical volume]]></category>
		<category><![CDATA[Logical Volume Manager]]></category>
		<category><![CDATA[LV]]></category>
		<category><![CDATA[Physical Volume]]></category>
		<category><![CDATA[PV]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[VG]]></category>
		<category><![CDATA[Volume Group]]></category>
		<category><![CDATA[Volume Manager]]></category>
		<category><![CDATA[world is welcome]]></category>

		<guid isPermaLink="false">http://www.worldiswelcome.com/?p=1541</guid>
		<description><![CDATA[Users can not access directly, the disk space available on Physical Volumes with in Volume Group. In order to access the space available, the users and applications need to access File Systems which are created on Logical Volumes. Therefore to manage Physical Volume space you need to manage Logical Volumes. For more information you can see the previous article: Aix Logical Volume Manager A Brief Introduction....]]></description>
			<content:encoded><![CDATA[<p>Users can not access directly, the disk space available on <a href="http://www.worldiswelcome.com/science-and-technology/aix/lvm/2009/03/physical-volume-in-aix-a-primer/">Physical Volumes</a> with in <a href="http://www.worldiswelcome.com/science-and-technology/aix/lvm/2009/04/volume-group-in-aix-a-primer/">Volume Group</a>. In order to access the space available, the users and applications need to access File Systems which are created on Logical Volumes. Therefore to manage Physical Volume space you need to manage Logical Volumes. For more information you can see the previous article: <a href="http://www.worldiswelcome.com/science-and-technology/aix/lvm/2009/04/aix-logical-volume-manager-a-brief-introduction/">Aix Logical Volume Manager A Brief Introduction</a>.</p>
<p><strong>Logical Volume Defined</strong><br />
Logical Volumes can be defined as the logical entities which are created from Logical Partitions. While creating Logical Volumes, the number of Logical Partitions are specified.</p>
<p><strong>Mapping To Physical Partition</strong><br />
One Logical Partition maps exactly to one <a href="http://www.worldiswelcome.com/science-and-technology/aix/lvm/2009/04/aix-logical-volume-manager-a-brief-introduction/">Physical Partitions</a>. But if it&#8217;s the case of mirroring then one Logical Partition can map to two or three Physical Partitions as well.</p>
<p><strong>Size of Logical Volume</strong><br />
The size of Logical Volume is determined by the following formula:<br />
<strong><em>Size of LV = Size of LP * No. of LVs * No. of copies of LPs</em></strong></p>
<p><strong>Components of Logical Volume</strong><br />
Each of the Logical Volume has a Logical Volume Identifier(LVID). It is used to recognize the Logical Volume while using LVM libraries and certain low level commands. LVID format is: VGID.num. The num  is the number used to represent the Logical Volume.</p>
<p><strong>Contents of Logical Volume</strong><br />
Each of the Logical Volume contains Logical Volume Control Block. Its better known as LVCB. LVCB takes the first 512 Bytes of Logical Volume. All of the information about Logical Volume is contained there-in. The information is:</p>
<ol type="1">
<li>Time of creation.</li>
<li>Information about mirroring.</li>
<li>Mount Point(If it has File System created on it.).</li>
</ol>
<p> <br />
I&#8217;ll discuss the operations possible on Logical Volumes in some other post.</p>
<img src="http://feeds.feedburner.com/~r/WorldIsWelcomeToOurBlogLvm/~4/c-4AH2Vo4r4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.worldiswelcome.com/science-and-technology/aix/lvm/2009/04/logical-volume-in-aix-%e2%80%93-a-primer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.worldiswelcome.com/science-and-technology/aix/lvm/2009/04/logical-volume-in-aix-%e2%80%93-a-primer/</feedburner:origLink></item>
		<item>
		<title>Volume Group In AIX – A Primer</title>
		<link>http://feedproxy.google.com/~r/WorldIsWelcomeToOurBlogLvm/~3/nUlR2V7WBgk/</link>
		<comments>http://blog.worldiswelcome.com/science-and-technology/aix/lvm/2009/04/volume-group-in-aix-a-primer/#comments</comments>
		<pubDate>Sun, 05 Apr 2009 09:48:54 +0000</pubDate>
		<dc:creator>Ganesh Dutt Sharma</dc:creator>
				<category><![CDATA[LVM]]></category>
		<category><![CDATA[AIX]]></category>
		<category><![CDATA[IBM]]></category>
		<category><![CDATA[logical volume]]></category>
		<category><![CDATA[Logical Volume Manager]]></category>
		<category><![CDATA[LV]]></category>
		<category><![CDATA[Physical Volume]]></category>
		<category><![CDATA[PV]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[VG]]></category>
		<category><![CDATA[Volume Group]]></category>
		<category><![CDATA[Volume Manager]]></category>
		<category><![CDATA[world is welcome]]></category>

		<guid isPermaLink="false">http://www.worldiswelcome.com/?p=1525</guid>
		<description><![CDATA[Volume Group is at the highest level in LVM hierarchy. Hard disks are used as Physical Volumes in LVM. Then Physical partitions are mapped to Logical Partitions. Logical Partitions are combined to Logical Volumes. These Logical Volumes comprise the Volume Group. For more information you can see the previous article: Aix Logical Volume Manager A Brief Introduction..]]></description>
			<content:encoded><![CDATA[<p>Volume Group is at the highest level in LVM hierarchy. Hard disks are used as <a href="http://www.worldiswelcome.com/science-and-technology/aix/lvm/2009/03/physical-volume-in-aix-a-primer/">Physical Volumes</a> in LVM. Then Physical partitions are mapped to Logical Partitions. Logical Partitions are combined to Logical Volumes. These Logical Volumes comprise the Volume Group. For more information you can see the previous article: <a href="http://www.worldiswelcome.com/science-and-technology/aix/lvm/2009/04/aix-logical-volume-manager-a-brief-introduction/">Aix Logical Volume Manager A Brief Introduction</a>.</p>
<p>The Volume Groups are totally logical entities. And a number of operations can be carried out on Volume Groups.</p>
<p>Below are the Volume Group characteristics.</p>
<p><strong>Naming of Volume Group</strong>: The name of Volume Group should be unique and the name should range from 1 to 15 characters.</p>
<p><strong>States of Volume Group</strong>: The following states are possible for Volume Group:</p>
<ol type="1">
<li>Active/Complete.</li>
<li>Active/Partial.</li>
<li>Inactive.</li>
</ol>
<p> <br />
<strong>Active/Complete State</strong><br />
The active/complete state of Volume Group signifies that all of the physical volumes in the Volume Group are fully active. In this state the Volume Group is fully usable by the applications. The <strong><em>varyonvg</em></strong> command is used to bring the Volume Group to active/complete state.</p>
<p><strong>Active/Partial State</strong><br />
The active/partial state of Volume Group signifies that all of the physical volumes in the Volume Group are not active. Some of the PVs can be in unavailable or removed state. This may cause the alarming condition and the data loss may happen if continuing in this state.</p>
<p><strong>Inactive State</strong><br />
The inactive state of Volume Group signifies that the Volume Group is not in use and can&#8217;t be used for any application. The varyoffvg command used to bring down the Volume Group.</p>
<p><strong>Access Permissions For Volume Group</strong><br />
The Volume Group can be varied on with two types of permissions:</p>
<ol type="1">
<li>Read-only.</li>
<li>Read-write.</li>
</ol>
<p> <br />
<strong>Type of Volume Group</strong><br />
The Volume Groups are of three type:</p>
<ol type="1">
<li>Normal Volume Group.</li>
<li>Big Volume Group.</li>
<li>Scalable Volume Group.</li>
</ol>
<p> <br />
<strong>Normal Volume Group</strong><br />
Normal Volume Group can have up to 32 Physical Volumes and 255 <a href="http://www.worldiswelcome.com/science-and-technology/aix/lvm/2009/04/aix-logical-volume-manager-a-brief-introduction/">Logical Volumes</a>.</p>
<p><strong>Big Volume Group</strong><br />
Big Volume Group can have 128 Physical Volumes and 512 Logical Volumes.</p>
<p><strong>Scalable Volume Group</strong><br />
Scalable Volume Group can have by default 1024 <a href="http://www.worldiswelcome.com/science-and-technology/aix/lvm/2009/03/physical-volume-in-aix-a-primer/">Physical Volumes</a>, 256 Logical Volumes and 32768 <a href="http://www.worldiswelcome.com/science-and-technology/aix/lvm/2009/04/aix-logical-volume-manager-a-brief-introduction/">Physical Partitions</a>. The number of Logical Volumes can be increased up to 4096and Physical Partitions can also be increased.</p>
<p>Classification on The Basis of Concurrency<br />
I am just listing these. If you want more details please see my previous article <a href="http://www.worldiswelcome.com/science-and-technology/aix/2009/01/non-concurrent-concurrent-and-enhanced-concurrent-volume-groups/">Non Concurrent, Concurrent and Enhanced Concurrent Volume Groups</a>. The volume groups can be classified as:</p>
<ul type="disc">
<li>Non-Concurrent Volume Group.</li>
<li>Concurrent Volume Group.</li>
<li>Enhanced Concurrent Volume Group.</li>
</ul>
<p> </p>
<p>Next time I&#8217;ll be discussing some other aspects of Volume Groups.</p>
<img src="http://feeds.feedburner.com/~r/WorldIsWelcomeToOurBlogLvm/~4/nUlR2V7WBgk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.worldiswelcome.com/science-and-technology/aix/lvm/2009/04/volume-group-in-aix-a-primer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.worldiswelcome.com/science-and-technology/aix/lvm/2009/04/volume-group-in-aix-a-primer/</feedburner:origLink></item>
		<item>
		<title>How Does AIX Deal With Bad Blocks</title>
		<link>http://feedproxy.google.com/~r/WorldIsWelcomeToOurBlogLvm/~3/VIAKfHYQjzQ/</link>
		<comments>http://blog.worldiswelcome.com/science-and-technology/aix/lvm/2009/04/how-does-aix-deal-with-bad-blocks/#comments</comments>
		<pubDate>Fri, 03 Apr 2009 22:45:52 +0000</pubDate>
		<dc:creator>Ganesh Dutt Sharma</dc:creator>
				<category><![CDATA[LVM]]></category>
		<category><![CDATA[AIX]]></category>
		<category><![CDATA[Bad Blocks]]></category>
		<category><![CDATA[data integrity]]></category>
		<category><![CDATA[data protection]]></category>
		<category><![CDATA[data relocation]]></category>
		<category><![CDATA[Physical Volume]]></category>

		<guid isPermaLink="false">http://www.worldiswelcome.com/?p=1503</guid>
		<description><![CDATA[The biggest concern for any organization using a server is data integrity. The various solutions like Network Attached Storage, Storage Area Networks, high availability servers, online data backup and disaster recovery solutions are among the available solutions.]]></description>
			<content:encoded><![CDATA[<p>The biggest concern for any organization using a server is data integrity. The various solutions like Network Attached Storage, Storage Area Networks, high availability servers, online data backup and disaster recovery solutions are among the available solutions.</p>
<p>Apart from the third party available solutions for protecting <a href="http://www.worldiswelcome.com/science-and-technology/aix/">AIX</a> data integrity, AIX has a number of built-in functions to prevent loss or corruption of data on <a href="http://www.worldiswelcome.com/science-and-technology/aix/lvm/2009/03/physical-volume-in-aix-a-primer/">Physical Volumes</a>. The native data protection solutions provided by AIX are:</p>
<ol type="1">
<li>Bad Block Relocation.</li>
<li>Mirroring.</li>
<li><a href="http://www.worldiswelcome.com/science-and-technology/aix/lvm/2009/01/quorum-what-it-is-and-why-is-it-needed/">Quorum</a> Checking.</li>
</ol>
<p> <br />
Here in the article we&#8217;ll be discussing Bad Block Relocation.</p>
<h3>Bad Block Relocation</h3>
<p><a href="http://www.worldiswelcome.com/science-and-technology/aix/">AIX</a> is intelligent enough to detect bad blocks and then to relocate the data on disk drives. Whenever there is some problem on disks, the data relocation takes place automatically for data protection. The data relocation occurs at three levels:</p>
<ol type="1">
<li>Data relocation within the disk.(Seamless)</li>
<li>Data relocation by hardware.(By PV)</li>
<li>Software relocation by software.(By Device Driver)</li>
</ol>
<p> <br />
<strong>Data Relocation Within The Disk</strong><br />
This is least complicated operation for data relocation. If the system fails to carry out data I/O requests, then it anticipates data corruption. So data protection is carried out by moving data automatically within disk. No notifications are generated.</p>
<p><strong>Hard Data Relocation</strong><br />
This is slightly more complex way of data relocation. The operation is initiated and instructed by <a href="http://www.worldiswelcome.com/science-and-technology/aix/lvm/2009/04/aix-logical-volume-manager-a-brief-introduction/">LVM</a> device driver, but carried out by <a href="http://www.worldiswelcome.com/science-and-technology/aix/lvm/2009/03/physical-volume-in-aix-a-primer/">Physical Volume</a>. In this case data is moved from one Physical Partition to another reserved physical partition. So, data location changes from one PP A to another PP B. After the completion of data relocation, the device driver continues to refer to old location, PP A, but  the <a href="http://www.worldiswelcome.com/science-and-technology/aix/lvm/2009/03/physical-volume-in-aix-a-primer/">Physical Volume</a> handles the I/O operation from the second location, PP B.</p>
<p><strong>Soft Data Relocation</strong><br />
This is the complex most way of data relocation. The operation is initiated and carried out by <a href="http://www.worldiswelcome.com/science-and-technology/aix/lvm/2009/04/aix-logical-volume-manager-a-brief-introduction/">LVM</a> device driver. Bad block directory is maintained by LVM  device driver. Also it maintains the translation table which maps the bad block PP A to good block PP B. Let&#8217;s say PP A location was bad block. So, it will be in the bad block directory of LVM  device driver. Whenever some request comes for some I/O operation for any block, the device driver will look its bad block directory. If the block is listed in that, it translates the location requested to corresponding good location, say PP B, where the actual data is residing. Hence data protection is ensured in most cases.</p>
<img src="http://feeds.feedburner.com/~r/WorldIsWelcomeToOurBlogLvm/~4/VIAKfHYQjzQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.worldiswelcome.com/science-and-technology/aix/lvm/2009/04/how-does-aix-deal-with-bad-blocks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.worldiswelcome.com/science-and-technology/aix/lvm/2009/04/how-does-aix-deal-with-bad-blocks/</feedburner:origLink></item>
		<item>
		<title>AIX Logical Volume Manager A Brief Introduction</title>
		<link>http://feedproxy.google.com/~r/WorldIsWelcomeToOurBlogLvm/~3/18jaPMLDh1k/</link>
		<comments>http://blog.worldiswelcome.com/science-and-technology/aix/lvm/2009/04/aix-logical-volume-manager-a-brief-introduction/#comments</comments>
		<pubDate>Thu, 02 Apr 2009 22:45:34 +0000</pubDate>
		<dc:creator>Ganesh Dutt Sharma</dc:creator>
				<category><![CDATA[LVM]]></category>
		<category><![CDATA[AIX]]></category>
		<category><![CDATA[Logical Partition]]></category>
		<category><![CDATA[logical volume]]></category>
		<category><![CDATA[LP]]></category>
		<category><![CDATA[LV]]></category>
		<category><![CDATA[Physical Partition]]></category>
		<category><![CDATA[Physical Volume]]></category>
		<category><![CDATA[PP]]></category>
		<category><![CDATA[PV]]></category>
		<category><![CDATA[VG]]></category>
		<category><![CDATA[Volume Group]]></category>

		<guid isPermaLink="false">http://www.worldiswelcome.com/?p=845</guid>
		<description><![CDATA[The storage in Aix can be divided in two layers: Physical and Logical.

On physical level the two things come into picture:

   1. Physical Volume(PV).
   2. Physical Partition(PP).

On logical level the storage is divided in three parts:

   1. Logical Partition(LP).
   2. Logical Volume(LV).
   3. Volume Group(VG).
]]></description>
			<content:encoded><![CDATA[<p>The storage in Aix can be divided in two layers: Physical and Logical.</p>
<p>On physical level the two things come into picture:</p>
<ol type="1">
<li>Physical      Volume(PV).</li>
<li>Physical      Partition(PP).</li>
</ol>
<p>On logical level the storage is divided in three parts:</p>
<ol type="1">
<li>Logical      Partition(LP).</li>
<li>Logical      Volume(LV).</li>
<li>Volume      Group(VG).</li>
</ol>
<p>I&#8217;m going to discuss the terminology here:</p>
<p><strong>Physical Volume</strong><br />
The hard disk in LVM&#8217;s language is called Physical Volume. It has unique identifier. There is a limitation as to how many physical volumes can be there in AIX. Various commands can be used for PVs like lspv, chpv etc. While in use, the application is not aware, where the data is stored on hard disk.</p>
<p><strong>Physical Partition</strong><br />
The physical volume is divided in a number of small equal partitions. These are called physical partitions. These are used in LVM for making up the components like LP, LV, VG etc.</p>
<p><strong>Logical Partition</strong><br />
The logical aspect of LVM starts at this level. Each logical partition corresponds to one and only one physical partition. So we can say: LP &#8212;-&gt; PP and PP &#8212;-&gt;  LP. This is the unit which is used to increase or decrease the size of file systems in  OS.</p>
<p><strong>Logical Volume</strong><br />
The logical volume is composed of several Logical Partitions. Thus the size of Logical Volume can always be calculated as below:</p>
<p><strong><em> </em></strong><br />
<strong><em>Size of </em></strong><strong><em>LV</em></strong><strong><em> = Number of LPs  X   Size of LP(Which is equal to PP).</em></strong></p>
<p>Number of Logical Volumes are restricted by the type of Volume Group.<br />
The logical volume is usable only if the File System is created on it. Otherwise its not usable. The file systems normally used in AIX are jfs and jfs2. These are journaling based file systems. Means, whatever I/O operations are done on filesystem, all are recorded. The record is called journal.</p>
<p><strong>Volume Group</strong><br />
The volume group is the highest entity in LVM hierarchy. VG is composed of several LVs. While creating VGs, the PP size is decided and that can not be changed throughout the life of VG. VGs are of three types:</p>
<ol type="1">
<li>Normal      VG.</li>
<li>Big      VG.</li>
<li>Scalable      VG.</li>
</ol>
<p>More about VGs and their details will be written in some future posts. That&#8217;s all for now.</p>
<img src="http://feeds.feedburner.com/~r/WorldIsWelcomeToOurBlogLvm/~4/18jaPMLDh1k" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.worldiswelcome.com/science-and-technology/aix/lvm/2009/04/aix-logical-volume-manager-a-brief-introduction/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.worldiswelcome.com/science-and-technology/aix/lvm/2009/04/aix-logical-volume-manager-a-brief-introduction/</feedburner:origLink></item>
	</channel>
</rss><!-- Dynamic page generated in 0.466 seconds. --><!-- Cached page generated by WP-Super-Cache on 2009-10-14 08:28:15 -->
