Locking problems with ASE

From: Jonathan Nicholson <jjn_at_sanger.ac.uk>
Date: Sat, 20 Dec 1997 11:21:37 +0000 (GMT)

We've got a large raid stack fronted by 2 AlphaServer 1000a with Available
Server (ASE) running. For those that don't know this system allows 2
servers to control 1 scsi bus, if one server fails the other takes over
and the service continues un-interrupted.

However on disks exported in this fashion over NFS, I cannot seem to
create or use file locks. I've written the following test program in Perl
to try to find out what the cause is. The results of this are, I can use
locks on NFS file systems exported from Digital boxes as long as they
aren't in the Available server configuration.

There are a total of 4 services running called vgr1,2,3 & 4

The lockd/statd processes that are running on the 2 servers (called tuvok
and nelix[1]) are:-

Tuvok
-----

/usr/sbin/rpc.statd -b vgr2 -p /var/ase/mnt/vgr2/nfs/fprefect/.ase/nfs_lock
/usr/sbin/rpc.statd -b vgr3 -p /var/ase/mnt/vgr3/nfs/zaphod/.ase/nfs_lock
/usr/sbin/rpc.statd
/usr/sbin/rpc.lockd -b vgr2
/usr/sbin/rpc.lockd -b vgr3
/usr/sbin/rpc.lockd

Nelix
-----

/usr/sbin/rpc.statd
/usr/sbin/rpc.statd -b vgr1 -p /var/ase/mnt/vgr1/nfs/marvin/.ase/nfs_lock
/usr/sbin/rpc.statd -b vgr4 -p /var/ase/mnt/vgr4/nfs/babel/.ase/nfs_lock
/usr/sbin/rpc.lockd
/usr/sbin/rpc.lockd -b vgr1
/usr/sbin/rpc.lockd -b vgr4


Any ideas?

Help!!!

Regards,

Jonathan

---------------------

My perl test program:-


#!/usr/local/bin/perl
use Fcntl;
use DB_File;
use POSIX;
open(TMP,">testfile") || die "Failed to open testfile\n";
open(FH, ">&TMP") || die "Failed to dup : $!\n";
print "Dupped ok attempting lock\n";
&dolock(&F_WRLCK);
print TMP "Testing testing testing\n";
&dolock(&F_UNLCK);

sub dolock {
        local ($mode) = _at__;
        local ($flock);
        $flock = pack('iilli', $mode, 0, 0, 0, $$);
        print "Assigning lock\n";
        fcntl(FH, &F_SETLKW, $flock);
        print "Done\n";
}


[1] Yes I know it's spelt wrong, too much hassel to change it![2]
[2] I'm not the trekkie, honest!

 ----------------------------------------------------------------------------
= Jonathan Nicholson - System Administrator +44 1223 494987 (internal 4987) =
= The Sanger Centre, Wellcome Trust Genome Campus, Hinxton, Cambs, CB10 1SA =
= Email: jjn_at_sanger.ac.uk (Work) jono_at_acme.demon.co.uk (Home) =
 ----------------------------------------------------------------------------
Received on Sat Dec 20 1997 - 12:21:52 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:37 NZDT