Solaris 9 Home Directory, Two Machines Sharing a NAS


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Solaris 9 Home Directory, Two Machines Sharing a NAS
# 8  
Old 09-27-2018
Reading MadeInGermany's post#5 I can see that he has a different perception of this problem than Jim and I.

So, questions:

Are both node 1 and node 2 both mounting the filesystem(s) on the NAS via NFS???

What type of NAS is this? Make/model?

Is this NAS intelligent enough to share NFS handles for filesystems AND control all file locking, file read/write, and file contention? If so, the NAS is itself acting as node 1 and your Solaris 9 machines are NFS clients node 2 and node 3, both mounting via NFS which is okay.

Question then is: When the filesystem(s) need checking/correcting, how is that done? Is the NAS capable of creating and formatting filesystem(s) itself, and running integrity checks?

Sorry for all the questions but MadeInGermany's post#5 has got me thinking that Jim and I have perhaps not comprehended the problem from your post#1 due to lack of detail.

Awaiting answers........

Last edited by hicksd8; 09-27-2018 at 06:23 AM..
This User Gave Thanks to hicksd8 For This Post:
# 9  
Old 09-27-2018
Thanks- I checked machine 1 only (since I have 2 shut down right now)
Code:
/etc/mttab

shows nfs for the NAS mounts.

Its an Iomega StorCenter ix4-200d

I don't know if its intelligent enough to share handles, but I can say, that most users uids on machine 2 had already been made to match those of machine 1. I create accounts locally on each machine.

I know I can log in to the NAS via a browser and create shares and typically, users generally create directories from the windows machines.

Does this help?

------ Post updated at 10:02 AM ------

Quote:
Originally Posted by jim mcnamara
Clarification:

We have two boxes. Box 1 is parent. Box 1 owns the filesystem. Box1 shares the filesystem via NFS or samba or whatever. Box 1 does not care who connects to the filesystem and then remote mounts it - via NFS. So you really have a proxy acting in box 1 in its very own kernel space when a request comes over the network. Box 1 controls entirely the NFS mounted disk, because it is actually physically mounted on box 1, not box 2.
Even though I moved the files off of Box 1 and on to the NAS?

Physically mounted? Box 1, Box 2, and the NAS are all connected through the switch. Box 1 and box 2 mount the NAS in exactly the same way as far as I can tell.

Does this change anything?
# 10  
Old 09-27-2018
How are filesystems from the former server which acted like a NAS exported ?
Is the same or similar configuration used during export from new NAS storage ?
Are some firewalls (ipfilter, ipnat) localy configured on solaris boxes (or any other clients to former solaris NAS box ) ?

Can you show output from following commands, issued from one of the solaris boxes.
Code:
showmount -e <your working acting NAS solaris box which you wish to migrate>
showmount -e <your NAS storage ip address>

When NAS storage is up, does it work on other operating systems like centos, or exhibits the similar behavior as on solaris boxes ?

What is the actual error when user tries to, for instance, ssh to a box ?

In most cases, for home directories automount is used on Solaris.

This is a nice article about automount :
Less known Solaris Features: /export/home? /home? autofs? - c0t0d0s0.org

Regards
Peasant.
This User Gave Thanks to Peasant For This Post:
# 11  
Old 09-28-2018
Your post#9 confirmed that my assumption in post#5 is right, and you should try my suggestion in post#3 to alter file ownership.
I forgot to mention that the "chown" requires "root=" permission on the NAS box (in the NFS exports), otherwise it will fail with error "Not owner".
These 2 Users Gave Thanks to MadeInGermany For This Post:
# 12  
Old 10-23-2018
So,

To change user jsmith from being user 67123 to 1012:
Code:
usermod -u 1012 jsmith
  find /home/jsmith -user 67123 -exec chown -h 1012 {} +

I think I like this (find) one because it sounds completely reversible to me.

If I were to do a recursive change, if files and directories owned by someone else happen to be in there, they would get changed, but then I would never know how to change back, not knowing who they had belonged to.
What does {} + do?
# 13  
Old 10-23-2018
While {} \; runs a chmod for each file, the {} + collects the filenames and, when long enough, runs a chmod with the collected argument list.
Fewer invocations of chmod => greater speed.
This User Gave Thanks to MadeInGermany For This Post:
# 14  
Old 10-25-2018
Just to confirm- is this the best way to change someone's uid? (what I said in #12) I don't want to break the account.
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. Solaris

NFS with a NAS: permanently inconsistent directory state across clients

Hi, I am having some NFS directory consistency problems with the below setup on a local (192.) network: 1. Different permissions (chmod) for the same NFS dir are reflected on different clients. 2. (more serious) an NFS dir created on client1 cannot be accessed on client2; this applies to some... (10 Replies)
Discussion started by: cosmojetz
10 Replies

2. Solaris

Sharing a local disk between to solaris machines

Hi, I recently added a disk on a solaris 9 and I wanted to make it accessible for another machine, using the same name here is what i did : On the machine holding the internal disk in vfstab i added the line /dev/dsk/c1t1d0s4 /dev/rdsk/c1t1d0s4 /SHARED2 ufs 2 yes ... (2 Replies)
Discussion started by: zionassedo
2 Replies

3. UNIX for Dummies Questions & Answers

ssh autologin issue when both machines are having same ~home directory

Hi, I have two machines. M1 and M2 and having a generic id catadm, these two machines having common mount of /u/catadm directory. with this setup, ssh autologin is failing for me and asking me to enter password when i try autologin using this generc id from M1 to M2 catadm-M1$ ssh... (3 Replies)
Discussion started by: rbalaj16
3 Replies

4. Solaris

NISuser home directory movement in Solaris

How to move home directory of NIS user from one system to another system in Solaris. Thanks & Regards Durgaprasad (1 Reply)
Discussion started by: durgaprasadr13
1 Replies

5. UNIX for Advanced & Expert Users

Mounting NAS Drive on solaris

Hi, Im running 32-bit solaris on sparc. We have a NAS(Network attached drive), with its IP address, username and password. I'd like to be able to mount it on the solaris machine, and unmount it. The best possibility would be able to mount it simulataneously on 2 or more systems. Please... (9 Replies)
Discussion started by: 0ktalmagik
9 Replies

6. IP Networking

Printer Sharing on a Mixed(Windows/Linux) Home Network

Sometimes you get the tiger...but sometimes he get you and this latest home network “project” of mine has gnawed on me pretty badly. Perhaps you can offer some technical help. It will be heartily appreciated. I have a small home network initially comprising two computers running Windows... (1 Reply)
Discussion started by: Annatar
1 Replies

7. HP-UX

sharing a directory

Im trying to simply share a directory on one unix server and mount that share on a different unix server. There is no "share" command like on sun. What is the command to create a share on HP-UX? (2 Replies)
Discussion started by: bski
2 Replies
Login or Register to Ask a Question