Hitachi Dynamic Link Manager Software Users Guide for Linux

HDLM creates only a block-type device under /dev.
If the OS is Red Hat Enterprise Linux 5 or Red Hat Enterprise Linux 6, use
an udev rule file to create the character-type device file. If the OS is Red
Hat Enterprise Linux AS4/ES4 or SUSE LINUX Enterprise Server, use the
raw command to create the character-type device file.
The following shows the difference between these two methods:
¢
The character-type device file created by using the raw command is
deleted when the host is restarted.
¢
The character-type device file created by using an udev rule file is not
deleted when the host is restarted.
When Using Red Hat Enterprise Linux 5 or Red Hat Enterprise Linux
6
Use the udev rule file to create a character-type device file.
To create a character-type device file by using an udev rule file:
1. Edit the /etc/udev/rules.d/60-raw.rules file.
For example, you might edit the file as follows:
ACTION=="add", KERNEL=="sddlmaa", RUN+="/bin/raw /dev/raw/raw1
%N"
2. Restart the host or execute the start_udev command.
The editing performed in step 1 is applied when the host is restarted or
the start_udev command is executed.
The following shows an example of executing the start_udev command:
# /sbin/start_udev
When Using Red Hat Enterprise Linux AS4/ES4 or SUSE LINUX
Enterprise Server
A character-type device file is created from the HDLM device using the Linux
raw command. The following is an example of executing the raw command for
an HDLM device.
Figure 3-18 Executing the raw Command
In this example, the command creates /dev/raw/raw1 as a character-type
device file for /dev/sddlmaa (major number of 253, minor number of 0).
3-200
Creating an HDLM Environment
Hitachi Dynamic Link Manager (for Linux®) User Guide