- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Filename & Filesystem name lengths in NFS
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
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
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
тАО10-20-2002 05:11 PM
тАО10-20-2002 05:11 PM
Filename & Filesystem name lengths in NFS
Is there a way which I can check what is the maximum length of a file-name and a filesystem name in NFS?
Also, is there a way to check the NFS version which I'm currently running? I'm working on a HP11 machine.
Could anyone help me out?
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-20-2002 05:49 PM
тАО10-20-2002 05:49 PM
Re: Filename & Filesystem name lengths in NFS
Using this example you can check.
# getconf NAME_MAX /myfilesystem (this will also work for NFS mount points.)
Another way to get this information is by:
# fstyp -v /dev/mygrp/lvolX (but this must be run on the system that is exporting the file system.
As far as the "nfs" version goes, well you could look at the version number of the 'nfsd' binary.
# which nfsd
/usr/sbin/nfsd
# strings /usr/sbin/nfsd
Another way is to check the patch level.
# swlist -l patch | grep -i NFS
HTH
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-20-2002 06:41 PM
тАО10-20-2002 06:41 PM
Re: Filename & Filesystem name lengths in NFS
When using the following parameters in getconf, if get the following results:
#getconf NAME_MAX /myfilesystem
255
#getconf CHAR_MAX /myfilesystem
127
May I know what is the difference in NAME_MAX and the CHAR_MAX parameters? My understanding is that the filesystem or file name length should be based on the number of characters.Please correct me if I'm wrong.
Regarding the NFS version, I get the following output when I did:
#strings /usr/etc/nfsd
I included the output from #strings /usr/etc/nfsd. I was if you confirm if the NFS version is version is 1.13 or 1.8.
Also, from the attachment, could you kindly explain what is the cause of the message and what does it mean? :
"nfsd: can't fork"
"Usage: nfsd [-a | -p ....]"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-20-2002 07:09 PM
тАО10-20-2002 07:09 PM
Re: Filename & Filesystem name lengths in NFS
If you read the man page for getconf carefully, NAME_MAX and CHAR_MAX are in different contexts. A quote from the man page :
The getconf command provides an interface to the confstr(3C),
pathconf(2), and sysconf(2) library routines and system calls.
NAME_MAX relates to what Michael said, and it looks like CHAR_MAX is the signed maximum of the char type in the C language.
To illustrate :
# getconf NAME_MAX
Usage: getconf parameter_name [pathname]
# getconf CHAR_MAX
127
# getconf CHAR_MAX put_anything_here
127
To find out what versions of nfs you are using, use rpcinfo or nfsstat :
# rpcinfo -p|grep nfs
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
So you can see versions 2 & 3 can be used. Also see the man page for nfsstat.
The ouput from the strings command is just conditions programmed into the daemon in case an execption occurs, nothing to worry about.
Regards,
James.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-20-2002 07:26 PM
тАО10-20-2002 07:26 PM
Re: Filename & Filesystem name lengths in NFS
Have a look at the man page 'limits' that explain these two different options.
CHAR_MAX = Minimum integer value of a character
NAME_MAX = Maximum number of bytes in a path name component.
The output of the 'nfsd' program are usages that are coded into the binary.
Have look at the 'nfsstat' man page.
e.g.
# nfstat -s
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-22-2002 05:49 AM
тАО10-22-2002 05:49 AM
Re: Filename & Filesystem name lengths in NFS
Check your header files in /usr/conf/h/dnlc.h for the maximum length in bytes that the O/S will cache. On 11.00 it is 39 - 1 (for terminating null byte) = 38:
#define NC_NAMLEN 39 /* maximum name segment length we bother with*/
If you keep the names of frequently accessed directories below 38 charactors, you can improve performance by avoiding the directory structure read to determine a file's inode. See the "What's in a name?" section of Ixora News at http://www.ixora.com.au/newsletter/2000_12.htm
You can check the DNLC hit rate on the last page of the Glance disk report.
Keith