Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

filesystem error on boot

Status
Not open for further replies.

bcardona

Programmer
May 10, 2001
103
US
i get filesystem doesnt match LABEL=/var and it wont boot any ideas, also on my backup linux box it freezes when to many files are open, how can i increase the max files


thanks
 
What's "too many files" ? Linux doesn't usually freeze. Maybe your RAM is going bad.

Can you show us your /etc/fstab please?

-Haben sie fosforos?
-No tiengo caballero, but I have un briquet.
 
here it is, also after about an hour it wont let me issue and commands, it to says too many files open and i have to reboot.

LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
LABEL=/home /home ext3 defaults 1 2
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
LABEL=/tmp /tmp ext3 defaults 1 2
LABEL=/usr /usr ext3 defaults 1 2
LABEL=/var /var ext3 defaults 1 2
/dev/sda9 swap swap defaults 0 0
/dev/sda10 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,kudzu,ro 0
0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0
 
This is highly unusual.. Two swap partitions?
What distribution is this?
Does Linux mount any other partitions properly?

-Haben sie fosforos?
-No tiengo caballero, but I have un briquet.
 
red hat advanced 2.1 enterprise

i believe it mounts others fine.
 
It is possible to exceed the number of open filehandles the kernel is capable of handling, but that number is so large that it usually points to a pathological process.

Using top and ps can you identify anything consuming a ton of resources or forking multiple copies of itself?

Also, try running this command periodically (all on one line if your browser wraps the command):

Code:
for dir in [0-9]*/fd ; do echo $( ls 2>&- /proc/$dir | wc -l ) $dir ; done | sort -n | tail

It will show you the 10 top processes for open files, if one of those is growing, then find the process and figure out what it's doing. Just for comparison, the most files any process on my desktop has open right now is 55.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top