Each dataset is mounted in a particular zone (zoneA and zoneB respectively).
I have created a new dataset "zoneA/nfs_tmp" which I want to mount or share between the two zones so that if a user in zoneA "touches" a file in "/nfs_tmp" the file is "visible" in zoneB.
So far I have tried changing the default mountpoint of "zoneA/nfs_tmp " to "/zoneA/root/nfs_tmp" and altough the FS gets mounted successfully I'm not able to figure out how to make it visible in the other zone.
you can't mount a filesystem twice on different servers (not without problems or not at all) and a zpool can only be owned by one host (at a time). mounting a filesystem across multiple hosts is a job for a "cluster" filesystem.
but in your case, a NFS share would be an easier option. share a fielsystem in the globel (or inside a local zone; does this work yet?) zone with NFS and mount the share inside the zones.
you can't mount a filesystem twice on different servers
unless you use lofs mounts.
Quote:
but in your case, a NFS share would be an easier option. share a fielsystem in the global (or inside a local zone; does this work yet?) zone with NFS and mount the share inside the zones.
This wont work. A non global zone can't be a NFS server. A global zone can be a NFS server but having a non global zones as its NFS client is definitely unsupported. The simple workaround is to use lofs to share filesystems between zones.
As already been said, there are two ways to get your goal:
1.) Attach the dataset to global zone and as LOFS to local zone:
2.) Use NFS share, using normal /etc/dfs/dfstab in global and /etc/vfstab in zone.
However, using LOFS to share one dataset into two local zones can be risky as hell, if both zones work on same data (read-write), Therefore I would use second opinion only.
However, using LOFS to share one dataset into two local zones can be risky as hell, if both zones work on same data (read-write)
This doesn't make sense. Having multiple processes accessing the same file in r/w mode might be risky regardless of whether the file system is local or not and regardless of the accessing processes running on the same kernel or not. You can lofs mount in read-only mode should you want to avoid that specific issue. On the other hand, it is extremely common to have NFS, cifs or lofs shares in r/w mode and this definitely serves a purpose. File locking is the usual way to avoid multiple processes concurrently accessing the same file.
Quote:
Therefore I would use second opinion only.
You really shouldn't. This is not supported (see NOTES in the mount_nfs manual page). It is well know to create kernel deadlocks, which are much "riskier as hell" than the previous solution you discarded.
Issue is : We have Solaris Global with 12 Zones and some have 15 Zones. All the OS version are10.
Is it possible to apply patch at Zone level instead of patching at Global level? Please let me know. (10 Replies)
Hi all - not really a problem as such, but just hoping someone can shed some light.
We point rexplorer to multiple Global zones and it works as expected. However, each Non-Global zone get around a hundred of root su'ing to root messages, i.e.:
SU 07/14 03:02 + ??? root-root
SU 07/14 03:02 +... (5 Replies)
Heyas
At home i have 1 nas with 3 shares, of which i used to mount 2 of them using a script with hardcoded password and username in it.
EDIT: Turns out, its not the script, but 'how i access' the nas share.. (-o user=XY,password=... VS. -o credentials=...).
Figured about credential files,... (0 Replies)
Hello Admins,
Does anyone has any idea on how to assign no. of cpu and memory to non-global zones on solaris 10.....
We have few zones in our environment. We wanted to assign memory and no of cpu's ..(e.g. 4Gb / 2 CPU's)
Thanks... (4 Replies)
Hi Guys,
My requirement is I have file called /opt/orahome/.profile in non global zone.
PATH=/usr/bin:/usr/ucb:/etc:/usr/sbin:/usr/local/bin:/usr/openwin/bin:.
export PATH
PS1="\${ORACLE_SID}:`hostname`:\$PWD$ "
export PS1
EDITOR=vi
export EDITOR
ENV=/opt/orahome/.kshrc
export ENV... (1 Reply)
Hi,
I have Global zone and 2 users: root and app.
I know password root and app. When a user app log - putty displays
Access denied
Using keyboard-interactive authentication.
In file /etc/security/policy.conf
I set CRYPT_DEFAULT=2a
And in file /etc/ssh/sshd_config
I set PermitRootLogin... (1 Reply)
Hello,
I have a few Ubuntu 9.10 laptops I'm trying to learn NFS sharing with. I am just experimenting on this right now, so no harsh words about the security of what I'm playing with, please ;)
Below are the configs
/etc/exports on host
/home/woodnt/Homeschool... (2 Replies)