- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Size of NFS File
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2009 06:49 AM
03-20-2009 06:49 AM
Size of NFS File
On one machine it comes up with just over 1GB:
-rw-rw-rw- 1 informix informix 103709016064 Mar 20 10:11 ontape.unl
The other reports far less:
-rw-rw-rw- 1 informix informix 629800960 Mar 20 10:11 ontape.unl
I'm chalking it up to null spaces in the file. One system is bright enough to recognize that they are null so it doesn't report that space and the other system isn't so bright. My DBA bought that "explanation" but I'd like to confirm that it's even reasonable.
Thoughts?
Pete
Happy First Day of Spring!
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2009 06:55 AM
03-20-2009 06:55 AM
Re: Size of NFS File
629,800,960 bytes / 1024 / 1024 / 1024 = 0.58 GB
I'm not sure why the 2 11.11 systems would show different sizes. That doesn't make a whole lot of sense to me.
What does the Linux server show for the size?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2009 06:56 AM
03-20-2009 06:56 AM
Re: Size of NFS File
Differences in 'ls' versus 'du' point to sparse files as you stated.
If you 'cp' a sparse file, for instance, the "holes" are allocated growing the file size as reported.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2009 06:56 AM
03-20-2009 06:56 AM
Re: Size of NFS File
What NFS versions on HP-UX and Linux?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2009 07:09 AM
03-20-2009 07:09 AM
Re: Size of NFS File
And no, that is not a typo on the size, Patrick.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2009 07:13 AM
03-20-2009 07:13 AM
Re: Size of NFS File
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2009 07:15 AM
03-20-2009 07:15 AM
Re: Size of NFS File
on the client will show the mounted filesystems and their versions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2009 07:25 AM
03-20-2009 07:25 AM
Re: Size of NFS File
# rpcinfo -p |grep nfs
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs
# nfsstat -m
/nfs/hyper4/big from hyper4:/big (Addr 130.1.1.170)
Flags: vers=3,proto=tcp,auth=unix,hard,intr,link,symlink,rsize=32768,wsize=32
768,retrans=5
On the "small" system:
# rpcinfo -p |grep nfs
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs
# nfsstat -m
The file isn't there anymore, so I get nothing!
And the size was supposed to be right around 100GB.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2009 12:20 PM
03-20-2009 12:20 PM
Re: Size of NFS File
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2009 03:22 PM
03-20-2009 03:22 PM
Re: Size of NFS File
If the top bits of the binary value of 103709016064 are cut off so that the value fits within the 4 GB limit, we get...
103709016064 AND (4 * 1024^3 - 1) = 629800960
... which is *exactly* what the other machine shows.
Based on this evidence, I would assume that the other server has been configured to mount the filesystem using NFSv2.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2009 02:41 AM
03-23-2009 02:41 AM
Re: Size of NFS File
Thanks for trying, though!
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2009 06:14 PM
03-23-2009 06:14 PM
Re: Size of NFS File
With ksh you can do:
echo $((103709016064 & 16#ffffffff))
629800960