Re: init scripts problems ?
denis bonnenfant <[email protected]>
| Newsgroups | gmane.linux.enbd.general |
|---|---|
| Message-ID | <[email protected]> |
denis bonnenfant wrote:
> denis bonnenfant wrote:
>
>>> I've just checked the enbd_open() code and I see nothing suspicious
>>> there _except_ maybe the "media check" that is launched in the kernel:
>>>
>>> if (do_media_check) {
>>> // PTB this invalidates buffers, if necessary
>>> ENBD_INFO ("DISK CHECK wanted in open on
>>> device nd%s\n",
>>> lo->devnam);
>>> lo->last_checked = jiffies;
>>> check_disk_change(inode->i_bdev);
>>> }
>>>
>>>
>>> It may be worth disabling that whole check and seeing what happens. As
>>> I recall the kernel tries to read the partition table (the first
>>> sectors) of the "disk" (enbd) and then adds the result to
>>> /proc/partitions.
>>
>>
>>>
>>> But I'm not even sure the code sticks in OPEN, rather than at the first
>>> read. The WCHAN value might indicate.
>
>
> OK, i can reproduce it, even with only one nbd device open.
>
> in this case, WCHAN is page_sync for one enbd-client, and select for the
> others.
oups, it's sync_page !
>
> echo 0 > /proc/nbdinfo sometimes solves the problem, but sometimes give
> kernel oops... sometime recoverable removing the module, sometime not.
>
> I will send some logs later
> _______________________________________________
> ENBD mailing list
> [email protected]
> http://lists.community.tummy.com/mailman/listinfo/enbd