LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (http://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Ext3 warnings on a loop device (http://www.linuxquestions.org/questions/linux-hardware-18/ext3-warnings-on-a-loop-device-256783/)

andreseso 11-19-2004 05:28 AM

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.

nhs 11-19-2004 06:31 AM

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.

jalons 12-09-2004 09:47 PM

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?


All times are GMT -5. The time now is 03:27 AM.