dbTalk Databases Forums  

proper way to create rawdevices in Red Hat Enterprise 5.5

comp.databases.informix comp.databases.informix


Discuss proper way to create rawdevices in Red Hat Enterprise 5.5 in the comp.databases.informix forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
June Nebab LKINY
 
Posts: n/a

Default proper way to create rawdevices in Red Hat Enterprise 5.5 - 11-18-2010 , 06:39 PM






I'm setting up a new IDS 11.7 instance on a new server. What is the proper way to create informix rawdevices in Red Hat Enterprise Linux 5.5 (32-bit X86)?

method #1: ln -s /dev/cciss/cxdxpx /etc/udev/devices/dbsname
add "informix" group and user ownership in /etc/udev/rules.d/50-udev.rules
add "0660" perms in /etc/udev/rules.d/50-udev.rules
start_udev (starts udev and creates rawdevices)
raw -qa (check if raw devices have been created)

method #2: edit /etc/sysconfig/rawdevices and add raw device bindings in there
ln -s /dev/raw/rawX /opt/IBM/informix/devices/dbsname
service rawdevices start
chkconfig rawdevices on

method #3: add device name entries in /etc/udev/rules.d/60-raw.rules
ACTION="add", KERNEL=="<device name>", RUN+="raw /dev/raw/rawx %N"
set ownership and permissions on rawdevices in /etc/udev/rules.d/60-raw.rules
ACTION="add", KERNEL=="raw*", OWNER="informix", GROUP="informix", MODE="0660"
ln -s /dev/raw/rawX /opt/IBM/informix/devices/dbsname
start_udev (starts udev and creates rawdevices)
raw -qa (check if raw devices have been created)


DISCLAIMER

This transmission and the information contained herein and/or in any attachments hereto and/or in any attachments thereto is privileged and/or confidential and is intended ONLY for the use of the individual(s) and/or entity(s) named above. If you are not the intended recipient, you are strictly prohibited from disclosing, printing, copying, using or disseminating this transmission and/or any such attachments and any information contained in this transmission and/or in any such attachments. ANY unauthorized interception of this transmission and/or any such attachments is a violation of federal criminal law.

If you have received this transmission in error, please notify the sender immediately and delete the transmission and all such attachments

Reply With Quote
  #2  
Old   
Art Kagel
 
Posts: n/a

Default Re: proper way to create rawdevices in Red Hat Enterprise 5.5 - 11-18-2010 , 07:05 PM






Any of those will get the job done. It just depends on what your site
standard is.

Art

Art S. Kagel
Advanced DataTools (www.advancedatatools.com)
IIUG Board of Directors (art (AT) iiug (DOT) org)
Blog: http://informix-myview.blogspot.com/

Disclaimer: Please keep in mind that my own opinions are my own opinions and
do not reflect on my employer, Advanced DataTools, the IIUG, nor any other
organization with which I am associated either explicitly, implicitly, or by
inference. Neither do those opinions reflect those of other individuals
affiliated with any entity with which I am affiliated nor those of the
entities themselves.



On Thu, Nov 18, 2010 at 7:39 PM, June Nebab LKINY <jnebab (AT) idealcut (DOT) com>wrote:

Quote:
I'm setting up a new IDS 11.7 instance on a new server. What is the proper
way to create informix rawdevices in Red Hat Enterprise Linux 5.5 (32-bit
X86)?

method #1: ln -s /dev/cciss/cxdxpx /etc/udev/devices/dbsname
add "informix" group and user ownership in
/etc/udev/rules.d/50-udev.rules
add "0660" perms in /etc/udev/rules.d/50-udev.rules
start_udev (starts udev and creates rawdevices)
raw -qa (check if raw devices have been created)

method #2: edit /etc/sysconfig/rawdevices and add raw device bindings in
there
ln -s /dev/raw/rawX /opt/IBM/informix/devices/dbsname
service rawdevices start
chkconfig rawdevices on

