How to reduce inode size of /var?

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat How to reduce inode size of /var?
# 1  
Old 04-14-2014
How to reduce inode size of /var?

Hi,

inode size reached its 100% in /var
Due to this i'am getting the error No space left on device
my crond process is stopped and when i want to restart it
it is showing the below error
Starting crond: crond: can't open or create /var/run/crond.pid: No space left on device

df -i o/p

/dev/mapper/vg00-var 131072 131072 0 100% /var

kindly help me in this...
# 2  
Old 04-14-2014
Look for recently created files
Code:
find /var -xdev -mtime -7

Maybe an application created thousands of logfiles?
Delete the older ones, and add (or change) a rule in rotatelog.
# 3  
Old 05-04-2014
128Mb for /var is asking for troubles as you are experiencing.
2Gb for /var if you want to test and toy with the OS.
8Gb or more if it is a production server.
# 4  
Old 05-05-2014
Assuming /var is an ext3 or ext4 filesystem, the answer is no you cannot increase the number of inodes.

You have three options:
- backup data, recreate file system with increased number of inodes, restore data
- reduce the number of files under /var
- increase the size of the logical volume and grow your filesystem
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Reduce system inode count

I have lots of space on my system. linux-e30c:~ # df -h Filesystem Size Used Avail Use% Mounted on /dev/sda1 41G 3.4G 35G 9% / /dev/sda3 91G 36G 51G 42% /home /dev/sda2 99G 3.4G 91G 4% /usr But still somehow the inode count has almost finished... (3 Replies)
Discussion started by: rupeshkp728
3 Replies

2. UNIX for Dummies Questions & Answers

Unable to reduce the size of volume group?

My volume group of size 200 gb. out of which only 100 gb is used by 2 logical volumes /dev/vg00/lvol0 and /dev/vg00/lvol0 respectively (both are 50 gb each). Whenever i use vgreduce command to reduce the size of volume group i get below error. # vgreduce vg00 -a Physical volume... (16 Replies)
Discussion started by: pinga123
16 Replies

3. Solaris

reduce hard drive size

I'm trying to reduce hard drive size (number of cylinders) in SPARC Solaris. Its easy to change last cylinder of last slice, but that cannot be done for slice2/backupslice because it insists on whole disk. If I try to change disk type/geometry, all slices get replaced with some 'default'... (1 Reply)
Discussion started by: orange47
1 Replies

4. SuSE

Reduce Size of serveur in LINUX-Suse

Hello, I do not know Linux. It is a black box. We have 2 virtuals servers (SAPVM01 and SAPVM06) in one physical server. The first virtual system (SAPVM01) has a total size of 420 Gb and a free space of 170 GB. A SAP system is running. The second virtual system (SAPVM06) has a total... (3 Replies)
Discussion started by: daniel04
3 Replies

5. UNIX for Dummies Questions & Answers

Reduce /var filesystem

hi guys I need to create a temporary Filesystem and the only way to do it is to reduce /var and create a new filesystem 3GB size df -h .... ... /dev/mapper/VolGroup00-var 9.7G 1.5G 7.8G 16% /var my question is according to google search I need to umount the... (5 Replies)
Discussion started by: karlochacon
5 Replies

6. Solaris

Size of an inode in Solaris 10

Can anyone know what is the size of an inode in Solaris 10 :D? (5 Replies)
Discussion started by: naag20
5 Replies

7. Shell Programming and Scripting

command to reduce size of file/directory???

Hello, I want to compress any given file or directory. I used 1)gzip 2)zip But when I do "ls -l". I found that the zipped file is in fact greater in size than the original file. Can you please tell me the commands which will show me the difference in its size. (2 Replies)
Discussion started by: nsharath
2 Replies

8. Shell Programming and Scripting

How to reduce font size in a file

HPUX 11iv2 #!/bin/sh Hi all. I have a script that results in the creation of an ascii file which is ultimately emailed out to several people. The email wraps each line so I would like to reduce the font size of the ascii file. I looked at nroff and also tr but it wasn't clear to me how to do... (2 Replies)
Discussion started by: lyoncc
2 Replies

9. HP-UX

How to reduce fil system size seen in bdf!

When i execute bdf, /home direcory seems 100% full. But when i check /home with 'du', total used memory is 30 MB in 1,4 Gb. how can I reduce this 100% to its real state? (11 Replies)
Discussion started by: akyuceisik
11 Replies

10. Solaris

How to reduce the size of a logical volume in solaris 9

Hi, I have the following problem. I just have a new machine with mirroring. The logical volume for /opt is dimensionned to 75 GB which is to much. I want a volume of 10 GB. How can I reduce the size ? I tried to reduce the size of the slice from 75 GB to 10 GB, but the size of the logical volume... (6 Replies)
Discussion started by: aribault
6 Replies
Login or Register to Ask a Question