1833866 Members
2671 Online
110063 Solutions
New Discussion

.. missing

 
Geoff Wild
Honored Contributor

.. missing

Trick question - I have a mounted file system at say:

/data/sap/QA/ARCHIVE

# cd /data/sap/IQA/ARCHIVE
# ll ..
.. not found

As a regular user (csh as shell):
> cd /data/sap/IQA/ARCHIVE
> cd ..
..: No such file or directory

bdf works, cd absolute works

what happened to ..

Rgds...Geoff

Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
9 REPLIES 9
harry d brown jr
Honored Contributor

Re: .. missing


I think SCO patented it, thus HP took it away.

live free or die
harry d brown jr
Live Free or Die
Florian Heigl (new acc)
Honored Contributor

Re: .. missing

Normally a filesystem between / and ARCHIVE is missing?
yesterday I stood at the edge. Today I'm one step ahead.
Florian Heigl (new acc)
Honored Contributor

Re: .. missing

also You have a typo there.
IQA/QA

;p
yesterday I stood at the edge. Today I'm one step ahead.
Geoff Wild
Honored Contributor

Re: .. missing

Sorry - typo - the mounted filesystem is:

/data/sap/IQA/ARCHIVE

Here's the tree:

# ls -ald data
drwxr-xr-x 4 root sys 96 Mar 10 2004 data

# cd data
# ls -ald sap
drwxr-xr-x 4 myadm sapsys 96 Jun 21 2004 sap

# cd sap
ls -ald IQA
drwxr-xr-x 3 myadm sapsys 96 Aug 22 2003 IQA

# cd IQA
# ls -ald ARCHIVE
drwxr-xr-x 3 myadm sapsys 73728 Jun 19 2004 ARCHIVE

I can't un mount - as it is part of a cluster package...

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
A. Clay Stephenson
Acclaimed Contributor

Re: .. missing

I'll ignore the IQA and QA typo. The ".." link has been removed.
If it ain't broke, I can fix that.
Geoff Wild
Honored Contributor

Re: .. missing

Okay - next question - how to get the .. back?
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Florian Heigl (new acc)
Honored Contributor

Re: .. missing

my bad - I knew I shouldn't believe that 'cannot remove . or ..'

using fsdb for that won't be fun I guess.
But I'll play around with it after work, I can't both try reproducing this here and come back tomorrow.
:))
yesterday I stood at the edge. Today I'm one step ahead.
Florian Heigl (new acc)
Honored Contributor

Re: .. missing

man fsdb_vxfs[*]:

pd If directory, inode parent directory.


I think chances are 100x higher You know how to do that than I do.

[*]disclaimer:
this is more risky than reseating a cpu in a running, non-OLA/R system[**].
[**]reseating a cpu in a running, non-OLA/R system will probably cause long-term system interruption and unemployment :)
yesterday I stood at the edge. Today I'm one step ahead.
Geoff Wild
Honored Contributor

Re: .. missing

Fixed - don't know if this was it or not, but:

# cat /etc/auto.direct (on all servers)
/data/sap/IQA/ARCHIVE svr031:/export/data/sap/IQA/ARCHIVE

had that - yet, filesystem was mounted as:

/data/sap/IQA/ARCHIVE on /dev/vg52/lvsaparchive

Incorrect...

exportfs was also incorrect:

/data/sap/IQA/ARCHIVE -access=svr041:svr042,root=svr041:svr042

What did I do?
exportfs -u /data/sap/IQA/ARCHIVE
umount /data/sap/IQA/ARCHIVE
mount /dev/vg52/lvsaparchive /export/data/sap/IQA/ARCHIVE

exportfs -i -o "access=svr041:svr042,root=svr041:svr042" /export/data/sap/IQA/ARCHIVE

Basically, I was telling autofs to mount /data/sap/IQA/ARCHIVE on /export/data/sap/IQA/ARCHIVE and yet there was no file system there - but a cd /data/sap/IQA/ARCHIVE took me to the local mount...

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.