FAQ
How to is possible this?

[root at lucatest ~]# ls -lid /var/log /var/log/ispconfig /var/log/ispconfig/httpd /var/log/ispconfig/httpd/prova.it /var/log/ispconfig/httpd/prova.it/test /var/www /var/www/clients /var/www/clients/client1 /var/www/clients/client1/web3 /var/www/clients/client1/web3/log /var/www/clients/client1/web3/log/test
706 drwxr-xr-x. 15 root root 4096 29 mag 08:44 /var/log
69619 drwxr-xr-x 3 root root 4096 8 mag 18:05 /var/log/ispconfig
69620 drwxr-xr-x 6 root root 4096 29 mag 10:54 /var/log/ispconfig/httpd
253961 drwxr-xr-x 2 root root 4096 29 mag 12:21 /var/log/ispconfig/httpd/prova.it
253984 -rw-r--r-- 1 root root 0 29 mag 12:21 /var/log/ispconfig/httpd/prova.it/test
44509 drwxr-xr-x. 12 root root 4096 29 mag 10:54 /var/www
79376 drwxr-xr-x 4 root root 4096 22 mag 12:57 /var/www/clients
87935 drwxr-xr-x 7 root root 4096 29 mag 10:54 /var/www/clients/client1
253953 drwxr-xr-x 9 root root 4096 29 mag 10:54 /var/www/clients/client1/web3
253961 drwxr-xr-x 2 root root 4096 29 mag 12:21 /var/www/clients/client1/web3/log
253984 -rw-r--r-- 1 root root 0 29 mag 12:21 /var/www/clients/client1/web3/log/test

See this two folder:


1) /var/log/ispconfig/httpd/prova.it
2) /var/www/clients/client1/web3/log


have the same inode (253953) and none of the parent dirs are symbolic
link (l) but (d), and dir is not possible to generate it with hard link.


If I put a file into first dir, the file there is also into second dir.


See also this two file:


1) /var/log/ispconfig/httpd/prova.it/test
2) /var/www/clients/client1/web3/log/test


these file have same inode 253984 but its not hard or soft link, if I
modify first file also the second file is modified


There is only one filesystem and is the root filesystem.


How to is possible this situation?


Many thanks


--
Dario Lesca - sip:dario at solinos.it
(Inviato dal mio Linux Fedora18+Gnome3)

Search Discussions

  • Kahlil Hodgson at May 29, 2013 at 9:42 pm
    Early in the morning and I haven't finished my coffee yet, but this could
    be a bind mount.
    Search for the 'bind' option in the mount man page for an explanation.
    You should be able to tell by looking at the output of


        mount


    Also check /etc/fstab


    K


    Kahlil (Kal) Hodgson GPG: C9A02289
    Head of Technology (m) +61 (0) 4 2573 0382
    DealMax Pty Ltd (w) +61 (0) 3 9008 5281


    Suite 1415
    401 Docklands Drive
    Docklands VIC 3008 Australia


    "All parts should go together without forcing. You must remember that
    the parts you are reassembling were disassembled by you. Therefore,
    if you can't get them together again, there must be a reason. By all
    means, do not use a hammer." -- IBM maintenance manual, 1925






    On Thu, May 30, 2013 at 2:37 AM, Dario Lesca wrote:

    How to is possible this?
    [root at lucatest ~]# ls -lid /var/log /var/log/ispconfig
    /var/log/ispconfig/httpd /var/log/ispconfig/httpd/prova.it/var/log/ispconfig/httpd/
    prova.it/test /var/www /var/www/clients /var/www/clients/client1
    /var/www/clients/client1/web3 /var/www/clients/client1/web3/log
    /var/www/clients/client1/web3/log/test
    706 drwxr-xr-x. 15 root root 4096 29 mag 08:44 /var/log
    69619 drwxr-xr-x 3 root root 4096 8 mag 18:05 /var/log/ispconfig
    69620 drwxr-xr-x 6 root root 4096 29 mag 10:54
    /var/log/ispconfig/httpd
    253961 drwxr-xr-x 2 root root 4096 29 mag 12:21
    /var/log/ispconfig/httpd/prova.it
    253984 -rw-r--r-- 1 root root 0 29 mag 12:21
    /var/log/ispconfig/httpd/prova.it/test
    44509 drwxr-xr-x. 12 root root 4096 29 mag 10:54 /var/www
    79376 drwxr-xr-x 4 root root 4096 22 mag 12:57 /var/www/clients
    87935 drwxr-xr-x 7 root root 4096 29 mag 10:54
    /var/www/clients/client1
    253953 drwxr-xr-x 9 root root 4096 29 mag 10:54
    /var/www/clients/client1/web3
    253961 drwxr-xr-x 2 root root 4096 29 mag 12:21
    /var/www/clients/client1/web3/log
    253984 -rw-r--r-- 1 root root 0 29 mag 12:21
    /var/www/clients/client1/web3/log/test

    See this two folder:

    1) /var/log/ispconfig/httpd/prova.it
    2) /var/www/clients/client1/web3/log

    have the same inode (253953) and none of the parent dirs are symbolic
    link (l) but (d), and dir is not possible to generate it with hard link.

    If I put a file into first dir, the file there is also into second dir.

    See also this two file:

    1) /var/log/ispconfig/httpd/prova.it/test
    2) /var/www/clients/client1/web3/log/test

    these file have same inode 253984 but its not hard or soft link, if I
    modify first file also the second file is modified

    There is only one filesystem and is the root filesystem.

    How to is possible this situation?

    Many thanks

    --
    Dario Lesca - sip:dario at solinos.it
    (Inviato dal mio Linux Fedora18+Gnome3)


    _______________________________________________
    CentOS mailing list
    CentOS at centos.org
    http://lists.centos.org/mailman/listinfo/centos
  • Dario Lesca at May 30, 2013 at 8:06 am

    Il giorno gio, 30/05/2013 alle 07.42 +1000, Kahlil Hodgson ha scritto:
    Early in the morning and I haven't finished my coffee yet, but this could
    be a bind mount.
    Search for the 'bind' option in the mount man page for an explanation.
    You should be able to tell by looking at the output of

    mount

    Also check /etc/fstab

    Thanks Kahlil! .. and Quiet, coffee woke you up very well


    This "magic link" is due to bind mount

    [root at lucatest ~]# cat /etc/fstab|grep ispconfig
    /var/log/ispconfig/httpd/lucawp.it /var/www/clients/client1/web2/log none bind,nobootwait 0 0
    /var/log/ispconfig/httpd/lucajo.it /var/www/clients/client1/web1/log none bind,nobootwait 0 0
    /var/log/ispconfig/httpd/prova.it /var/www/clients/client1/web3/log none bind,nobootwait 0 0
    /var/log/ispconfig/httpd/festantro.it /var/www/clients/client1/web4/log none bind,nobootwait 0 0
    /var/log/ispconfig/httpd/webe.it /var/www/clients/client1/web5/log none bind,nobootwait 0 0

    Now everything is clear, it must be a news of last version of ISPConfig


    Many thanks


    --
    Dario Lesca - sip:dario at solinos.it
    (Inviato dal mio Linux Fedora18+Gnome3)

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupcentos @
categoriescentos
postedMay 29, '13 at 4:37p
activeMay 30, '13 at 8:06a
posts3
users2
websitecentos.org
irc#centos

2 users in discussion

Dario Lesca: 2 posts Kahlil Hodgson: 1 post

People

Translate

site design / logo © 2021 Grokbase