Operating System - HP-UX
1833982 Members
1900 Online
110063 Solutions
New Discussion

vxfs version 4 default on hpux-11

 
SOLVED
Go to solution
Brad Marshall_2
Frequent Advisor

vxfs version 4 default on hpux-11

Hi
I understand that vxfs version 3 is the default when creating a new filesystem. e.g. fsadm -F vxfs /dev... . After this I upgrade the version to 4 from 3.
Does anyone know the command to initially create the new filesystem as version 4.
thanks
6 REPLIES 6
Steven E. Protter
Exalted Contributor

Re: vxfs version 4 default on hpux-11

Once you have upgraded to vxfs v4 it happens automatically.

newfs -F vxfs -o largefiles /dev/vg01/rlvol2

Thats it.

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
Brad Marshall_2
Frequent Advisor

Re: vxfs version 4 default on hpux-11

HI
Any new filesystems I create on this 11.00 system are VXFS version 3. That is my question. I then have to upgrade to version 4 after the fact. I would like have them initially created as version 4.
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: vxfs version 4 default on hpux-11

You obviously have the later 3.3 version of OnlineJFS which allows for version 4 vxfs layouts.

This should do it:

mkfs -F vxfs -o version=4,largefiles /dev/vg02/lvol3

Man mkfs_vxfs for details.
If it ain't broke, I can fix that.
Brad Marshall_2
Frequent Advisor

Re: vxfs version 4 default on hpux-11

Just one more. Can you use the newfs -F vxfs -o version=4 syntax also. What exactly is the difference between newfs and mkfs.
thanks
A. Clay Stephenson
Acclaimed Contributor

Re: vxfs version 4 default on hpux-11

I don't have a handy 11.0 system that I feel like blowing up an LVOL on. You can try using a -o version=4 option for newfs. Newfs is simply a front-end for the mkfs (the real) command. Mkfs was used for years before the more friendly newfs command came along. With vxfs, the mkfs defaults are good so you shouldn't have any problems. The good news is that if the size argument is not specified, as in my above example, mkfs figures this out from the device node itself -- just like newfs.
If it ain't broke, I can fix that.
Brad Marshall_2
Frequent Advisor

Re: vxfs version 4 default on hpux-11

Issue solved.