Specifications

The number of the recording to copy is specified by the parameter RecordingNb. If this 
parameter is not specified then the current recording is copied. 
While copying data from the MDR Disks Subsystem to the MDR Tape Subsystem, it is 
possible to specify which part of the recording is copied using the 
FirstRecordingBlockToCopy and LastRecordingBlockToCopy parameters. These 
parameters represent the first and last blocks of the recording to be copied. 
For instance, to copy all the data contained in a recording, set the parameter 
FirstRecordingBlockToCopy to 0 and the parameter LastRecordingBlockToCopy to 
the number of user blocks (field UserBlocks of the RECORDING structure) minus 1. 
Using the CopyRecording
function while making a recording affects the recording performance. 
The MDR Server may stop recording due to this. 
Currently, only the following copy commands are allowed: 
Source  Target
Disks Tape 
copy data from the MDR disk subsystem to SCSI tapes 
(1 or several tapes according to the recording length 
and the internal drive compression rate), 
Tape Disks copy data from SCSI tapes (1 or several tapes 
according to the recording length) to the MDR disk 
subsystem, 
Returned value: 
OK or ERROR. 
If 
ERROR is returned then the errno variable will be set accordingly. See MdrDefs.h for 
MDR 
errno values. 
CreateDiskGroup 
Declaration: 
STATUS CreateDiskgroup (char DiskGroupName, 
 DISK_INFO * DiskInfoTbl, 
 UINT DiskInfoTblSize, 
 UINT DiskStripeSize, 
 BOOL ClearRecordingTable); 
Description:  Create a new disk group. 
This function creates a new disk group named 
<DiskGroupName>. The new disk group 
will contain the disks whose information is located in the 
<DiskInfoTbl> parameter. 
The disks are specified using their information (port and controller identifiers). Disk 
information can be retrieved using the Scan function. 
The 
<DiskStripeSize> parameter defines the size of each stripe on each disk. 
Therefore, the size of a stripe on the disk group is the 
<DiskInfoTblSize> parameter 
(number of disks in the disk group) times the 
<DiskStripeSize> parameter. 
Currently, 512KiB (512*1024 bytes) is the only value supported by the MDR 
Software for the <DiskStripeSize> parameter. 
When adding a list of disks to an existing disk group, the recording table contained on 
the disk group is cleared or kept intact according to the value or the parameter 
ClearRecordingTable. If the recording table is cleared then any recording data present 
on the initial disk group or on the disks to add will be LOST. 
Returned value: 
OK or ERROR. 
If 
ERROR is returned then the errno variable will be set accordingly. See MdrDefs.h for 
MDR errno values. 
MDR User Guide  49 
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com










