1834701 Members
2650 Online
110069 Solutions
New Discussion

Re: large files

 
SOLVED
Go to solution
Werner Rips
Advisor

large files

I have a hpux10.20 server with lvm. How can i enable large files on logical volumes with HFS or VxFS filesystems?
8 REPLIES 8
Robert-Jan Goossens
Honored Contributor
Solution

Re: large files

Hi,

Here is the complete doc.

http://docs.hp.com/hpux/onlinedocs/os/lgfiles4.pdf

Robert-Jan.
Pete Randall
Outstanding Contributor

Re: large files

For example:

fsadm -F hfs -o largefiles /dev/vg02/lvol1


Pete

Pete
Werner Rips
Advisor

Re: large files

Thank you for your very fast help
and good luck in 2003.
Werner
Ravi_8
Honored Contributor

Re: large files


Hi,
you can't enable large files on the lvol that are already If you intend to do, you need a backup of that lvol.
remove that lvol, re-create with large 'Allow large files' (sam --> disks and file and file systems --> logical volumes --> action,choose create. In modify FS defaults choose Allow Large Files.
never give up
Steven E. Protter
Exalted Contributor

Re: large files

backup the data
umount /fsname

lvremove /dev/vgxx/lvolname

(Contiguous is set to yes, you may need to adjusst. You might want to not use the -n if you want to use standard lvol names)
lvcreate -C y -n newvg01 /dev/vg01
lvextend -L 100 /dev/vg01/newvg01 /dev/dsk/c1t5d0
lvdisplay -v /dev/vg01/newvg01 | more

(If you need to mirror)
lvextend -m 1 /dev/vg01/newvg01 /dev/dsk/c1t5d0 /dev/dsk/c1t6d0
newfs -F vxfs -o largefiles /dev/vg02/roracle5


modify /etc/fstab to enable largefiles mount at boot time.
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
Pete Randall
Outstanding Contributor

Re: large files

What are you guys talking about? There's no need to re-create the file system. The fsadm command provides the ability to convert (and unconvert) on the fly. You simply have to unmount the filesystem.

Pete

Pete
James R. Ferguson
Acclaimed Contributor

Re: large files

Hi:

There is *no* need to recreate a filesystem to *enable* largefiles capability. The 'fsadm' command can be used to convert either a HFS or VxFS filesystem to or from largefiles. The caveat is only that conversion from largefiles to no-largefiles succeeds only if no largefiles are present in the filesystem. The converse (converting from no-largefiles to largefiles) should always succeed.

The 'lvchange' command can be used for changing a logical volume from contiguous allocation to non-contiguous allocation. Again, there is no need to recreate the logical volume. The caveat in inverting the contiguous allocation policy is that a non-empty logical volume cannot be changed from non-contiguous to contiguous allocation unless it meets all the requirements for contiguous allocation in the first place. That is, physical extents are allocated in ascending order; there is no gap between physical extents within a mirror copy; and physical extents of any mirror copy all reside on a single physical volume.

Regards!

...JRF...

John Poff
Honored Contributor

Re: large files

Hi everybody,

See, it all comes down to how you ask the question. Our author asked, "How can i enable large files ..." and got a couple of different [and roundabout] ways to do it. The author could have asked, "What is the best way to enable large files ..." and maybe gotten better answers? Maybe not? :)

JP