Top
PRIMECLUSTER Global Disk Services  Configuration and AdministrationGuide 4.7

A.1 Restraining Access to Physical Special File

After registration of disks to a class other than the root class is complete, accessing the disks using physical special files as below becomes impossible. GDS prevents unintentional access by the users to physical special files in order to protect mirroring statuses.

    /dev/sdXn            (for normal hard disk)
    /dev/mapper/mpathXpn (for mpath devices of DM-MP) 
    /dev/emcpowerXn      (for emcpower devices)
    /dev/vdXn            (for virtual disks on a KVM guest)

X indicates the device ID, and n is the slice number.

For example, if you execute the dd command to write to a disk using a physical special file, an error as below occurs.

# dd if=/dev/zero of=/dev/sda1
dd: /dev/sda1: open: Device busy

In the disk list output by the parted(8) command, disks that are registered to a class other than the root class are not displayed.

This access protection is canceled when a disk is removed from a class. It will also be canceled when an object is used for disk swap. The access protection function will turn back on if disk recovery operation is performed on the object.

Access to physical special files is prevented on the following nodes:

For the following disks, access to physical special files is not prevented. Be careful not to access these physical special files.

When mirroring among servers, access to the physical special files is prevented only for iSCSI devices. As the configuration that "Figure 4.1 Disk setting for Performing Mirroring among Servers" shows, access to the physical special file of the iSCSI devices (sde and sdd) will be prevented but access to the physical special file of the physical disk (sdc) will not be prevented. Do not access the physical special file of the physical disk.