Operating System - HP-UX
1827957 Members
2133 Online
109973 Solutions
New Discussion

How to create user in cluster nodes

 
Ming Zhao
Advisor

How to create user in cluster nodes

Hi Topguns,

Client want to add users whose home directory are in the shared LV of cluster, so that users don't loss any files in their home directory in case of failover. I can create users on the node which owns the shared LV now, and copy the password entries and paste to failover nodes via command vipw. I don't want create any home directory on the local file system/direcotry in failover nodes, because these local home directories don't make sense if no failover happening. Do somebody have other good solutions for this question?

Thanks in advance.
9 REPLIES 9
Sridhar Bhaskarla
Honored Contributor

Re: How to create user in cluster nodes

Hi,

What you are doing is fine. You can use "useradd" command on the failover box just to simply add the user without the homedirectory.

Look at the man page of 'useradd'.

I agree. It is even dangerous to create home directories because during the failover situation, it may fail if the users are logged onto the failover box as those directories would be busy.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
malay boy
Trusted Contributor

Re: How to create user in cluster nodes

we use NIS for this.Also we the home directory is part of the switch package.

hope this help.

regards
mB
There are three person in my team-Me ,myself and I.
Rajeev  Shukla
Honored Contributor

Re: How to create user in cluster nodes

Hi,
Use Automounter of AutoFS and mount the home directories on all systems. And when you add a user add it on all systems with the same home directory (same options). This way a user can login to any node in the cluster and will have his home directory same on all nodes in the cluster.

The other issue in this would be to deal with the password syncronization on all nodes in the cluster. Best way is to write a script to syncronize the password.

Rajeev
Stanimir
Trusted Contributor

Re: How to create user in cluster nodes

Hi!
I'm attaching here a package, created
for this goal by me. It works on our
cluster. There are README and man inside.

Regards,Stan
Ming Zhao
Advisor

Re: How to create user in cluster nodes

Hi Stan,

I can't open the attached file.

Thanks,
Stanimir
Trusted Contributor

Re: How to create user in cluster nodes

Hi!
Sorry for my being late.
So you could:

1. Put with FTP this depot-file for PC to your hp-ux:/opt - directory.

2. #tar -xvf ssser-1.1-sd-10.20.depot

3. Use SAM or swinstall to install the
product from /opt/ssser.

Regards,Stan
Ming Zhao
Advisor

Re: How to create user in cluster nodes

Stan,

I mean I can't download the attached file.

thanks,
Stanimir
Trusted Contributor

Re: How to create user in cluster nodes

:))
Ming Zhao
Advisor

Re: How to create user in cluster nodes

I still can't download it. Forget it. Thanks everyone very much.