1754965 Members
3218 Online
108828 Solutions
New Discussion юеВ

NFS file system

 
John Jayaseelan
Super Advisor

NFS file system

Hi,

The Windows PC accessing a directory from the HP-UX NFS file system is intermittently crashing. The server was rebooted and the NFS software was restarted. The following are the NFS process on the server.

ps -ef|grep nfs
root 780 0 0 Nov 22 ? 0:00 nfskd
root 1885 1884 0 Nov 22 ? 0:02 /usr/sbin/nfsd 4
root 1901 1 0 Nov 22 ? 0:38 /usr/sbin/rpc.pcnfsd
root 1884 1 0 Nov 22 ? 0:02 /usr/sbin/nfsd 4
root 1889 1884 0 Nov 22 ? 0:02 /usr/sbin/nfsd 4
root 1891 1884 0 Nov 22 ? 0:02 /usr/sbin/nfsd 4

Thanks,
John Jayaseelan
7 REPLIES 7
Steven E. Protter
Exalted Contributor

Re: NFS file system

The nfsstat command will allow you to assess the health of the nfs setup on the server.

There also may be errors logged in /var/adm/syslog/syslog.log

If the PC is crashing you might want to take a look at the PC side. What add in software are we using on the PC? What is the OS? What is the networking setup?

If you reboot the server while the PC is mounted, it should lose its connection or lock up. That depends whether the nfs mount was hard or soft. Again, the first point of investigaton after the logs I've pointed out is the PC.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Mark Greene_1
Honored Contributor

Re: NFS file system

Run this on your HP system:

UNIX95= ps -efH|head -1; UNIX95= ps -efH|egrep "inetd|rpc|mount|nfs"|grep -v grep; rpcinfo -p|egrep "service|nfs"; showmount -e; mount -p

this will show the services running and which directories are set for export and what directories are being imported. Post the results back here.


mark
the future will be a lot like now, only later
John Jayaseelan
Super Advisor

Re: NFS file system

Hi,

The following are the results.

UID PID PPID C STIME TTY TIME CMD
root 780 0 0 Nov 22 ? 00:00 nfskd
root 775 1 0 Nov 22 ? 00:03 /usr/sbin/rpcbind
root 926 1 0 Nov 22 ? 00:00 /usr/sbin/inetd
root 859 1 0 Nov 22 ? 00:00 /usr/sbin/rpc.statd
root 865 1 0 Nov 22 ? 00:02 /usr/sbin/rpc.lockd
root 1901 1 0 Nov 22 ? 00:42 /usr/sbin/rpc.pcnfsd
root 1373 1 0 Nov 22 ? 00:04 /opt/dce/sbin/rpcd
root 1884 1 0 Nov 22 ? 00:02 /usr/sbin/nfsd 4
root 1885 1884 0 Nov 22 ? 00:02 /usr/sbin/nfsd 4
root 1889 1884 0 Nov 22 ? 00:02 /usr/sbin/nfsd 4
root 1891 1884 0 Nov 22 ? 00:02 /usr/sbin/nfsd 4
root 1877 1 0 Nov 22 ? 00:05 /usr/sbin/rpc.mountd
program vers proto port service
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
150001 1 udp 805 pcnfsd
150001 2 udp 805 pcnfsd
150001 1 tcp 806 pcnfsd
150001 2 tcp 806 pcnfsd
export list for cctest01:
/cdrom (everyone)
/ultima2 (everyone)
/home/ultima (everyone)
/home/proadm (everyone)
/ultima (everyone)
/home/informix/unloads (everyone)
/home/informix (everyone)
/home/informix/dump (everyone)
/dev/vg00/lvol3 / vxfs log 01
/dev/vg00/lvol1 /stand hfs defaults 00
/dev/vg00/lvol8 /var vxfs delaylog 00
/dev/vg00/lvol9 /var/adm/sw vxfs delaylog 00
/dev/vg00/lvol7 /usr vxfs delaylog 00
/dev/vguv/lvuv_inst /usr/u1 vxfs delaylog 00
/dev/vguv/lvuv_d02 /users2 vxfs delaylog 00
/dev/vguv/lvuv_d01 /users1 vxfs delaylog 00
/dev/vgult/lv_ultima2 /ultima2 vxfs delaylog 00
/dev/vgult/lv_ultima /ultima vxfs delaylog,nodatainlog 00
/dev/vg00/lvol6 /tmp vxfs delaylog 00
/dev/vgtest/lvtest1 /testlv1 vxfs delaylog 00
/dev/vgult/lvult_home /swhome vxfs delaylog 00
/dev/vgult/prov9.1B /prov9.1B vxfs delaylog 00
/dev/vgpatch/lvpatch /patches vxfs delaylog 00
/dev/vg00/lvol5 /opt vxfs delaylog 00
/dev/vginf/lvinf_test /opt/ixapplications_test vxfs delaylog 00
/dev/vginf/lvinf_code /opt/ixapplications vxfs delaylog 00
/dev/vginf/lvinf_inst /opt/informix vxfs delaylog 00
/dev/vg00/lvol4 /home vxfs delaylog 00
/dev/vginf/lv_unload /home/informix/unloads vxfs delaylog 00
/dev/vginf/lvdump /home/informix/dump vxfs delaylog 00
/dev/vgult/lv_bi /bi_ult vxfs delaylog 00
ccprod01:/ultima /hosts/ccprod01/ultima nfs defaults,NFSv3 00

