Operating System - HP-UX
1833017 Members
2192 Online
110048 Solutions
New Discussion

lvcreate: newfs doesn't extend to max lvm size defined

 
SOLVED
Go to solution
Stephen Sneeringer
Occasional Contributor

lvcreate: newfs doesn't extend to max lvm size defined

I've created a logical volume (lvol1) the size of 17gig. When I do the' newfs -F hfs' command, only 15gig are made available for usage. Is there a way to get more usage space?
success=95% attitude + 5% knowledge
3 REPLIES 3
Patrick Wallek
Honored Contributor

Re: lvcreate: newfs doesn't extend to max lvm size defined

By default an HFS filesystem is built to keep 10% of the filesystem size in reserve for minimum free space.

To change this you can use '-m ' option to set the percentage to something less than 10. See 'man newfs' for more information.
melvyn burnard
Honored Contributor

Re: lvcreate: newfs doesn't extend to max lvm size defined

You would get more space if you did newfs -F vxfs as this does not reserve the 10% of min free space.

hfs always reserves 10% by default, so if you fill up a file system only root can then write any more data, and is sometimes seen by bdf showing a file system being 105% full!
jfs does not do this, and leaves more space for the normal users, but when it is full, it is full!.

HTH
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Peggy Fong
Respected Contributor
Solution

Re: lvcreate: newfs doesn't extend to max lvm size defined

If you have to use HFS then you can also use the "tunefs" command to reduce the minimum reserve (you can go as low as 0% reserve).
I believe the command is:
tunefs -m 0 /dev/vgXX/rLVOL
Probably need to have file system unmounted while doing this command.
Peggy