Hi Remy
Does RxLvmGetDisks also return the type of disks - PATA or SATA - and port numbers in use?
Regards
Pete
Hi Pete
rxlvm inf extrat:
Parameters
stem
The name of the stem variable in which the list of disks will be stored. After RxLvmGetDisks returns successfully, stem.0 will contain an integer n, indicating the number of disks found; and stem.1 through stem.n will each contain data describing a single disk, in the format:
handle number size unuseable corrupt removeable serial name
The meanings of the various fields are:
handle The disk's handle (a unique 8-digit hexadecimal string).
number The number assigned to the disk drive by LVM. This is a positive integer, where 1 represents the first disk.
size The total size of the disk, in megabytes (1 megabyte = 1,048,576 bytes).
unuseable A flag indicating whether the disk drive is reported "unuseable" (i.e. inaccessible) by LVM. This is one of the following values:
0 The disk drive is useable
1 The disk drive is currently being reported as unuseable
corrupt A flag indicating whether the disk drive has a corrupted partition table (as reported by LVM). This is one of the following values:
0 The partition table is correct
1 The partition table is being reported as corrupt
removeable This flag indicates whether or not the disk drive is a removeable media device. This is one of the following values:
0 Normal disk drive
1 Partitionable removeable media device
2 "Big floppy" type removeable media (e.g. LS-120 super-diskette)
serial The serial number reported by the disk drive. This is an integer value.
name The disk's name. This is a string of up to 20 characters, and may contain spaces and punctuation marks.
Returns
RxLvmGetDisks returns 1, or an LVM error message.
Example
qd = RxLvmGetDisks("disks.")
IF LEFT( qd, 6 ) == 'ERROR:' THEN DO
PARSE VAR qd 'ERROR: ' lvm_error
SAY 'LVM.DLL returned error code' lvm_error
RETURN lvm_error
END
SAY disks.0 'disks found:'
DO i = 1 TO disks.0
SAY ' ' disks.i
END
The following is a sample of output from the example above:
3 volumes found:
FC047717 1 156327 0 0 0 890692272 [ D1 ]
FC047767 2 156327 0 0 0 700276006 [ D2 ]
FC0477B7 3 0 1 0 1 0 [ D3 ]
The RxLvmGetVolumes( stem ) provides the device type (for the volume and not disk)
device The type of device on which the volume resides. This is one of the following values:
HDD Hard disk drive
PRM Partitionable removeable media
CD CD/DVD drive (not controlled by LVM)
LAN LAN drive (not controlled by LVM)
? Unknown device type (not controlled by LVM)
Regards
Rémy