DiskShadow(TM)File System mirroring, Resource Manager for QNX(TM).
|
DiskShadow is a QNX resource manager which
provides on-line file and data duplication services. Distributed and supported by: Contact: Geoff Roberts Phone: 61 2 6291 3833 Fax: 61 2 6291 3838 Email: sales@rtts.com.au |
|
DiskShadow operates by creating and managing a directory in the existing file system (termed the shadow directory). Two real directories (termed Primary and Secondary) are being shadowed and kept in step by DiskShadow. Files that exist on the Primary and Secondary are reflected in the shadow directory. All I/O requests made on this directory will be performed on both the Primary and Secondary. Some of the more important and interesting features of DiskShadow are:-
Unfortunately there are some disadvantages :
Configurations:DiskShadow may be configured to suit individual needs. The following table gives some hypothetical examples : |
|
Shadow |
Primary |
Secondary |
Description |
| //1/shadow | //1/primary | //1/secondary | Simple implementation. Primary and Secondary are on the same node. They may be on the same or different disks. (/shadow is the default name). |
| //1/DATA | //1/DATA1 | //2/DATA2 | On-line backup strategy. All data written to the shadow directory is written to the local and remote directory. Therefore a failure of the disk in either node 1 or node 2 will not mean the copmplete loss of data. Loss of the second node may be detected and later restored. |
| //1/DATA | //2/DATA1 | //3/DATA2 | Full Recovery. Node 2 or 3 may fail and operation can continue. |
Performance :By the nature of its operation DiskShadow must impose a speed penalty. It is required to perform the same I/O operation twice. If so configured it may have to pass the request over the network. A performance test is described in the "Technical Manual", the test is performed while varying the location of the Primary and Secondary nodes. It is done on the local disk, one remote node and then using two remote directories. Some steps have been taken to reduce the performance hit:
Non Supported Functions:All of the normally used I/O functions are supported. The exceptions are those that usually involve direct access to a disk devce. Fsys_get_mount_pt and Fsys_get_mount_dev cannot return useful values. If DiskShadow is required to mirror the root directory then Pipe functions cannot be directly supported. Start the Pipe first. Node Rebuilding Issues:Once a node has failed DiskShadow will periodically test the node to determine if the link has recovered. Once the link has been restored DiskShadow immediately starts a recovery process which stalls all other I/O operations until complete. The node may be restored by one of 3 methods the longest involves removing all of the contents of the destination directory and the copying all files and sub-directories. While this is being done DiskShadow is stalled and all applications performing I/O through it are also stalled. System RequirementsDiskShadow requires only a 386 or greater, 150K ram and QNX 4.23A.
DiskShadow: Distributed and supported by: RealTime Technology
Systems. QNX Real Time Operating System. Find out more. |