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

<channel>
	<title>System Adm &#187; HP-UX</title>
	<atom:link href="http://www.system.adm.br/tag/hp-ux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.system.adm.br</link>
	<description>Some IT Tips (Linux, Unix, HP-UX, AIX, Solaris, etc).</description>
	<lastBuildDate>Wed, 30 Nov 2011 17:59:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Identify PV device in HP-UX 11.31</title>
		<link>http://www.system.adm.br/2011/09/identify-pv-device-in-hp-ux-11-31/</link>
		<comments>http://www.system.adm.br/2011/09/identify-pv-device-in-hp-ux-11-31/#comments</comments>
		<pubDate>Thu, 08 Sep 2011 18:44:30 +0000</pubDate>
		<dc:creator>Lincoln Zuljewic Silva</dc:creator>
				<category><![CDATA[HP-UX]]></category>
		<category><![CDATA[disk]]></category>
		<category><![CDATA[ioscan]]></category>
		<category><![CDATA[storage]]></category>

		<guid isPermaLink="false">http://www.system.adm.br/?p=379</guid>
		<description><![CDATA[In HP-UX 11.31, LVM doesn’t use “ctd’ (ie: /dev/rdsk/c2t1d0), but DSF to balance the throughput between many device paths., so if you need identify what physical device represent that logical device, you can use ioscan, for example: server@root:/root # vgdisplay -v vg00 --- Volume groups --- VG Name                     /dev/vg00 VG Write Access             read/write VG Status                   [...]]]></description>
			<content:encoded><![CDATA[<p>In HP-UX 11.31, LVM doesn’t use “ctd’ (ie: /dev/rdsk/c2t1d0), but DSF to balance the throughput between many device paths., so if you need identify what physical device represent that logical device, you can use ioscan, for example:<br />
<code><span style="font-size: 12px;"><br />
server@root:/root # vgdisplay -v vg00<br />
--- Volume groups ---<br />
VG Name                     /dev/vg00<br />
VG Write Access             read/write<br />
VG Status                   available<br />
Max LV                      255<br />
Cur LV                      12<br />
Open LV                     12<br />
Max PV                      16<br />
Cur PV                      1<br />
Act PV                      1<br />
Max PE per PV               4385<br />
VGDA                        2<br />
PE Size (Mbytes)            16<br />
Total PE                    4375<br />
Alloc PE                    3998<br />
Free PE                     377<br />
Total PVG                   0<br />
Total Spare PVs             0<br />
Total Spare PVs in use      0<br />
VG Version                  1.0<br />
VG Max Size                 1122560m<br />
VG Max Extents              70160</span></code><br />
<code><span style="font-size: 12px;"><br />
--- Logical volumes ---<br />
LV Name                     /dev/vg00/lvol1<br />
LV Status                   available/syncd<br />
LV Size (Mbytes)            2000<br />
Current LE                  125<br />
Allocated PE                125<br />
Used PV                     1</span></code><br />
<code><span style="font-size: 12px;"><br />
LV Name                     /dev/vg00/lvol2<br />
LV Status                   available/syncd<br />
LV Size (Mbytes)            16384<br />
Current LE                  1024<br />
Allocated PE                1024<br />
Used PV                     1<br />
<code><span style="font-size: 12px;"><br />
(...)<br />
</span></code></span></code><code><span style="font-size: 12px;"><code><span style="font-size: 12px;"><code><span style="font-size: 12px;"><code><span style="font-size: 12px;"><code><span style="font-size: 12px;"><code><span style="font-size: 12px;"><code><span style="font-size: 12px;"><code><span style="font-size: 12px;"><code><span style="font-size: 12px;"><br />
LV Name                     /dev/vg00/lvol12<br />
LV Status                   available/syncd<br />
LV Size (Mbytes)            5120<br />
Current LE                  320<br />
Allocated PE                320<br />
Used PV                     1<br />
<code><span style="font-size: 12px;"><br />
--- Physical volumes ---<br />
PV Name                     <span style="color: #ff0000;">/dev/disk/disk4</span><br />
PV Status                   available<br />
Total PE                    4375<br />
Free PE                     377<br />
Autoswitch                  On<br />
Proactive Polling           On</span></code></span></code></span></code></span></code></span></code></span></code></span></code></span></code></span></code></span></code></p>
<p>Note that the pv name is “disk4”, not c2t1d3.</p>
<p>With ioscan you can reverse map it:<br />
<code><span style="font-size: 12px;"><br />
server@root:/root # ioscan -m dsf<br />
Persistent DSF           Legacy DSF(s)<br />
========================================<br />
/dev/rdisk/disk3         /dev/rdsk/c2t1d0<br />
<span style="color: #ff0000;">/dev/rdisk/disk4         /dev/rdsk/c2t0d0</span><br />
/dev/rdisk/disk5         /dev/rdsk/c0t0d0<br />
</span></code></p>
<p>Now we know that the &#8220;disk4&#8243; is the physical disk located in 12/0/1/1/0.0.0<br />
<code><span style="font-size: 12px;"><br />
root@brux0044:/root # ioscan -fnC disk<br />
Class I H/W Path Driver S/W State H/W Type Description<br />
========================================================================<br />
<span style="color: #ff0000;">disk 1298 12/0/1/1/0.0.0 sdisk CLAIMED DEVICE HP 73.4GMAP3735NC</span><br />
<span style="color: #ff0000;">                         /dev/dsk/c2t0d0 /dev/rdsk/c2t0d0</span></p>
<p></span></code></p>
<p><code></code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.system.adm.br/2011/09/identify-pv-device-in-hp-ux-11-31/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Check powerpath links in HP-UX</title>
		<link>http://www.system.adm.br/2009/12/check-powerpath-links-in-hp-ux/</link>
		<comments>http://www.system.adm.br/2009/12/check-powerpath-links-in-hp-ux/#comments</comments>
		<pubDate>Tue, 22 Dec 2009 20:22:43 +0000</pubDate>
		<dc:creator>Lincoln Zuljewic Silva</dc:creator>
				<category><![CDATA[HP-UX]]></category>
		<category><![CDATA[admin]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[storage]]></category>

		<guid isPermaLink="false">http://www.system.adm.br/?p=202</guid>
		<description><![CDATA[To check if the powerpath links are up in HP-UX, you can use the following command: # powermt display dev=all &#160;]]></description>
			<content:encoded><![CDATA[<p>To check if the powerpath links are up in HP-UX, you can use the following command:</p>
<p>	<span style="font-size: 12px;"><code># powermt display dev=all</code></span></p>
<p>	&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.system.adm.br/2009/12/check-powerpath-links-in-hp-ux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lock an user account in HP-UX</title>
		<link>http://www.system.adm.br/2009/09/lock-an-user-account-in-hp-ux/</link>
		<comments>http://www.system.adm.br/2009/09/lock-an-user-account-in-hp-ux/#comments</comments>
		<pubDate>Thu, 24 Sep 2009 17:45:17 +0000</pubDate>
		<dc:creator>Lincoln Zuljewic Silva</dc:creator>
				<category><![CDATA[HP-UX]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://www.system.adm.br/?p=171</guid>
		<description><![CDATA[To lock an user account in HP-UX, you can use the following command: # /usr/lbin/modprpw -m alock=YES USER]]></description>
			<content:encoded><![CDATA[<p>To lock an user account in HP-UX, you can use the following command:</p>
<p>	<span style="font-size: 12px;"><code># /usr/lbin/modprpw -m alock=YES USER</code></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.system.adm.br/2009/09/lock-an-user-account-in-hp-ux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Merge many depots</title>
		<link>http://www.system.adm.br/2009/08/merge-many-depots/</link>
		<comments>http://www.system.adm.br/2009/08/merge-many-depots/#comments</comments>
		<pubDate>Tue, 25 Aug 2009 17:58:23 +0000</pubDate>
		<dc:creator>Lincoln Zuljewic Silva</dc:creator>
				<category><![CDATA[HP-UX]]></category>
		<category><![CDATA[admin]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://www.system.adm.br/?p=162</guid>
		<description><![CDATA[When you have many depot files, you can create a single big depot and install it instead of install one by one. Let&#8217;s assume that you need install the following depots, and they are all located in the directory /tmp/install/depots: autoconf-2.64-hppa-11.11.depot bison-2.4.1-hppa-11.11.depot gawk-3.1.7-hppa-11.11.depot sed-4.2.1-hppa-11.11.depot tcltk-8.5.7-hppa-11.11.depot texinfo-4.13-hppa-11.11.depot zip-3.0-hppa-11.11.depot To create a single depot, run the follow [...]]]></description>
			<content:encoded><![CDATA[<p>When you have many depot files, you can create a single big depot and install it instead of install one by one. Let&rsquo;s assume that you need install the following depots, and they are all located in the directory /tmp/install/depots:</p>
<p>	<span style="font-size: 12px;"><code>autoconf-2.64-hppa-11.11.depot bison-2.4.1-hppa-11.11.depot gawk-3.1.7-hppa-11.11.depot sed-4.2.1-hppa-11.11.depot tcltk-8.5.7-hppa-11.11.depot texinfo-4.13-hppa-11.11.depot zip-3.0-hppa-11.11.depot</code></span></p>
<p>	To create a single depot, run the follow commands:<br />
	<span style="font-size: 12px;"><code># cd /tmp/install/ for i in `ls depots/*.depot` ;do swcopy -s /tmp/install/$i \* @/tmp/install/big;done</code></span></p>
<p>	Now, to install it, you can use:<br />
	<span style="font-size: 12px;"><code># swinstall -s /tmp/install/big</code></span></p>
<p>	&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.system.adm.br/2009/08/merge-many-depots/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Listing installed packages in HP-UX</title>
		<link>http://www.system.adm.br/2009/05/listing-installed-packages-in-hp-ux/</link>
		<comments>http://www.system.adm.br/2009/05/listing-installed-packages-in-hp-ux/#comments</comments>
		<pubDate>Wed, 13 May 2009 12:23:13 +0000</pubDate>
		<dc:creator>Lincoln Zuljewic Silva</dc:creator>
				<category><![CDATA[HP-UX]]></category>
		<category><![CDATA[software]]></category>

		<guid isPermaLink="false">http://www.system.adm.br/?p=97</guid>
		<description><![CDATA[To list all installed packages on HP-UX, you can use the following command: # swlist -l &#160;]]></description>
			<content:encoded><![CDATA[<p>To list all installed packages on HP-UX, you can use the following command:</p>
<p>	<span style="font-size: 12px;"><code># swlist -l</code></span></p>
<p>	&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.system.adm.br/2009/05/listing-installed-packages-in-hp-ux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

