HI,
I am from testing background. I have a scenario of a file generation, through cronjob, on a defined path.
After I fill the data as 100 % utilized, my application is generating an empty file on the defined path.
[root@VM1 ~]# df -kh
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
28G 26G 0 100% /
/dev/sda1 99M 12M 82M 13% /boot
tmpfs 1.5G 0 1.5G 0% /dev/shm
[root@VM1 ~]#
[root@VM1 ~]#
But i dont even want to generate an empty file. I want my application to throw an error in case the disk usage is full.
When i checked in the inode limit:
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/mapper/VolGroup00-LogVol00
7307264 243248 7064016 4% /
/dev/sda1 26104 35 26069 1% /boot
tmpfs 221914 1 221913 1% /dev/shm
[root@VM1 ~]#
I want a script to temporary create the files to reach the inode limit so that when i run my application, with 100% disk utilization, it will not generate even an empty file.
If possible, kindly help me out with the solution.