What are you trying to do? It's not possible for the server to have RO
access and the client have R/W access. The server has to have R/W to service
the client requests.
As for making certain clients RO and other R/W, that's provided by NFS. You
can even make the NFS mountpoint RO on the server, but the physical mountpoint
still has to be R/W at least for nfsd. You *could* make the physical
mountpoint completely inaccessible to anything other than nfsd by setting
ownership and permissions properly.
You can actually do pretty much anything you can imagine using NFS maps.
Folding maps based on system architecture is one of my favorites, i.e.
/app/bin -> /app/${ARCH}/bin, but it's not needed much now that so much of the
*nix world has converged on Linux. Back during the workstation wars it was
very useful.
But again, what's the objective?
Reg
--------------------------------------------
On Wed, 7/9/14, Gabriele Bulfon via illumos-discuss <[email protected]>
wrote:
Subject: [discuss] zfs lofi file pool double mount
To: [email protected]
Date: Wednesday, July 9, 2014, 8:44 AM
Hi,
as
an experiment.
Let's say I have a zfs fs
shared as an NFS resource to another illumos client.
Let's say I have created a 152GB file on this
resrouce.
Let's say I have added the file as a lofi
dev on the NFS server, and created a 512GB zpool on it.
Finally, let's say I have added the file as a lofi dev
on the NFS client too.
Now I can export / import
the pool both from the NFS server, and the NFS client.
Obviously I can't import the pool from both
machines.
But...what if one would "import -f
-o readonly=on" and the other would import -f
read/write?
Would it be possible?
This would let
me zfs send the client pool to the lofi pool on the NFS
share, while have the server
be able to read the
contained files.
Is it safe?
Gabriele.
illumos-developer | Archives
| Modify
Your Subscription
illumos-discuss | Archives
| Modify
Your Subscription
-------------------------------------------
illumos-discuss
Archives: https://www.listbox.com/member/archive/182180/=now
RSS Feed: https://www.listbox.com/member/archive/rss/182180/21175430-2e6923be
Modify Your Subscription:
https://www.listbox.com/member/?member_id=21175430&id_secret=21175430-6a77cda4
Powered by Listbox: http://www.listbox.com