Accessing Raw Devices from the Server

Once you have created the partitions and bound the devices for raw disk IO, Adaptive Server can use them. If Adaptive Server is running as user “sybase”, then apply read, write, and owner permissions to the /dev/raw/raw# device entries and the raw bound control device /dev/rawctl.

See the chown(1), chgrp(1), and chmod(1) commands to apply correct permissions.

  1. To verify your settings, query the device binding using the raw command, enter:
    # raw -qa

    The output should be:
    /dev/raw/raw1: bound to major 3, minor 5
    /dev/raw/raw2: bound to major 3, minor 6
    /dev/raw/raw3: bound to major 3, minor 7
    /dev/raw/raw4: bound to major 3, minor 8
  2. You should have root privileges to execute this command. If you do not, you may see the following output for the raw -qa command:
    Cannot open master raw device '/dev/rawctl'
    (Permission denied)
  3. Using the raw devices, Adaptive Server and the installation and configuration utility, srvbuild, detects and presents size automatically. Enter the absolute path to the raw device when creating the master, sybsystemprocs, sybtempdb, or any other device.