Thanks
John Jayaseelan
John Jayaseelan
Super Advisor

Re: NFS file system

Steven

The following is the output of nfsstat command.

/root $ nfsstat

Server rpc:
Connection oriented:
calls badcalls nullrecv badlen xdrcall dupchecks dupreqs
0 0 0 0 0 0 0
Connectionless oriented:
calls badcalls nullrecv badlen xdrcall dupchecks dupreqs
57676 0 0 0 0 0 0

Server nfs:
calls badcalls
57676 0
Version 2: (453 calls)
null getattr setattr root lookup readlink read
1 0% 226 49% 0 0% 0 0% 0 0% 0 0% 0 0%
wrcache write create remove rename link symlink
0 0% 0 0% 0 0% 0 0% 0 0% 0 0% 0 0%
mkdir rmdir readdir statfs
0 0% 0 0% 0 0% 226 49%
Version 3: (57223 calls)
null getattr setattr lookup access readlink read
368 0% 22442 39% 0 0% 5630 9% 5 0% 9 0% 6644 11%
write create mkdir symlink mknod remove rmdir
0 0% 0 0% 0 0% 0 0% 0 0% 0 0% 0 0%
rename link readdir readdir+ fsstat fsinfo pathconf
0 0% 0 0% 20021 34% 264 0% 1496 2% 344 0% 0 0%
commit
0 0%

Client rpc:
Connection oriented:
calls badcalls badxids timeouts newcreds badverfs timers
0 0 0 0 0 0 0
cantconn nomem interrupts
0 0 0
Connectionless oriented:
calls badcalls retrans badxids timeouts waits newcreds
387 0 0 0 0 0 0
badverfs timers toobig nomem cantsend bufulocks
0 0 0 0 0 0

Client nfs:
calls badcalls clgets cltoomany
387 0 387 0
Version 2: (0 calls)
null getattr setattr root lookup readlink read
0 0% 0 0% 0 0% 0 0% 0 0% 0 0% 0 0%
wrcache write create remove rename link symlink
0 0% 0 0% 0 0% 0 0% 0 0% 0 0% 0 0%
mkdir rmdir readdir statfs
0 0% 0 0% 0 0% 0 0%
Version 3: (387 calls)
null getattr setattr lookup access readlink read
0 0% 7 1% 0 0% 0 0% 2 0% 0 0% 0 0%
write create mkdir symlink mknod remove rmdir
0 0% 0 0% 0 0% 0 0% 0 0% 0 0% 0 0%
rename link readdir readdir+ fsstat fsinfo pathconf
0 0% 0 0% 0 0% 0 0% 377 97% 1 0% 0 0%
commit
0 0%

Thanks,
John Jayaseelan
Mark Greene_1
Honored Contributor

Re: NFS file system

John,

In /etc/fstab, in the entry for:

ccprod01:/ultima /hosts/ccprod01/ultima nfs defaults,NFSv3 00

does is specify a hard or soft mount, and is ccprod01 a windows or unix system?


mark

the future will be a lot like now, only later
John Jayaseelan
Super Advisor

Re: NFS file system

Hi,

I could not see the mentioned entry on the /etc/fstab file.

Ccprod01 is a unix server. The /ultima FS from ccrpod01 is mounted on cctest01 and vice versa.

Thanks
John Jayaseelan
Super Advisor

Re: NFS file system

Hi,

The FS was mounted using the following command

mount ccprod01:/ultima /hosts/ccprod01/ultima

thanks,
John Jayaseelan