Mailing List Archive

what if The lower-level device had an error?
Hi,

Concerning the following source fragment:

if( mdev->do_panic && !(uptodate & req->rq_status) ) {
panic(DEVICE_NAME": The lower-level device had an error.\n");
},

I'm thinking about what drbd will respond to the situation when the
lower-level device had an error.Does it just print a string which may be
ignore by user?

Regard.
lizhi
Re: what if The lower-level device had an error? [ In reply to ]
* lizhi <zli@example.com> [011026 12:28]:
> Hi,
>
> Concerning the following source fragment:
>
> if( mdev->do_panic && !(uptodate & req->rq_status) ) {
> panic(DEVICE_NAME": The lower-level device had an error.\n");
> },
>
> I'm thinking about what drbd will respond to the situation when the
> lower-level device had an error.Does it just print a string which may be
> ignore by user?

mdev->do_panic is true if you have do-panic flag in the disk section of the
config file.

if you do "echo 3 > /proc/sys/kernel/panic" The kernel will do a machine
reset 3 seconds after the panic was raised by drbd.

-Philiƶp