Hi again,

 I've a strange bug in aufs. I'll try to explain:
 
I've this aufs:

none / aufs 
rw,xino=/etfw_changes/.aufs.xino,dirs=/etfw_changes=rw:/cdrom/confs=ro:/cdrom/tmpdir/1=ro:/cdrom/tmpdir/2=ro:/cdrom/tmpdir/3=ro:/cdrom/tmpdir/4=ro:/cdrom/tmpdir/5=ro:/cdrom/tmpdir/6=ro:/cdrom/tmpdir/7=ro:/cdrom/tmpdir/8=ro:/cdrom/tmpdir/9=ro:/cdrom/tmpdir/10=ro:/cdrom/tmpdir/11=ro:/cdrom/tmpdir/12=ro:/cdrom/tmpdir/13=ro:/cdrom/tmpdir/14=ro:/cdrom/tmpdir/15=ro:/cdrom/tmpdir/16=ro:/cdrom/tmpdir/17=ro:/cdrom/tmpdir/18=ro:/cdrom/tmpdir/19=ro:/cdrom/tmpdir/20=ro:/etfw=ro
 
0 0

/cdrom/tmpdir/3 is something like this:

/var/log/squid/access.log
/var/log/squid/cache.log
/var/log/squid/store.log

If I do an ls -la /var/log/squid/ before centos rc script starts, the 
directory is ok:

[EMAIL PROTECTED](~)# ls -la /var/log/squid/
total 16
drwxr-xr-x  1 squid squid   60 Feb 21 17:11 .
drwxr-xr-x  1 root  root    80 Feb 21 17:11 ..
-rw-r--r--  1 squid squid 3109 Feb 21 17:11 access.log
-rw-r--r--  1 squid squid 3109 Feb 21 17:11 cache.log
-rw-r--r--  1 root  root    47 Feb 21 17:11 squid
-rw-r--r--  1 squid squid 3109 Feb 21 17:11 store.log

but if I don't access to the directory /var/log/squid before centos rc script 
starts, the directory is corrupt:

[EMAIL PROTECTED](~)# ls -la /var/log/squid/
total 4
drwxr-xr-x  1 squid squid 60 Feb 21 17:23 .
drwxr-xr-x  1 root  root  80 Feb 21 17:23 ..
drwxr-xr-x  1 root  root  80 Feb 21 17:23 access.log
drwxr-xr-x  1 root  root  80 Feb 21 17:23 cache.log
drwxr-xr-x  1 root  root  80 Feb 21 17:23 store.log

[EMAIL PROTECTED](~)# ls -la /var/log/squid/access.log/
total 1
?---------  ? ?     ?      ?            ? .
drwxr-xr-x  1 squid squid 72 Jan  1  1970 ..
?---------  ? ?     ?      ?            ? dnscache
?---------  ? ?     ?      ?            ? qmail-send

I've narrowed it down to this line in the script:
[ -d /etc/rc$runlevel.d ] || exit 0

Which doesn't make any sense. Can you please help?

Regards,
Fernando Gomes

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

Reply via email to