4 .\" Copyright (C) 2004 Olaf Kirch <okir@suse.de>
5 .TH sm-notify 8 "8 Mar 2004
7 sm-notify \- Send out NSM reboot notifications
9 .BI "/sbin/sm-notify [-d] [-q] [-m " time "]
11 File locking over NFS requires a facility to notify peers in
12 case of a reboot, so that clients can reclaim locks after
13 a server crash, and/or
14 servers can release locks held by the rebooted client.
16 This is a two-step process: during normal
17 operations, a mechanism is required to keep track of which
18 hosts need to be informed of a reboot. And of course,
19 notifications need to be sent out during reboot.
20 The protocol used for this is called NSM, for
21 .IR "Network Status Monitor" .
23 Commonly, these two features are provided by the
26 The SuSE Linux Kernel includes a kernel level implementation
29 which keeps track of the hosts that need notifications, and
30 accepts reboot notifications.
32 This is complemented by the
34 application, which is responsible for sending out the reboot
37 For each NFS client or server machine to be monitored,
41 .BR /var/lib/nfs/sm ", "
42 and removes the file if monitoring is no longer required.
44 When the machine is rebooted,
46 iterates through these files and notifies the peer
48 server on those machines.
52 which is basically an integer counter that is incremented
53 each time the machine reboots. This counter is stored
55 .BR /var/lib/nfs/state ,
63 will try to contact each host for up to 15 minutes,
64 and will give up if unable to reach it within this time
69 option, you can override this. A value of 0 tells
70 sm-notify to retry indefinitely; any other value is
71 interpreted as the maximum retry time in minutes.
76 to bind to the specified
78 so that all notification packets originate from this address.
79 This is useful for NFS failover.
84 to bind to the indicated IP
86 number. If this option is not given, it will try to bind to
87 a randomly chosen privileged port below 1024.
90 Be quiet. This suppresses all messages except error
91 messages while collecting the list of hosts.
94 Do not update the NSM state. This is for testing only.
100 forks and puts itself in the background after obtaining the
102 .BR /var/lib/nfs/sm .
104 .BR /var/lib/nfs/state
106 .BR /var/lib/nfs/sm/*
108 .BR /var/lib/nfs/sm.bak/*
114 Olaf Kirch <okir@suse.de>