2

We are using a Supermicro Megaraid card (2208) and we are trying to perform some SCSI operations directly on the drives using the passthrough ioctl. One issue that we have run into is that when we change something on the drive (say it's visible capacity), the megaraid controller does not "see" the change and tries to access the drive as if it still has the original capacity.

Physically pulling the drive out, waiting for a few seconds and returning it - solves the problem.

It seems that if we had a way to tell the Megaraid controller to "re-scan" the device we would be all set, the problem is that we don't know how to do it. Does anyone know how to do it?

Thanks in advance

2 Answers 2

1

Untested, because I only have production systems. My approach would be

storcli /cx/px reset
0

If pulling and re-inserting the drive helps, consider using the megarc utility to power off and re-power the drive:

megarc -physOff -a0 pd[x:y]
megarc -physOn -a0 pd[x:y]

Also take a look at MegaCLI - the CLI configuration utility for LSI MegaRAID controllers. It offers a whole variety of RAID- and PD-related commands and is more widely supported. If using it to offline and re-online the drive with the -PDOffline and -PDOnline commands would help as well, I would advise using this route instead.

1
  • The megacli options of pdoffline and pdonline don't seem to cause the controller to "re-scan" the drive, they seem more like virtual operations.
    – user204445
    Jan 6, 2014 at 11:02

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .