ReadFile() fails on hardware RAID disk.How to detect that disk is RAID disk

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance







hi



I have two questions regarding hardware RAID disk . I created it as
hardware
mirror disk. (I plugged it on marvel RAID controller)



1st question is that i want to read sectors from RAID disk, if i
allocate
memory in a function and that memory passes through more than 3
function
calls to finally pass through ::ReadFile(), it gets failed with error
code
87, i.e. INVALID_PARAMETER. If there functions calls are less than 3,
the
fuction read data and is successfull.



For example,

Function1---> Function2---> Function3--->Function4--->Function5--->
ReadFile()



if i allocated memory in Function4 and it is passed to Function5 and
Function5 then calls ReadFile on that buffer, it is complete
successfully.
But if i allocate in that buffer in Function1 and that memory goes
through
Function2,Function3,Function4,Function5, and then calls Readfile that
function fails. Note that these functions are in different classes.



Can anyone have idea????????





2nd question is that how can i know the disk which is controlled RAID
controller or hardware RAID. Simply is there any method to detect
whether it
simple disk or hardware RAID disk.





Please any kind of help will be really appriciated
.



Relevant Pages

  • RE: Optimal File System config for 2.5TB RAID5
    ... Thanks for the concrete example of the pitfall of hardware RAID Jeremy. ... Unless someone out there has done full benchmarks comparing FreeBSD ZFS ... If the controller goes bad after the lifetime of the controller has ... Driver support is often "iffy" with such controllers, ...
    (freebsd-questions)
  • Re: [SLE] Mail Server purchasing decision
    ... >> controller and then run each disk on the controller individually, ... Also note that they only used XFS on the hardware raid setup - the test ... I use dedicated hardware for sound, network interfacing, video, and disk ... eliminate things like an engine-driven fan, ...
    (SuSE)
  • Re: Optimal File System config for 2.5TB RAID5
    ... I'm not familiar with PERC controllers, ... Unless someone out there has done full benchmarks comparing FreeBSD ZFS ... there are many problems with hardware RAID. ... If the controller goes bad after the lifetime of the controller has ...
    (freebsd-questions)
  • Re: RAID suggestions?
    ... ask what the community uses for it's hardware RAID, ... controller you can't retrieve your data after a controller failure. ... If you use multipath, you need to use vendor HBAs and vendor applications AFAIK. ... In short, IF multipathd works for your SAN/NAS you're home free, however, if you can't get it configured to see your LUNS, nothing you can do about it. ...
    (Debian-User)
  • Re: RAID suggestions?
    ... ask what the community uses for it's hardware RAID, ... controller you can't retrieve your data after a controller failure. ... We've stopped using RAID-5. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)