LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 11-19-2004, 05:28 AM   #1
andreseso
LQ Newbie
 
Registered: Oct 2003
Posts: 12

Rep: Reputation: 0
Ext3 warnings on a loop device


After one of our servers went on a fsck loop after several EXT3 kernel messages new EXT3 messages have appeared /var/log/messages



Code:
Nov 17 13:29:21 integr kernel: EXT3-fs warning (device loop(7,0)): ext3_unlink: Deleting nonexistent file (116), 0
Nov 17 13:29:21 integr kernel: EXT3-fs warning (device loop(7,0)): ext3_unlink: Deleting nonexistent file (117), 0
As it does not mention any hard drives or partitions I am not too worried.

I do not know how to interpret these error messages

The server is RHEL EL 3 and is running the latest version of Cpanel current.

/etc/fstab is
Code:
/dev/hda3 /       ext3    defaults,usrquota 1 1
/dev/hda1 /boot   ext3    defaults 1 2
/dev/hdb1 /tmp    ext3    loop,noexec,nosuid,rw 0 0
/dev/hdb1 /var/tmp    ext3    loop,noexec,nosuid,rw 0 0
/dev/hdb2 /backup ext3    defaults 1 2
/dev/hdb3 /misc   ext3    defaults 1 2
none      /dev/pts devpts gid=5,mode=620 0 0
none      /proc   proc    defaults 0 0
none      /dev/shm tmpfs  defaults 0 0
/dev/hda2 swap    swap    defaults 0 0
/dev/fd0   /mnt/floppy auto noauto,owner,kudzu 0 0
/dev/cdrom              /mnt/cdrom              udf,iso9660 noauto,owner,kudzu,ro 0 0
As you can see the /tmp partition does not allow program execution and is mounted as a loop device.

The server has been up 60 days.

The fact that /etc/fstab has loop in the /tmp partition settings could indicate that the problem is with that partition. I have no idea what the loop parameter implies in a partition. It is probably unnecessary.

I do not understand these Ext3 warnings.
 
Old 11-19-2004, 06:31 AM   #2
nhs
Member
 
Registered: Aug 2003
Location: Edinburgh, Scotland
Distribution: Gentoo
Posts: 246

Rep: Reputation: 30
This seems to be a very bizarre setup. Why loopback mount a device node? And why mount the same device node in two places? What may be happening is that a file is being deleted from (e.g.) /tmp and the message occurs when /var/tmp realizes the file is no longer there. As /tmp and /var/tmp don't need to be loopback mounted I would suggest removing the loop option. Also only mount one (e.g. /tmp) and have the other as a symlink to /tmp. If for some reason symlinks aren't acceptable then use mount to bind /tmp to /var/tmp ("mount --bind /tmp /var/tmp"). This seems much saner to me and will also inform the kernel as to what you are doing as opposed to the present situation where it works but looks bizarre from kernel space. Of course this is RHEL and this may be some extremely clever trick on their part but this is what I would do if faced with your situation. Hope this helps.
 
Old 12-09-2004, 09:47 PM   #3
jalons
LQ Newbie
 
Registered: Dec 2004
Posts: 1

Rep: Reputation: 0
Mounting as loop

This is a common practice among cPanel servers, basically to add the noexec and nosuid bits to the /tmp and /var/tmp directories without repartitioning to give them their own mount points to help slow down script kiddies from placing flood scripts on the servers through insecure PHP/CGI scripts.

I've implemented this on a box where we were also seeing the issue. The strange thing is, is we have this setup on numerous machines, and the only ones this appears to be an issue on are ones using ADAPTEC 2110S scsci cards. It's a 2.4 kernel (in our case, Fedora's 2.4.22-1.2199.nptlsmp kernel, with the dpt_i2o module).

Thank you for the suggestion of using --bind. I'm sure it will come in handy

Anybody see a correlation here, or come across this in their journey's?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
why nfs lose loop device ? jiawj Slackware 1 03-31-2005 01:45 PM
What is Loop Device Support? Dswissmiss Linux - General 3 08-03-2004 08:36 PM
loop: can't open device /dev/loop0: No such device or address miaviator278 Linux - Security 3 06-09-2004 09:24 PM
bio too big device loop shakshuka Linux - General 3 02-25-2004 09:30 AM
UMSDOS vs. loop device okok Linux - General 5 01-29-2002 11:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 11:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration