Adaptive Server allows you to create and mount database devices on raw bound devices for raw disk I/O. Raw disk I/O has performance advantages since it enables direct memory access from user address space to the physical sectors on the disk, omitting needless memory copy operations from the user address space to the kernel buffers.
Raw disk I/O also assumes that logical and physical I/O are simultaneous, and writes are guaranteed to flush to the disk when the system write() call returns.
When preparing a raw partition device, follow these guidelines:
Do not initialize a database device on the partition that contains your Sybase installation software. Doing so destroys all existing files on that partition.
A raw partition designated for use by Sybase cannot be mounted for use by the operating system for any other purpose, such as for file systems or swap space.
After a Sybase configuration utility or the disk init command has initialized a portion of a partition as a database device, the entire partition cannot be used for any other purpose. Any space left on the partition beyond the size specified for the device can be reused with the disk resize command.
To avoid any possibility of using a partition that contains the partition map, do not use cylinder 0.
Place the database device on a character device, because the Adaptive Server recovery system needs unbuffered system I/O.
To determine whether a device is a block device or a character device run:
ls -l <device path>
Determine which raw partitions are available.
Determine the sizes of the raw partitions.
From the list of available raw partitions, select a raw partition for each device.
Verify with the operating system administrator that the partition you have chosen is available.
Make sure the “sybase” user has read and write privileges to the raw partition.
For more information on choosing a raw partition, see
your operating system documentation.
I/O fencing provided by the SCSI-3 PGR feature operates on devices only, not on partitions. For example, /dev/sda1 and /dev/sda2 are partitions of the device /dev/sda. A fencing operating targeted to a raw device bound to /dev/sda1 will affect all partitions of /dev/sda. Therefore any file systems or other applications (including another Adaptive Server) utilizing partitions on that device will also be affected. For this reason the device must be used exclusively by the Adaptive Server cluster instance.