1753863 Members
7309 Online
108809 Solutions
New Discussion юеВ

check for largefiles

 
brian_31
Super Advisor

check for largefiles

How do i know if a paricular mount point supports large files from command line? (not looking at fstab)

THanks

Brian
7 REPLIES 7
Steven E. Protter
Exalted Contributor

Re: check for largefiles

Shalom,

11i v1 and above you can't put largefiles in fstab any more.

The fsadm command has an option for checking a filesystem. It should be an option when newfs is run, though fsadm can also convert from non-largefiles to large.

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
Jaime Bolanos Rojas.
Honored Contributor

Re: check for largefiles

Brain,

Try with the fsadm command:

fsadm -F vxfs /home
largefiles


if large files is enable on the mount point, it will return largefiles.

Regards,

Jaime.
Work hard when the need comes out.
James R. Ferguson
Acclaimed Contributor

Re: check for largefiles

Hi Brian:

# mkfs -m /dev/vgNN/lvolX

...you will see 'largefiles' or 'nolargefiles' among the other attributes used when the filesystem was created.

Regards!

...JRF...
spex
Honored Contributor

Re: check for largefiles

Hi Brian,

For filesystems you already have mounted:

# mount -v

PCS
James R. Ferguson
Acclaimed Contributor

Re: check for largefiles

Hi (again):

You most certainly can put 'largefiles' or 'nolargefiles' in '/etc/fstab' on 11x releases.

The behavior is described in the manpages for 'mount_vxfs(1M)' [for instance] and 'fstab(4)'.

Regards!

...JRF...
marvik
Regular Advisor

Re: check for largefiles

You just have to do

lonvps03:/> fsadm -F vxfs /home
largefiles

Cheers!!
marvik
Simon Hargrave
Honored Contributor

Re: check for largefiles

It's probably worth pointing out that the largefiles option in fstab doesn't actually change the way the filesystem is mounted, it simply ensures that the filesystem will mount only if the specified option matches the flag on the filesystem. For example if fstab specified nolargefiles then the filesystem will only mount if the largefiles flag is off, similiarly opposite for largefiles.

If you don't specify it then the filesystem will be mounted regardless of the switch.

The only real use the fstab option has is that you can be sure filesystems that are mounted DO support largefiles. e.g. if you create your fstab entries and your filesystems, but forget to add -olargefiles to the filesystem, you'll know when it doesn't mount rather than after you've tried to restore a large file to it for example.