Hello all, I am returning on this topic. I have tried to run unfs3 and sec-nfs 
without success.
The problem with unfs3 is that it cannot find any portmap service and with 
sdc-nfs I cannot run it on a smartos zone (minimal-64-lts
 version 16.4.1):
# git clone https://github.com/joyent/sdc-nfs.git .
Cloning into '.'...
remote: Counting objects: 144, done.
remote: Total 144 (delta 0), reused 0 (delta 0), pack-reused 144
Receiving objects: 100% (144/144), 71.92 KiB | 0 bytes/s, done.
Resolving deltas: 100% (77/77), done.
# npm install
npm WARN deprecated [email protected]: Use uuid module instead
npm WARN deprecated [email protected]: graceful-fs v3.0.0 and before will fail 
on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as 
possible. Use 'npm ls graceful-fs' to find it in the tree.

> [email protected] install /root/git/node_modules/dtrace-provider
> node-gyp rebuild
# node server.js -f etc/repo.json
module.js:471
    throw err;
    ^

Error: Cannot find module 
'/root/git/node_modules/userid/build/Release/userid.node'
    at Function.Module._resolveFilename (module.js:469:15)
    at Function.Module._load (module.js:417:25)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/root/git/node_modules/userid/lib/userid.js:2:15)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
Where repo.json contains this:
{
    "portmap": {
        "_comment": "usehost forces use of the system's portmapper",
        "usehost": 1
    },
    "mount": {
        "_comment": "set address if serving network beyond localhost",
        "address": "0.0.0.0",
        "_comment2": "can deny/allow mounting by given host addresses",
        "_comment3": "normally use only one of these lists",
        "_comment4": "can limit access to portion of file system",
        "exports": {
            "/repo": {}
        }
    },
    "nfs": {
        "_comment": "can specify uid/gid for 'nobody' on clients",
        "uid": 65534,
        "gid": 65534,
        "_comment2": "tunables for file descriptor cache",
        "fd_cache": {
            "max": 50,
            "ttl": 15
        }
    }
}
Any hints on this?
Thanks in advance.
Michele

> Il giorno 24 mar 2017, alle ore 15:37, Jerry Jelinek 
> <[email protected]> ha scritto:
> 
> Yes, this is correct. illumos as a whole, and any distribution built on it, 
> does not currently support an NFS server running inside a zone. To workaround 
> this at Joyent, we have a user-level NFSv3 server we've written. It is 
> available at https://github.com/joyent/sdc-nfs 
> <https://github.com/joyent/sdc-nfs>. There might be other user-level NFS 
> servers that would also work.
> 
> Sorry,
> Jerry
> 
> On Fri, Mar 24, 2017 at 8:21 AM, Michele Codutti via smartos-discuss 
> <[email protected] 
> <mailto:[email protected]>> wrote:
> Hi all, I’m migrating all my network services (DHCP, TFTP, PXE, DNS, …) from 
> HW appliances to zones.
> All went well until I tried to create an NFS server to serve packages for 
> unattended installations.
> I can not find any NFS server service from "svcs -a” command and there is 
> only one NFS server (that is compatible only with V3 protocol) available in 
> pkgsrc repos.
> It seems that the only way I can start a NFS server is from the Global Zone 
> which is in contrast with the SmartOS philosophy (don’t install packages into 
> GZ).
> It is correct?
> Thank you in advance.
> 
> Michele
> 

Attachment: smime.p7s
Description: S/MIME cryptographic signature




-------------------------------------------
smartos-discuss
Archives: https://www.listbox.com/member/archive/184463/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com

Reply via email to