Philipp Reisner wrote:
> Am Don, 28 Sep 2000 schrieb Thomas Mangin:
> >Philipp Reisner wrote:
> >
> >>
> >> /etc/ha.d/resource.d/datadisk [device] {start|stop|status}
> >> used by heartbeat to switch a/all drbd's devices roles (PRI/SEC).
> >> I think this one should also handle the status command.
> >> Probabely it should return "running" if the device is in primary
> >> mode and "ready" if the device is in secondary mode.
> >> If this device is seconday and still syncing it should return
> >> "not ready".
> >
> >Can you give me more infos.
> >
> >You want no ready if the master or the slave are syncing
> >or only if the slave is syncing ??
> >
>
> I am thinking:
>
> Primary, syncing ==> Running (Since the FS is mounted on top of it)
What exectly the syncing means in this context ?
> Secondary, connected ==> Stopped (Since it is possible to make this primary)
> Secondary, syncing ==> "not ready" (Since it is not possible to make this
> primary and to mount the FS on it, because
> during the resync the FS on the device
> is not in consistent state)
Can you give us/me more information on the output of the file. I will have a look
in
drbd.c but I am not sure to get all the logic behinf it ..
Thomas
> Am Don, 28 Sep 2000 schrieb Thomas Mangin:
> >Philipp Reisner wrote:
> >
> >>
> >> /etc/ha.d/resource.d/datadisk [device] {start|stop|status}
> >> used by heartbeat to switch a/all drbd's devices roles (PRI/SEC).
> >> I think this one should also handle the status command.
> >> Probabely it should return "running" if the device is in primary
> >> mode and "ready" if the device is in secondary mode.
> >> If this device is seconday and still syncing it should return
> >> "not ready".
> >
> >Can you give me more infos.
> >
> >You want no ready if the master or the slave are syncing
> >or only if the slave is syncing ??
> >
>
> I am thinking:
>
> Primary, syncing ==> Running (Since the FS is mounted on top of it)
What exectly the syncing means in this context ?
> Secondary, connected ==> Stopped (Since it is possible to make this primary)
> Secondary, syncing ==> "not ready" (Since it is not possible to make this
> primary and to mount the FS on it, because
> during the resync the FS on the device
> is not in consistent state)
Can you give us/me more information on the output of the file. I will have a look
in
drbd.c but I am not sure to get all the logic behinf it ..
Thomas