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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

creating big file for test..

Status
Not open for further replies.

ac325ci

MIS
Jan 16, 2004
128
US
what is the fastest way to create a big file to fill up a filesystem.. need to do this for a test in the lab.. was thinkin of loopin somethin and >> to file.. anyway to do this faster? thanks
 
thnks.. i created the file but for some reason i cant push it anymore even tho it says i still have about 92mb left on device and 99%.. i need to force to be at 100% full and 0 bytes left on device.. i do get warnings on console saying that filesystem is full even tho is at 99%.. any ideas // thanks
 
How big of a file are you trying to create? What OS are you on? Some have limits on file size.

What's the exact command you're using?

Do you have any quotas turned on?

Some filesystem types have a "minfree" that makes sure it can never fill up. Normal users can't create files when that limit is hit. The root user can still create files. You can use [tt]tunefs[/tt] to change this limit. "[tt]man tunefs[/tt]" for more info.

As you start getting close to the limit, maybe start creating smaller files. Maybe that last one you try is too big to fit and when it fails it leaves your 1% free.
 
solaris 10
mkfile 8g bigfile
no quotas
performing this as root
i cannot create smaller files to fill it.. even tho is at 99% it wont let me create more files using mkfile.. cp .. etc.. but i can touch files ie.. echo data > file
that works.. however i did a infinite while loop to fill in a file but it just hangs...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top