HP-UX 11.11 : Largefile Options

By default as in HP-UX 11i, nolargefiles is the default setting. However, problem will be encountered when you want to create a file exceeding 2Gb or in my case when i was trying to restore a database file from a raw backup.

To verify if the lvol (filesystem) is already configured for largefiles:

# fstyp -v /dev/vgXY/lvolX | grep f_flag
---> 16= largefiels
0 = no largefiles

eg:
#fstyp -v /dev/vg01/rlvol12
no largefile

if f_featurebits is logically anded with 2 (2,3,6,7... for 010 011 0110 0111...) then large files is enabled.

To convert the largefile option on the fly, run the following command:

fsadm -f vxfs -o largefiles /dev/vgxx/lvolxx

edit /etc/fstab and update nolargefiles to largefiles if it is originally mounted.

Test create 6gigs file:
#prealloc /mnt/san/db/prod/test.file 6000000000

If the largefile option is not enable, the following error will appear:
prealloc: File too large


0 comments: