Users home directories

We have a few QNX hosts at work. We decided to dedicate one machine as a
server where home directories reside, where compilation take place and,
where all sources are kept and backed up. In order for users to log in
on their host with the same home directory as the one they have on the
server, we’ve used this command:

$ ln -s /net/qnxserver/home/ /home/

We’ve tried with “ln -Ps” but the link is lost at the next reboot.

Question: Is this the QNX-way of sharing a home directory among several
hosts?

On other Unix system, I’ve used automount to achieve this, but for QNX I
thought using qnet services was the best way.

Any suggestions?

Bernard Leclerc

Denise Whittom et Bernard Leclerc <whittom-leclerc@sympatico.ca> wrote:

We have a few QNX hosts at work. We decided to dedicate one machine as a
server where home directories reside, where compilation take place and,
where all sources are kept and backed up. In order for users to log in
on their host with the same home directory as the one they have on the
server, we’ve used this command:

$ ln -s /net/qnxserver/home/ /home/<user

We’ve tried with “ln -Ps” but the link is lost at the next reboot.

If you want to go with “ln -Ps”, you would need to put that command
in the initialization script for each machine that is booting. Probably
the place to put it would be in /etc/rc.d/rc.sysinit

Question: Is this the QNX-way of sharing a home directory among several
hosts?

Looks fine to me.

On other Unix system, I’ve used automount to achieve this, but for QNX I
thought using qnet services was the best way.

Could use QNET, could use NFS.

-David

QNX Training Services
http://www.qnx.com/support/training/

Hi,
I'd prefer choose to include it in a /etc/rc.d/rc.local (don't forget to set the x bit) file.
Just a little tip:
rename /home to /local_home on each 'remote' node
write your /etc/rc.d/rc.local file like that:

......
function waitfor {
    typeset -i i=0
    while test $i -lt 60 -a ! $1 -ef $1 ; do
        sleep 1;
        let i=i+1;
    done
    unset i
}

waitfor /net/qnx_server

if test -a /net/qnx_server; then
    ln -sfP /net/qnx_server/home /home;
else
    ln -sfP /local_home /home;
fi   
......


Don't forget:
$ chmod +x /etc/rc/d.rc.local

David Gibbs wrote:
Denise Whittom et Bernard Leclerc <> wrote:
We have a few QNX hosts at work. We decided to dedicate one machine as a
server where home directories reside, where compilation take place and,
where all sources are kept and backed up. In order for users to log in
on their host with the same home directory as the one they have on the
server, we've used this command:

           $ ln -s /net/qnxserver/home/ /home/

We've tried with "ln -Ps" but the link is lost at the next reboot.

If you want to go with "ln -Ps", you would need to put that command
in the initialization script for each machine that is booting. Probably
the place to put it would be in /etc/rc.d/rc.sysinit

Question: Is this the QNX-way of sharing a home directory among several
hosts?

Looks fine to me.

On other Unix system, I've used automount to achieve this, but for QNX I
thought using qnet services was the best way.

Could use QNET, could use NFS.

-David


“David Gibbs” <dagibbs@qnx.com> wrote in message
news:a5ljms$iu1$1@nntp.qnx.com

Denise Whittom et Bernard Leclerc <> whittom-leclerc@sympatico.ca> > wrote:

Question: Is this the QNX-way of sharing a home directory among several
hosts?

Looks fine to me.

On other Unix system, I’ve used automount to achieve this, but for QNX I
thought using qnet services was the best way.

Could use QNET, could use NFS.

Under QNX4 file I/O, was identicle across the network as it was locally,

notwithstanding speed. It seems that both NFS & QNET behave slightly
differently then local file I/O. Will QNX6 ever support file I/O across the
network as transparently as QNX4?


Bill Caroselli – 1(626) 824-7983
Q-TPS Consulting
QTPS@EarthLink.net

Could use QNET, could use NFS.

Under QNX4 file I/O, was identicle across the network as it was locally,
notwithstanding speed. It seems that both NFS & QNET behave slightly
differently then local file I/O. Will QNX6 ever support file I/O across the
network as transparently as QNX4?

You have a test case where either NFS or Qnet are not allowing the remote
file I/O to behave just like local? I share my $HOME dir to all of my
development boxes from my Sparc workstation via nfs. Never had a problem.
I have also setup full “network root” boots without an issue using both
nfs and qnet. I have actually found that since the network path space
falls into the standard path space (ie: /net/node instead of //node/), more
things from the UNIX world work correctly.

(standard UNIX path space has //node/bin as /node/bin, this broke a lot
of things on QNX4, like bash)

chris


Chris McKillop <cdm@qnx.com> “The faster I go, the behinder I get.”
Software Engineer, QSSL – Lewis Carroll –
http://qnx.wox.org/