FedoraThis forum is for the discussion of the Fedora Project.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Seems that nn '/var - sda10' is 8GB free, i've checked fsck sda1, everything is ok
Mount:
Quote:
[root@pomocnik ~]# mount
/dev/sda2 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sdb2 on /home type ext3 (rw)
/dev/sda5 on /usr type ext3 (rw)
/dev/sda6 on /usr/local type ext3 (rw)
/dev/sda8 on /mnt/instalacje type ext3 (rw)
/dev/sda7 on /tmp type ext3 (rw)
/dev/sda9 on /home/www type ext3 (rw)
/dev/sda10 on /var type ext3 (rw)
/dev/sda1 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
nfsd on /proc/fs/nfsd type nfsd (rw)
/dev/sdc1 on /mnt/mybook01 type vfat (rw,noexec,nosuid,nodev,utf8,umask=0000)
gvfs-fuse-daemon on /home/piotrek/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=piotrek)
gvfs-fuse-daemon on /root/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev)
/dev/sdd1 on /media/KINGSTON type vfat (rw,nosuid,nodev,uhelper=hal,shortname=lower,uid=0)
/dev/sr0 on /media/SLAX type iso9660 (ro,nosuid,nodev,uhelper=hal,uid=0)
/dev/sda11 on /media/disk type ext3 (rw,nosuid,nodev,uhelper=hal)
/dev/sdc2 on /media/mybook02 type ext3 (rw,nosuid,nodev,uhelper=hal)
/dev/sdc2 on /mnt/mybook02 type ext3 (rw,usrquota)
I can't print in netwotk because of those messages...
Check if you haven't used up all of your inodes for that partition with
Code:
df -i
If you save lots of small files to a partition it might be that your inodes are all used up and although you'd still have space left on your device you'll be unable to save any more files.
If you set it up with LVM for example you can enlarge the partition which would solve your problem (temporarily). Better practice is to clean up on a regular basis, check the size of your inodes and if you need to set it smaller, then save / copy what you need from the partition and rebuild the filesystem setting smaller inodes.
When you have backup'ed your partition, delete it, recreate the partition with the new size should you choose to make it bigger and set the inode size using mkfs.ext3 -i or -I.
From the man page of mkfs.ext3:
Quote:
-i bytes-per-inode
Specify the bytes/inode ratio. mke2fs creates an inode for every bytes-per-inode bytes of space on the disk. The larger the bytes-per-
inode ratio, the fewer inodes will be created. This value generally shouldnât be smaller than the blocksize of the filesystem, since in
that case more inodes would be made than can ever be used. Be warned that it is not possible to expand the number of inodes on a
filesystem after it is created, so be careful deciding the correct value for this parameter.
-I inode-size
Specify the size of each inode in bytes. mke2fs creates 256-byte inodes by default. In kernels after 2.6.10 and some earlier vendor
kernels it is possible to utilize inodes larger than 128 bytes to store extended attributes for improved performance. The inode-size
value must be a power of 2 larger or equal to 128. The larger the inode-size the more space the inode table will consume, and this
reduces the usable space in the filesystem and can also negatively impact performance. Extended attributes stored in large inodes are
not visible with older kernels, and such filesystems will not be mountable with 2.4 kernels at all. It is not possible to change this
value after the filesystem is created.
Needless to say that this cannot be done while users are connected, you'll have to be in single user mode. Also keep in mind that if you set a smaller inode size in combination with a newer kernel it might influence performance in a negative way.
Before taking this 'drastic' step, have you looked what's occupying the space? If it's not a logfile growing insane out of proportion? Did you cleanup the /var? Those are at least the things I'd look at before rebuilding the file-system. First look for the reason why it's getting filled, then try to solve that problem. Maybe logging is configured poorly, maybe something else. I've got 18 Linux servers at this moment that I administer and since I started working here never had to rebuild a file-system because of lack of inodes available.
You're welcome. That's what LQ is all about, helping each other. You can also have a look at how logrotate is configured, if the logs are rotated correctly and no needless logs are saved. I once had an issue with a log that was saved to a 'strange' location because it was configured like that by my predecessor and he didn't document it. By the time I found it out it was +5 Gb in size. Just to show that you'll not only need to look at the logs, but also if the are growing beyond proportions and why.
If you can avoid having to rebuild your filesystem this way then that's all for the better.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.