[Gluster-users] init script problem

Krzysztof Strasburger strasbur at chkw386.ch.pwr.wroc.pl
Tue Sep 28 06:20:49 UTC 2010


On Mon, Sep 27, 2010 at 10:29:31PM +0200, Marcus Bointon wrote:
> pidofproc uses the full path to the binary to ensure it's looking at the right one, however, since gluster server and client use the same binary (glusterfs is a symlink to glusterfsd), if it's running a client but not a server, it will erroneously return the pid of the client, report that a server instance is already running (though fail to find a pid), and thus prevent the server from starting. Looking at the docs for pidofproc, it's supposed to fail to return a pid if it doesn't find a pid file, however it wasn't in this case.
Try to replace that symbolic link with hard link.
Krzysztof



More information about the Gluster-users mailing list