Operating System - HP-UX
1833775 Members
3467 Online
110063 Solutions
New Discussion

Re: Determine largefile support 11.23

 
Cossam Mafuta
New Member

Determine largefile support 11.23

I do not have root access but am a developer with limited access is it possible to determine whether a filesystem has largefiles option in HP-UX B.11.23 ia64.

Checked fstab - no largefiles options in there
Tried fstyp, fsadm, mkfs with several options all these do not work with limited access.
5 REPLIES 5
Steven E. Protter
Exalted Contributor

Re: Determine largefile support 11.23

Shalom,

largefiles was taken out of fstab in 11.11

fstyp -v

This may however require root access to get the information.

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
James R. Ferguson
Acclaimed Contributor

Re: Determine largefile support 11.23

Hi:

In the absence of permissions to run 'mkfs', 'fsadm' or 'fstyp' I suppose you could simply test your ability to create a largefile (>2GB). A simple test is:

# perl -e 'open(FH,">","./LARGE") or die;seek(FH,2**32,1) or die'

IF 'largefiles" is allowed, your filesystem will have a sparse file of size 4,294,967.298. IF 'largefiles' is NOT enabled, the resulting file will show zero (0) size.

The ability to specify 'largefiles' and 'nolargefiles' options in '/etc/fstab' was *NOT* removed in current releases. Rather, the absence of any option simply allows the state of the filesystem to determine whether it is mounted with largefiles enabled or not.

Regards!

...JRF...
James R. Ferguson
Acclaimed Contributor

Re: Determine largefile support 11.23

Hi (again):

Ooops! I dropped a write. The correct script should be:

# cd /path_to_evaluate

# perl -e 'open(FH,">","./LARGE") or die;seek(FH,2**32,1) or die;print FH "\n"'

# ls -l LARGE

Regards!

...JRF...
James R. Ferguson
Acclaimed Contributor

Re: Determine largefile support 11.23

Hi (again) Cossam:

I see that you are new to the ITRC today. Welcome to the community!

Please consider:

http://forums1.itrc.hp.com/service/forums/helptips.do?#28

Regards!

...JRF...
Cossam Mafuta
New Member

Re: Determine largefile support 11.23

Thanks will tried perl option seemed to work.