tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Bugs <bb1@humboldt.edu>
Subject: Update: mount directory mount point
Date: Wed, 08 Jun 2005 07:32:34 -0700 (PDT)	[thread overview]
Message-ID: <Pine.OSF.4.58.0506080704550.496036@axe.humboldt.edu> (raw)


I have been requested to make myself more clear, and
give my problem rather than ask for a solution.
I appologize for my vagueness.

We just migrated a server from an alpha 2100 (hostA)
to an ES40 (hostB).
There were 4 filesystems on hostA that were placed as
subdirectories on hostB:
hostA:
df
/dev/disk/dsk1g      5878109     2759618     2824585    50%    /u
/dev/disk/dsk4g     12183434     7872959     3701303    69%    /bhome1
/dev/disk/dsk8g     12183434     3461371     7503719    32%    /ohome1
/dev/disk/dsk9g      8057740     4838990     2815863    64%    /tech

hostB:
df
laurel#home        54730624    19492349    35113288    36%    /home

cd /home
ls -l
drwxr-xr-x   8 root     system      8192 Sep  8  2004 bhome1/
drwxr-xr-x   6 root     system      8192 Dec 16  2003 ohome1/
drwxr-xr-x   7 root     system      8192 Dec 16  2003 tech/
drwxr-xr-x 140 root     system      8192 May 31 09:14 u/

On hostB, I created sym links so software would not break:
cd /
l1 -l
lrwxrwxrwx   1 root     system         12 Oct 28  2004 bhome1@ -> /home/bhome1/
lrwxrwxrwx   1 root     system         12 Oct 28  2004 ohome1@ -> /home/ohome1/
lrwxrwxrwx   1 root     system         10 Oct 28  2004 tech@ -> /home/tech/
lrwxrwxrwx   1 root     system          7 Oct 28  2004 u@ -> /home/u/

The only thing that fails, is that some departments run nitely jobs
that test for "pwd", and it must equal what they expect to find
such as /u/jobs/bin. Instead, pwd displays /home/u/jobs/bin,
which causes their scripts to fail, and negate my advertisement
that this migration would be transparent.

My only workaround so far is a script, /local/bin/pwd:
#!/bin/tcsh

echo $cwd
exit

This give the desired results, but some users will have to
add the path /local/bin before /bin in their scripts.
Their jobs are submitted from an in-house job scheduler that
su's to the user, to execute their script. The /etc/csh.login
already has that setup, but I dont think that gets sourced
by "non logged in" jobs.
I know that in linux, the "mount --bind" would work.

I hope this explains my situation.
Thanks

Below was my original request.



Tru64 5.1B PK4 on an ES40

Hello,
I could not find the answer in the man pages, so here
is my question.
We wish to mount a subdirectory located in an advfs fileset
as its own mount point.

oak_local#local    47529432     9093988    38369368    20%    /local
there is a subdirectory called /local/student

We would like to mount /student as its own mount point, even though
/home/student is already mounted.

Is there is way of doing this?
Thanks...


Bugs

Operating Systems Analyst for unix systems
Humboldt State Univ.	Information Technology Services
Arcata, Calif.

email bb1@humboldt.edu


                 reply	other threads:[~2005-06-08 14:32 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox