
私はNFS「パーティー」に関連するものを経験しました。しかし、今日私は何か他のものを見て混乱しました。 「/foo」(NFS共有)を再マウント/マウント解除するまで、マウントされたディレクトリ自体は表示されません(/foo、/では表示されません)。これはAIX 6.1にあります。
## grep -p '^/foo' /etc/filesystems
/foo:
dev = "/foo_for_client"
vfs = nfs
nodename = fooserver
mount = true
options = rw,bg,hard,intr,sec=sys
account = false
#df
(...)
fooserver:/foo_for_client - - - - - /foo
# shows that "fooserver:foo_for_client" is mounted on /foo mount-point
# BUT each field instead of showing size, %, etc, shows "-" instead
(...)
## cd /
## ls -ld /foo
ls: 0653-341 The file /foo does not exist.
# ??
## ls -l /
(...)
fmm
fnn
#and here, NO 'foo' at all. No mount-point (nor mounted) .
#And there is also no "stalling" of the display while it fetches '/foo' infos
# (ie, the rest of the '/' dir content appears quickly)
# ??? this '/foo' mount-dir seems to be somehow "hidden" (NFS pb?) (see it reappear below)
fpp
fqq
(...)
## umount /foo
# no errors.
## cd /
## ls -ld /foo
drwxrwxrwx 2 user user 256 Jan 01 1970 /foo
# ?? the mount-point is there and does exist? (even though its date is suspicious)
# why was it 'hidden' from '/' standpoint while the nfs was mounted?
## mount /foo
# no errors, and everything is ok again...
#df
(...)
fooserver:/foo_for_client 220200960 69811632 69% 1122 1% /foo
# Now each field appears as well
(...)
nfsファイルシステムがマウントされると、「/foo/.」が「/foo」マウントディレクトリに置き換わることを理解しています。 NFSに問題があると、「内部」コンテンツが利用できなくなる可能性があります。
しかし、私が理解できないのは、この "/foo"を親ディレクトリには表示できないことです。 (「/」から「/foo」サブディレクトリエントリがあることを知ってから、lsを介してそれを表示する必要があります(NFSをマウントするときはNFS情報を使用するか、NFSをマウントするときは「/」パーティション情報を使用します)。 :単に「/foo」(マウントされたディレクトリやマウントされたディレクトリも)を見ることはできません。
私はこれが部分的に "ls"が "/foo"ディレクトリに関する情報を照会するときに情報を返さないNFSのためだと推測します。しかし、この場合、「/」の「ls -l」がそのサブディレクトリのタイムアウトなしで自動的に失敗するのはなぜですか? (ls -l試みを「バインディング」するのを忘れました...)