method #3: add device name entries in /etc/udev/rules.d/60-raw.rules
ACTION="add", KERNEL=="<device name>", RUN+="raw
/dev/raw/rawx %N"
set ownership and permissions on rawdevices in
/etc/udev/rules.d/60-raw.rules
ACTION="add", KERNEL=="raw*", OWNER="informix",
GROUP="informix", MODE="0660"
ln -s /dev/raw/rawX /opt/IBM/informix/devices/dbsname
start_udev (starts udev and creates rawdevices)
raw -qa (check if raw devices have been created)

*DISCLAIMER*

This transmission and the information contained herein and/or in any
attachments hereto and/or in any attachments thereto is privileged and/or
confidential and is intended ONLY for the use of the individual(s) and/or
entity(s) named above. If you are not the intended recipient, you are
strictly prohibited from disclosing, printing, copying, using or
disseminating this transmission and/or any such attachments and any
information contained in this transmission and/or in any such attachments.
ANY unauthorized interception of this transmission and/or any such
attachments is a violation of federal criminal law.

If you have received this transmission in error please notify the sender
immediately and delete the transmission and all such attachments.


_______________________________________________
Informix-list mailing list
Informix-list (AT) iiug (DOT) org
http://www.iiug.org/mailman/listinfo/informix-list


Reply With Quote
  #3  
Old   
Doug Lawry
 
Posts: n/a

Default Re: proper way to create rawdevices in Red Hat Enterprise 5.5 - 11-19-2010 , 09:21 PM



This is unnecessary and will quite possibly be slower. See other
recent thread:

https://groups.google.com/group/comp...a4908ebbadb977

Regards,
Doug Lawry

Reply With Quote
  #4  
Old   
david@smooth1.co.uk
 
Posts: n/a

Default Re: proper way to create rawdevices in Red Hat Enterprise 5.5 - 12-01-2010 , 03:26 PM



On Nov 19, 7:21*pm, Doug Lawry <la... (AT) nildram (DOT) co.uk> wrote:
Quote:
This is unnecessary and will quite possibly be slower. See other
recent thread:

https://groups.google.com/group/comp.../browse_thread...

Regards,
Doug Lawry
Hi Doug,

That htread has Art Kagel saying that raw devices are still faster,
why did you find it slower?

Reply With Quote
  #5  
Old   
Doug Lawry
 
Posts: n/a

Default Re: proper way to create rawdevices in Red Hat Enterprise 5.5 - 12-14-2010 , 03:08 AM



Hi David.

Sorry - I only just saw your last posting on this. We found bulk
operations such as a level 0 "ontape" either unchanged or slower with
raw compared to block devices on recent Linux versions. This surely is
expected: with IO_DIRECT, block devices should be fine and there is no
need to go via another pseudo device type which is in any case now
deprecated.

Cheers,
Doug

Reply With Quote
  #6  
Old   
Neil Truby
 
Posts: n/a

Default Re: proper way to create rawdevices in Red Hat Enterprise 5.5 - 12-14-2010 , 04:47 PM



"Doug Lawry" <lawry (AT) nildram (DOT) co.uk> wrote

Quote:
Hi David.

Sorry - I only just saw your last posting on this. We found bulk
operations such as a level 0 "ontape" either unchanged or slower with
raw compared to block devices on recent Linux versions. This surely is
expected: with IO_DIRECT, block devices should be fine and there is no
need to go via another pseudo device type which is in any case now
deprecated.
Do you have any comparative figures for cooked files also, Doug?

cheers

Reply With Quote
  #7  
Old   
Doug Lawry
 
Posts: n/a

Default Re: proper way to create rawdevices in Red Hat Enterprise 5.5 - 12-15-2010 , 05:12 AM



No, Neil, as I don't use cooked files on principle!

Reply With Quote
Reply




Thread Tools
Display Modes

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

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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.