Hi,all

 

There were no packages of rpm of sanlock v2.7 for fedora 18 in the internet. I built these packages manually on fedora 18.

 

The source code and spec file were downloaded in the web. http://arm.koji.fedoraproject.org//packages/sanlock/2.7/1.fc19/src/sanlock-2.7-1.fc19.src.rpm

 

These packages were installed in fedora 18 successfully, however, if I tried to change the log level to DEBUG with the command ‘sanlock daemon -L 7’, one lockfile error was found in the logfile /var/log/sanlock.log.

 

The logfile said:

2013-07-29 16:00:16-0400 338 [1317]: sanlock daemon started 2.7 host 48f0a719-03ff-4fc8-b069-46532dcddb94.sanlock-de

2013-07-29 16:00:50-0400 372 [1369]: lockfile setlk error /var/run/sanlock/sanlock.pid: Resource temporarily unavailable

 

Its code fragment in src/lockfile.c of sanlock v2.7:

         lock.l_type = F_WRLCK;

         lock.l_start = 0;

         lock.l_whence = SEEK_SET;

         lock.l_len = 0;

 

         rv = fcntl(fd, F_SETLK, &lock);

         if (rv < 0) {

                   log_error("lockfile setlk error %s: %s",

                              path, strerror(errno));

                   goto fail;

         }

 

Is there anyone meet this problem? Can the package named sanlock-2.7.tar.gz in sanlock-2.7-1.fc19.src.rpm be used directly in Fedora18?

 

Thanks for your help.

 

Qi