Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Could you remeber me?

Status
Not open for further replies.

DroZDi

Technical User
Nov 26, 2004
3
PL
Hi all,
How to use 100% disponible data on file after creation new filesystem? I created one byt df -k shows booked 4%. How to free it?
Regards
 
I don't think it's possible as the OS always requires a small amount of space for housekeeping etc. I stand to be corrected, however.
 
i'm not sure but i think there's a solution how to free this area.
4% on new created filesystem is too much :-( if i need to create new fs with size 28,8GB i get only 27,9GB in return to use!!!
 
form df -k:
/dev/lv_u02 28835840 27930708 4% 17 1% /u02
/dev/lv_u01 6619136 6411332 4% 17 1% /u01
 
May I ask the accurate way you did this? What commands did you exactly run to create these filesystems?

--Trifo
 
There's space used by the inode table and other filesystem metadata. At the default nbpi (number of bytes per inode) of 4096, the inodes alone, at 128 bytes each, account for a little over three percent of the space.

If you increase the nbpi at filesystem creation, it should reduce the inode overhead, but it will also reduce the number of inodes on the filesystem, which will limit the number of files and directories you can create. Once all the inodes have been used, it doesn't matter how much space is available, no new files can be created until an existing one is deleted.

Some operating systems hide this information, but in reality they all have disk space dedicated to the actual structure of the filesystem.



Rod Knowlton
IBM Certified Advanced Technical Expert pSeries and AIX 5L
CompTIA Linux+
CompTIA Security+

 
:)

I supposed the books could have been faster than:

Code:
/* typed from memory, so may not compile */

#include <stdlib.h>
#include <sys/types.h>
#include <sys/ino.h>

void main() {
printf("%d\n", sizeof(struct dinode));
}

Then again, maybe not.



Rod Knowlton
IBM Certified Advanced Technical Expert pSeries and AIX 5L
CompTIA Linux+
CompTIA Security+

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top