Operating System - HP-UX
1833883 Members
1501 Online
110063 Solutions
New Discussion

Re: Logical Volume Free Space

 
Jim Brockhurst
New Member

Logical Volume Free Space

Is there a way to control the amount of freespace taken by the system on a logical volume by logical volume basis? i.e. create a 100 MB volume, keeping the 10% freespace; create a 5 GB volume and reduce freespace from 500 MB to 100 MB?
8 REPLIES 8
Dave Chamberlin
Trusted Contributor

Re: Logical Volume Free Space

I believe this would be done with the newfs command with the -m option - to specify the percentage of free disk space allowed, the default is 10%. This could only be done at the time of filesystem creation on the volume.
harry d brown jr
Honored Contributor

Re: Logical Volume Free Space


freespace??

inodes maybe??

live free or die
harry
Live Free or Die
Jeff Schussele
Honored Contributor

Re: Logical Volume Free Space

Hi Jim,

As you probably know, this is done at the filesystem level & only by HFS filesystems.
10% is the default but can be overridden using the -m parameter of newfs_hfs command.
You could specify
newfs_hfs -m 2 .....
in this scenario to set the limit to 100 Mb on this 5 Gb filesystem.

But this also begs the question....
Why are you not using VXFS?
It's faster & much safer the HFS.
And most importantly in your case - there's NO freespace limitations.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
harry d brown jr
Honored Contributor

Re: Logical Volume Free Space

Good ole hfs. Interesting...

live free or die
harry
Live Free or Die
Patrick Wallek
Honored Contributor

Re: Logical Volume Free Space

As said, you can do this via the newfs command options.

For an HFS volume, the default is 10%, but it can be changed with the -m option. See 'man newfs_hfs' for more details.

If this is a VxFS volume, then there is no 10% Minimum free space allocated. You generally get all that you set the LV up for. See 'man newfs_vxfs' for more details.
Martin Johnson
Honored Contributor

Re: Logical Volume Free Space

You can also do this in SAM when you create the HFS file system. (Under Modify FS defaults)

HTH
Marty
Michael Tully
Honored Contributor

Re: Logical Volume Free Space

Once the filesystem has been created, you will need to use the 'tunefs -m' command. The man page explains it all. As they "You can tune a file system, but you can't tune a fish".

Or is that quote of the day.....
:^))
Anyone for a Mutiny ?
Jim Brockhurst
New Member

Re: Logical Volume Free Space

Thanks! I had checked the man page for newfs, but not newfs_FSTYPE.