Program sharing on NFS

Thread Tools Search this Thread
# 1  
Program sharing on NFS

I am not sure is this plausible...

I have just built a NFS master server on a solaris box (secured by NIS)
And I have a dozen of virtual machines running 32 and 64 bits linux and windows, running different types of servers.

I am not sure is it possible to move most of the programs to the NFS and have symbolic links pointing to the location on the NFS. This way all vm will be able to have the same versions of program for consistency (such as all Win2008R2 will have a symbolic link "shortcut", or /bin directory in Linux will be replaced by symbolic links pointing to a bin directory on NFS).

for example, a simple "ls" I already have 3 different versions on 3 different 64-bit linux distributions, so I would like to "standardize" it for a consistent development environment

Last edited by xstaci; 02-12-2013 at 11:48 PM..
# 2  
Yes you can, this is routinely done.
# 3  
so... do I create different groups for different os/architectures and give them permission to access its resources, so that linux ia32 cannot access x64 resources?
# 4  
You can only centralize as much as the hardware/OS allows you. There is no need to export/mount linux-x64 programs on ia32 machines.

So you should organize the nfs share, and export the programs that are relevant for certain architecture only to those machines.
I'd try to have the same machines similar IP addresses, e.g.:
linux x64: 192.168.0.x
ai32: 192.168.1.x

then on NFS server, you'd have the programs for each arch:


Define network groups (@linux64, @ai32, ...) in /etc/netgroup and exports:
/nfs/linux-x64 @linux64(options)
/nfs/ai32 @ai32(options)

Restart nfs services, then on client machines you mount them where you want, e.g. on linux machine in /etc/fstab:
nfsserver:/nfs/linux-x64 /usr/common options

You could tighten the security with hosts.{deny,allow} if you are really paranoid.

These instructions are very crude, I admit, but you get the idea.
# 5  
As I am quite green to un*x, can somebody tell me how do I achieve that?

For example, I want to install emacs on NFS. Its a .tar.gz file and it is quite large and got dir and files to be install to different directories

What do I do first?
Do I install in one machine first? or do I have to arrange everything manually? or do I have to write script for the other machines for installation? any tools available for these tasks?
Can someone please guide me thru? Thanks very much.
# 6  
Originally Posted by xstaci
for example, a simple "ls" I already have 3 different versions on 3 different 64-bit linux distributions, so I would like to "standardize" it for a consistent development environment
You may or may not be able to do this. Linux commands and utilities are portable at the source code level but not necessarily portable at the binary level.
# 7  
There is some special work overhead with applications on NFS, i.e. you cannot simply install a package (RPM or PKG) on a master server.
I think it only will pay back if over 50 systems share one application.
If you have a zoo of virtual systems where every system is different, you better install applications locally on each system.

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #16
Difficulty: Easy
There are a total of 25 pins in the traditional parallel port of a computer system.
True or False?

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Single LUN or multiple smaller LUNs for NFS sharing

We are using Solaris 11 Logical Domains. We NFS share a disk backup area from one LDom to other servers. The share is on a single 1.5 Tb LUN presented to the Control Domain, and as a virtual disk on the NFS server LDom. A 1.5 Tb zpool has been created on the LDom. We now need to provide more disk... (2 Replies)
Discussion started by: SallyB
2 Replies

2. UNIX for Dummies Questions & Answers

Sharing a network mount preferably with NFS

Hello, I would like to share a 9p (Plan 9) passthrough/share to a VM via NFS (using a guest as an NFS server to share a directory from the host) At the moment I am getting the error message: 'exportfs: /share does not support NFS export'... (2 Replies)
Discussion started by: Scratch
2 Replies

3. Red Hat

Nfs client mount RPC Error: Program not registered.

Hello, I was having few issues on my linux box, I am getting this error whenever I tried to mount a share on a client linux host. # mount -t nfs /mnt mount: mount to NFS server '' failed: RPC Error: Program not registered. # I see the error and I... (4 Replies)
Discussion started by: bobby320
4 Replies

4. Solaris

NFS sharing across platforms

Hi, Not sure where to post this, I'm sorry and need suggestion if this is wrong section. we are running NFS Server on Solaris 10 and client box is HP-UX 11.11 (Can't apply latest patches/upgrades as in-house appln. doesn't allow) I am able to mount NFS shares from this Solaris box onto all... (4 Replies)
Discussion started by: prvnrk
4 Replies

5. Solaris

Problem with nfs sharing, permission denied for writing.

Hi I have a problem with NFS sharing on solaris 10, the problem simply with write permission, after do the following command, the folder still not writable from machine 2 : on machine 1 ( : share -F nfs -o rw /u01/portalrepository/ on machine 2 ( : mount -F nfs... (35 Replies)
Discussion started by: Al-Mothafar
35 Replies

6. High Performance Computing

sharing web files via NFS mount

I'm planning to load balance 2 web servers. I'm considering mounting an NFS share between the 2 servers so they can share the data. My question is: does this setup offset some of the benefits of load balancing? although there are 2 web servers, they both still access a single NFS server. Wouldn't... (2 Replies)
Discussion started by: gaspol
2 Replies

7. Web Development

NFS file sharing among web servers

I'm exploring the possibility of load balancing 2 web servers and have both access an NFS share on an NFS server. I'm wondering which types of data would need to reside on the webservers and the NFS server. Would the entire web directory (HTML, CSS, images, documents) all reside in the NFS server... (1 Reply)
Discussion started by: gaspol
1 Replies

8. Linux

Problem in sharing Symlink via NFS

Hi, I have created symlink under /. It is /latest Pointing to /home/users/neel_prog_V1.0. (Note: I have created this symlink so that when version get changed I will need to change only symlink instead of doing changes in /etc/exports.) I have shared this symlink with NFS. in /etc/exports I... (0 Replies)
Discussion started by: neel.gurjar
0 Replies

9. Filesystems, Disks and Memory

Sharing ISO images over NFS

I've got a bunch of application CDs that I use here at home under Wine. They are Windows applications and as such, some of them want to see the volume label in order for the application to run. So... just copying the CD-ROM contents to a directory doesn't work. With that in mind, what I've done... (1 Reply)
Discussion started by: deckard
1 Replies

10. IP Networking

sharing of IP address for load sharing avoiding virtual server & redirection machine

I have RedHat 9.0 installed on three of my servers (PIII - 233MHz) and want that they share a common IP address so that any request made reaches each of the servers. Can anyone suggest how should I setup my LAN. I'm new to networking in Linux so please elaborate and would be thankful for a timely... (2 Replies)
Discussion started by: Rakesh Ranjan
2 Replies

Featured Tech Videos