LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 10-12-2012, 09:23 AM   #1
ksushants
LQ Newbie
 
Registered: Apr 2009
Posts: 10

Rep: Reputation: 0
RAW devices are not stable


Hi all,

We have created raw devices on the "SUSE Linux Enterprise Server 11 SP2 (x86_64)". these raw devices are used for informix database and to have different owner(i.e. informix) than root and permission 660. The RAW devices are not stable, they are loosing the filerights somtimes. Not only when rebooting! Any idea how to get the file rights stable, please let me know.

Thanks,
Sushant
 
Old 10-12-2012, 12:52 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,943
Blog Entries: 14

Rep: Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161
I've not done it in Suse for Informix but have in RHEL for Oracle RAC. In the latter one modifies udev raw rules so I did a web search for suse udev raw to see if it had any hits and found one that talks about it for Suse 12 and Informix:

http://informix-zone.com/raw-revices...udev-mechanism

That says:
Quote:
Every time Suse comes with a new version of its operating system we must carefully have a look on how they handle raw devices resp. logical volumes. This week i upgraded from Suse 11.4 to Suse 12.1, IDS remains unchanged on version 11.70. There is no substantial change in handling raw-devices by Suse 12.1, but it is very important to use the correct udev-file. otherwise you can get a surprise - may be that mouse and keyboard does not work....

So what do we need in order to install correct working raw-devices?

First, go to directory /lib/udev/rules.d. Then edit the file 50-udev-default.rules and insert the following row:

KERNEL=="dm-[0-9]*", GROUP="informix", OWNER="informix", MODE="0660"

Save the file and change the owner and group of the logical volumes:

chown informix:informix /dev/dm*

After this owner and group of the raw-devices will NOT change, even if you reboot your system.That's all.

P.S. Please do not copy the old 50-udev-default.rules- File from your 11.4-System (or older) because its not compatible with the new version.
 
1 members found this post helpful.
Old 10-12-2012, 07:37 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 16,873

Rep: Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488
I used to see raw devices a lot way way back when. At some point the doc's finally started saying use at your own risk.
 
Old 10-16-2012, 08:15 AM   #4
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,943
Blog Entries: 14

Rep: Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161
Yep - Back as early as RHEL4 I saw notes saying that raw in Linux was going away but these many years later it still seems to be there and various DBMS products rely upon it.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mounting Raw Devices rightsidedown Linux - Newbie 1 03-06-2008 10:00 AM
what is the different btw raw devices and block devices yenonn Linux - General 2 02-10-2006 09:34 PM
Raw devices in Fedora 4 OraFrank Fedora 1 12-09-2005 11:03 PM
Raw devices gauol Linux - General 2 09-23-2004 02:01 PM
Raw Devices rajar11 Linux - Newbie 4 06-16-2004 01:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration