Operating System - HP-UX
1820057 Members
3002 Online
109608 Solutions
New Discussion юеВ

Re: How to create >2Gb large file

 
go3mon
Advisor

How to create >2Gb large file

How I can create a file >2Gb? What's the command I must use for change the filesystem standard parameters? I must use JFS online?
12 REPLIES 12
Piergiacomo Perini
Trusted Contributor

Re: How to create >2Gb large file

Hi go3mon,

if you have to modify the previous parameters of a filesystem ... i really don't know ... maybe some option of JFSonline.
If you have to create a new file system then use

(-o largefiles)

hth
regards
pg
swarup kundu
Advisor

Re: How to create >2Gb large file

if you want to create File system which can support filesize of more than 2 GB then,

eg:
newfs -o largefiles /dev/vg01/rlvol1


note:you do not require online JFS product for this.
Alexander M. Ermes
Honored Contributor

Re: How to create >2Gb large file

Hi there.
If the filesystem is in use, look at the manpage of fsadm. This will give you the chance to change the large file option during operation on a working file system.
Rgds
Alexander M. Ermes
.. and all these memories are going to vanish like tears in the rain! final words from Rutger Hauer in "Blade Runner"
Steven E. Protter
Exalted Contributor

Re: How to create >2Gb large file

Shalom,

fsadm can convert an existing fileystem from default to largefiles

newfs -F vxfs -o largefiles

creates the filesystem that way.

newfs is destructive on existing data.
fsadm is not destructive.

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
Asif Sharif
Honored Contributor

Re: How to create >2Gb large file

You need to give this command to enable large files enable.

newfs -F vxfs -o largefiles /dev/vgname/rlvolname

Regards,
Asif Sharif
Regards,
Asif Sharif
swarup kundu
Advisor

Re: How to create >2Gb large file

if the filesystem is in use ,the give this command.
#fsadm -F vxfs -o largefiles /dev/vgname/volname
Jaime Bolanos Rojas.
Honored Contributor

Re: How to create >2Gb large file

go3mon,

And as it was not enough, if you go to docs.hp.com and search for "largefiles", then your first hit is going to be this document:

http://docs.hp.com/en/B3929-90011/ch01s16.html

Regards,

Jaime.
Work hard when the need comes out.
Rita C Workman
Honored Contributor

Re: How to create >2Gb large file

To enable an existing file system you could do this:

umount /
fsadm -o largefiles /dev//r

Mount it back up........then to double check run and it should say "largefiles"

fsadm /dev//r

Rgrds,
Rita
go3mon
Advisor

Re: How to create >2Gb large file

Sorry but the filesystem is now in use and I can't umount or re-create with newfs.
Rita C Workman
Honored Contributor

Re: How to create >2Gb large file

If you have OnlineJFS you can probably do it on the fly.........just try running the fsadm command above and give it a try.

Rgrds,
Rita
Dennis Handly
Acclaimed Contributor

Re: How to create >2Gb large file

>Sorry but the filesystem is now in use and I can't umount or re-create with newfs.

I don't think you need to unmount it. Go ahead and try changing it. (As Rita said.) I had no problems and I don't have OnlineJFS.
swarup kundu
Advisor

Re: How to create >2Gb large file

Rita is right.It can be done on the fly.