Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I facing problem kindly solve this one :-
The new storage is visible in the database servers and we are able to list the raw devices at the OS level as :
/dev/mapper/mpathn
We have changed the ownership of these disks and given oracle user their ownership (Oracle is a OS user with oinstall group associated with it). We have also given read/write permission to user and group for the device. Please find an example for reference below:
ISSUE: We have observed that once we restart the Server , the ownerships and permissions are wiped out and devices permissions revert back to original root:disk. Due to this oracle software does not works properly as it is installed using oracle install user/group.
Well, I don't know if it has anything to do with your problem, but I generally do not recommend that setup unless you have some (usually) very expensive live backup software.
Otherwise, you can just shutdown ORACLE with a script, back up all the regular files, then start it back up in the middle of the night. That worked fine for most of the companies I worked for and they were all Fortune 500 companies. You may take a slight performance hit, but it seems to be worth it unless you really need 24/7 availability.
Still don't know why permissions would just change out of the blue on your disks. Maybe you should look into ACLs?
Distribution: HP-UX, Red Hat, Fedora, AIX, Solaris
Posts: 13
Rep:
Hi there, why do you want oracle to own the actual disks? The raw devices should belong to root, which is why it changes back on startup. Oracle needs permission to access oracle owned files on these disks (rwx). Just make sure you chmod 661 instead of 660 so you can execute and see the full path. I'm not sure how your security posture is, but putting oracle in the sudoers file will allow you to install patches and scripts at a higher level if need be, but is not always allowed in organizations.
I am with the others in not understanding why oracle would need to own the partitions/drives. For the companies I have worked on, oracle owns the directories/files related to the Oracle install.
There are two ways ORACLE can save database data. One is by having ordinary files on ordinary host filesystems, or it can take entire raw partitions of disks or whole disks and control them itself and save its data to the drives using its own proprietary drive controllers.
It appears the OP wants to do the second method. I'm not a DBA but I've been a Solaris administrator working in tandem with ORACLE DBAs and we always came to the conclusion that files were better. They might be a bit slower, but it's a lot easier to recover from a crashed disk or something.
Distribution: HP-UX, Red Hat, Fedora, AIX, Solaris
Posts: 13
Rep:
I realize what you're saying, but unless he's building this at his house for fun, I find it hard to believe a Linux (Red Hat) administration would be ok with that. Admins control the structure and let DBA's run Oracle on it... Also, dev/mapper/ is a LVM logical volume, which you are attempting to use. LVM's should certainly follow the file structure UGO permissions, opposed to Oracle owning the LVM.When you created your PV, VG, and LV, you would have done it as a privileged user, because a standard user cannot create LVM's. I'm guessing this is why a reboot reverts back to root. You can edit the etc/fstab, but I highly recommend not having oracle own the LVM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.