Hi,
To turn raw devices persistent you need to create one startup file.
Create one file
/etc/udev/rules.d/60-raw.rules
and specify the settings for the devices you need.
You can see partitions with
lsblk
command.
On config file use the following if you use partitions:
ACTION=="add", KERNEL=="sdX1", OWNER="informix", GROUP="informix", MODE="0660", RUN+="/bin/raw /dev/raw/raw1 %N"
If you are using LVM use this syntax (you get VG and VG names with
lvs
command):
ENV{DM_VG_NAME}=="centos", ENV{DM_LV_NAME}=="dev_rootdbs", OWNER="informix", GROUP="informix", MODE="0660", RUN+="/bin/raw /dev/raw/raw1 %N"
add this line at the end to change permissions:
ACTION=="add", KERNEL=="raw3", OWNER="informix", GROUP="informix", MODE="0660"
Save the file and execute the command toactive raw devices: udevadm trigger --action=add
This settings create one raw device with the following path /dev/raw/raw1
Those settings work on RedHat 7 and 8
I hope this can help,
SP
------------------------------
Sergio Peres
AIRC
Coimbra
------------------------------
Original Message:
Sent: Wed July 15, 2020 11:59 AM
From: jose Lara
Subject: SDS / Raw devices RHEL 8
Can someone help me or guide me, what are the specific steps or configuration to use raw devices with informix.
I tried an example that I used from a post on the internet, but after I created the raw devices.
restart the server and when I was going to create the soft links for install the IDS software 12cFC14, the raw devices did not exist.
the steps I did were as follows
in a virtual one with rhel7.6, create a 60GB disk for the use of the dbspaces, then from root
on a second attempt I re-created the raw devices and in /etc/sysconf/rawdevices add the steep4 image setting, try to start the rawdevice service but it fails.
It is my first time in informix that I use raw device, I have experience in oracle with multipath and I would like to know if it is with multpath, Udev or with block devices that can be done, I appreciate even a link or documentation or some basic steps that you can offer me, Thank you
------------------------------
jose Lara
Original Message:
Sent: Thu February 13, 2020 07:33 PM
From: SangGyu Jeong
Subject: SDS / Raw devices RHEL 8
Hi Snorri,
I have installed informix 14.10.fc3 on centos 8.1.
After installation, I created a raw device and added dbspace.
I think it's the same in Red Hat 8.
root:
raw /dev/raw/raw1 /dev/sdc
chown informix:informix /dev/raw/raw1
informix:
onspaces -c -d dbs1 -p /dev/raw/raw1 -o 32 -s 5000000
#Informix