LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-09-2004, 10:40 AM   #1
exodist
Senior Member
 
Registered: Aug 2003
Location: Portland, Oregon
Distribution: Arch
Posts: 1,374

Rep: Reputation: 47
question on NFS/samba behavior


I need to impliment a multi-platform filesharing network with nfs and samba from a central server running linux. it needs to share files over both samba to windows and nfs to linux. This will be a multi-user environment with several stations, sometimes many stations might try to access the same file (autocad) currently with only a windows machine acting as a server with windows sharing autocad will lock a file when it is opened and unlock it when it closes this way we don't have several people modifying the file at once. I need t make sure the same thing will happen w/ samba and nfs, cause if autocad opens a file over samba and someone else tries to open the file it needs to prevent it.

so I guess my question is this, is file locking handled universally so that any program can lock a file and any other program will be prevented from using the locked file?

also does nfs recognise file locks and allow files to be locked when opened remotely
same question but for samba witht he addition of windows programs being able to request a file lock so that the linux system will nto allow use of the file by another party.

Thank you.
 
Old 11-09-2004, 04:31 PM   #2
cyberliche
Member
 
Registered: Aug 2004
Location: Atlanta
Distribution: Slackware 10
Posts: 85

Rep: Reputation: 15
I think it's a mistake to mix the NFS and SAMBA protocols. If I were you I'd either use samba to share between the linux boxes or install a NFS client on the windows machines. This solve the problem nicely as you wouldn't have to worry about having two different servers trying to lock and unlock files.

Personally I would favor the Samba solution, simply because I haven't found a windows NFS client that I like much.
 
Old 11-09-2004, 04:40 PM   #3
exodist
Senior Member
 
Registered: Aug 2003
Location: Portland, Oregon
Distribution: Arch
Posts: 1,374

Original Poster
Rep: Reputation: 47
I was asking about both partially to see about mixing them, but mainly it was fo rocmparison and questioning weather eather or both would lock files, say if samba did not lock files I would need nfs, and vice versa.
 
Old 11-09-2004, 05:25 PM   #4
cyberliche
Member
 
Registered: Aug 2004
Location: Atlanta
Distribution: Slackware 10
Posts: 85

Rep: Reputation: 15
Oh, I mis-understood you. I'm not sure about NFS locking files, becuase I don't have much experiance with it. Samba however does provide for locking files . Let me dig around real quick and I'll post some thinks about Sambas file locking....

Last edited by cyberliche; 11-09-2004 at 05:28 PM.
 
Old 11-09-2004, 05:26 PM   #5
cyberliche
Member
 
Registered: Aug 2004
Location: Atlanta
Distribution: Slackware 10
Posts: 85

Rep: Reputation: 15
Oreilly has a free version of the Samba book online. You can check out locking and op-locking here.
 
Old 11-09-2004, 11:13 PM   #6
exodist
Senior Member
 
Registered: Aug 2003
Location: Portland, Oregon
Distribution: Arch
Posts: 1,374

Original Poster
Rep: Reputation: 47
thanx you :-D
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SAMBA behavior in a Linux / WIndows Environment DoctorWho Linux - Networking 6 02-12-2006 03:13 AM
Strange SAMBA behavior Daniboy Linux - Software 3 10-07-2005 09:19 AM
Strange behavior(??) in Samba! bigoli MEPIS 1 06-06-2005 11:43 AM
Question about Samba and NFS ports dsfh24 Linux - Networking 2 08-16-2003 07:11 PM
Strange Samba behavior lostboy Linux - General 6 08-07-2003 07:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration