All of lore.kernel.org
 help / color / mirror / Atom feed
* Breaking locks on a lame server?
@ 2006-05-03  3:17 Erik Walthinsen
  2006-05-03 14:33 ` Jeff Layton
  0 siblings, 1 reply; 2+ messages in thread
From: Erik Walthinsen @ 2006-05-03  3:17 UTC (permalink / raw)
  To: nfs

We've got a configuration with a NAS machine (3ware SATA RAID) running a 
2.4.26 kernel is in use by a number of client machines, each running 
multiple instances of user-mode-linux.  Most all "block devices" presented 
to the UML instances are located on the NAS, exported via NFS.  The clients 
are currently a mix of 2.4.26 and 2.6.15.6.

The problem is, whenever there's any kind of abnormal shutdown of either a 
UML instance or the machine that's running it, a NFS lock is left in place. 
  This means that UML refuses to start up again using those files, unless I 
patch the UML kernel to avoid F_SETLK, which is of course very unsafe (two 
UMLs touching the same file means EDEADFILE).

I've seen other suggestions for breaking locks that involve restarting statd 
on the clients, etc., but the problem is this: these locks are persistent 
across reboots of the clients.  IIRC they're also persistent *between* 
clients, so I can't start a UML instance on an alternate machine either.

We're planning an upgrade of the NAS box to 2.6 as soon as we can, but that 
means a system-wide shutdown of all our customer's UML instances, which 
isn't something we do lightly.

1) am I to expect 2.6's NFS server implementation to somehow solve this?
2) if not, and in the meantime, are there any means by which I can inspect 
(lslk does nothing) and hopefully kill these locks?

(I'm not on the list, already on too many, so please make sure to send to: 
or cc: me)

Thankx,
       Omega
       aka Erik Walthinsen
       omega@vcolo.com


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-05-03 14:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-03  3:17 Breaking locks on a lame server? Erik Walthinsen
2006-05-03 14:33 ` Jeff Layton

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.