<?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>sve.to</title>
	<atom:link href="http://sve.to/feed/" rel="self" type="application/rss+xml" />
	<link>http://sve.to</link>
	<description>Unix &#38; Oracle stories</description>
	<lastBuildDate>Mon, 09 Aug 2010 15:35:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Shared disk support for VirtualBox</title>
		<link>http://sve.to/2010/08/09/shared-disks-support-for-virtualbox/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=shared-disks-support-for-virtualbox</link>
		<comments>http://sve.to/2010/08/09/shared-disks-support-for-virtualbox/#comments</comments>
		<pubDate>Mon, 09 Aug 2010 15:33:22 +0000</pubDate>
		<dc:creator>Sve</dc:creator>
				<category><![CDATA[oracle]]></category>
		<category><![CDATA[virtualization]]></category>
		<category><![CDATA[asm]]></category>
		<category><![CDATA[crs]]></category>
		<category><![CDATA[rac]]></category>
		<category><![CDATA[virtualbox]]></category>

		<guid isPermaLink="false">http://sve.to/?p=218</guid>
		<description><![CDATA[I&#8217;m very happy to announce that VirtualBox now supports shared disks. Finally we can attach one disk to several virtual machines and run Oracle RAC and other clusters. As Oracle promised, this feature is released with the next maintenance patch (thanks!). There is a new image write mode which is called shareable and this options [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">I&#8217;m very happy to announce that VirtualBox now supports shared disks. Finally we can attach one disk to several virtual machines and run Oracle RAC and other clusters. As Oracle <a href="http://sve.to/2010/07/01/oracle-will-bring-back-virtualbox-shared-disk-capability/" target="_blank">promised</a>, this feature is released with the next maintenance <a href="http://www.virtualbox.org/wiki/Changelog" target="_blank">patch</a> (thanks!).</p>
<p style="text-align: justify;">There is a new image write mode which is called <em>shareable </em>and this options is now available for the commands createhd and modifyhd of VBoxManage. To create new shared image use the command VBoxManage createhd with type shareble, creating shared disk from the GUI is not possible. To mark an existing image as a shared use the command VBoxManage modifyhd with type shareable.</p>
<p>Something important is that only fixed size disks are supported. If the disk is dynamic you will encounter the following error if you try to modify the image:<br />
<em>ERROR: Cannot change type for medium &#8216;/home/vm/ora11g_shared.vdi&#8217; to &#8216;Shareable&#8217; since it is a dynamic medium storage unit</em></p>
<p>There is other minor issue, if the image is already attached to two virtual machines the command modifyhd will also fail:<br />
<em>ERROR: Cannot change the type of medium &#8216;/home/vm/ora11g_shared.vdi&#8217; because it is attached to 2 virtual machines</em></p>
<p style="text-align: justify;">
<p>And finally, YES it works, I have tested it already!</p>
<p style="text-align: justify;">
<pre>sve@host:~$ VBoxManage showhdinfo /home/vm/ora11g_shared.vdi
Oracle VM VirtualBox Command Line Management Interface Version 3.2.8
(C) 2005-2010 Oracle Corporation
All rights reserved.

UUID:                     7521f059-1196-4d68-a1a6-cf0082fb446a
Accessible:               yes
Description:          
Logical size:             2048 MBytes
Current size on disk:     2048 MBytes
Type:                     shareable
Storage format:           VDI
In use by VMs:            labs1 (UUID: 25475ff4-70bc-4e2e-aa38-d8fae289273e)
                          labs2 (UUID: e4441f4c-1ef9-42e0-8e54-d2aec2c6cf4f)
Location:                 /home/vm/ora11g_shared.vdi</pre>
<p style="text-align: justify;">
<p>Regards and happy migration <img src='http://sve.to/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /><br />
Sve</p>
<img src="http://sve.to/?ak_action=api_record_view&id=218&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://sve.to/2010/08/09/shared-disks-support-for-virtualbox/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Patch Set 10.2.0.5 for Oracle Database Server re-released on Linux x86</title>
		<link>http://sve.to/2010/08/09/patch-set-10-2-0-5-for-oracle-database-server-re-released-on-linux-x86/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=patch-set-10-2-0-5-for-oracle-database-server-re-released-on-linux-x86</link>
		<comments>http://sve.to/2010/08/09/patch-set-10-2-0-5-for-oracle-database-server-re-released-on-linux-x86/#comments</comments>
		<pubDate>Mon, 09 Aug 2010 13:16:34 +0000</pubDate>
		<dc:creator>Sve</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[patchset]]></category>

		<guid isPermaLink="false">http://sve.to/?p=213</guid>
		<description><![CDATA[A week ago Oracle has re-released the patch set 10.2.0.5 for Oracle Database on Linux x86 (32 bit). It seems that some additional bug fixes were added to the patch set, but I was unable to find exactly which one. The patch set is available for download from My Oracle Support with same number 8202632. [...]]]></description>
			<content:encoded><![CDATA[<p>A week ago Oracle has re-released the patch set 10.2.0.5 for Oracle Database on Linux x86 (32 bit). It seems that some additional bug fixes were added to the patch set, but I was unable to find exactly which one. The patch set is available for download from My Oracle Support with same number 8202632. There is also alert with MOS ID 1156958.1 regarding the re-release of the patch set.</p>
<p>Regards,<br />
Sve</p>
<img src="http://sve.to/?ak_action=api_record_view&id=213&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://sve.to/2010/08/09/patch-set-10-2-0-5-for-oracle-database-server-re-released-on-linux-x86/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Many open files on HP-UX after RAC upgrade to 10.2.0.4 &#8211; racgimon file handle leak</title>
		<link>http://sve.to/2010/07/23/many-open-files-on-hp-ux-after-rac-upgrade-to-10-2-0-4-racgimon-file-handle-leak/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=many-open-files-on-hp-ux-after-rac-upgrade-to-10-2-0-4-racgimon-file-handle-leak</link>
		<comments>http://sve.to/2010/07/23/many-open-files-on-hp-ux-after-rac-upgrade-to-10-2-0-4-racgimon-file-handle-leak/#comments</comments>
		<pubDate>Fri, 23 Jul 2010 12:17:42 +0000</pubDate>
		<dc:creator>Sve</dc:creator>
				<category><![CDATA[hp-ux]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[rac]]></category>

		<guid isPermaLink="false">http://sve.to/?p=179</guid>
		<description><![CDATA[Two months after patching a customer database to 10.2.0.4 I&#8217;ve received a call, telling me that the database is hanging. Usually this happens when they missed the backup of the archive logs and the database stops. This time there was enough space available and this was not the problem. I logged to the first node [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Two months after patching a customer database to 10.2.0.4 I&#8217;ve received a call, telling me that the database is hanging. Usually this happens when they missed the backup of the archive logs and the database stops. This time there was enough space available and this was not the problem. I logged to the first node and start looking around, weird things were happening, some commands were failing and other were hanging. Then I realized that this is not an ordinary case and start looking deeper. It turns out that this is a bug of Oracle with HP-UX and there is a patch and work around too.</p>
<p style="text-align: justify;">The customer was having HP-UX 11.23 (September 2006) with patch bundles from September 2008. The database was Oracle RAC Enterprise Edition 10.2.0.2.</p>
<p style="text-align: justify;">This problem had very big impact on the database because although the database is running in RAC the database was not accessible and there were a lot of locks. Rebooting the node or killing the processes do the job</p>
<p style="text-align: justify;">After some reading it figure out that this happens only on HP-UX, after patching the database to 10.2.0.4 and it happens only on the first node.</p>
<p style="text-align: justify;">
<p style="text-align: justify;"><strong>Here are some symptoms:<br />
</strong></p>
<p><BR>Executing sar -v show the current-size and maximum size of the system  file table:</p>
<pre>12:00:00   N/A   N/A 328/4200  0  1374/286108 0  41906/65536 0
12:02:00   N/A   N/A 330/4200  0  1376/286108 0  41944/65536 0
12:04:00   N/A   N/A 336/4200  0  1390/286108 0  41999/65536 0
12:06:00   N/A   N/A 331/4200  0  1377/286108 0  41983/65536 0
12:08:00   N/A   N/A 330/4200  0  1376/286108 0  41976/65536 0
12:10:00   N/A   N/A 330/4200  0  1377/286108 0  41935/65536 0</pre>
<p><BR>With lsof the following open files are seen:</p>
<pre>racgimon   3506 oracle   14u   REG             64,0x9        1552   29678 /oracle/ora10g/dbs/hc_baandb1.dat
racgimon   3506 oracle   28u   REG             64,0x9        1552   29678 /oracle/ora10g/dbs/hc_baandb1.dat
racgimon   3506 oracle   30u   REG             64,0x9        1552   29678 /oracle/ora10g/dbs/hc_baandb1.dat
racgimon   3506 oracle   37u   REG             64,0x9        1552   29678 /oracle/ora10g/dbs/hc_baandb1.dat</pre>
<p><BR>The processes which is holding the open files:</p>
<pre> oracle  3506     1  0  Nov  5  ?        18:16 /oracle/ora10g/bin/racgimon startd baandb
</pre>
<p><BR>At this log  &#8220;$ORACLE_HOME/log/&lt;NodeName&gt;/racg/imon_&lt;InstanceName&gt;.log&#8221;  every minute can be seen the following error:</p>
<pre>2009-12-02 12:12:35.454: [    RACG][73] [3506][73][ora.baandb.baandb1.inst]: GIMH: GIM-00104: Health check failed to connect to instance.
GIM-00090: OS-dependent operation:mmap failed with status: 12
GIM-00091: OS failure message: Not enough space
GIM-00092: OS failure occurred at: sskgmsmr_13
</pre>
<pre>2009-12-02 12:13:35.474: [    RACG][73] [3506][73][ora.baandb.baandb1.inst]: GIMH: GIM-00104: Health check failed to connect to instance.
GIM-00090: OS-dependent operation:mmap failed with status: 12
GIM-00091: OS failure message: Not enough space
GIM-00092: OS failure occurred at: sskgmsmr_13</pre>
<p><BR>When the file table gets full weird things start to happen,  in the  syslog the following can be seen:</p>
<pre>Nov  5 08:00:02 db1 vmunix: file: table is full
Nov  5 08:00:03 db1 vmunix: file: table...
Nov  5 08:00:03 db1 vmunix: file...
Nov  5 08:00:03 db1 vmunix: file...
Nov  5 08:01:13 db1 vmunix: file: table is full
Nov  5 08:11:15 db1  above message repeats 34260 times</pre>
<p><BR>Also in the alertlog file the following can be seen:</p>
<pre>ORA-00603: ORACLE server session terminated by fatal error
ORA-27544: Failed to map memory region for export
ORA-27300: OS system dependent operation:socket failed with status: 23
ORA-27301: OS failure message: File table overflow
ORA-27302: failure occurred at: sskgxpcre1
</pre>
<p><BR></p>
<p style="text-align: justify;">
<p style="text-align: justify;"><strong>Solution:</strong><br />
Base bug is 6931689 (SS10204-HP-PARISC64-080216.080324  HEALTH CHECK FAILED TO CONNECT TO INSTANCE), but it&#8217;s not public. It&#8217;s  fixed in  CRS 10.2.0.4 Bundle Patch #2, but the actual CRS bundle is PSU2 with  Patch# 8705958: TRACKING BUG FOR 10.2.0.4.2 PSU FOR CRS which is around  41Mb  big.<br />
This patch# 8705958 should be applied to all Oracle homes although the  bug is in the database CRS should always be a higher version.</p>
<p style="text-align: justify;">To apply this patch OPatch version must be at least 10.2.0.4.7, which  can be downloaded with patch# 6880880. At the moment of writing this the   latest version was 10.2.0.4.9 and its 34Mb. To install it, simply  download it and unzip it under ORACLE_HOME.</p>
<p style="text-align: justify;">I didn&#8217;t went with the patch because I read some scary stuff at OTN and thanks to Ivan Kartik I integrated a dirty work around. He proposed very good script which is  checking if opened files are  more than 20000 just to kill the racgimon  process:</p>
<ul>
<li> <a title="http://ivan.kartik.sk/index.php?show_article=42" rel="nofollow" href="http://ivan.kartik.sk/index.php?show_article=42">http://ivan.kartik.sk/index.php?show_article=42</a></li>
</ul>
<pre>13:56:00   N/A   N/A 307/4200  0  1352/286108 0  44102/65536 0
13:58:00   N/A   N/A 307/4200  0  1353/286108 0  44119/65536 0
14:00:01   N/A   N/A 309/4200  0  1355/286108 0  44135/65536 0
14:02:01   N/A   N/A 307/4200  0  1353/286108 0  44153/65536 0
14:04:01   N/A   N/A 301/4200  0  1336/286108 0  2583/65536 0
14:06:01   N/A   N/A 306/4200  0  1347/286108 0  2610/65536 0
14:08:01   N/A   N/A 299/4200  0  1333/286108 0  2583/65536 0
14:10:01   N/A   N/A 300/4200  0  1335/286108 0  2571/65536 0
</pre>
<p>The work around fixed the problem. This article was written half an year ago and reading MOS now they say that this bug is fixed in 10.2.0.5 which was released at the beginning of June.</p>
<p>Regards,<br />
Sve</p>
<img src="http://sve.to/?ak_action=api_record_view&id=179&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://sve.to/2010/07/23/many-open-files-on-hp-ux-after-rac-upgrade-to-10-2-0-4-racgimon-file-handle-leak/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oracle will bring back VirtualBox shared disk capability</title>
		<link>http://sve.to/2010/07/01/oracle-will-bring-back-virtualbox-shared-disk-capability/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=oracle-will-bring-back-virtualbox-shared-disk-capability</link>
		<comments>http://sve.to/2010/07/01/oracle-will-bring-back-virtualbox-shared-disk-capability/#comments</comments>
		<pubDate>Thu, 01 Jul 2010 09:45:33 +0000</pubDate>
		<dc:creator>Sve</dc:creator>
				<category><![CDATA[oracle]]></category>
		<category><![CDATA[virtualization]]></category>
		<category><![CDATA[iscsi]]></category>
		<category><![CDATA[rac]]></category>
		<category><![CDATA[virtualbox]]></category>

		<guid isPermaLink="false">http://sve.to/?p=154</guid>
		<description><![CDATA[During the questions section of the last webinar Introducing Oracle VM VirtualBox 3.2 Oracle said that they received a complains from a lot of customers using VirtualBox regarding the installation of Oracle RAC. This requires a shared disk drive to be accessed by the nodes (VMs) of the cluster simultaneously, but this cannot be achieved [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">During the questions section of the last webinar <em>Introducing Oracle VM VirtualBox 3.2 </em>Oracle said that they received a complains from a lot of customers using VirtualBox regarding the installation of Oracle RAC. This requires a shared disk drive to be accessed by the nodes (VMs) of the cluster simultaneously, but this cannot be achieved directly. There is a workaround by using iSCSI, but this is not the point.</p>
<p style="text-align: justify;">Achim Hasenmueller from VirtualBox engineering team said that they plan to deliver this capability very soon with the next maintenance release and not to wait for the major update. I was surprised to hear that they used to have this feature working, but during one of the major changes to the storage stack they have lost it. I was not able to find this one at the changelogs, but by accident I found the announcement of this limitation at debian bug report log:</p>
<p></p>
<pre><strong>From:</strong> "VirtualBox" &lt;trac@virtualbox.org&gt;
<strong>Cc:</strong> vbox-trac@virtualbox.org
<strong>Subject:</strong> Re: [VirtualBox] #1188: Please support to share a disk image
 between two guests
<strong>Date:</strong> Wed, 08 Apr 2009 15:24:49 -0000

#1188: Please support to share a disk image between two guests
-----------------------------+----------------------------------------------
Reporter:  bzed              |        Owner:
    Type:  enhancement       |       Status:  closed
Priority:  minor             |    Component:  VM control
 Version:  VirtualBox 1.5.4  |   Resolution:  wontfix
Keywords:                    |        Guest:  other
    Host:  other             |
-----------------------------+----------------------------------------------
Changes (by frank):

  * status:  new =&gt; closed
  * resolution:  =&gt; wontfix

Comment:

 Starting with 2.1.0, a disk image can be attached to two VMs at the same
 time, but only one of these two VMs can be powered on at the same time.
 Klaus already explained why we wouldn't implement sharing an image between
 running VMs. Closing
</pre>
<p></p>
<p style="text-align: justify;">I&#8217;ve been using VirtualBox for an year now, but recently I decided to install Oracle RAC. Like most of the ex-vmware users I&#8217;ve just created a new disk and added it to two virtual machines. The first one started normaly, but when I tryed to start the second one I got the following error:</p>
<p></p>
<pre>Result Code: VBOX_E_INVALID_OBJECT_STATE (0x80BB0007)
Component: Machine
Interface: IMachine {6d9212cb-a5c0-48b7-bbc1-3fa2ba2ee6d2}
</pre>
<p></p>
<p style="text-align: justify;">It turns out that VirtualBox will not allow more than one running VM to use a VDI file. The solution I found most useful is to setup a third server (or VM) with Openfiler iSCSI host. Then VirtualBox can transparently present iSCSI disk to a virtual machine as a virtual hard disk. The guest operating system will not see any difference between a virtual disk image (VDI file) and an iSCSI target. To achieve this, VirtualBox has an integrated iSCSI initiator.</p>
<p>
Regards,<br />
Sve</p>
<img src="http://sve.to/?ak_action=api_record_view&id=154&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://sve.to/2010/07/01/oracle-will-bring-back-virtualbox-shared-disk-capability/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Patch Set 10.2.0.5 for Oracle Database Server</title>
		<link>http://sve.to/2010/06/09/patch-set-10-2-0-5-for-oracle-database-server/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=patch-set-10-2-0-5-for-oracle-database-server</link>
		<comments>http://sve.to/2010/06/09/patch-set-10-2-0-5-for-oracle-database-server/#comments</comments>
		<pubDate>Wed, 09 Jun 2010 13:27:27 +0000</pubDate>
		<dc:creator>Sve</dc:creator>
				<category><![CDATA[hp-ux]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[patchset]]></category>

		<guid isPermaLink="false">http://sve.to/?p=147</guid>
		<description><![CDATA[Just to mention that few days ago patch set 10.2.0.5 was released for HP-UX Itanium and IBM AIX systems. The patch set is available for download from My Oracle Support with number 8202632. Regards, Sve]]></description>
			<content:encoded><![CDATA[<p>Just to mention that few days ago patch set 10.2.0.5 was released for HP-UX Itanium and IBM AIX systems. The patch set is available for download from My Oracle Support with number 8202632.</p>
<p>Regards,<br />
Sve</p>
<img src="http://sve.to/?ak_action=api_record_view&id=147&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://sve.to/2010/06/09/patch-set-10-2-0-5-for-oracle-database-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oracle 11g R2 installer fails on HP-UX 11iv3</title>
		<link>http://sve.to/2010/05/20/oracle-11g-r2-installer-fails-on-hp-ux-11iv3/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=oracle-11g-r2-installer-fails-on-hp-ux-11iv3</link>
		<comments>http://sve.to/2010/05/20/oracle-11g-r2-installer-fails-on-hp-ux-11iv3/#comments</comments>
		<pubDate>Thu, 20 May 2010 07:10:19 +0000</pubDate>
		<dc:creator>Sve</dc:creator>
				<category><![CDATA[hp-ux]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[installer]]></category>
		<category><![CDATA[patch]]></category>

		<guid isPermaLink="false">http://sve.to/?p=112</guid>
		<description><![CDATA[Running the installer of any of the products (client, grid, database) of Oracle Database 11g Release 2 on HP-UX 11iv3 (Itanium) fails with: &#8220;An internal error occurred within cluster verification framework&#8221; After starting ./runInstaller the following error window pops-up: Also at the installAction$DATE.log the following error can be seen: SEVERE: [FATAL] An internal error occurred [...]]]></description>
			<content:encoded><![CDATA[<p>Running the installer of any of the products (client, grid, database) of Oracle Database 11g Release 2 on HP-UX 11iv3 (Itanium) fails with:<br />
&#8220;An internal error occurred within cluster verification framework&#8221;</p>
<p>After starting ./runInstaller the following error window pops-up:<br />
<a href="http://sve.to/wp-content/uploads/2010/05/oracle11gr2_hpux_installer_error.png"><img class="alignnone size-full wp-image-114" title="oracle11gr2_hpux_installer_error" src="http://sve.to/wp-content/uploads/2010/05/oracle11gr2_hpux_installer_error.png" alt="runInstaller error" width="459" height="151" /></a></p>
<p>Also at the installAction$DATE.log the following error can be seen:</p>
<pre>SEVERE: [FATAL] An internal error occurred within cluster verification framework
Unable to get the current group.</pre>
<p>
This happens, because patch PHCO_40381 is not installed. There is a list of patches to be installed at <a href="http://download.oracle.com/docs/cd/E11882_01/install.112/e10851/pre_install.htm#insertedID3" target="_blank">2.3.4 Patch Requirement</a> of the Database Installation guide for HP-UX.</p>
<p>The first one is:<br />
PHCO_40381 11.31 Disk Owner Patch</p>
<p>The patch is available from ITRC. It&#8217;s 205Kb big and it fixes behavior of the command diskowner. The installation of the patch does not require reboot of the server.</p>
<p>After the installation of the patch, runInstaller starts succesfully.</p>
<p>There is also MOS Doc ID regarding this problem: <span style="font-family: helvetica;"><strong><br />
HP-UX: 11gR2 runInstaller Fails with &#8220;An internal error occurred within cluster verification framework&#8221; [ID 983713.1]</strong></span><br />
<br />
Regards,<br />
Sve</p>
<img src="http://sve.to/?ak_action=api_record_view&id=112&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://sve.to/2010/05/20/oracle-11g-r2-installer-fails-on-hp-ux-11iv3/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Visiting BGOUG</title>
		<link>http://sve.to/2010/04/22/visiting-bgoug/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=visiting-bgoug</link>
		<comments>http://sve.to/2010/04/22/visiting-bgoug/#comments</comments>
		<pubDate>Thu, 22 Apr 2010 14:56:49 +0000</pubDate>
		<dc:creator>Sve</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[bgoug]]></category>

		<guid isPermaLink="false">http://sve.to/?p=108</guid>
		<description><![CDATA[I&#8217;ll be visiting the spring conference of the BGOUG this weekend. It will be very interesting since there are some topics related to Sun technologies. Again this time we have a lot of foreign presence.]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ll be visiting the spring conference of the <a href="http://www.bgoug.org" target="_blank">BGOUG</a> this weekend. It will be very interesting since there are some topics related to Sun technologies. Again this time we have a lot of foreign presence.</p>
<img src="http://sve.to/?ak_action=api_record_view&id=108&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://sve.to/2010/04/22/visiting-bgoug/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Presentation about Oracle on HP-UX and Linux</title>
		<link>http://sve.to/2010/01/16/presentation-about-oracle-on-hp-ux-and-linux/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=presentation-about-oracle-on-hp-ux-and-linux</link>
		<comments>http://sve.to/2010/01/16/presentation-about-oracle-on-hp-ux-and-linux/#comments</comments>
		<pubDate>Sat, 16 Jan 2010 19:53:58 +0000</pubDate>
		<dc:creator>Sve</dc:creator>
				<category><![CDATA[hp-ux]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[bgoug]]></category>

		<guid isPermaLink="false">http://sve.to/?p=87</guid>
		<description><![CDATA[At the last BGOUG I was talking about some of the differences between HP-UX and Linux although they cannot be compared because they run on different platforms. I tried to figure out how Linux penetrate the Enterprise OS market in the last years, what is still missing and what features I would like to see [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">At the last BGOUG I was talking about some of the differences between HP-UX and Linux although they cannot be compared because they run on different platforms. I tried to figure out how Linux penetrate the Enterprise OS market in the last years, what is still missing and what features I would like to see in Linux that HP-UX has for a long time. I also discussed topics about memory, best practices in multipathing and networking, storage options, asmlib tips and tricks and some words about backup and recovery.</p>
<p style="text-align: justify;">The presentation can be found <a href="http://sve.to/wp-content/uploads/2010/01/BGOUG_Outum_conference_2009-.pdf">here</a></p>
<img src="http://sve.to/?ak_action=api_record_view&id=87&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://sve.to/2010/01/16/presentation-about-oracle-on-hp-ux-and-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Constant cimprovagt daemon crashing and filling the /var directory</title>
		<link>http://sve.to/2009/11/23/constant-cimprovagt-daemon-crashing-and-filling-the-var-directory/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=constant-cimprovagt-daemon-crashing-and-filling-the-var-directory</link>
		<comments>http://sve.to/2009/11/23/constant-cimprovagt-daemon-crashing-and-filling-the-var-directory/#comments</comments>
		<pubDate>Mon, 23 Nov 2009 12:32:32 +0000</pubDate>
		<dc:creator>Sve</dc:creator>
				<category><![CDATA[hp-ux]]></category>
		<category><![CDATA[bug]]></category>

		<guid isPermaLink="false">http://sve.to/?p=77</guid>
		<description><![CDATA[We installed two nodes with HP-UX 11.31 March 2009 BOE in a ServiceGuard environment and started test applications in two packets. Suddenly the /var directories on both nodes started to grow and respectively the cluster was crashing because of that and the syslog was never up to date. It turns out that some of the [...]]]></description>
			<content:encoded><![CDATA[<p>We installed two nodes with HP-UX 11.31 March 2009 BOE in a ServiceGuard environment and started test applications in two packets.</p>
<p>Suddenly the /var directories on both nodes started to grow and respectively the cluster was crashing because of that and the syslog was never up to date. It turns out that some of the components (cimprovagt) of the OnlineDiagnostics were crashing. I reviewed few advisories and bugs about it, but none of them were having the same behaviour.</p>
<p>Executing file on the core dump file shows the following:<br />
core:      ELF-64 core file &#8211; IA64 from &#8216;cimprovagt&#8217; &#8211; received SIGABRT</p>
<p>HP analyzed the core dump files and determined that the problem is already known and the fix is already implemented in September release of DASProvider, which is now part of the DiagProdCollection bundle and can be found  here:</p>
<p>http://h20392.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=DiagProdCollection</p>
<p>After installing the bundle the daemon stopped crashing and the system is stable now.</p>
<img src="http://sve.to/?ak_action=api_record_view&id=77&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://sve.to/2009/11/23/constant-cimprovagt-daemon-crashing-and-filling-the-var-directory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HP-UX software bug hidden in cluster behaviour</title>
		<link>http://sve.to/2009/10/08/reboot-after-panic-fault-when-executing-in-kernel-mode/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=reboot-after-panic-fault-when-executing-in-kernel-mode</link>
		<comments>http://sve.to/2009/10/08/reboot-after-panic-fault-when-executing-in-kernel-mode/#comments</comments>
		<pubDate>Thu, 08 Oct 2009 11:12:57 +0000</pubDate>
		<dc:creator>Sve</dc:creator>
				<category><![CDATA[hp-ux]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[nfs]]></category>

		<guid isPermaLink="false">http://sve.to/?p=59</guid>
		<description><![CDATA[I was called to check some strange behavior of two-node cluster and to see why the one of the nodes crashed unexpectedly.  The two nodes were HP Integrity servers installed with HP-UX 11.31 Base OE (March 2009). Well the node did not crashed it was just restarted from the ServiceGuard with safety timer expire for [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">I was called to check some strange behavior of two-node cluster and to see why the one of the nodes crashed unexpectedly.  The two nodes were HP Integrity servers installed with HP-UX 11.31 Base OE (March 2009). Well the node did not crashed it was just restarted from the ServiceGuard with safety timer expire for some reason. System log was not up to date because /var directory was full at some point and the syslog stopped writing. Console log showed standard messages INIT occurred and safety timer expire. Analyzing the crashdumps revealed that communication with cmcld was not possible and thats why the server was rebooted probably because /var directory was full.</p>
<p style="text-align: justify;">Anyway few days later customer called again and said that the node was restarted again,  I expected to see the same reason but this time the reboot reason was &#8220;Reboot after panic: Fault when executing in kernel mode&#8221;.  The problem was not in the cluster this time and the reboot reason was talking about some problems in the the kernel.</p>
<p style="text-align: justify;">What is crash anyway ? From HP documentation:<br />
<em>An abnormal system reboot is called a crash. There are many reasons that can cause a system to crash; hardware malfunctions, software panics or even power failures. The crash even type panic refers to crashes initiated by the HP-UX operating system (software crash event). There are two types of panics: direct and indirect. A direct panic refers to a subsystem calling directly the panic() kernel routine upon detection of an unrecoverable inconsistency. An indirect panic refers to a crash event as a result of trap interruption which could not be handled by the operating system for example when the kernel accesses a non-valid address.</em></p>
<p style="text-align: justify;">I analyzed the crash dumps,  reviewed all the advisories and release notes and was unable to figure out what is the cause of the crash. Finally Level 2 of the support of HP  confirmed that this is known issue with the ONCPlus bundle. ONC stands for Open Network Computing (priviously called NFS bundle in 11.23) and it consists of the following components: Network File System, AutoFS, CacheFS, and Network Information Service. We were told to implement workaround until the fix is released next month. The workaround was to add <strong>-o readdir </strong>to the mount options of the NFS share in the fstab. Well it was obvious that the problem is with the NFS component of the ONCPlus bundle.</p>
<p style="text-align: justify;">Few days later (not month) the new product (with fixed bugs) appeared online. It can be seen from the release notes the following defect fix:<br />
<em>Directory related operations on NFS client with ONCplus B.11.31.06 or B.11.31.07 installed and with file system mounted with read/write size greater than 8192 bytes, may result in system panic or data corruption.</em></p>
<p style="text-align: justify;">
<p style="text-align: justify;">Yes, the ONCPlus bundle was 11.31.06 and we had mounted NFS share with read/write size of 32768 bytes. Both workaround and the patch seemed to fix the problem and the crash never apeared again. Keep in mind that the installation of the new ONCPlus bundle needs restart and applying the workaround does not, BUT from the support adviced us to reboot the server just to make sure that the corruption is not loaded in the memory. So if you hit this bug consider applying the new bundle.</p>
<p style="text-align: justify;">The latest ONCPlus bundle can be downloaded from there:</p>
<p>https://h20392.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=ONCplus</p>
<p style="text-align: justify;">
<p style="text-align: justify;">
<p style="text-align: justify;">Just for reference the following stack trace is dumped on the consle when the server crashes:</p>
<p style="text-align: justify;">bad_kern_reference: 0xffff31.0x2c20486f6d65634f, fault = 0&#215;8</p>
<p>Message buffer contents after system crash:</p>
<p style="text-align: justify;">panic: Fault when executing in kernel mode<br />
Stack Trace:<br />
IP                  Function Name<br />
0xe000000001f887e0  bad_kern_reference+0xa0<br />
0xe00000000076a3d0  $cold_vfault+0x3b0<br />
0xe000000000c45a10  vm_hndlr+0&#215;510<br />
0xe000000001bd9780  bubbledown+0&#215;0<br />
0xe000000000d00da1  vx_iupdat_cluster+0xa1<br />
0xe000000000d14830  vx_async_iupdat+0&#215;160<br />
0xe000000000d4a530  vx_iupdat_local+0x2c0<br />
0xe000000000d8c020  vx_iupdat+0xb0<br />
0xe000000002134ed0  vx_iflush_list+0x4d0<br />
0xe000000000afa8c0  vx_iflush+0x1d0<br />
0xe000000000cf2710  vx_worklist_thread+0&#215;200<br />
0xe000000000e65d70  kthread_daemon_startup+0&#215;90</p>
<p style="text-align: justify;">
<p style="text-align: justify;">
<p style="text-align: justify;">Regards,<br />
sve</p>
<img src="http://sve.to/?ak_action=api_record_view&id=59&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://sve.to/2009/10/08/reboot-after-panic-fault-when-executing-in-kernel-mode/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>vxfs extendfs: Invocation of the fsck program terminated abnormally</title>
		<link>http://sve.to/2009/09/20/vxfs-extendfs-invocation-of-the-fsck-program-terminated-abnormally/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=vxfs-extendfs-invocation-of-the-fsck-program-terminated-abnormally</link>
		<comments>http://sve.to/2009/09/20/vxfs-extendfs-invocation-of-the-fsck-program-terminated-abnormally/#comments</comments>
		<pubDate>Sat, 19 Sep 2009 22:30:56 +0000</pubDate>
		<dc:creator>Sve</dc:creator>
				<category><![CDATA[hp-ux]]></category>
		<category><![CDATA[filesystem]]></category>

		<guid isPermaLink="false">http://sve.to/?p=45</guid>
		<description><![CDATA[You will see this message in case you interrupt the extendfs command. I my case I passed block device as an argument to the extendfs command and waited for several minutes (usually it takes one or two) then I remembered that the command expects character device. I read some opinions in Internet and some of [...]]]></description>
			<content:encoded><![CDATA[<p>You will see this message in case you interrupt the extendfs command. I my case I passed block device as an argument to the extendfs command and waited for several minutes (usually it takes one or two) then I remembered that the command expects character device. I read some opinions in Internet and some of them were really horrifying, like: &#8220;<em>Well, when you passed block device to extendfs you have to format it and  restore the filesystem from backup</em>&#8220;.</p>
<p>Yes, it was stupid to press Ctrl-C, but when people panic they don&#8217;t think normally.<br />
root@host:/# extendfs -F vxfs /dev/vg00/lvora</p>
<p>vxfs extendfs: Invocation of the fsck program terminated abnormally.<br />
The file system is marked bad.  Run full fsck manually.<br />
(e.g. fsck -F vxfs /dev/vg00/lvora)</p>
<p>Next step was to make a normal filesystem check:<br />
root@host:/# fsck /dev/vg00/lvora<br />
log replay in progress<br />
log replay failed to clean file system<br />
file system is not clean, full fsck required<br />
full file system check required, exiting &#8230;</p>
<p>Mount also says that the filesystem is corrupted:<br />
root@host:/# mount /oracle</p>
<p>vxfs mount: /dev/vg00/lvora is corrupted. needs checking</p>
<p>After reading some manuals and opinions I saw that in this version of HP-UX it doesn&#8221;t matter what device is passed because extendfs accepts both. Luckily fsck fixes the problem:<br />
root@host:/root# fsck -y -F vxfs /dev/vgora/lvtest<br />
log replay in progress<br />
log replay failed to clean file system<br />
file system is not clean, full fsck required<br />
pass0 &#8211; checking structural files<br />
pass1 &#8211; checking inode sanity and blocks<br />
pass2 &#8211; checking directory linkage<br />
pass3 &#8211; checking reference counts<br />
pass4 &#8211; checking resource maps<br />
au 0 summary incorrect &#8211; fix? (ynq)y<br />
au 1 summary incorrect &#8211; fix? (ynq)y<br />
au 2 summary incorrect &#8211; fix? (ynq)y<br />
au 3 summary incorrect &#8211; fix? (ynq)y<br />
au 4 summary incorrect &#8211; fix? (ynq)y<br />
au 5 summary incorrect &#8211; fix? (ynq)y<br />
&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.<br />
au 3500 summary incorrect &#8211; fix? (ynq)y<br />
au 3501 summary incorrect &#8211; fix? (ynq)y<br />
au 3502 summary incorrect &#8211; fix? (ynq)y<br />
au 3503 summary incorrect &#8211; fix? (ynq)y<br />
au 3504 summary incorrect &#8211; fix? (ynq)y<br />
au 3505 emap incorrect &#8211; fix? (ynq)y<br />
au 3505 summary incorrect &#8211; fix? (ynq)y<br />
au 3506 emap incorrect &#8211; fix? (ynq)y<br />
au 3506 summary incorrect &#8211; fix? (ynq)y<br />
au 3507 emap incorrect &#8211; fix? (ynq)y<br />
au 3507 summary incorrect &#8211; fix? (ynq)y<br />
&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;<br />
au 4653 summary incorrect &#8211; fix? (ynq)y<br />
au 4654 emap incorrect &#8211; fix? (ynq)y<br />
au 4654 summary incorrect &#8211; fix? (ynq)y<br />
au 4655 emap incorrect &#8211; fix? (ynq)y<br />
au 4655 summary incorrect &#8211; fix? (ynq)y<br />
free block count incorrect 1292071477 expected 39009935 fix? (ynq)y<br />
free extent vector incorrect fix? (ynq)y<br />
OK to clear log? (ynq)y<br />
set state to CLEAN? (ynq)y</p>
<p>After fsck finishes the filesystem is extended and it can be mounted:<br />
root@host:/root# mount /dev/vgora/lvtest /mnt<br />
root@host:/root#</p>
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 568px; width: 1px; height: 1px;">Next step was to make a normal filesystem check:<br />
root@isengard:/# extendfs -F vxfs /dev/vg00/lvora</div>
<img src="http://sve.to/?ak_action=api_record_view&id=45&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://sve.to/2009/09/20/vxfs-extendfs-invocation-of-the-fsck-program-terminated-abnormally/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Cannot start HP Integrity Virtual Machines Manager</title>
		<link>http://sve.to/2009/09/19/wbem-cim_err_failed-cim_err_failed-1an-internal-error-has-occurred/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=wbem-cim_err_failed-cim_err_failed-1an-internal-error-has-occurred</link>
		<comments>http://sve.to/2009/09/19/wbem-cim_err_failed-cim_err_failed-1an-internal-error-has-occurred/#comments</comments>
		<pubDate>Fri, 18 Sep 2009 22:02:13 +0000</pubDate>
		<dc:creator>Sve</dc:creator>
				<category><![CDATA[hp-ux]]></category>
		<category><![CDATA[hpvm]]></category>

		<guid isPermaLink="false">http://sve.to/?p=39</guid>
		<description><![CDATA[System: HP-UX 11.31 DCOE Match 2009, installed HP-SIM and HPVM This error is shown on the System Management Homepage when I try to open HP Integrity Virtual Machines Manager: An error occurred collecting data query failed. An error occurred communicating with WBEM: CIM_ERR_FAILED CIM_ERR_FAILED: @1:An internal error has occurred.[hpvm_get_rsrc_controller:115:scheduler failure] Which looked like the HP [...]]]></description>
			<content:encoded><![CDATA[<p>System: HP-UX 11.31 DCOE Match 2009, installed HP-SIM and HPVM</p>
<p>This error is shown on the System Management Homepage when I try to open HP Integrity Virtual Machines Manager:</p>
<p>An error occurred collecting data query failed.<br />
An error occurred communicating with WBEM: CIM_ERR_FAILED CIM_ERR_FAILED: @1:An internal error has occurred.[hpvm_get_rsrc_controller:115:scheduler failure]</p>
<p>Which looked like the HP Integrity Virtual Machines are not running and when I try to start them I get the following:</p>
<p>root@itan2:/# /sbin/init.d/hpvm start<br />
NOTE:   HPSIM-HP-UX is incompatible with Integrity VM software and should be removed.<br />
ERROR:   Integrity VM software cannot be started when hyperthreading is enabled<br />
(getconf SC_HT_ENABLED). Use /usr/sbin/setboot -m off and reboot to enable<br />
this system as an Integrity VM host.<br />
root@itan2:/# getconf SC_HT_ENABLED<br />
1</p>
<p>On page 24 and 26 of HP Integrity Virtual Machines Version 4.1 Installation, Configuration, and Administration manual there are few requirements. In this particular case the two items which block Integrity VM Version 4.1 from starting are HP System Insight Manager (HP SIM) Server bundle and hyperthreading. First check for installed HPSIM product with the following command:</p>
<p>swlist | grep HPSIM-HP-UX</p>
<p>Remove with swremove if necessary.<br />
Then check to see if the hyperthreading which if it is enabled. On page 26 of the manual there is a note regarding the hyperthreating:</p>
<p>NOTE: Integrity VM Version 4.1 does not support hyperthreading. Specify the following command to turn off hyperthreading; otherwise, Integrity VM will not start:</p>
<p>/usr/sbin/setboot -m off</p>
<p>Reboot the system and then HP Integrity Virtual Machines will start normally and respectively HP Integrity Virtual Machines Manager will start and will be available at the HP SMH.</p>
<img src="http://sve.to/?ak_action=api_record_view&id=39&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://sve.to/2009/09/19/wbem-cim_err_failed-cim_err_failed-1an-internal-error-has-occurred/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Many racgmain(check) processes at HP-UX 11iv3</title>
		<link>http://sve.to/2009/08/17/many-racgmaincheck-processes-at-hp-ux-11iv3/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=many-racgmaincheck-processes-at-hp-ux-11iv3</link>
		<comments>http://sve.to/2009/08/17/many-racgmaincheck-processes-at-hp-ux-11iv3/#comments</comments>
		<pubDate>Mon, 17 Aug 2009 13:38:37 +0000</pubDate>
		<dc:creator>Sve</dc:creator>
				<category><![CDATA[hp-ux]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[crs]]></category>

		<guid isPermaLink="false">http://sve.to/?p=28</guid>
		<description><![CDATA[I was called that some commands for controlling the cluster and the oracle are not working. This was two node cluster installed with Oracle 10.2.0.4 RAC on HP-UX 11.31 Data Center OE (December 2008) working for a month already. Arriving at the customer site I noticed that there are a lot (around 500) of hanging [...]]]></description>
			<content:encoded><![CDATA[<p>I was called that some commands for controlling the cluster and the oracle are not working. This was two node cluster installed with Oracle 10.2.0.4 RAC on HP-UX 11.31 Data Center OE (December 2008) working for a month already.</p>
<p>Arriving at the customer site I noticed that there are a lot (around 500) of hanging racgmain(check) processes which obviously were blocking some of the cluster commands. Errors also can be seen at this log: $CRS_HOME/log/$HOSTNAME/crsd/crsd.log:</p>
<p>2009-04-08 15:22:01.700: [  CRSEVT][90801] CAAMonitorHandler :: 0:Action Script /oracle/ora10g/bin/racgwrap(check) timed<br />
out for ora.ORCL.ORCL1.inst! (timeout=600)<br />
2009-04-08 15:22:01.700: [  CRSAPP][90801] CheckResource error for ora.ORCL.ORCL1.inst error code = -2<br />
2009-04-08 15:25:42.180: [  CRSEVT][90811] CAAMonitorHandler :: 0:Could not join /oracle/ora10g/bin/racgwrap(check)<br />
category: 1234, operation: scls_process_join, loc: childcrash, OS error: 0, other: Abnormal termination of the child</p>
<p>There are a lot of bugs at metalink, but no documents or suggestions how to fix that.</p>
<p>Fortunately we found a solution:</p>
<p>1. Stop CRS on all nodes.</p>
<p>2. Make a copy of racgwrap located under $ORACLE_HOME/bin and $CRS_HOME/bin on all nodes</p>
<p>3. Edit the file racgwrap and modify the last 3 lines from:</p>
<p>$ORACLE_HOME/bin/racgmain &#8220;$@&#8221;<br />
status=$?<br />
exit $status</p>
<p>to:</p>
<p>exec $ORACLE_HOME/bin/racgmain &#8220;$@&#8221;</p>
<p>4. Restart CRS and make sure that all the resources are starts.</p>
<p>We were lucky that hit the bug just before the migration and restarting the instances/servers was easy enough. I don&#8217;t know if this really solves the problem, but we never hit the bug again.</p>
<img src="http://sve.to/?ak_action=api_record_view&id=28&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://sve.to/2009/08/17/many-racgmaincheck-processes-at-hp-ux-11iv3/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Changing physical path of ASM disk group</title>
		<link>http://sve.to/2009/08/11/changing-physical-path-of-asm-disk-group/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=changing-physical-path-of-asm-disk-group</link>
		<comments>http://sve.to/2009/08/11/changing-physical-path-of-asm-disk-group/#comments</comments>
		<pubDate>Tue, 11 Aug 2009 06:52:06 +0000</pubDate>
		<dc:creator>Sve</dc:creator>
				<category><![CDATA[hp-ux]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[asm]]></category>
		<category><![CDATA[filesystem]]></category>
		<category><![CDATA[lvm]]></category>

		<guid isPermaLink="false">http://sve.to/?p=21</guid>
		<description><![CDATA[The purpose of this document is to show that changing the psyhical path of ASM disk MEMBERS is possible and there is no risk. For the purpose of the test, we create one logical volume called lvora and we grant ownership of this file to oracle: root@node1:/# lvcreate -n lvora -L 1024 vg00 root@node1:/# chown [...]]]></description>
			<content:encoded><![CDATA[<p>The purpose of this document is to show that changing the psyhical path of ASM disk MEMBERS is possible and there is no risk.</p>
<p>For the purpose of the test, we create one logical volume called lvora and we grant ownership of this file to oracle:<br />
root@node1:/# lvcreate -n lvora -L 1024 vg00<br />
root@node1:/# chown oracle:dba /dev/vg00/rlvora</p>
<p>Start DBCA and create ASM instance:<br />
- set sys password<br />
- set data group name to DATA<br />
- set redundancy to External<br />
- set Disk Discovery Path to /dev/vg00/rlv*</p>
<p>At this stage only /dev/vg00/rlvora is CANDIDATE disk for disk group with size of 1 Gb.<br />
Select the disk and create the disk group. Now we have one mounted disk group called DATA with external redundancy and<br />
using /dev/vg00/rlvora as a MEMBER of the disk group.</p>
<p>To simulate changing (or failure) of the physical disk or even moving data from one physical disk to another we used dd<br />
to copy raw data from /dev/vg00/rlvora to /dev/rdsk/c0t2d0 and then we delete the logical volume.</p>
<p>We shutdown the ASM instance and copy the contents of the logical volume to the raw physical disk using dd:</p>
<pre>oracle@node1:/home/oracle$ export ORACLE_HOME=/oracle/ora10g
oracle@node1:/home/oracle$ export ORACLE_SID=+ASM
oracle@node1:/home/oracle$ sqlplus / as sysdba

SQL*Plus: Release 10.2.0.1.0 - Production on Thu Dec 13 01:50:38 2007

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

Connected to:
Oracle Database 10g Release 10.2.0.1.0 - 64bit Production
With the Real Application Clusters option

SQL&gt; select GROUP_NUMBER, NAME, STATE, TYPE from v$asm_diskgroup;

GROUP_NUMBER NAME                           STATE       TYPE
------------ ------------------------------ ----------- ------
1 DATA                           MOUNTED     EXTERN

SQL&gt; select GROUP_NUMBER, DISK_NUMBER, MODE_STATUS, STATE, NAME, PATH from v$asm_disk;

GROUP_NUMBER DISK_NUMBER MODE_ST STATE    NAME      PATH
------------ ----------- ------- -------- --------- ----------------
1             0          ONLINE  NORMAL   DATA_0000 /dev/vg00/rlvora

SQL&gt; shutdown immediate
ASM diskgroups dismounted
ASM instance shutdown
SQL&gt;  exit

oracle@node1:/home/oracle$ exit

root@node1:/root# chown oracle:dba /dev/rdsk/c0t2d0

root@node1:/root# dd if=/dev/vg00/rlvora of=/dev/rdsk/c0t2d0 bs=1024k
1024+0 records in
1024+0 records out
root@node1:/root#  lvremove /dev/vg00/lvora
The logical volume "/dev/vg00/lvora" is not empty;
do you really want to delete the logical volume (y/n) : y
Logical volume "/dev/vg00/lvora" has been successfully removed.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf</pre>
<p>We have moved data to /dev/rdsk/c0t2d0 and we have removed the logical volume.</p>
<p>Now if you try to mount the disk group or start the instance you will get the following error:</p>
<pre>oracle@node1:/home/oracle$ sqlplus / as sysdba

SQL*Plus: Release 10.2.0.1.0 - Production on Thu Dec 13 02:05:48 2007

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

Connected to an idle instance.

SQL&gt; startup
ASM instance started

Total System Global Area  130023424 bytes
Fixed Size                  1991968 bytes
Variable Size             102865632 bytes
ASM Cache                  25165824 bytes
ORA-15032: not all alterations performed
ORA-15063: ASM discovered an insufficient number of disks for diskgroup "DATA"

SQL&gt; select GROUP_NUMBER, NAME, STATE, TYPE from v$asm_diskgroup;

no rows selected

SQL&gt; select GROUP_NUMBER, DISK_NUMBER, MODE_STATUS, STATE, NAME, PATH from v$asm_disk;

no rows selected

SQL&gt; show parameter diskstring

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
asm_diskstring                       string      /dev/vg00/rlv*</pre>
<p>As you can seen the discovery path is still pointing to /dev/vg00/rlv*, now we will change disk discovery path by pointing asm_diskstring parameter to the new location of the disk and we will mount the ASM instance:</p>
<pre>SQL&gt; alter system set asm_diskstring='/dev/rdsk/*' scope=both;

System altered.

SQL&gt; select GROUP_NUMBER, DISK_NUMBER, MODE_STATUS, STATE, NAME, PATH from v$asm_disk;

GROUP_NUMBER DISK_NUMBER MODE_ST STATE    NAME      PATH
------------ ----------- ------- -------- --------- ----------------
0            0           ONLINE  NORMAL             /dev/rdsk/c0t2d0

SQL&gt; alter diskgroup data mount;

Diskgroup altered.

SQL&gt; select GROUP_NUMBER, DISK_NUMBER, MODE_STATUS, STATE, NAME, PATH from v$asm_disk;

GROUP_NUMBER DISK_NUMBER MODE_ST STATE    NAME      PATH
------------ ----------- ------- -------- --------- ----------------
1            0           ONLINE  NORMAL   DATA_0000 /dev/rdsk/c0t2d0

SQL&gt; select GROUP_NUMBER, NAME, STATE, TYPE from v$asm_diskgroup;

GROUP_NUMBER NAME                           STATE       TYPE
------------ ------------------------------ ----------- ------
1 DATA                           MOUNTED     EXTERN

SQL&gt; show parameter diskstring;

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
asm_diskstring                       string      /dev/rdsk/*</pre>
<p>Final test to show that the changes are applied:</p>
<pre>SQL&gt; shutdown immediate
ASM diskgroups dismounted
ASM instance shutdown
SQL&gt; startup
ASM instance started

Total System Global Area  130023424 bytes
Fixed Size                  1991968 bytes
Variable Size             102865632 bytes
ASM Cache                  25165824 bytes
ASM diskgroups mounted
SQL&gt; exit
Disconnected from Oracle Database 10g Release 10.2.0.1.0 - 64bit Production
With the Real Application Clusters option
oracle@node1:/home/oracle$</pre>
<p><b>Conclusion</b><br />
ASM does not keep track of the physical disks of the data groups. Said in other way it does not matter the path or the mminor, major numbers of the physical disks, because the metadata is kept on the disk itself and there is nothing in the dictionary. When you start ASM instance it scans the disks based on the parameter asm_diskstring and reads the header information of the discovered disks.</p>
<img src="http://sve.to/?ak_action=api_record_view&id=21&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://sve.to/2009/08/11/changing-physical-path-of-asm-disk-group/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Migration of HP-UX raw devices to Oracle ASM</title>
		<link>http://sve.to/2009/08/10/migration-of-hp-ux-raw-devices-to-oracle-asm/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=migration-of-hp-ux-raw-devices-to-oracle-asm</link>
		<comments>http://sve.to/2009/08/10/migration-of-hp-ux-raw-devices-to-oracle-asm/#comments</comments>
		<pubDate>Mon, 10 Aug 2009 06:36:38 +0000</pubDate>
		<dc:creator>Sve</dc:creator>
				<category><![CDATA[hp-ux]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[asm]]></category>
		<category><![CDATA[lvm]]></category>

		<guid isPermaLink="false">http://sve.to/?p=14</guid>
		<description><![CDATA[This is an article which I wrote about how to migrate Oracle datafiles from LVM raw devices to Oracle ASM.]]></description>
			<content:encoded><![CDATA[<p>This is an <a rel="attachment wp-att-13" href="http://sve.to/?attachment_id=13">article</a> which I wrote about how to migrate Oracle datafiles from LVM raw devices to Oracle ASM.</p>
<img src="http://sve.to/?ak_action=api_record_view&id=14&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://sve.to/2009/08/10/migration-of-hp-ux-raw-devices-to-oracle-asm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Starting a blog</title>
		<link>http://sve.to/2009/07/23/hello-world/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=hello-world</link>
		<comments>http://sve.to/2009/07/23/hello-world/#comments</comments>
		<pubDate>Thu, 23 Jul 2009 11:26:14 +0000</pubDate>
		<dc:creator>Sve</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://sve.to/?p=1</guid>
		<description><![CDATA[Well, finaly I decided to start a blog. I&#8217;ll be writing about UNIX (HP-UX, Linux) and Oracle.]]></description>
			<content:encoded><![CDATA[<p>Well, finaly I decided to start a blog. I&#8217;ll be writing about UNIX (HP-UX, Linux) and Oracle.</p>
<img src="http://sve.to/?ak_action=api_record_view&id=1&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://sve.to/2009/07/23/hello-world/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
