Operating System - HP-UX
1820880 Members
3500 Online
109628 Solutions
New Discussion юеВ

vi hangs on NFS mounted files

 
Ravi_8
Honored Contributor

vi hangs on NFS mounted files

Hi, all
I have a strange problem on 11.0
vi works fine on any of files except the NFS mounted files. I can open NFS files using cat/more. but when i used vi the screen hangs, not able to open any NFS mounted files.
can anybody help me...

never give up
7 REPLIES 7
David Lodge
Trusted Contributor

Re: vi hangs on NFS mounted files

this could be a number of problems...

THe major difference 'twixt vi and cat/more etc is that vi copies the file to a temporary area (iirc /var/tmp) first, and works on that file.

Can you manually copy the file?

Is /var/tmp or /var full?

Any network problems?

HTH

dave
Eugen Cocalea
Respected Contributor

Re: vi hangs on NFS mounted files

Hi,

Most probably, your temporary directory (/tmp or /var/tmp) is full.

Can you edit the file(s) with other editor?

E.
To Live Is To Learn
Roger Baptiste
Honored Contributor

Re: vi hangs on NFS mounted files

Ravi,

Are you able to vi local files?? Check
/var/tmp .

What is the size of the file you are trying
to vi? Is there a problem in vi'ing even
a small file on the NFS fs?

Have a look at your syslog.file to see
whether there any NFS error messages being
logged.

R-
Take it easy.
Ravi_8
Honored Contributor

Re: vi hangs on NFS mounted files

Hi,
/tmp. /var have sufficient space, ntework is fine, system can mount NFS filesystems without any problem. and i can vi any local files except these NFS files. size of files are very small(a small c programs)
never give up
Roger Baptiste
Honored Contributor

Re: vi hangs on NFS mounted files

Ravi,

Can you copy one of these
problem files to your local FS and then vi them?? Just
want to make sure, whether
the files themselves can
be accessed in total.
Also, check in glance on
what WAIT state is the vi
process hanging? That will
defintely give a clue .

HTH
raj
Take it easy.
G. Vrijhoeven
Honored Contributor

Re: vi hangs on NFS mounted files

Hi ravi,

Do you have sufficient rights to edit an file with vi over NFS. UID's on files might differ.

just a wild guess.

Re: vi hangs on NFS mounted files

Are you using disk quota's? if so try turning quota's off and give it a try.

take a look a /var/preserve. Try cleaning it out.