tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* Locking problems with ASE
@ 1997-12-20 11:21 Jonathan Nicholson
  0 siblings, 0 replies; only message in thread
From: Jonathan Nicholson @ 1997-12-20 11:21 UTC (permalink / raw)
  To: tru64-unix-managers


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) = @_;
        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@sanger.ac.uk (Work)  jono@acme.demon.co.uk (Home)               =
 ----------------------------------------------------------------------------

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1997-12-20 11:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-12-20 11:21 Locking problems with ASE Jonathan Nicholson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox