EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Vxworks NFS issue
From: Chen Xue <[email protected]>
To: Mark Rivers <[email protected]>
Cc: "[email protected]" <[email protected]>
Date: Mon, 02 Jul 2012 09:39:33 -0500
Hi, Mark,

Thank you very much! I missed last two parameters in nfsAuthUnixSet. Now I changed and it works! Thank you!

iocbio4> nfsAuthUnixSet("zim", 506, 501,0,0)
value = 0 = 0x0

iocbio4> copy("/home/ioc/landahl/testfile.txt", "/home/ioc/landahl/testfile2.txt")
value = 0 = 0x0

BTW, I found I exported the file in /etc/exports as below which is different with yours. Am I right?

/home/ioc/landahl  164.54.204.9(rw,sync,all_squash,anonuid=506,anongid=501)

Chen

On 7/2/2012 9:08 AM, Mark Rivers wrote:
Hi Chen,

You need to define what account is used for accessing the NFS mount on your server.

These are commands I have in my startup script to NFS mount our Linux file server:

# Set the UNIX uid/gid to the EPICS account
nfsAuthUnixSet("corvette",401,400,0,0)

# Mount drives with NFS
nfsMount("corvette","/home","/corvette/home")
nfsMount("corvette","/home","/home")


You also need to make sure that in your /etc/exports file you are exporting the file with rw/ permission for that IOC:

/home millenia(rw,async) \
       ioc13lab(rw,async) \
       ioc13lab2(rw,async) \
       ioc13bma(rw,async) \
       ioc13bmc(rw,async) \


Mark




-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Chen Xue
Sent: Monday, July 02, 2012 9:01 AM
To: [email protected]
Subject: Vxworks NFS issue

Hi,

I have mounted my crate to a work machine. It can create directory and
view directory in that machine, but can't write to file. Please see below,

iocbio4> mkdir("/home/ioc/landahl/test")
value = -1 = 0xffffffff = engineer + 0xe1134937

[ioc@zim landahl]$ ls -al test
total 8
drwxr-s--- 2 ioc biocat 4096 Jun 29 08:43 .
drwxrwsrwx 4 ioc biocat 4096 Jun 29 08:43 ..

iocbio4> copy("/home/ioc/landahl/testfile.txt",
"/home/ioc/landahl/testfile1.txt")
Can't write to "/home/ioc/landahl/testfile1.txt"
value = -1 = 0xffffffff = engineer + 0xe1134937

where file testfile1.txt is empty.
-rw-r----- 1 ioc biocat    0 Jun 29 08:43 testfile1.txt

Could someone help me figure it out?

Many thanks,

Chen




Replies:
Re: Vxworks NFS issue Pete R. Jemian
References:
Vxworks NFS issue Chen Xue
RE: Vxworks NFS issue Mark Rivers

Navigate by Date:
Prev: RE: Vxworks NFS issue Mark Rivers
Next: Re: Vxworks NFS issue Pete R. Jemian
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: RE: Vxworks NFS issue Mark Rivers
Next: Re: Vxworks NFS issue Pete R. Jemian
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·