Top
PRIMECLUSTER Global Disk Services  Configuration and AdministrationGuide 4.6
FUJITSU Software

6.8 raw Device Binding

For using a volume or a temporarily detached slice as a character (raw) device, use the raw device bound to the volume's or the temporarily detached slice's block device with the raw(8) command.

Example) Bind raw device "raw1" to the block device of Volume1 in Class1.

# raw /dev/raw/raw1 /dev/sfdsk/Class1/dsk/Volume1

By describing the setting for raw device bounding in the /etc/sysconfig/rawdevices file, the raw device can automatically be bound at OS startup. For details, see the raw(8) and rawdevices manuals.

Note

The setting file for binding raw devices is /usr/lib/udev/rules.d/60-raw.rules. However, when using a volume or a temporarily detached slice as a raw device, describe the setting to the /etc/sysconfig/rawdevices file.

When changing the access permission for the character device special file (/dev/raw/raw<N>) of the raw device, create a startup script in which the command that changes the access permission is described, and create a unit file that executes the startup script so that the script is executed later than the GDS service (fjsvsdx*.service).

If the setting is described in the rawdevices file to bind the raw device for the volume or for the temporarily detached slice, the following message may be output when OS is started. Even this message is output, the raw device is normally bound after GDS is initialized. The system is not affected.

Cannot locate block device '/dev/sfdsk/Class_Name/dsk/Volume_Name' (No such file or directory)

After the raw device binding, if the relevant volume or temporarily detached slice is re-created, it is necessary to bind the raw device again.

See

The OS may or may not support raw devices or the raw(8) command. For details, see the OS manual.