Mimer SQL System Management Handbook TOC PREV NEXT INDEX

Mimer Developer Site

www.mimer.com/developer


Using Raw Device Partitions


The term 'raw devices' applies to the character oriented disk device files (as opposed to the block oriented ones) normally found in /dev. These device files are a part of the interface between the hardware disks and the UNIX system software.

In most UNIX systems it is a performance advantage to use raw device files for data storage. By using raw devices, the UNIX file system (which uses index pages to locate the file blocks) is bypassed and the operating system is able to perform more effective I/O.

Of course, the effect also depends on several other factors such as file size, transaction rate, I/O-implementation, etc. Generally, large and/or frequently used databanks should be stored in raw device files.

Note: Familiarity with raw device files is recommended. It is essential that a raw device file be correctly defined, since the normal UNIX file handling safeguards do not apply.
Some important points to be considered:

The major disadvantage of using a raw device file is that the maximum file size is fixed by the size of the partition. If the partition becomes full, the raw device file must be moved to a larger partition, if one is available.

In the worst case, the disk must be reformatted in order to create a larger partition.

Caution: Always take a complete backup before reformatting a disk and before setting up any raw device files for use!

Use of the raw device interface is completely transparent from the point of view of a Mimer SQL user. A user has no way of distinguishing a system using raw device files from a system where ordinary UNIX files are used to store databanks.



Upright Database Technology AB
Voice: +46 18 780 92 00
Fax: +46 18 780 92 40
dbtechnology@upright.se
Mimer SQL System Management Handbook TOC PREV NEXT INDEX