<?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: ownership of LVs got changed upon failover in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ownership-of-lvs-got-changed-upon-failover/m-p/5258535#M667679</link>
    <description>Hi,&lt;BR /&gt;Have you set the ownership of the device files on the fail over node before? You have to do this after every vgexport/vgimport manually.</description>
    <pubDate>Tue, 12 Oct 2010 10:39:12 GMT</pubDate>
    <dc:creator>Turgay Cavdar</dc:creator>
    <dc:date>2010-10-12T10:39:12Z</dc:date>
    <item>
      <title>ownership of LVs got changed upon failover</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ownership-of-lvs-got-changed-upon-failover/m-p/5258534#M667678</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;We have a 2 node cluster running oracle database and having raw filesystems.&lt;BR /&gt;&lt;BR /&gt;Those raw filesystems(LVs) have owner as oracle and group as dba. Today when the fail over took place one of the VGs got its all raw LVs' owner changed to root. Could you please advise why this happend? This happend only for LVs of one particular vg. and we had to change ownership manually to start the DB.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Amit</description>
      <pubDate>Tue, 12 Oct 2010 10:13:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ownership-of-lvs-got-changed-upon-failover/m-p/5258534#M667678</guid>
      <dc:creator>amithp</dc:creator>
      <dc:date>2010-10-12T10:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: ownership of LVs got changed upon failover</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ownership-of-lvs-got-changed-upon-failover/m-p/5258535#M667679</link>
      <description>Hi,&lt;BR /&gt;Have you set the ownership of the device files on the fail over node before? You have to do this after every vgexport/vgimport manually.</description>
      <pubDate>Tue, 12 Oct 2010 10:39:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ownership-of-lvs-got-changed-upon-failover/m-p/5258535#M667679</guid>
      <dc:creator>Turgay Cavdar</dc:creator>
      <dc:date>2010-10-12T10:39:12Z</dc:date>
    </item>
    <item>
      <title>Re: ownership of LVs got changed upon failover</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ownership-of-lvs-got-changed-upon-failover/m-p/5258536#M667680</link>
      <description>No. &lt;BR /&gt;&lt;BR /&gt;We have many servers like this in our environment and we never change the ownership after failover. Moreover this had to be done on LVs of only one VG. LVs of other VGs were fine and had right ownership.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 12 Oct 2010 10:44:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ownership-of-lvs-got-changed-upon-failover/m-p/5258536#M667680</guid>
      <dc:creator>amithp</dc:creator>
      <dc:date>2010-10-12T10:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: ownership of LVs got changed upon failover</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ownership-of-lvs-got-changed-upon-failover/m-p/5258537#M667681</link>
      <description>This means someone set it before, then you never hasve done vgexport/vgimport.</description>
      <pubDate>Tue, 12 Oct 2010 10:47:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ownership-of-lvs-got-changed-upon-failover/m-p/5258537#M667681</guid>
      <dc:creator>Turgay Cavdar</dc:creator>
      <dc:date>2010-10-12T10:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: ownership of LVs got changed upon failover</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ownership-of-lvs-got-changed-upon-failover/m-p/5258538#M667682</link>
      <description>vgexport and import are part of cluster failover. nobody changed the ownership of other LVs. moreover whenever some LV(raw fs) is created the in the active node entire VG is exported (in perview mode to generate map files) and imported in the inactive node. the ownership is changed before this export/import is done</description>
      <pubDate>Tue, 12 Oct 2010 11:10:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ownership-of-lvs-got-changed-upon-failover/m-p/5258538#M667682</guid>
      <dc:creator>amithp</dc:creator>
      <dc:date>2010-10-12T11:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: ownership of LVs got changed upon failover</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ownership-of-lvs-got-changed-upon-failover/m-p/5258539#M667683</link>
      <description>&lt;!--!*#--&gt;Hey;&lt;BR /&gt;&lt;BR /&gt;Ownership of the devices changes to root when you do vgimport.  Chances are an LV was added to or deleted from this vg on the primary node and someone appropriately reexported the vg to the other nodes.&lt;BR /&gt;&lt;BR /&gt;On my SAP clusters, this happens regularly - to the point that I added a function to update the ownership prior to starting SAP.&lt;BR /&gt;&lt;BR /&gt;function update_owner&lt;BR /&gt;{  owner="orae1p:dba"&lt;BR /&gt;   set -A vgs vgsapdataE1P vgsapdata1E1P vgsapdata2E1P vgsapdata3E1P&lt;BR /&gt;&lt;BR /&gt;   for vg in ${vgs[*]}&lt;BR /&gt;   do&lt;BR /&gt;      echo "Updating ownership of lvs in ${vg}"&lt;BR /&gt;      for lv in $(vgdisplay -v ${vg} | grep -i 'lv name' | awk '{print $NF}')&lt;BR /&gt;      do&lt;BR /&gt;         chown ${owner} ${lv%/*}/r${lv##*/}&lt;BR /&gt;      done&lt;BR /&gt;   done&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;Then call that function before anything else.&lt;BR /&gt;&lt;BR /&gt;Works like a champ and you never have to worry about raw ownership again.&lt;BR /&gt;&lt;BR /&gt;HTH;&lt;BR /&gt;&lt;BR /&gt;Doug</description>
      <pubDate>Tue, 12 Oct 2010 11:42:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ownership-of-lvs-got-changed-upon-failover/m-p/5258539#M667683</guid>
      <dc:creator>Doug O'Leary</dc:creator>
      <dc:date>2010-10-12T11:42:26Z</dc:date>
    </item>
    <item>
      <title>Re: ownership of LVs got changed upon failover</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ownership-of-lvs-got-changed-upon-failover/m-p/5258540#M667684</link>
      <description>Thanks Doug very much. &lt;BR /&gt;I got the answer.</description>
      <pubDate>Wed, 13 Oct 2010 03:17:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ownership-of-lvs-got-changed-upon-failover/m-p/5258540#M667684</guid>
      <dc:creator>amithp</dc:creator>
      <dc:date>2010-10-13T03:17:31Z</dc:date>
    </item>
  </channel>
</rss>

