Thread View: borland.public.cppbuilder.nativeapi
4 messages
4 total messages
Started by Paul
Fri, 20 Apr 2007 10:29
HDD failure detection (raid1 configuration)
Author: Paul
Date: Fri, 20 Apr 2007 10:29
Date: Fri, 20 Apr 2007 10:29
10 lines
1177 bytes
1177 bytes
Hello I am developing a C++ application which has to detect when a HDD stops working properly. HDDs are connected to a RAID controller, and the PC is running Windows XP. How could I get a state, or a anything else? Is there a API funtion which is able to read the states from the controller? Thanks for any idea or help. Tobias
Re: HDD failure detection (raid1 configuration)
Author: Bob Gonder
Date: Fri, 20 Apr 2007 15:00
Date: Fri, 20 Apr 2007 15:00
15 lines
1552 bytes
1552 bytes
Paul wrote: >I am developing a C++ application which has to detect when a HDD stops >working properly. >HDDs are connected to a RAID controller, and the PC is running Windows XP. >How could I get a state, or a anything else? Is there a API funtion which is >able to read the states from the controller? I'm thinking DeviceIoControl() Perhaps with FSCTL_IS_VOLUME_MOUNTED There might also be something in the VDS http://msdn2.microsoft.com/en-us/library/aa381442.aspx You might also check with the manufacturer of your controler.
Re: HDD failure detection (raid1 configuration)
Author: Paul
Date: Mon, 23 Apr 2007 07:48
Date: Mon, 23 Apr 2007 07:48
33 lines
2077 bytes
2077 bytes
Thanks for the answer, I have problems with DeviceIoControl(). I don't know how to get a handle for the second disk. Because the System see the 2 disks as one. I think the problem is the Raid Controller? VDS I have a look on it, but the function I think they are right require Vista. Or I am false? Correct me please. Thanks for any help Paul "Bob Gonder" <notbg@notmindspring.invalid> schrieb im Newsbeitrag news:jljh235brppc4hqbp5rlf17kuog3ome0ci@4ax.com... > Paul wrote: > >>I am developing a C++ application which has to detect when a HDD stops >>working properly. >>HDDs are connected to a RAID controller, and the PC is running Windows XP. >>How could I get a state, or a anything else? Is there a API funtion which >>is >>able to read the states from the controller? > > I'm thinking DeviceIoControl() > Perhaps with FSCTL_IS_VOLUME_MOUNTED > > There might also be something in the VDS > http://msdn2.microsoft.com/en-us/library/aa381442.aspx > > You might also check with the manufacturer of your controler. > >
Re: HDD failure detection (raid1 configuration)
Author: Bob Gonder
Date: Tue, 24 Apr 2007 01:51
Date: Tue, 24 Apr 2007 01:51
11 lines
1402 bytes
1402 bytes
Paul wrote: >I have problems with DeviceIoControl(). I don't know how to get a handle for >the second disk. Because the System see the 2 disks as one. Did you use \\.\PHYSICALDRIVE0 \\.\PHYSICALDRIVE1? > I think the >problem is the Raid Controller? Could be. Have you contacted the manufacturer yet?
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads