[DRBD-user] How to differentiate between graceful and ungraceful connection breakage?

Scott Simpson ssimpson at visionsolutions.com
Wed Feb 9 19:21:04 CET 2005

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


With DRBD, how do I differentiate between different types of shutdown?
Two scenarios:
 
1. Ungraceful shutdown: Break the link between primary and backup. The
backup node shows cs:WFConnection for a broken link. Good. The backup
node can tell the link was broken and not shut down gracefully.
2. Graceful shutdown: Shutdown DRBD on the primary with
"/etc/init.d/drbd stop". Unfortunately now the backup node also shows a
state of cs:WFConnection. Bummer. How do I tell that the connection was
shut down gracefully? This is important to know so I don't bring up the
app on the backup node if it has stale data.
 
Thanks.
    Scott
 


Scott Simpson
Advisory Software Engineer
Vision Solutions, inc.

17911 Von Karman Ave,  5th Floor
Irvine, CA 92614
UNITED STATES

Tel: +1 (949) 660-7463
Fax: +1 (949)225-0287
Email: ssimpson at visionsolutions.com
<http://www.visionsolutions.com/>
Disclaimer - 2/9/2005
The contents of this e-mail (and any attachments) are confidential, may be privileged, and may contain copyright material of Vision Solutions, Inc. or third parties. You may only reproduce or distribute the material if you are expressly authorized by Vision Solutions to do so. If you are not the intended recipient, any use, disclosure or copying of this e-mail (and any attachments) is unauthorized. If you have received this e-mail in error, please immediately delete it and any copies of it from your system and notify us via e-mail at helpdesk at visionsolutions.com 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20050209/61c6e923/attachment.htm>


More information about the drbd-user mailing list