Operating System - HP-UX
1835435 Members
3055 Online
110078 Solutions
New Discussion

How to check the FS is in largefile or not.

 
SOLVED
Go to solution
Kenny Chau
Trusted Contributor

How to check the FS is in largefile or not.

Hi,
Besides looking at the fstab, I want to know how to check the File system is in largefiles. Any commands can do this?

Thanks.
Kenny
9 REPLIES 9
Patrick Wallek
Honored Contributor

Re: How to check the FS is in largefile or not.

You can use the fsadm command to check if a LV supports large files. For more info see 'man fsadm'

To check for largefiles do:

fsadm /dev/vg??/lvol??

To set the largefiles option do:

fsadm -o largefiles /dev/vg??/lvol??
Michael Tully
Honored Contributor

Re: How to check the FS is in largefile or not.

Hi,

You would normally look in /etc/fstab for that
type of information.
To change an existing filesystem you need to use the fsadm command.

# fsadm -F vxfs -o largefiles /dev/yourvg/yourlv

See the man page for more details

man fsadm
man fsadm_vxfs

HTH
Michael
Anyone for a Mutiny ?
Wieslaw Krajewski
Honored Contributor
Solution

Re: How to check the FS is in largefile or not.

Hi,

Just to add to Patric's answer, you should use character device file:

fsadm /dev/vg##/rlvol##

or mount point

fsadm /dir_mount_point

To configure to admmit large files a file system should be umounted.

Rgds.
Permanent training makes master
federico_3
Honored Contributor

Re: How to check the FS is in largefile or not.

To check if a FS is largefiles:

fsadm /dev/vgxx/rlvolxx

or:

cat /etc/fstab | grep lvolxx


Federico
Bill McNAMARA_1
Honored Contributor

Re: How to check the FS is in largefile or not.

Normally
fstyp on the /dev/vgXYZ/lvolXY
will tell this, but in either case if a filesystem is created with the largefiles option it should also be mounted with the largefiles option and the mount command will tell you that.

Later,
Bill
It works for me (tm)
Magdi KAMAL
Respected Contributor

Re: How to check the FS is in largefile or not.

Hi,

1. fsadm /dev/vg##/rlvol##
Attention to character device in the path.

fsadm /mountPointDirectory


Magdi
Joseph Hoh
Frequent Advisor

Re: How to check the FS is in largefile or not.

fstyp -v /dev/vgxx/lvolxx

f_flag=16 (largefiles)
f_flag=0 (no largefiles)
Mark Landin
Valued Contributor

Re: How to check the FS is in largefile or not.

You could always cat two 1.5GB files together and see if it fails. :)
David Child_1
Honored Contributor

Re: How to check the FS is in largefile or not.

What I usually use to find out info like this is:
# mkfs -m /dev/vg??/lvol??

This will show you all the options that were used when the file system was created.

$ man mkfs
...
-m Display the command line that was used to create the file system. The file system must already exist. This option provides a means of determining the parameters used to construct the file system.

Hope you find this as useful as I do ;^)

David