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: Mark Rivers <[email protected]>
To: "'Chen Xue'" <[email protected]>, "[email protected]" <[email protected]>
Date: Mon, 2 Jul 2012 14:08:22 +0000
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 Chen Xue
scan save data problem Chen Xue
References:
Vxworks NFS issue Chen Xue

Navigate by Date:
Prev: Vxworks NFS issue Chen Xue
Next: Re: Vxworks NFS issue Chen Xue
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: Vxworks NFS issue Chen Xue
Next: Re: Vxworks NFS issue Chen Xue
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 ·