- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- ownership of LVs got changed upon failover
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2010 03:13 AM
10-12-2010 03:13 AM
We have a 2 node cluster running oracle database and having raw filesystems.
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.
Regards
Amit
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2010 03:39 AM
10-12-2010 03:39 AM
Re: ownership of LVs got changed upon failover
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2010 03:44 AM
10-12-2010 03:44 AM
Re: ownership of LVs got changed upon failover
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2010 03:47 AM
10-12-2010 03:47 AM
Re: ownership of LVs got changed upon failover
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2010 04:10 AM
10-12-2010 04:10 AM
Re: ownership of LVs got changed upon failover
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2010 04:42 AM
10-12-2010 04:42 AM
SolutionOwnership 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.
On my SAP clusters, this happens regularly - to the point that I added a function to update the ownership prior to starting SAP.
function update_owner
{ owner="orae1p:dba"
set -A vgs vgsapdataE1P vgsapdata1E1P vgsapdata2E1P vgsapdata3E1P
for vg in ${vgs[*]}
do
echo "Updating ownership of lvs in ${vg}"
for lv in $(vgdisplay -v ${vg} | grep -i 'lv name' | awk '{print $NF}')
do
chown ${owner} ${lv%/*}/r${lv##*/}
done
done
}
Then call that function before anything else.
Works like a champ and you never have to worry about raw ownership again.
HTH;
Doug
------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2010 08:17 PM
10-12-2010 08:17 PM
Re: ownership of LVs got changed upon failover
I got the answer.