3.5. Editing the rawdevices File

The /etc/sysconfig/rawdevices file is used to map the raw devices for the shared partitions each time a cluster member boots. As part of the cluster software installation procedure, edit the rawdevices file on each member and specify the raw character devices and block devices for the primary and backup shared partitions. This must be done prior to running the Cluster Configuration Tool.

If raw devices are employed in a cluster service, the rawdevices file is also used to bind the devices at boot time. Edit the file and specify the raw character devices and block devices that you want to bind each time the member boots. To make the changes to the rawdevices file take effect without requiring a reboot, perform the following command:

/sbin/service rawdevices restart

The following is an example rawdevices file that designates two shared partitions:

# raw device bindings
# format:  <rawdev> <major> <minor>
#          <rawdev> <blockdev>
# example: /dev/raw/raw1 /dev/sda1
#          /dev/raw/raw2 8 5
/dev/raw/raw1 /dev/hda5
/dev/raw/raw2 /dev/hda6

Refer to Section Configuring Shared Cluster Partitions for more information about setting up the shared partitions. Refer to Section Creating Raw Devices for more information on using the raw command to bind raw character devices to block devices.


The rawdevices configuration must be performed on all cluster members, and all members must use the same raw devices (from the previous example, /dev/raw/raw1 and/dev/raw/raw2).

To check raw device configuration on the current cluster member, choose Cluster => Shared State in the Cluster Configuration Tool. The Shared State dialog is displayed, as shown in Figure 3-7.

Figure 3-7. Verifying Shared State Configuration