<?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>Viktor Balogh's HP-UX blog</title>
	<atom:link href="http://viktorbalogh.net/blog/feed" rel="self" type="application/rss+xml" />
	<link>http://viktorbalogh.net/blog</link>
	<description>HP-UX technical tips for system administrators</description>
	<lastBuildDate>Wed, 15 Feb 2012 18:58:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Bug: Installing a Netbackup Media server in a HP-UX SRP-enabled environment</title>
		<link>http://viktorbalogh.net/blog/backup-restore/bug-installing-a-netbackup-media-server-in-a-hp-ux-srp-enabled-environment</link>
		<comments>http://viktorbalogh.net/blog/backup-restore/bug-installing-a-netbackup-media-server-in-a-hp-ux-srp-enabled-environment#comments</comments>
		<pubDate>Thu, 15 Dec 2011 14:50:27 +0000</pubDate>
		<dc:creator>Viktor Balogh</dc:creator>
				<category><![CDATA[Backup & Restore]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[global_srp]]></category>
		<category><![CDATA[installpbx]]></category>
		<category><![CDATA[Netbackup]]></category>
		<category><![CDATA[netbackup media server]]></category>
		<category><![CDATA[Secure Resource Partition]]></category>
		<category><![CDATA[SRP]]></category>
		<category><![CDATA[swinstall]]></category>

		<guid isPermaLink="false">http://viktorbalogh.net/blog/?p=651</guid>
		<description><![CDATA[This is a bug I found during the installation of a Netbackup Media server. The target system was an HP-UX 11iv3 which has several SRP containers integrated into ServiceGuard. As I started the installation script on the global container, it failed with an swinstall error stating that it couldn&#8217;t set the SRP containers into maintenance [...]]]></description>
			<content:encoded><![CDATA[<p>This is a bug I found during the installation of a Netbackup Media server. The target system was an HP-UX 11iv3 which has several SRP containers integrated into ServiceGuard. As I started the installation script on the global container, it failed with an swinstall error stating that it couldn&#8217;t set the SRP containers into maintenance mode. You should know that we plan to use the the media server from the global zone, and the client will be installed also only to the global zone.</p>
<p>That&#8217;s because two new options were added to the swinstall command to support the Secure Resource Partition functionality. The first one is the global_srp option, by which you can decide if the installation/removal should affect the global system. The other option is the local_srp_list which contains space separated system container names enclosed in quotes.<span id="more-651"></span></p>
<p>The behavior is as follows:</p>
<ul>
<li> If neither global_srp nor local_srp_list options are specified, then the install, remove, or configure will occur on the system and all system containers.</li>
<li>If the global_srp=true and local_srp_list options are not specified, then the install, remove, or configure will occur only on the system.</li>
<li>If the global_srp=true and local_srp_list options are set, then the install, remove, configure will occur on the system and the listed system containers.</li>
<li>If the local_srp_list option is set and the global_srp option is not specified, then the install, remove, configure will occur only in the listed system containers.</li>
</ul>
<p>The Netbackup Media server installation script untars a package, and calls a script within it which does swinstall among several things. So you just need to untar that package, and find the following script: <strong>usr/openv/netbackup/client/HP-UX-IA64/HP-UX11.31/installpbx</strong></p>
<p>As we want the media server installed only into the global zone, search for the swinstall procedure (line 1035) in the installpbx script and change this one:</p>
<pre>swinstall -x "mount_all_filesystems=false" \</pre>
<p>to this:</p>
<pre>swinstall -x "mount_all_filesystems=false" -x global_srp=true \</pre>
<p>After that, re-package the files with tar, and the install script works now without any errors, the media server will be installed after the next-next-finish procedure.</p>
<p><em>Update: <a title="Symantec - Support for HP-UX Itanium VPAR SRP Containers" href="http://www.symantec.com/business/support/index?page=content&amp;id=TECH180901&amp;actp=RSS">Here</a> is some related information for installing Netbackup client within the SRP.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://viktorbalogh.net/blog/backup-restore/bug-installing-a-netbackup-media-server-in-a-hp-ux-srp-enabled-environment/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Configure RAID mode on a P410i</title>
		<link>http://viktorbalogh.net/blog/hardware/servers/configure-raid-mode-on-a-p410i</link>
		<comments>http://viktorbalogh.net/blog/hardware/servers/configure-raid-mode-on-a-p410i#comments</comments>
		<pubDate>Thu, 08 Dec 2011 11:06:57 +0000</pubDate>
		<dc:creator>Viktor Balogh</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[drvcfg]]></category>
		<category><![CDATA[HBA mode]]></category>
		<category><![CDATA[HP Smart Array P410i]]></category>
		<category><![CDATA[Option ROM Configuration for Arrays]]></category>
		<category><![CDATA[ORCA]]></category>
		<category><![CDATA[P410]]></category>
		<category><![CDATA[P410i]]></category>
		<category><![CDATA[RAID mode]]></category>
		<category><![CDATA[RAID setup]]></category>

		<guid isPermaLink="false">http://viktorbalogh.net/blog/?p=634</guid>
		<description><![CDATA[This post is the successor of the previous one, which was written on how to change your P410i controller to RAID mode. Setting the controller to RAID mode is just half the job, you need to define the RAID level and assign physical disks to it. For this you can use the drvcfg -s command [...]]]></description>
			<content:encoded><![CDATA[<p>This post is the successor of the previous one, which was written on how to change your P410i controller to RAID mode. Setting the controller to RAID mode is just half the job, you need to define the RAID level and assign physical disks to it. For this you can use the <strong>drvcfg -s</strong> command at the EFI shell to get into the P410i BIOS.</p>
<ol>
<li>To determine the drv use the drivers command from EFI shell prompt.</li>
<li>Find the SAS Host Adapter and make a note of the Driver ID from the left column. That is the drv.</li>
<li>To determine the ctr use the drvcfg command from the efi shell prompt. Look for the SAS Host Adapter drv number and the corresponding number is the ctr:<br />
<a href="http://viktorbalogh.net/blog/wp-content/uploads/2011/12/c02292335.gif"><img class="aligncenter size-full wp-image-636" title="c02292335" src="http://viktorbalogh.net/blog/wp-content/uploads/2011/12/c02292335.gif" alt="" width="530" height="267" /><span id="more-634"></span></a></li>
<li>
<div>Now type in <strong>drvcfg -s</strong> and the Bios or ORCA menu should appear.<br />
<a href="http://viktorbalogh.net/blog/wp-content/uploads/2011/12/c02292336.gif"><img class="aligncenter size-full wp-image-641" title="c02292336" src="http://viktorbalogh.net/blog/wp-content/uploads/2011/12/c02292336.gif" alt="" width="447" height="364" /></a></div>
</li>
<li>To create a mirror, choose Create Logical Drive<br />
<a href="http://viktorbalogh.net/blog/wp-content/uploads/2011/12/c02292337.gif"><img class="aligncenter size-full wp-image-642" title="c02292337" src="http://viktorbalogh.net/blog/wp-content/uploads/2011/12/c02292337.gif" alt="" width="500" height="301" /></a></li>
<li>Select the 2 physical disks that will be part of the mirror. Use the tab key to choose the Raid configuration. Press Enter . One should see the following menu:<br />
<a href="http://viktorbalogh.net/blog/wp-content/uploads/2011/12/c02292338.gif"><img class="aligncenter size-full wp-image-643" title="c02292338" src="http://viktorbalogh.net/blog/wp-content/uploads/2011/12/c02292338.gif" alt="" width="500" height="346" /></a></li>
<li>
<div>Press F8 or esc 8 to save the configuration.</div>
</li>
</ol>
<p>Source: <a title="HP Integrity BL860c/BL870c/BL890c i2 Server series - How to Configure a Hardware Raid for the Internal Drives" href="http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?lang=en&amp;cc=us&amp;objectID=c02292331&amp;jumpid=reg_R1002_USEN">HP Business Support Center</a></p>
]]></content:encoded>
			<wfw:commentRss>http://viktorbalogh.net/blog/hardware/servers/configure-raid-mode-on-a-p410i/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Changing a P410i from HBA mode to RAID mode</title>
		<link>http://viktorbalogh.net/blog/hardware/servers/changing-a-p410i-from-hba-mode-to-raid-mode</link>
		<comments>http://viktorbalogh.net/blog/hardware/servers/changing-a-p410i-from-hba-mode-to-raid-mode#comments</comments>
		<pubDate>Wed, 30 Nov 2011 10:16:36 +0000</pubDate>
		<dc:creator>Viktor Balogh</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[EFI shell]]></category>
		<category><![CDATA[HBA mode]]></category>
		<category><![CDATA[P410]]></category>
		<category><![CDATA[P410i]]></category>
		<category><![CDATA[RAID mode]]></category>
		<category><![CDATA[saupdate.efi]]></category>

		<guid isPermaLink="false">http://viktorbalogh.net/blog/?p=629</guid>
		<description><![CDATA[So, you&#8217;ve just unboxed your freshly came Integrity server, which has a P410/P410i SAS controller. (P410i is an onboard integrated version of the same chipset.) To a P410i controller one can attach a maximum of two SAS drives, and the controller has two operation modes: either it can function as a plain SAS controller without [...]]]></description>
			<content:encoded><![CDATA[<p>So, you&#8217;ve just unboxed your freshly came Integrity server, which has a P410/P410i SAS controller. (P410i is an onboard integrated version of the same chipset.) To a P410i controller one can attach a maximum of two SAS drives, and the controller has two operation modes: either it can function as a plain SAS controller without any other intelligence, or we can have the capability of a RAID controller if we set it to RAID mode. Usually when you have to deal with brand new servers, the controller is set to SAS mode, but it is a good practice to install a system onto a hardware-based RAID 1 volume. In order to change the mode you should follow these steps:</p>
<ol>
<li>Update the firmware of the disk controller.</li>
<li>Change the controller to RAID mode</li>
</ol>
<p><span id="more-629"></span><strong>1. Update the firmware of the disk controller.</strong></p>
<p>Besides it is a best practice to update the firmware of every component to the newest recommended level, there are some known issues which you can avoid. By downloading the firmware, you will get two files: saupdate.efi and a sandman_xxxxxx.bin. The former is the binary which you can run from EFI shell, the latter is the firmware itself which will be uploaded to ROM. Put these two files onto a FAT32 USB stick and at system boot type <strong>map -r</strong> at the EFI shell.</p>
<p>Now change the pwd to the USB stick with the <strong>fs0:</strong> command and start the firmware update with:</p>
<pre>fs0:&gt; saupdate update p410i sandman_xxxxxx.bin</pre>
<p><strong>2. Change the P410i from HBA mode to RAID mode</strong></p>
<p>You can query the current operation mode of your P410i controller like this:</p>
<pre>fs0:\&gt; saupdate get_mode p410i

The controller at 0:2:0:0 is in HBA mode

The controller at 0:42:0:0 is in HBA mode

The controller at 0:82:0:0 is in HBA mode

The controller at 0:C2:0:0 is in HBA mode

fs0:\&gt;</pre>
<p>For changing to RAID mode you should know that this will destroy the data on the disks, but as I have a new system it is no problem.</p>
<pre>fs0:\&gt; saupdate set_mode p410i raid

<span style="color: #ff0000;">Warning:</span><span style="color: #00ccff;">Changing controller mode could result in DATA LOSS!!!</span>
<span style="color: #00ccff;">Key in 'YES' to continue or 'NO' to quit:</span>yes

Changing mode of the controller at 0:2:0:0 to RAID
Resetting and reinitializing controller, it may take several minutes
Controller mode change successful

Changing mode of the controller at 0:42:0:0 to RAID
Resetting and reinitializing controller, it may take several minutes
Controller mode change successful

Changing mode of the controller at 0:82:0:0 to RAID
Resetting and reinitializing controller, it may take several minutes
Controller mode change successful

Changing mode of the controller at 0:C2:0:0 to RAID
Resetting and reinitializing controller, it may take several minutes
Controller mode change successful
fs0:\&gt;</pre>
<p>At the end of the procedure you should type <strong>reconnect -r</strong> at the EFI shell. Now that our disk controller operates in RAID mode, in the next post I&#8217;ll show you how to setup the RAID array.</p>
]]></content:encoded>
			<wfw:commentRss>http://viktorbalogh.net/blog/hardware/servers/changing-a-p410i-from-hba-mode-to-raid-mode/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Checking the status of multipathing in 11iv3</title>
		<link>http://viktorbalogh.net/blog/hp-ux/hp-ux_sysadm/checking-the-status-of-multipathing-in-11iv3</link>
		<comments>http://viktorbalogh.net/blog/hp-ux/hp-ux_sysadm/checking-the-status-of-multipathing-in-11iv3#comments</comments>
		<pubDate>Thu, 24 Nov 2011 12:46:50 +0000</pubDate>
		<dc:creator>Viktor Balogh</dc:creator>
				<category><![CDATA[HP-UX system administration]]></category>
		<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Storage]]></category>
		<category><![CDATA[active/active]]></category>
		<category><![CDATA[active/passive]]></category>
		<category><![CDATA[EMC PowerPath]]></category>
		<category><![CDATA[FC]]></category>
		<category><![CDATA[fiber]]></category>
		<category><![CDATA[HP Secure Path]]></category>
		<category><![CDATA[hp-ux 11iv3]]></category>
		<category><![CDATA[ioscan]]></category>
		<category><![CDATA[mass storage stack]]></category>
		<category><![CDATA[multipathing]]></category>
		<category><![CDATA[offline]]></category>
		<category><![CDATA[online]]></category>
		<category><![CDATA[path]]></category>
		<category><![CDATA[SAN]]></category>
		<category><![CDATA[SAN path]]></category>

		<guid isPermaLink="false">http://viktorbalogh.net/blog/?p=620</guid>
		<description><![CDATA[A common task in a sysadmin&#8217;s life is to assist to the changes which are affecting the SAN network. At smaller organizations it could be that besides the system administrator role you also need to manage the storage side.  So here&#8217;s a post which might help you if you need to check the status of [...]]]></description>
			<content:encoded><![CDATA[<p>A common task in a sysadmin&#8217;s life is to assist to the changes which are affecting the SAN network. At smaller organizations it could be that besides the system administrator role you also need to manage the storage side.  So here&#8217;s a post which might help you if you need to check the status of the LUN paths. For checking the availability of the LUNs, you can use the ioscan command like this:</p>
<pre># ioscan -P health -C disk
Class     I  H/W Path  health
===============================
disk      1  64000/0xfa00/0x1   online
disk      4  64000/0xfa00/0x6   online
disk      7  64000/0xfa00/0x7   online
disk     10  64000/0xfa00/0x8   online
disk     13  64000/0xfa00/0x9   online
disk     16  64000/0xfa00/0xa   online
disk     19  64000/0xfa00/0xb   online
...</pre>
<p><span id="more-620"></span>In the above output you can see these health conditions:</p>
<ul>
<li>online</li>
<li>offline</li>
<li>limited</li>
<li>disabled</li>
</ul>
<p>Online means that all the paths are usable. However this does not necessary mean that all the paths are active. In case you are using active/passive multipathing only one path is active, the others are in stanby state. Offline means that the specific LUN is not accessible on either of its paths. If you see limited health, then then the LUN is not on all the paths are accessible. Disabled means that the LUN has been suspended as a result of some sort of error.</p>
<p>If you see a limited health in the above output, you might want to know qith which path you have problems. It&#8217;s easy to list the health status for each paths:</p>
<pre># ioscan -P health -C lunpath
Class     I  H/W Path  health
===============================
lunpath   0  0/0/0/2/0/0/0.0x0.0x0                                online
lunpath   1  0/0/0/2/0/0/0.0x0.0x4000000000000000                 online
lunpath   2  0/0/0/5/0/0/0.0x50014380113737e8.0x0                 online
lunpath   4  0/0/0/5/0/0/0.0x50014380113737e8.0x4001000000000000  online
lunpath   6  0/0/0/5/0/0/0.0x50014380113737e8.0x4002000000000000  standby
lunpath   8  0/0/0/5/0/0/0.0x50014380113737e8.0x4003000000000000  online
lunpath  10  0/0/0/5/0/0/0.0x50014380113737e8.0x4004000000000000  online
lunpath  13  0/0/0/5/0/0/0.0x50014380113737e8.0x4005000000000000  standby
lunpath  15  0/0/0/5/0/0/0.0x50014380113737e8.0x4006000000000000  online
lunpath  16  0/0/0/5/0/0/0.0x50014380113737e8.0x4007000000000000  standby
lunpath  18  0/0/0/5/0/0/0.0x50014380113737e8.0x4008000000000000  online
lunpath  20  0/0/0/5/0/0/0.0x50014380113737e8.0x4009000000000000  standby
lunpath  23  0/0/0/5/0/0/0.0x50014380113737e8.0x400a000000000000  online
lunpath  24  0/0/0/5/0/0/0.0x50014380113737e8.0x400b000000000000  standby
...</pre>
<p>The health column in the above output may have the following values:</p>
<ul>
<li>online</li>
<li>offline</li>
<li>unusable</li>
<li>disable</li>
<li>standby</li>
</ul>
<p>Online is self-explanatory, just as offline. Unsable means that the lunpath authentication has failed. You get a disable status if a lunpath has been suspended because of an error. And finally you&#8217;ll see a standby status for all the LUNs which are accessible through an active/passive policy.</p>
<p>Note that the above checks are only valid if you are using the new mass storage stack which was introduced in 11iv3. If you are using legacy DSFs or have an older HP-UX version then you either use some software for multipathing (like HP Secure Path, EMC PowerPath or whichever SW comes with your storage), or multipathing is done by your volume manager (like LVM or VxVM) or you don&#8217;t use multipathing at all. In these cases you should have to figure out the method to check the paths (or you can search on this blog maybe I already wrote a post about that method, like <a title="Cheatsheet: EMC Powerpath on HP-UX" href="http://viktorbalogh.net/blog/hp-ux/hp-ux_sysadm/cheatsheet-emc-powerpath-on-hp-ux">this EMC cheatsheet</a>.)</p>
]]></content:encoded>
			<wfw:commentRss>http://viktorbalogh.net/blog/hp-ux/hp-ux_sysadm/checking-the-status-of-multipathing-in-11iv3/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Recommended BladeSystem Firmware Installation Order</title>
		<link>http://viktorbalogh.net/blog/hardware/servers/recommended-bladesystem-firmware-installation-order</link>
		<comments>http://viktorbalogh.net/blog/hardware/servers/recommended-bladesystem-firmware-installation-order#comments</comments>
		<pubDate>Wed, 28 Sep 2011 12:15:25 +0000</pubDate>
		<dc:creator>Viktor Balogh</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Blade]]></category>
		<category><![CDATA[firmware]]></category>
		<category><![CDATA[firmware update]]></category>
		<category><![CDATA[HP c-class BladeSystem]]></category>
		<category><![CDATA[Onboard Administrator]]></category>
		<category><![CDATA[virtual connect]]></category>

		<guid isPermaLink="false">http://viktorbalogh.net/blog/?p=616</guid>
		<description><![CDATA[For HP c-class BladeSystem Enclosures if there is an OS installed to the blade, update the firmware in the following recommended order: Update the firmware of the server blades Update the firmware of the Onboard Administrators Now reboot the systems Update any offline-only firmwares like Emulex or QLogic adapters Update the firmware of the Virtual [...]]]></description>
			<content:encoded><![CDATA[<p>For HP c-class BladeSystem Enclosures if there is an OS installed to the blade, update the firmware in the following recommended order:</p>
<ol>
<li>Update the firmware of the server blades</li>
<li>Update the firmware of the Onboard Administrators</li>
<li>Now reboot the systems</li>
<li>Update any offline-only firmwares like Emulex or QLogic adapters</li>
<li>Update the firmware of the Virtual Connects using VCSU</li>
</ol>
<p>For Blade servers without OS, the following order is recommended:</p>
<ol>
<li>Update the Onboard Administrator firmware</li>
<li>Update the firmware of the Virtual Connect modules with VCSU</li>
<li>Update the firmware of any server-specific components</li>
</ol>
<p>source: <a title="HP BladeSystem Enclosures - Recommended BladeSystem Firmware Installation Order" href="http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=c03009576&amp;jumpid=em_alerts_us-us_Sep11_xbu_all_all_1434452_95532_bladesystem_routine_006_1">hp.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://viktorbalogh.net/blog/hardware/servers/recommended-bladesystem-firmware-installation-order/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oracle Grid Control on HP-UX: swap shortage</title>
		<link>http://viktorbalogh.net/blog/databases/oracle-grid-control-on-hp-ux-swap-shortage</link>
		<comments>http://viktorbalogh.net/blog/databases/oracle-grid-control-on-hp-ux-swap-shortage#comments</comments>
		<pubDate>Wed, 21 Sep 2011 12:12:35 +0000</pubDate>
		<dc:creator>Viktor Balogh</dc:creator>
				<category><![CDATA[Databases]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[emd.properties]]></category>
		<category><![CDATA[enterprise manager]]></category>
		<category><![CDATA[grid control]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[swap]]></category>
		<category><![CDATA[swap utilization]]></category>

		<guid isPermaLink="false">http://viktorbalogh.net/blog/?p=608</guid>
		<description><![CDATA[If you are using Oracle Grid Control on HP-UX you may have problems with swap usage. The values reported by Grid Control could be much higher as the values reported by the system trough swapinfo. Maybe it just didn&#8217;t turn out until you got a warning something like &#8220;Swap Utilization is 100%, crossed warning (80) [...]]]></description>
			<content:encoded><![CDATA[<p>If you are using Oracle Grid Control on HP-UX you may have problems with swap usage. The values reported by Grid Control could be much higher as the values reported by the system trough swapinfo. Maybe it just didn&#8217;t turn out until you got a warning something like</p>
<p><span style="color: #ff0000;"><em>&#8220;Swap Utilization is 100%, crossed warning (80) or critical (95) threshold.&#8221;</em></span></p>
<p>That&#8217;s how it looked like on our system in Enterprise Manager:</p>
<p><a href="http://viktorbalogh.net/blog/wp-content/uploads/2011/09/swaputil.jpg"><img class="aligncenter size-full wp-image-609" title="swaputil" src="http://viktorbalogh.net/blog/wp-content/uploads/2011/09/swaputil.jpg" alt="" width="397" height="183" /></a></p>
<p><span id="more-608"></span>There is a so-called pseudo swap feature in HP-UX, by which the system uses RAM as swap space in order to be able to run more processes. Unfortunately Oracle Grid Control doesn&#8217;t know about this feature and thus it counts the free swap space incorrectly. The pseudo swap feature is on by default, but one cannot be sure so here are some ways to determine if it&#8217;s on. Either you can check the kernel parameter swapmem_on, or take a look at the swapinfo output: if it contains a line starting with &#8220;memory&#8221; then it&#8217;s on:</p>
<pre># swapinfo -ta
          Kb      Kb      Kb     PCT    START/     Kb
TYPE      AVAIL    USED    FREE    USED    LIMIT RESERVE  PRI  NAME
dev      196608   16616  179992      8%        0       -    1  /dev/vg00/lvol2
reserve       -   69260  -69260
memory    66588   38740   27848     58%
total    263196  124616  138580     47%        -       0    -
#</pre>
<p>If you are using Oracle Grid Control and the reported free swap percentage is more than in the swapinfo output, you should set the following property to have it properly counted:</p>
<pre>NMUPM_USE_PSEUDO_MEM=TRUE</pre>
<p>It&#8217;s in the file <em>$AGENT_HOME/sysman/config/emd.properties</em></p>
]]></content:encoded>
			<wfw:commentRss>http://viktorbalogh.net/blog/databases/oracle-grid-control-on-hp-ux-swap-shortage/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Exporting SQL*Plus output to HTML</title>
		<link>http://viktorbalogh.net/blog/databases/exporting-sqlplus-output-to-html</link>
		<comments>http://viktorbalogh.net/blog/databases/exporting-sqlplus-output-to-html#comments</comments>
		<pubDate>Thu, 25 Aug 2011 13:52:35 +0000</pubDate>
		<dc:creator>Viktor Balogh</dc:creator>
				<category><![CDATA[Databases]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[SQL*Plus]]></category>
		<category><![CDATA[STDOUT]]></category>

		<guid isPermaLink="false">http://viktorbalogh.net/blog/?p=606</guid>
		<description><![CDATA[Nowadays I deal with Oracle databases, and I found something cool which might be of interest to you. So here is a quick way to capture the SQL*Plus output to a html file: SQL&#62; set markup HTML on SQL&#62; spool index.html SQL&#62; -- do something SQL&#62; spool off SQL&#62; set markup HTML off This captures [...]]]></description>
			<content:encoded><![CDATA[<p>Nowadays I deal with Oracle databases, and I found something cool which might be of interest to you. So here is a quick way to capture the SQL*Plus output to a html file:</p>
<pre>SQL&gt; set markup HTML on
SQL&gt; spool index.html
SQL&gt; -- do something
SQL&gt; spool off
SQL&gt; set markup HTML off</pre>
<p>This captures the whole output in HTML format besides STDOUT into the given index.html file.</p>
]]></content:encoded>
			<wfw:commentRss>http://viktorbalogh.net/blog/databases/exporting-sqlplus-output-to-html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Exporting putty settings</title>
		<link>http://viktorbalogh.net/blog/other/exporting-putty-settings</link>
		<comments>http://viktorbalogh.net/blog/other/exporting-putty-settings#comments</comments>
		<pubDate>Fri, 19 Aug 2011 13:46:10 +0000</pubDate>
		<dc:creator>Viktor Balogh</dc:creator>
				<category><![CDATA[Backup & Restore]]></category>
		<category><![CDATA[Other]]></category>
		<category><![CDATA[export]]></category>
		<category><![CDATA[import]]></category>
		<category><![CDATA[putty]]></category>
		<category><![CDATA[putty settings]]></category>
		<category><![CDATA[putty.reg]]></category>
		<category><![CDATA[regedit]]></category>

		<guid isPermaLink="false">http://viktorbalogh.net/blog/?p=603</guid>
		<description><![CDATA[Here is a quick howto on how to import your saved hosts in putty from one machine to another. Putty stores its settings in the windows registry. With the following one-liner typed into the &#8220;Start menu&#8221; &#62; &#8220;Run&#8221; you can save your settings as a .reg file. regedit /e "%userprofile%\desktop\putty.reg" HKEY_CURRENT_USER\Software\Simontatham After this the .reg [...]]]></description>
			<content:encoded><![CDATA[<p>Here is a quick howto on how to import your saved hosts in putty from one machine to another. Putty stores its settings in the windows registry. With the following one-liner typed into the &#8220;Start menu&#8221; &gt; &#8220;Run&#8221; you can save your settings as a .reg file.</p>
<pre>regedit /e "%userprofile%\desktop\putty.reg" HKEY_CURRENT_USER\Software\Simontatham</pre>
<p>After this the .reg file has been created on your desktop, you should copy it to the destination host and double-click it to import.</p>
]]></content:encoded>
			<wfw:commentRss>http://viktorbalogh.net/blog/other/exporting-putty-settings/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Glance adviser scripts</title>
		<link>http://viktorbalogh.net/blog/languages_scripting/glance-adviser-scripts</link>
		<comments>http://viktorbalogh.net/blog/languages_scripting/glance-adviser-scripts#comments</comments>
		<pubDate>Fri, 08 Jul 2011 08:19:52 +0000</pubDate>
		<dc:creator>Viktor Balogh</dc:creator>
				<category><![CDATA[Languages and Scripting]]></category>
		<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[Performance Tuning]]></category>
		<category><![CDATA[adviser scripts]]></category>
		<category><![CDATA[adviser.syntax]]></category>
		<category><![CDATA[glance]]></category>
		<category><![CDATA[glance adviser]]></category>
		<category><![CDATA[I/O]]></category>
		<category><![CDATA[metrics]]></category>
		<category><![CDATA[performance tuning]]></category>

		<guid isPermaLink="false">http://viktorbalogh.net/blog/?p=595</guid>
		<description><![CDATA[The first most important thing in proactive performance tuning is to establish a baseline. This can be done by capturing performance data at normal operation. If you are familiar with the interactive glance, and want to have the output in that familiar format, you can automate data collecting with adviser scripts and have the output [...]]]></description>
			<content:encoded><![CDATA[<p>The first most important thing in proactive performance tuning is to establish a baseline. This can be done by capturing performance data at normal operation. If you are familiar with the interactive glance, and want to have the output in that familiar format, you can automate data collecting with adviser scripts and have the output in an ASCII file. This is how to get started with adviser scripts:</p>
<p>You have a sample adviser syntax file here: /var/opt/perf/adviser.syntax</p>
<p>Here is a sample of mine which captures physical I/O data:</p>
<pre># cat glance.syntax
PRINT "---------------------", gbl_stattime, "--------------------"
DISK LOOP
PRINT bydsk_devname, " write rate: ", bydsk_phys_write_rate, " read rate: ", bydsk_phys_read_rate
#</pre>
<p>You can run glance with this adviser script in non-interactive mode like this (with redirection you can capture the output into a file):<span id="more-595"></span></p>
<pre># glance -adviser_only -iterations 2 -syntax ./glance.syntax

Welcome to GlancePlus

---------------------10:09:47--------------------
0/1/1/0.0.0                              write rate:         2.8 read rate:         0.0
0/1/1/1.8.0                              write rate:         2.8 read rate:         0.0
0/1/1/0.1.0                              write rate:         0.0 read rate:         0.0
0/1/1/1.10.0                             write rate:         0.0 read rate:         0.0
0/3/1/0/4/0.2.64.0.0.0.0                 write rate:         0.0 read rate:         0.0
0/3/1/0/4/0.1.64.0.0.0.2                 write rate:         0.0 read rate:         0.0
0/3/1/0/4/0.2.64.0.0.0.2                 write rate:         0.0 read rate:         0.0
0/3/1/0/4/0.1.64.0.0.0.0                 write rate:         0.0 read rate:         0.0
0/3/1/0/4/0.1.64.0.0.0.1                 write rate:         0.0 read rate:         0.0
0/3/1/0/4/0.2.64.0.0.0.1                 write rate:         0.0 read rate:         0.0
0/4/1/0/4/0.1.64.0.0.0.0                 write rate:         0.0 read rate:         0.0
0/4/1/0/4/0.2.0.0.0.0.0                  write rate:         0.0 read rate:         0.0
0/4/1/0/4/0.1.64.0.0.0.2                 write rate:         0.0 read rate:         0.0
0/4/1/0/4/0.2.0.0.0.0.2                  write rate:         0.0 read rate:         0.0
0/4/1/0/4/0.1.64.0.0.0.1                 write rate:         0.0 read rate:         0.0
0/4/1/0/4/0.2.0.0.0.0.1                  write rate:         0.0 read rate:         0.0
---------------------10:09:52--------------------
0/1/1/0.0.0                              write rate:         4.4 read rate:         0.0
0/1/1/1.8.0                              write rate:         3.2 read rate:         0.0
0/1/1/0.1.0                              write rate:         0.0 read rate:         0.0
0/1/1/1.10.0                             write rate:         0.0 read rate:         0.0
0/3/1/0/4/0.2.64.0.0.0.0                 write rate:         0.0 read rate:         0.0
0/3/1/0/4/0.1.64.0.0.0.2                 write rate:         0.0 read rate:         0.0
0/3/1/0/4/0.2.64.0.0.0.2                 write rate:         0.0 read rate:         0.0
0/3/1/0/4/0.1.64.0.0.0.0                 write rate:         0.0 read rate:         0.0
0/3/1/0/4/0.1.64.0.0.0.1                 write rate:         0.0 read rate:         0.0
0/3/1/0/4/0.2.64.0.0.0.1                 write rate:         0.0 read rate:         0.0
0/4/1/0/4/0.1.64.0.0.0.0                 write rate:         0.0 read rate:         0.0
0/4/1/0/4/0.2.0.0.0.0.0                  write rate:         0.0 read rate:         0.0
0/4/1/0/4/0.1.64.0.0.0.2                 write rate:         0.0 read rate:         0.0
0/4/1/0/4/0.2.0.0.0.0.2                  write rate:         0.0 read rate:         0.0
0/4/1/0/4/0.1.64.0.0.0.1                 write rate:         0.0 read rate:         0.0
0/4/1/0/4/0.2.0.0.0.0.1                  write rate:         0.0 read rate:         0.0

#</pre>
<p>For more info read the following:</p>
<p>http://h20247.www2.hp.com/enterprise/downloads/Glance.pdf</p>
<p>and the on-system pdf document: /opt/perf/paperdocs/gp/C/adviser.pdf</p>
]]></content:encoded>
			<wfw:commentRss>http://viktorbalogh.net/blog/languages_scripting/glance-adviser-scripts/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Physical vs. Logical I/O</title>
		<link>http://viktorbalogh.net/blog/resource_management/physical-vs-logical-io</link>
		<comments>http://viktorbalogh.net/blog/resource_management/physical-vs-logical-io#comments</comments>
		<pubDate>Tue, 05 Jul 2011 08:46:34 +0000</pubDate>
		<dc:creator>Viktor Balogh</dc:creator>
				<category><![CDATA[Resource management]]></category>
		<category><![CDATA[System Internals]]></category>
		<category><![CDATA[awr]]></category>
		<category><![CDATA[glance]]></category>
		<category><![CDATA[I/O]]></category>
		<category><![CDATA[iostat]]></category>
		<category><![CDATA[logical I/O]]></category>
		<category><![CDATA[performance tuning]]></category>
		<category><![CDATA[physical I/O]]></category>
		<category><![CDATA[sar]]></category>
		<category><![CDATA[statspack]]></category>
		<category><![CDATA[troubleshooting]]></category>

		<guid isPermaLink="false">http://viktorbalogh.net/blog/?p=596</guid>
		<description><![CDATA[If you do performance tuning or troubleshooting with glance probably you have observed the terms logical I/O and physical I/O. This post is to clarify these shortly: Physical I/O: the traffic toward the storage subsystem. Logical I/O: the requests which come from running processes and threads trough system calls. If the requested data is not [...]]]></description>
			<content:encoded><![CDATA[<p>If you do performance tuning or troubleshooting with glance probably you have observed the terms logical I/O and physical I/O. This post is to clarify these shortly:</p>
<p><strong>Physical I/O</strong>: the traffic toward the storage subsystem.</p>
<p><strong>Logical I/O</strong>: the requests which come from running processes and threads trough system calls. If the requested data is not to be found in memory, it generates a physical I/O and the system fetches it from the disks.</p>
<p>Note that some tools are reporting either logical or physical I/O, and they simply flag it as &#8220;I/O&#8221; so you might not have the idea about what kind of I/O it reports. Built-in application performance monitoring tools are reporting the logical I/O (e.g. statspack, awr) while system tools like sar or iostat are reporting the physical I/O. To be sure use glance, it is capable of showing both physical and logical I/O if you select a process or thread.</p>
]]></content:encoded>
			<wfw:commentRss>http://viktorbalogh.net/blog/resource_management/physical-vs-logical-io/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

