NFS server on Legacy Container?


 
Thread Tools Search this Thread
Operating Systems Solaris NFS server on Legacy Container?
# 1  
Old 04-25-2012
NFS server on Legacy Container?

Hi All,

I have a problem as follows.

Historically, there was an Ultra10 workstation running Solaris 8 using automount to access NFS volumes on a Solaris 8 server.

The Ultra 10 was retired and the Solaris 8 server has been migrated to a Legacy Container (Solaris 8 Branded, whole root, excl IP) running under a Solaris 10 Global Zone. The Legacy Container has been running successfully for months.

Now we need to bring the Ultra10 workstation out of retirement and allow it to use its automount to get at volumes (/home and others) on the Legacy Container. Anyone in this community done this? I understand that a local zone cannot be a NFS server according to Oracle.

All filesystems in use everywhere are UFS.

I tried sharing the required local zone mount points from the global zone but this seems to give very odd results. (Makes some files available/visible but not others.)

Using Google I came across a package called SUNWzone-share-nfs but cannot find or download this from anywhere. Anybody used this? I don't know whether it is/was official Oracle/Sun or third-party.

Any advice welcomed.

Thx in adv,
Hicksd8

Last edited by hicksd8; 04-25-2012 at 11:23 AM..
# 2  
Old 05-09-2012
This is obviously a more difficult question than I thought. No replies!!!

So you migrate a server into a local zone and then remember you need to make some files in that local zone available via nfs. How do you do that??? (Forget the fact that I have a Legacy Container, what if it was all Solaris 10??)
Work-arounds welcome.
# 3  
Old 05-09-2012
Can you elaborate about "I tried sharing the required local zone mount points from the global zone but this seems to give very odd results. (Makes some files available/visible but not others.)"

This should just work.
# 4  
Old 05-10-2012
Thank you Jlliagre,

I'll try it again now you've said that. It seemed that the "share" showed some files to the client but not all. However, it might have confused me at the time. I'll try it again.

However, I've read several places that if you share files in a local zone from the global zone that it could affect the local zone booting (getting stuck) and shutting down (getting stuck). Have you actually done this?

I also wondered about physically moving the files to be shared up to the global and creating a symbolic link back to the local zone so that local zone users could see them too. Comments on that one?

Or vice versa, leave the files to be shared in the local, create a link at the global zone and share that.

As I said previously, I'm looking for someone who's done it already. Can you help me.

Last edited by hicksd8; 05-10-2012 at 07:47 AM..
# 5  
Old 05-10-2012
Quote:
Originally Posted by hicksd8
I'll try it again now you've said that. It seemed that the "share" showed some files to the client but not all. However, it might have confused me at the time. I'll try it again.
That would be a bug, unless perhaps with removed files that a process has still open. Make sure you are up to date with patches.
Quote:
However, I've read several places that if you share files in a local zone from the global zone that it could affect the local zone booting (getting stuck) and shutting down (getting stuck). Have you actually done this?
I'm not sure to understand your setup.
  • Sharing a non global zone file system is unsupported.
  • "Remotely" mounting a global zone NFS file system on a non global zone is unsupported.
  • Using lofs to have global zone directories visible in a non global zone is, as far as I know, supported without restrictions. Having these directories shared by the global zone with NFS shouldn't affect the non global zone. However, when you shutdown a zone, its file systems are unmounted and perhaps can there be file busy situations here.
Quote:
I also wondered about physically moving the files to be shared up to the global and creating a symbolic link back to the local zone so that local zone users could see them too. Comments on that one?
Symbolic links do not cross filesystem name space. I'm not sure to get "moving the files up to the global", they are already in the global zone (too), aren't they ?
Quote:
Or vice versa, leave the files to be shared in the local, create a link at the global zone and share that.
Symbolic would be resolved by the NFS client so won't see the non global zone files.
This User Gave Thanks to jlliagre For This Post:
# 6  
Old 05-10-2012
Thank you Jlliagre,

This is immensely useful stuff. I really value your knowledge on this.

