Out of inodes on system partition.. greyhole spooled files..
Posted: Wed Jul 20, 2011 7:20 am
This follows up another thread I posted about a week or so back regarding greyhole.log spinning up too large such that I would run of space on my 20g system partition in just hours.. the greyhole.log file would get up to 8g inside an hour.. I'd delete it and it would rebuild...
This occurred after I move a large amount of files from a backed up system drive from another machine into my pool and also installed a new 2Tb drive into the system. The system is composed of 9 total drives and about 8Tb.
I solve the greyhole.log problem by created a cronjob to rotate the log initially every 15 minutes and then tuned it down to every half hour. This seemed to solve the problem. I now have plenty of free gb on the partition.
I'm now experiencing other issues. The first symptoms was the inability to access shares... the next symptoms was the inability to bring up the hda page...
I checked my /var/log/greyhole.log and there was no log... service was running.. I restarted it.. not solved.. I rebooted and the greyhole.log log started generating... but the issues persisted...
I tried:
but get that error...
Also.. tail /var/log/messages:
I did some googling and found the issue might be related to running out of inodes:
So.. you can see I"m out of inodes on the system partition... I strongly suspect it is the greyhole spool file, but I'm not 100% sure...
Question: Can I kill those spooled files, delete unnecessary files in my shares I know I don't need that were copied over recently (e.g., /documents and settings/application data/"gobs and gobs of crap in those directories I don't need that got copied over from decommissioned hard drive"...).. and then re-run an fsck to let the spool rebuild??
Or will I blow things up really good if I do that??
Knowledgeable input would be immensely appreciated!
jbmia
This occurred after I move a large amount of files from a backed up system drive from another machine into my pool and also installed a new 2Tb drive into the system. The system is composed of 9 total drives and about 8Tb.
I solve the greyhole.log problem by created a cronjob to rotate the log initially every 15 minutes and then tuned it down to every half hour. This seemed to solve the problem. I now have plenty of free gb on the partition.
I'm now experiencing other issues. The first symptoms was the inability to access shares... the next symptoms was the inability to bring up the hda page...
Code: Select all
The application has found an error. You will be forwarded shortly.
I checked my /var/log/greyhole.log and there was no log... service was running.. I restarted it.. not solved.. I rebooted and the greyhole.log log started generating... but the issues persisted...
I tried:
Code: Select all
greyhole --stats
Can't describe tasks with query: DESCRIBE tasks - Error: Can't create/write to file '/tmp/#sql_7e7_0.MYI' (Errcode: 28)[root@9745 greyh
Also.. tail /var/log/messages:
Code: Select all
Jul 20 11:32:13 9745 openvpn[1725]: 76.110.5.180:59271 TLS Error: TLS handshake failed
Jul 20 11:32:13 9745 openvpn[1725]: 76.110.5.180:59271 SIGUSR1[soft,tls-error] received, client-instance restarting
Jul 20 11:32:30 9745 nmbd[2358]: [2011/07/20 11:32:30.480368, 0] nmbd/nmbd_serverlistdb.c:343(write_browse_list)
Jul 20 11:32:30 9745 nmbd[2358]: write_browse_list: Can't open file /var/lib/samba/browse.dat.. Error was No space left on device
Jul 20 11:32:40 9745 nmbd[2358]: [2011/07/20 11:32:40.506167, 0] nmbd/nmbd_serverlistdb.c:343(write_browse_list)
Jul 20 11:32:40 9745 nmbd[2358]: write_browse_list: Can't open file /var/lib/samba/browse.dat.. Error was No space left on device
Jul 20 11:32:40 9745 nmbd[4763]: [2011/07/20 11:32:40.556270, 0] nmbd/nmbd_winsserver.c:2380(wins_write_database)
Jul 20 11:32:40 9745 nmbd[4763]: wins_write_database: Can't open /var/lib/samba/wins.dat.4763. Error was No space left on device
Jul 20 11:32:40 9745 nmbd[2358]: [2011/07/20 11:32:40.639944, 0] nmbd/nmbd_serverlistdb.c:343(write_browse_list)
Jul 20 11:32:40 9745 nmbd[2358]: write_browse_list: Can't open file /var/lib/samba/browse.dat.. Error was No space left on device
Code: Select all
df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/mapper/vg_9745-lv_root
1267280 1267280 0 100% /
tmpfs 474863 1 474862 1% /dev/shm
/dev/sdi1 128016 41 127975 1% /boot
/dev/mapper/vg_9745-lv_home
642112 2895 639217 1% /home
/dev/sdi3 21667840 415700 21252140 2% /var/hda/files
/dev/sdb1 61054976 380063 60674913 1% /var/hda/files/drives/drive1
/dev/sdc1 61054976 416381 60638595 1% /var/hda/files/drives/drive2
/dev/sdd1 91578368 508920 91069448 1% /var/hda/files/drives/drive3
/dev/sde1 122101760 643108 121458652 1% /var/hda/files/drives/drive4
/dev/sdg1 18317312 130885 18186427 1% /var/hda/files/drives/drive5
/dev/sdh1 61054976 322227 60732749 1% /var/hda/files/drives/drive6
/dev/sdi4 6406144 34 6406110 1% /var/media
/dev/sdf1 122101760 111822 121989938 1% /var/hda/files/drives/drive9
//127.0.0.1/Books 0 0 0 - /mnt/samba/Books
//127.0.0.1/Home_Movies
0 0 0 - /mnt/samba/Home_Movies
//127.0.0.1/Movies 0 0 0 - /mnt/samba/Movies
//127.0.0.1/Music 0 0 0 - /mnt/samba/Music
//127.0.0.1/Pictures 0 0 0 - /mnt/samba/Pictures
//127.0.0.1/Public 0 0 0 - /mnt/samba/Public
//127.0.0.1/Recipes 0 0 0 - /mnt/samba/Recipes
//127.0.0.1/Software 0 0 0 - /mnt/samba/Software
//127.0.0.1/TV 0 0 0 - /mnt/samba/TV
//127.0.0.1/Users 0 0 0 - /mnt/samba/Users
Code: Select all
ls -1 /var/spool/greyhole | wc -l
1013816
Or will I blow things up really good if I do that??
Knowledgeable input would be immensely appreciated!
jbmia