Using ln -s with NFS across two drives?

Thread Tools Search this Thread
Homework and Emergencies Emergency UNIX and Linux Support Using ln -s with NFS across two drives?
# 1  
Old 12-28-2010
Using ln -s with NFS across two drives?


I have a server with a large RAID partition on it.

The raid partition is split into a few directories which are then shared individually via NFS.

Unfortunately the whole array is filling up and I need to do a little bit of juggling till I can upgrade the whole array to new disks.

I have therefore added some spare available drives to make a second array on the same machine, I do not want to share this array via NFS as that would require reconfiguring the clients and then reconfiguring them back when the change gets unwound.

So what I wanted to do is move one of the directories from the original Array (Array 1) to the new temporary Array (Array 2) and set a symbolic link thus....

ln -s /mnt/path/to/array1 /mnt/path/to/array2

This gets seen and works fine on the server but of course as the clients can't see /mnt/path/to/array2 they fail.....

Is there an obvious fix/fudge I'm missing?

Thanks and Season Greetings!!
# 2  
Old 12-28-2010

NFS does not allow you to cross mount points, which it appears your symbolic links are doing. Are the clients NFS mounting /mnt/path/to/array1? Or /mnt/path/to/array1/directory7? Is this configured on the clients as a static mounted (in /etc/*fstab) or automounted share?

# 3  
Old 12-28-2010
The mounts go to the directories in fstab...

for example:-

Code:   /mnt/directory1 nfs defaults 0 0   /mnt/directory2   nfs  defaults 0 0

# 4  
Old 12-28-2010
You are not going to like it, but you are going to have to go with reconfiguring each client. You'll just have to decide if you are going to go with an automount option, or (if your system supports binding mounts), change to a per-directory scheme, something like:
Code:   /mnt/directory1 nfs defaults 0 0   /mnt/directory1 nfs defaults 0 0

To support this, you would have to add the following in /etc/fstab on your server (in blue):
array1partition /mnt/to/array1 extN defaults 1 2
/mnt/to/array1/directory1 /share/directory1 bind defaults 0 0
/mnt/to/array1/directory2 /share/directory2 bind defaults 0 0

And change /etc/exports to share out each directory properly.
Just update /etc/fstab when you move directoryN.
This User Gave Thanks to m.d.ludwig For This Post:
# 5  
Old 12-28-2010
I was afraid that was the case......

Since I posted the original question I came across this thread which suggests SMB shares will traverse boundries.

Mounting NFS of a symbolic link - Ubuntu Forums

If I'm going to have to reconfigure the clients I may go that way....
# 6  
Old 12-28-2010
Just remember that SMB supports window-based file permissions, which may, or may not, work properly when mapped to unix-based file permissions.
This User Gave Thanks to m.d.ludwig For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

NFS write error on host xyz: Stale NFS file handle - Solaris 10

Oct 13 12:19:15 xyz nfs: NFS write error on host xyz: Stale NFS file handle. Oct 13 12:19:15 xyz nfs: (file handle: 68000000 1bc5492e 20000000 377c5e 1ce9395c 720a6203 40000000 bdfb0400) Oct 13 12:19:15 xyz nfs: NFS write error on host zyz: Stale NFS file handle. Oct 13 12:19:15 xyz nfs: ... (5 Replies)
Discussion started by: psychocandy
5 Replies

2. Shell Programming and Scripting

Mount NFS Share On NFS Client via bash script.

I need a help of good people with effective bash script to mount nfs shared, By the way I did the searches, since i haven't found that someone wrote a script like this in the past, I'm sure it will serve more people. The scenario as follow: An NFS Client with Daily CRON , running bash script... (4 Replies)
Discussion started by: Brian.t
4 Replies

3. UNIX for Dummies Questions & Answers

ACL (POSIX and NFSv4) Support over NFS shared drives on different Unix platforms

Hello, I have a question regarding ACLs and their availability across different Unix platforms via NFS share. If I have an AIX/FreeBSD/Solaris/HP-UX client that has an nfs share from a different system mounted on it, will the ACLs on the nfs share be processed properly? My guess is that as... (2 Replies)
Discussion started by: bstring
2 Replies

4. UNIX for Dummies Questions & Answers

Want to improve the rsize and wsize of nfs mounted drives

Hi we have couple of nfs mounts between various linux servers. Recently i was wondering how to improve the performance by altering the parameters "msize" and "rsize" for nfs. In my machine i have determined the NFSSVC_MAXBLKSIZE_V2 = 8*1024 but kernel 2.6 supports upto 32k Optimizing NFS... (0 Replies)
Discussion started by: rakeshkumar
0 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. Solaris

All dependicies of nfs service is online but nfs is offline

Hi all in my server all nfs dependices are online but nfs client is offline root@BIWAPP1 # svcs -a|grep nfs disabled Sep_05 svc:/network/nfs/server:default online Sep_05 svc:/network/nfs/rquota:default online Sep_05 svc:/network/nfs/mapid:default online ... (9 Replies)
Discussion started by: spandhan
9 Replies

7. UNIX for Advanced & Expert Users

Linux w/ local admin mounting nfs drives securely?

Got a situation where some people in the network using Linux would like local admin rights. People have admin rights in Windows and the Linux users want more flexibility. They need to be able to mount some nfs drives. If they have local admin rights, even with root squash set for the nfs... (5 Replies)
Discussion started by: Frostybeard
5 Replies

8. Solaris

NFS write error on host : Stale NFS file handle

:confused:Hi all When i see in the /var/adm/messages, i saw the following error unix: NFS write error on host : Stale NFS file handle. unix: (file handle: 45ca415 3e7 a0000 2c7f6 3ebfc25f a0000 2 3e49) It is using sunOS 5.7. Is anybody know what is this error? Is is related to any network... (2 Replies)
Discussion started by: AirWalker83
2 Replies

9. Shell Programming and Scripting

how floppy disks, CDs and flash drives (pen drives) are accessed in UNIX

hi how floppy disks, CDs and flash drives (pen drives) are accessed in UNIX? thanks (0 Replies)
Discussion started by: nokia1100
0 Replies
Login or Register to Ask a Question

Featured Tech Videos