Question & Answer
Question
Answer
# cat /etc/exports
/datafs -sec=sys,rw
# mount tcp30:/datafs /NFS-mount-write
-rw-r--r-- 1 root system 2147483648 Mar 14 23:07 2g-file
cp : 0653-447 Requested a write of 131072 bytes, but wrote only 1.
File size on NFS server shows less than 2g:
Server:
# ls -l /datafs
-rw-r--r-- 1 nobody nobody 2147352576 Mar 14 23:32 2g-file
The NFS v2 uses signed 32-bit offset. Maximum file size supported is 2GB.
Whereas NFS v3 and v4 use 64-bit offset allowing access to file sizes greater than 2G.
# mount
node mounted mounted over vfs date options
-------- --------------- --------------- ------ ------------ ---------------
.....
# mount -o vers=3 tcp30:/datafs /NFS-mount-write
1. Directory export is set to use NFS v2 protocol:
/etc/exports:
/datafs -vers=2,sec=sys,rw
Server:
/etc/exports
/datafs -sec=sys,rw
# mount -o vers=2 tcp30:/datafs /NFS-mount-write
# mount tcp30:/datafs /NFS-mount-write
To prevent NFS v2 mounts, make sure NFS directory is exported as and client mounts as v3 or v4 protocol. If any issues, this ensures, repeated trials to mount are made using the specified NFS version until it either succeeds or fails.
SUPPORT:
If additional assistance is required after completing all of the instructions provided in this document, please follow the step-by-step instructions below to contact IBM to open a case for software under warranty or with an active and valid support contract. The technical support specialist assigned to your case will confirm that you have completed these steps.
a. Document and/or take screen shots of all symptoms, errors, and/or messages that might have occurred
b. Capture any logs or data relevant to the situation.
c. Contact IBM to open a case:
-For electronic support, please visit the IBM Support Community:
https://www.ibm.com/mysupport
-If you require telephone support, please visit the web page:
https://www.ibm.com/planetwide/
d. Provide a good description of your issue and reference this technote
e. Upload all of the details and data to your case
-You can attach files to your case in the IBM Support Community
-Or Upload data to IBM testcase server analysis:
http://www.ibm.com/support/docview.wss?uid=ibm10733581
f. Click here to submit feedback for this document.
Related Information
Was this topic helpful?
Document Information
Modified date:
19 March 2021
UID
ibm16434119