<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: pkg cannot be halted. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/pkg-cannot-be-halted/m-p/4289697#M336629</link>
    <description>Hi ,&lt;BR /&gt;&lt;BR /&gt;FS_UMOUNT_COUNT=1 --&amp;gt; default should ok,&lt;BR /&gt;&lt;BR /&gt;how does your pkg.cntl file  looks "do you have the below enhancement for you umount the file system ..?&lt;BR /&gt;&lt;BR /&gt;please check this_out&lt;BR /&gt;&lt;BR /&gt;Example :-&lt;BR /&gt;============&lt;BR /&gt;&lt;BR /&gt;# Unmount each logical volume.&lt;BR /&gt;&lt;BR /&gt;function umount_fs&lt;BR /&gt;{&lt;BR /&gt;integer UM_CNT=${LV_UMOUNT_COUNT:-1}&lt;BR /&gt;&lt;BR /&gt;if [[ $UM_CNT &amp;lt; 1 ]]&lt;BR /&gt;then&lt;BR /&gt;   UM_CNT=1&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;for I in $(print ${LV[@]} | awk '{ for(i=NF; i&amp;gt;0; i--) print $i }')&lt;BR /&gt;do&lt;BR /&gt; mount | grep -e $I" " &amp;gt; /dev/null 2&amp;gt;&amp;amp;1&lt;BR /&gt; if (( $? == 0 ))&lt;BR /&gt; then&lt;BR /&gt;  print "$(date '+%b %e %X') - Node \"$(hostname)\": Unmounting filesystem on $I"&lt;BR /&gt;  print "\tWARNING:   Running fuser to remove anyone using the file system directly."&lt;BR /&gt;  UM_COUNT=$UM_CNT&lt;BR /&gt;  while (( $UM_COUNT &amp;gt; 0 ))&lt;BR /&gt;  do&lt;BR /&gt;  fuser -ku $I&lt;BR /&gt;  umount $I&lt;BR /&gt;  if (( $? == 0 ))&lt;BR /&gt;  then&lt;BR /&gt;   (( UM_COUNT = 0 ))&lt;BR /&gt;  else&lt;BR /&gt;   if (( $UM_COUNT == 1 ))&lt;BR /&gt;   then&lt;BR /&gt;    let 0&lt;BR /&gt;    test_return 13&lt;BR /&gt;   fi&lt;BR /&gt;   (( UM_COUNT = $UM_COUNT - 1 ))&lt;BR /&gt;   sleep 1&lt;BR /&gt;   if (( $UM_COUNT &amp;gt; 0 ))&lt;BR /&gt;   then&lt;BR /&gt;    print "\t$(date '+%b %e %X') - Unmount failed, trying again."&lt;BR /&gt;   fi&lt;BR /&gt;  fi&lt;BR /&gt;  done&lt;BR /&gt; fi&lt;BR /&gt;done&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;function deactivate_volume_group&lt;BR /&gt;{&lt;BR /&gt;for I in ${VG[@]}&lt;BR /&gt;do&lt;BR /&gt; print "$(date '+%b %e %X') - Node \"$(hostname)\": Deactivating volume group $I"&lt;BR /&gt; vgchange -a n $I&lt;BR /&gt; test_return 14&lt;BR /&gt;done&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Best Regards,&lt;BR /&gt;Johnson</description>
    <pubDate>Mon, 20 Oct 2008 08:47:02 GMT</pubDate>
    <dc:creator>Johnson Punniyalingam</dc:creator>
    <dc:date>2008-10-20T08:47:02Z</dc:date>
    <item>
      <title>pkg cannot be halted.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pkg-cannot-be-halted/m-p/4289691#M336623</link>
      <description>1. pkg " /dev/vgxkfs1/lv_vgxkfs1" mount at /zw;&lt;BR /&gt;2. cannot be halted cause the /zw is busy.below is infomatin;&lt;BR /&gt;3. i set the umountcount to 2,see below:&lt;BR /&gt;# FILESYSTEM UNMOUNT COUNT&lt;BR /&gt;# Specify the number of unmount attempts for each filesystem during package&lt;BR /&gt;# shutdown.  The default is set to 1.&lt;BR /&gt;FS_UMOUNT_COUNT=2&lt;BR /&gt;WARNING:   Running fuser to remove anyone using the file system directly.&lt;BR /&gt;/dev/vgxkfs1/lv_vgxkfs1:    26781co(weblogic)    9667mct(plat)   17048co(plat)    6011co(plat)   26616co(plat)   17047co(plat&lt;BR /&gt;)    9461co(weblogic)   11571co(weblogic)   26893c(root)   26768co(plat)    5944co(weblogic)   11585mco(weblogic)    9670mcto&lt;BR /&gt;(plat)   25902c(webapp)    1188co(weblogic)    5436co(weblogic)&lt;BR /&gt;&lt;BR /&gt;umount: cannot unmount /dev/vgxkfs1/lv_vgxkfs1 : Device busy&lt;BR /&gt;umount: return error 1.&lt;BR /&gt;        ERROR:  Function umount_fs&lt;BR /&gt;        ERROR:  Failed to unmount /dev/vgxkfs1/lv_vgxkfs1&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;3. i set the umountcount to 2,see below:&lt;BR /&gt;# FILESYSTEM UNMOUNT COUNT&lt;BR /&gt;# Specify the number of unmount attempts for each filesystem during package&lt;BR /&gt;# shutdown.  The default is set to 1.&lt;BR /&gt;FS_UMOUNT_COUNT=2&lt;BR /&gt;4. still cannot umount the filesystem,;&lt;BR /&gt;5. any good idea?&lt;BR /&gt;</description>
      <pubDate>Sat, 18 Oct 2008 14:57:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pkg-cannot-be-halted/m-p/4289691#M336623</guid>
      <dc:creator>huaxiang</dc:creator>
      <dc:date>2008-10-18T14:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: pkg cannot be halted.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pkg-cannot-be-halted/m-p/4289692#M336624</link>
      <description>hi ;&lt;BR /&gt;&lt;BR /&gt;it seems that some parent process starts weblogic after killing child process. it may be useful to stop application first . I think it is started from root volume.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hasan.&lt;BR /&gt;</description>
      <pubDate>Sat, 18 Oct 2008 15:13:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pkg-cannot-be-halted/m-p/4289692#M336624</guid>
      <dc:creator>Hasan  Atasoy</dc:creator>
      <dc:date>2008-10-18T15:13:05Z</dc:date>
    </item>
    <item>
      <title>Re: pkg cannot be halted.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pkg-cannot-be-halted/m-p/4289693#M336625</link>
      <description>can you stop the weblogic &amp;amp; than &lt;BR /&gt;&lt;BR /&gt;fuser -c /zw&lt;BR /&gt;&lt;BR /&gt;cmhaltpkg -n node1 -v package1, &lt;BR /&gt;&lt;BR /&gt;also please help to post /etc/cmcluster/pkg_name/pkg.log&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Rgds,&lt;BR /&gt;Johnson&lt;BR /&gt;</description>
      <pubDate>Sat, 18 Oct 2008 15:17:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pkg-cannot-be-halted/m-p/4289693#M336625</guid>
      <dc:creator>Johnson Punniyalingam</dc:creator>
      <dc:date>2008-10-18T15:17:22Z</dc:date>
    </item>
    <item>
      <title>Re: pkg cannot be halted.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pkg-cannot-be-halted/m-p/4289694#M336626</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;first you can check &amp;amp; kill which user using that filesystem,&lt;BR /&gt;&lt;BR /&gt;#fuser -u /dev/vgxkfs1/lv_vgxkfs1 &lt;BR /&gt;#fuser -k /dev/vgxkfs1/lv_vgxkfs1 &lt;BR /&gt;&lt;BR /&gt;then you can try &lt;BR /&gt;#cmhaltpkg &lt;PKG name=""&gt;&lt;BR /&gt;&lt;BR /&gt;if its not stopping the package.&lt;BR /&gt;&lt;BR /&gt;Activate the VG in exclusive mode&lt;BR /&gt;&lt;BR /&gt;# vgchange â  a e  /dev/vgxkfs1&lt;BR /&gt;&lt;BR /&gt;# cmhaltcl&lt;BR /&gt;&lt;BR /&gt;# cmruncl&lt;BR /&gt;&lt;BR /&gt;it will start the package and cluster.&lt;BR /&gt;&lt;BR /&gt;enable the autorun&lt;BR /&gt;&lt;BR /&gt;#cmmodpkg -e &lt;PKG name=""&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Cheers!!!&lt;BR /&gt;&lt;BR /&gt;-VRS-&lt;BR /&gt;&lt;/PKG&gt;&lt;/PKG&gt;</description>
      <pubDate>Mon, 20 Oct 2008 02:07:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pkg-cannot-be-halted/m-p/4289694#M336626</guid>
      <dc:creator>rajv</dc:creator>
      <dc:date>2008-10-20T02:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: pkg cannot be halted.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pkg-cannot-be-halted/m-p/4289695#M336627</link>
      <description>or&lt;BR /&gt;&lt;BR /&gt;If stopped the package&lt;BR /&gt;&lt;BR /&gt;#cmrunpkg -n &lt;HOSTNAME&gt; &lt;PKG name=""&gt;&lt;BR /&gt;&lt;BR /&gt;#cmmodpkg -e &lt;PKG name=""&gt;&lt;BR /&gt;&lt;BR /&gt;Cheers!!!&lt;BR /&gt;-VRS-&lt;/PKG&gt;&lt;/PKG&gt;&lt;/HOSTNAME&gt;</description>
      <pubDate>Mon, 20 Oct 2008 02:13:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pkg-cannot-be-halted/m-p/4289695#M336627</guid>
      <dc:creator>rajv</dc:creator>
      <dc:date>2008-10-20T02:13:38Z</dc:date>
    </item>
    <item>
      <title>Re: pkg cannot be halted.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pkg-cannot-be-halted/m-p/4289696#M336628</link>
      <description>hi,all,&lt;BR /&gt;   in order to make  MC auto halt, I set "FS_UMOUNT_COUNT=2", see below.&lt;BR /&gt;   is it a correct way to solve this problem?&lt;BR /&gt;&lt;BR /&gt;***********************************************&lt;BR /&gt;&lt;BR /&gt;# FILESYSTEM UNMOUNT COUNT&lt;BR /&gt;# Specify the number of unmount attempts for each filesystem during package&lt;BR /&gt;# shutdown. The default is set to 1.&lt;BR /&gt;FS_UMOUNT_COUNT=2     //*default is 1</description>
      <pubDate>Mon, 20 Oct 2008 02:20:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pkg-cannot-be-halted/m-p/4289696#M336628</guid>
      <dc:creator>huaxiang</dc:creator>
      <dc:date>2008-10-20T02:20:16Z</dc:date>
    </item>
    <item>
      <title>Re: pkg cannot be halted.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pkg-cannot-be-halted/m-p/4289697#M336629</link>
      <description>Hi ,&lt;BR /&gt;&lt;BR /&gt;FS_UMOUNT_COUNT=1 --&amp;gt; default should ok,&lt;BR /&gt;&lt;BR /&gt;how does your pkg.cntl file  looks "do you have the below enhancement for you umount the file system ..?&lt;BR /&gt;&lt;BR /&gt;please check this_out&lt;BR /&gt;&lt;BR /&gt;Example :-&lt;BR /&gt;============&lt;BR /&gt;&lt;BR /&gt;# Unmount each logical volume.&lt;BR /&gt;&lt;BR /&gt;function umount_fs&lt;BR /&gt;{&lt;BR /&gt;integer UM_CNT=${LV_UMOUNT_COUNT:-1}&lt;BR /&gt;&lt;BR /&gt;if [[ $UM_CNT &amp;lt; 1 ]]&lt;BR /&gt;then&lt;BR /&gt;   UM_CNT=1&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;for I in $(print ${LV[@]} | awk '{ for(i=NF; i&amp;gt;0; i--) print $i }')&lt;BR /&gt;do&lt;BR /&gt; mount | grep -e $I" " &amp;gt; /dev/null 2&amp;gt;&amp;amp;1&lt;BR /&gt; if (( $? == 0 ))&lt;BR /&gt; then&lt;BR /&gt;  print "$(date '+%b %e %X') - Node \"$(hostname)\": Unmounting filesystem on $I"&lt;BR /&gt;  print "\tWARNING:   Running fuser to remove anyone using the file system directly."&lt;BR /&gt;  UM_COUNT=$UM_CNT&lt;BR /&gt;  while (( $UM_COUNT &amp;gt; 0 ))&lt;BR /&gt;  do&lt;BR /&gt;  fuser -ku $I&lt;BR /&gt;  umount $I&lt;BR /&gt;  if (( $? == 0 ))&lt;BR /&gt;  then&lt;BR /&gt;   (( UM_COUNT = 0 ))&lt;BR /&gt;  else&lt;BR /&gt;   if (( $UM_COUNT == 1 ))&lt;BR /&gt;   then&lt;BR /&gt;    let 0&lt;BR /&gt;    test_return 13&lt;BR /&gt;   fi&lt;BR /&gt;   (( UM_COUNT = $UM_COUNT - 1 ))&lt;BR /&gt;   sleep 1&lt;BR /&gt;   if (( $UM_COUNT &amp;gt; 0 ))&lt;BR /&gt;   then&lt;BR /&gt;    print "\t$(date '+%b %e %X') - Unmount failed, trying again."&lt;BR /&gt;   fi&lt;BR /&gt;  fi&lt;BR /&gt;  done&lt;BR /&gt; fi&lt;BR /&gt;done&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;function deactivate_volume_group&lt;BR /&gt;{&lt;BR /&gt;for I in ${VG[@]}&lt;BR /&gt;do&lt;BR /&gt; print "$(date '+%b %e %X') - Node \"$(hostname)\": Deactivating volume group $I"&lt;BR /&gt; vgchange -a n $I&lt;BR /&gt; test_return 14&lt;BR /&gt;done&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Best Regards,&lt;BR /&gt;Johnson</description>
      <pubDate>Mon, 20 Oct 2008 08:47:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pkg-cannot-be-halted/m-p/4289697#M336629</guid>
      <dc:creator>Johnson Punniyalingam</dc:creator>
      <dc:date>2008-10-20T08:47:02Z</dc:date>
    </item>
    <item>
      <title>Re: pkg cannot be halted.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pkg-cannot-be-halted/m-p/4289698#M336630</link>
      <description>attache is the cntl file, almost the same.</description>
      <pubDate>Mon, 20 Oct 2008 12:25:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pkg-cannot-be-halted/m-p/4289698#M336630</guid>
      <dc:creator>huaxiang</dc:creator>
      <dc:date>2008-10-20T12:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: pkg cannot be halted.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pkg-cannot-be-halted/m-p/4289699#M336631</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;FILESYSTEM UNMOUNT COUNT Option specifies, How many time the system could try to unmount the file system if its not getting unmount in the first attempt. So system will exicute the same command ( umount /dev/&lt;VGNAME&gt;/&lt;LVOL name=""&gt; ) as many time u specified here. But no use, if there is any real problem in unmounting the file system.&lt;BR /&gt;&lt;BR /&gt;    There is one more option available, ie; to run "fuser", in case of any error occured in unmounting the filesystem. you have to enable that. Please have a look into your controll script. I don't know where it is located. :(&lt;BR /&gt;&lt;BR /&gt;Rgds&lt;BR /&gt;Sreekanth&lt;/LVOL&gt;&lt;/VGNAME&gt;</description>
      <pubDate>Mon, 20 Oct 2008 12:28:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pkg-cannot-be-halted/m-p/4289699#M336631</guid>
      <dc:creator>sreekanthtm</dc:creator>
      <dc:date>2008-10-20T12:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: pkg cannot be halted.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pkg-cannot-be-halted/m-p/4289700#M336632</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;are there some other filesystems mounted underneath /zw ? &lt;BR /&gt;Such as: /zw/&lt;SECOND_MOUNTPOINT&gt;.&lt;BR /&gt;Then you have to unmount these before.&lt;/SECOND_MOUNTPOINT&gt;</description>
      <pubDate>Mon, 20 Oct 2008 13:01:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pkg-cannot-be-halted/m-p/4289700#M336632</guid>
      <dc:creator>Frank_W</dc:creator>
      <dc:date>2008-10-20T13:01:56Z</dc:date>
    </item>
    <item>
      <title>Re: pkg cannot be halted.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pkg-cannot-be-halted/m-p/4289701#M336633</link>
      <description>Hi Huaxiang,&lt;BR /&gt;&lt;BR /&gt;Can please replace your "fuser -ku" to "fuser -km"  =====&amp;gt; pkg.cntl.file&lt;BR /&gt;&lt;BR /&gt;/var/adm/syslog/syslog.log --&amp;gt; file&lt;BR /&gt;/etc/cmcluster/pkg.log --&amp;gt; file &lt;BR /&gt;&lt;BR /&gt;if still some -one holding the mount -point &lt;BR /&gt;&lt;BR /&gt;Application "could be that place we need look closely"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;       &lt;BR /&gt;</description>
      <pubDate>Mon, 20 Oct 2008 14:19:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pkg-cannot-be-halted/m-p/4289701#M336633</guid>
      <dc:creator>Johnson Punniyalingam</dc:creator>
      <dc:date>2008-10-20T14:19:50Z</dc:date>
    </item>
  </channel>
</rss>

