Jagga Soorma
2010-Mar-05 21:49 UTC
[Lustre-discuss] Problem with flock and perl on Lustre FS
Hi Guys, How does lustre handle locking? One of our users is complaining that a perl module (Sotrable) has trouble with its lock_nstore method when it tries to use flock. The following is a hwo they are reporducing this issue: --> perl -d -e ''''Loading DB routines from perl5db.pl version 1.3 Editor support available. Enter h or `h h'' for help, or `man perldebug'' for more help. Debugged program terminated. Use q to quit or R to restart, use o inhibit_exit to avoid stopping after program termination, h q, h R or h o to get additional info. DB<1> use Fcntl '':flock'' DB<2> open(FOO, ">>/tmp/gh") or die "darn" DB<3> flock(FOO, LOCK_EX) || die "SHIE: $!" DB<4> close FOO DB<5> open(FOO, ">>gh") or die "darn" DB<6> flock(FOO, LOCK_EX) || die "SHIE: $!" SHIE: Function not implemented at (eval 10)[/usr/lib/perl5/5.10.0/perl5db.pl:638] line 2. DB<7> -- Thanks in advance for your assistance. Regards, -J -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.lustre.org/pipermail/lustre-discuss/attachments/20100305/ca09f3a4/attachment.html
Andreas Dilger
2010-Mar-05 21:58 UTC
[Lustre-discuss] Problem with flock and perl on Lustre FS
On 2010-03-05, at 14:49, Jagga Soorma wrote:> How does lustre handle locking? One of our users is complaining > that a perl module (Sotrable) has trouble with its lock_nstore > method when it tries to use flock. The following is a hwo they are > reporducing this issue: > > DB<6> flock(FOO, LOCK_EX) || die "SHIE: $!" > SHIE: Function not implemented at (eval > 10)[/usr/lib/perl5/5.10.0/perl5db.pl:638] line 2.Search the list or manual for "-o flock", "-o localflock", and "-o noflock" mount options for the client(s). Cheers, Andreas -- Andreas Dilger Sr. Staff Engineer, Lustre Group Sun Microsystems of Canada, Inc.