Quote:
Symbolic links do not cross filesystem name space. I'm not sure to get "moving the files up to the global", they are already in the global zone (too), aren't they ?
I want to "share" files below the "zonepath" point, ie, residing in the local zone. (This is a full root zone if that's significant.)

I was considering moving the files to above the zonepath and then sharing them from there but then local zone users need to see them too. Hence a symbolic link (or a hard link since the local zone is not on its own fs) to get local zone users not to see the files missing.

This is a production box so I can't just reboot zones when i like just to test this.

As I said, I've seen in a number of places that sharing files below a zonepath can screw up the zone boot process but it doesn't say how.
I haven't comprehensively tested sharing such from the global zone and then trying to shutdown and reboot the local zone in case it does screw up. Hence the question to find out what the rest of the planet knows about this.
# 7  
Old 05-10-2012
Quote:
Originally Posted by hicksd8
I was considering moving the files to above the zonepath and then sharing them from there but then local zone users need to see them too. Hence a symbolic link (or a hard link since the local zone is not on its own fs) to get local zone users not to see the files missing.
Instead of a doomed symbolic or hard link, what you might do is manually lofs mount your global zone directory to some directory under the zonepath.
something like:
Code:
 mount -F lofs /global/share /zones/myzone/root/share

This User Gave Thanks to jlliagre For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. AIX

AIX NFS Server and NFS Client

Hi 2 ALL, try to run NFS Server in AIX 7.1 : 1. Step by step on NFS Server node mkdir /tmp/test chgrp staff /tmp/test chmod 775 /tmp/test-- create export directory (fs) mknfsexp -d /tmp/test -t ro exportfs -va show mount -e :/# exportfs -av exports: 1831-187 re-exported /tmp/test... (4 Replies)
Discussion started by: penchev
4 Replies

2. HP-UX

HP9000 Container - NFS Issue

I am running HP9000 Containers version A.03.01. I have the container up and running. I now need to mount an exported file system from another HPUX server with both read and write permissions. I can get the mount okay but from the container I cannot read or write properly to the mounted file... (2 Replies)
Discussion started by: PaleRider
2 Replies

3. UNIX for Advanced & Expert Users

NFS on a Solaris 9 server

Hello everyone!! Long time, no see!! I have an issue with a Solaris server that I am working with. I am trying to set up a backup solution for someone that will involve a Solaris 9 server with NFS enabled allowing a Windows machine to map a drive to it (NFS Maestro). NFS Maestro appears... (3 Replies)
Discussion started by: Jody
3 Replies

4. HP-UX

HP-UX: LVM migration from legacy to agile addressing onto a failover server

Hi there! I'm having problems migrating and vgimport onto a different server. Original server uses the legacy DSF naming (ctd naming like /dev/dsk/c0t1d0) and the new server where i'm migrating those luns to is using the Agile addressing (i.e persistent DSF i.e. /dev/disk/diskxxx) Importing a... (1 Reply)
Discussion started by: ilan
1 Replies

5. Solaris

Solaris 9 as a nfs client -- centos as a nfs server.

Hello, I have a centos as nfs server, its name is centos_A. After I finish the setup of the nfs server, the other linux can access this nfs server immediately via /net/centos_A/* But, My solaris 9 can not access /net/centos_A/* immediately. I have to leave /net/centos_A, and wait for about... (1 Reply)
Discussion started by: bruceharbin
1 Replies

6. UNIX for Dummies Questions & Answers

NFS Server

How can i create a nfs share in Windows? (4 Replies)
Discussion started by: proactiveaditya
4 Replies

7. Solaris

NFS write failed for server.....error 11 (RPC: Server can't decode arguments)

Hello! I have a Linux nfs server (called server100 below) with a export nfs. My problem is that the Solaris client (called client100 below) doesn't seems to like it. In the Solaris syslog I got following messages (and after a while the solaris client behave liked its hanged/to buzy). Also see... (3 Replies)
Discussion started by: sap4ever
3 Replies

8. UNIX for Advanced & Expert Users

NFS server failed

Hello, We have an NFS problem : when we try to automount or mount a share file system to a client we have the following error : NFS acces failed for server xxxxx : error 7 (RPC : Authentication error). We've have this error after the reboot of the client. Rerun the automount daemon... (1 Reply)
Discussion started by: christophe
1 Replies

9. UNIX for Dummies Questions & Answers

NFS and windows2000 Server

Hello, We use an WIN2000 NT Server and some Unix (Scitex Brisque) in our prepress network. We want to create a folder onto the unix machine which is visible for the NTServer. The nfs apllication is Disk Acces. The people at scitex told me to that I'd to make an export folder so the unix... (3 Replies)
Discussion started by: Vanstraelen
3 Replies
Login or Register to Ask a Question

Featured Tech Videos