beautypg.com

HP Hitachi Dynamic Link Manager Software User Manual

Page 306

background image

3. Creating an HDLM Environment

282

3.20 Creating a Character-Type Device File for an HDLM Device

This section describes how to create a character-type device file for an HDLM device.

„

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.

3.20.1 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

3.20.2 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.

This manual is related to the following products: