1752564 Members
5243 Online
108788 Solutions
New Discussion

No space left on device

 
Md. Minhaz Khan
Super Advisor

No space left on device

Dear All,

We are getting â No space left on device(28)â error during "Grid control Agent" software installation in one of our Linux Server under
"/u01" mount point.

From "df -h /u01" command output i have found
only "14%" space is in use & from "df -i /u01" command output i have found "80%" inode has already in use.

So what is the cause of using 80% inode as only 14% space used & how can i increase inode number of "/u01" mount point(/dev/vglmdb_app/lv_u01)

I have attached "df" & "vgdisplay" command output with this mail. Please help me to resolve this problem.

Thanks
Minhaz
8 REPLIES 8
Dennis Handly
Acclaimed Contributor

Re: No space left on device

What type of filesystem is /u01?
On HP-UX, hfs filesystems have a fixed number of inodes and if you have lots of small files you'll run into this limit.
But vxfs filesystems are unlimited.

>how can I increase inode number

I assume you'll have to recreate the filesystem.
Md. Minhaz Khan
Super Advisor

Re: No space left on device

Thanks for the reply. "/u01" has ext3 file-system.

# df -TH /u01
Filesystem Type Size Used Avail Use% Mounted on
/dev/mapper/vglmdb_app-lv_u01 ext3 27G 3.8G 23G 14% /u01

If we need to recreate the file-system then
i have below query:

1)What is the RedHat Linux command to increase inode number after recreating the LV:

#mke2fs -i 4096 /dev/vglmdb_app/lv_u01
Or,
#mke2fs -j -N 150000 /dev/vglmdb_app/lv_u01

2) How could i found what is the present (current) "bytes-per-inode" value of "/dev/vglmdb_app/lv_u01" ? I have tried with
"tune2fs -l /dev/vglmdb_app/lv_u01" command but didn't find.

3)For my scenario, how could i determined what is the correct value of "bytes-per-inode" value? i have found below value in google:

*Less than or equal to 1 Gbyte = 2048
*Less than 2 Gbytes = 4096
*Less than 3 Gbytes = 6144
*3 Gbytes up to 1 Tbyte = 8192


Thanks
Minhaz
Kapil Jha
Honored Contributor

Re: No space left on device

80% inode usage means you have a lot of small files, you should delete these files is not used, and check the process which is creating these files.

for NO space left on device, there is a possibility that in /u01 some big files are open and they are showing it to be 100%

du -sk /u01 vs df -h /u01

#lsof /u01

If necessary you may have to stop the process seen in lsof which has too many big files open.
Or restart the service using /u01.

BR,
Kapil+
I am in this small bowl, I wane see the real world......
Md. Minhaz Khan
Super Advisor

Re: No space left on device

Thanks a lot Dennis & kapil. Actuallly "/u01" was created with "-T" option & its size is 25GB. As a result number of inodes become fewer as bytes-per-inode is 1 MB.

Now please give me the guide-line to increase inodes of "/dev/vglmdb_app/lv_u01".

I have made an action plan. Please verify it & if any suggestion or modification required please assist me.

Action Plan1:

Increasing the size of the Logical Volume using "lvextend & ext2online".It will increases the total number of inodes without changing the inodes-per-bytes ratio.


Action Plan 2:

*Stop Application
*Stop Oracle DB
*Backup all data of /u01
*umount /u01
*mke2fs -i 8192 /dev/vglmdb_app/lv_u01
*mount /dev/vglmdb_app/lv_u01 /u01
*Restore Data from backup to /u01
*Start Oracle DB
*Start Application


Thanks
Minhaz
Michal Kapalka (mikap)
Honored Contributor

Re: No space left on device

hi,

if you increase the FS size its god solution, but if you use the inodes, you need again extend and them what is the threshold ( next step )???

i think the second plan seems to be better.

mikap
Steven E. Protter
Exalted Contributor

Re: No space left on device

Shalom Minhaz,

cd /u01

du -k | sort -rn | more

Find those biggies and get rid of them. Do the fuser/lsof check first to see if there are open file handles.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Dennis Handly
Acclaimed Contributor

Re: No space left on device

>Kapil: 80% inode usage means you have a lot of small files, you should delete these files if not used

You can also tar up 1000s of small files into one bigger file. And extract as needed.
Md. Minhaz Khan
Super Advisor

Re: No space left on device

Thanks a lot every body for give me valuable suggestion

Minhaz