While mouting NFS shares more than 200 times using a script, the error "mount.nfs: Input/output error" appears

Solution Verified - Updated -

Issue

When trying to mount and umount a NFS share around 200 times after few time, it gives error as follows.

    mount.nfs: Input/output error

The following script can be used to reproduce.

    for i in $(seq 1 1000); do echo "mount nb $i" ;mount /mount_point; echo "connection number" $(netstat -an | grep 2049| wc -l) ; umount /mount_point ; done

And the output will be as follows after some time.

connection number 392
mount nb 197
mount.nfs: Input/output error
connection number 393
umount: /mount_point: not mounted

Environment

  • Red Hat Enterprise Linux 5

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content