does anyone know where I can read up more about clearing inodes and such?
I have a server right now that is clearning inodes and has been since sunday, its a raid 10 array and it has said its cleared 6 million 19 thousand of them.
|
What filesystem are you using? Sounds like (maybe) hard disk damage. Look at "man e2fsck" or "info e2fsck" if you're using an ext2 or ext3 filesystem.
|
i think that ext3 doesn't use inodes
|
An inode is the entry in a dir file for each file (inc itself).
This is std Unix/Linux/BSD. |
Mikaa, ext3 does use inodes. It just adds journaling to protect the filesystem state in case of a sudden crash.
Edkhosting -- are you getting this message during a filesystem fsck on bootup (or initiated manually)? Any time I've seen something like that it has generally pointed to a badly corrupted filesystem. Was the system forcibly shutdown recently or have there been any hardware failures? If the filesystem is damaged badly enough, you may need to clean things out by hand via debugfs (do not use unless the situation is hopeless and you really know what you're doing -- debugfs allows you to directly edit inodes, amongst other things) and if that fails restore from back-ups. |
a filesystem fsck on bootup. Here is what I posted on another board
Quote:
so my feeling is the data/databases are still there its just the permissions on them are wrong and it has to do with the inodes to which fsck is fixing now. I mean they were fine and then it said the tables were read only it didn't say they didn't exist that its just read only. I don't know how long this is going to take for the server to fix everthing but its been running since sunday clearing inodes so I take it thats a good thing. Also I was pondering the idea if I could just stop the check and tar up the msql folder even with the wrong permissons and just move them over to another db server that I ordered and is live and reset the permissions there on the new server to what they should be with that mysql database. Will that work? background is I run a free forum host and there are two db's one for each web server. Each web server is hosting about 30,000 phpbb forums and each forum has about 25 tables so you can do the math on how many tables each db is holding. |
can anyone else help me?
|
The inodes also hold the lists of the actual disk blocks used by the files, so if those lists have gotten corrupted, you're in trouble. Although if things were working OK for awhile, maybe you'll be lucky and the corruption will be with other files in the filesystem. My advice would be to let fsck run to completion and see what happens. Be prepared to look in the filesystem's lost+found directory for bits and pieces of files that fsck may recover from damaged files.
You need to figure out what caused the problem in the first place. Are your RAID controller and all of the disks working correctly? Have you had any disk or other subsystem failures? |
All times are GMT -5. The time now is 08:14 PM. |