Am 24.06.2011 09:43, schrieb Andreas Schwab:
Karel Zak <kzak(a)redhat.com> writes:
> The 'bind' flag is another way how to achieve that the filesystem is
> mounted on another place. Nothing other.
>
> # mount /dev/sdb1 /mnt/A
> # mount --bind /mnt/A /mnt/B
>
> is the same thing as:
>
> # mount /dev/sdb1 /mnt/A
> # mount /dev/sdb1 /mnt/B
There is a big difference between "mount --bind /mnt/A/B /mnt/B" and
"mount /dev/sdb1 /mnt/B"
the new dumb behavior BREAKS LOCATE, displays thousands of things
in "df", gives wrong error-messages for normal users if named
is running as chroot and should be REVERTED / FIXED
"locate" does find only things under "/Volumes/dune/www-servers"
# BIND-Mounts
/mnt/data/home /home none bind
/mnt/data/yum-cache /var/cache/yum none bind
/mnt/data/www/thelounge.net /Volumes/dune/www-servers none bind
/mnt/data/www/phpincludes /Volumes/dune/www-servers/phpincludes none bind
/dev/md2 is a RAID10
UUID=1abf071b-0c78-4b82-bb21-b3dfb269afa8 /mnt/data
/dev/md2 on /mnt/data type ext4
(rw,nosuid,noatime,nodiratime,stripe=256,inode_readahead_blks=64)
/dev/md2 on /home type ext4
(rw,nosuid,noatime,nodiratime,stripe=256,inode_readahead_blks=64)
/dev/md2 on /var/cache/yum type ext4
(rw,nosuid,noatime,nodiratime,stripe=256,inode_readahead_blks=64)
/dev/md2 on /Volumes/dune/www-servers type ext4
(rw,nosuid,noatime,nodiratime,stripe=256,inode_readahead_blks=64)
/dev/md2 on /Volumes/dune/www-servers/phpincludes type ext4
(rw,nosuid,noatime,nodiratime,stripe=256,inode_readahead_blks=64)