autofs mount point on same box?

Reindl Harald h.reindl at thelounge.net
Sun May 5 14:51:24 UTC 2013



Am 05.05.2013 16:46, schrieb Frank Murphy:
> On Sun, 05 May 2013 16:41:23 +0200
> Reindl Harald <h.reindl at thelounge.net> wrote:
> 
>> why would anybody do this?
> 
> To only have /md2 mounted as necessary,
> without clicking/typing anything..
> 
>> a bind-mount on your /etc/fstab is your friend
>>
>> /shareyumcache  /var/cache/yum  none  bind
>>
> 
> Would this allow it to be only mounted when accessed
> I'm not familiar with using bind. 
> man bind has just brought up 982 lines of confusion currently

bind is not a command, bind is a mount-type
look again at the line i posted!

why would anybody mount it only on access to make the setup
useless more fragile? this is a simple local alias!

http://docs.1h.com/Bind_mounts
_____________________________

my bind-mounts in /etc/fstab and /mnt/data is /dev/md2

# BIND-Mounts
/mnt/data/home               /home                                   none  bind
/mnt/data/.tmp               /tmp                                    none  bind
/mnt/data/.tmp               /var/tmp                                none  bind
/mnt/data/www/thelounge.net  /Volumes/dune/www-servers               none  bind
/mnt/data/www/phpincludes    /Volumes/dune/www-servers/phpincludes   none  bind
_____________________________

[root at srv-rhsoft:~]$ mount | grep /dev/md2
/dev/md2 on /mnt/data type ext4 (rw,nosuid,noatime,nodiratime,commit=45,stripe=256,inode_readahead_blks=256)
/dev/md2 on /Volumes/dune/www-servers type ext4
(rw,nosuid,noatime,nodiratime,commit=45,stripe=256,inode_readahead_blks=256)
/dev/md2 on /var/tmp type ext4 (rw,nosuid,noatime,nodiratime,commit=45,stripe=256,inode_readahead_blks=256)
/dev/md2 on /tmp type ext4 (rw,nosuid,noatime,nodiratime,commit=45,stripe=256,inode_readahead_blks=256)
/dev/md2 on /home type ext4 (rw,nosuid,noatime,nodiratime,commit=45,stripe=256,inode_readahead_blks=256)
/dev/md2 on /Volumes/dune/www-servers/phpincludes type ext4
(rw,nosuid,noatime,nodiratime,commit=45,stripe=256,inode_readahead_blks=256)
/dev/md2 on /mnt/data/www/thelounge.net/phpincludes type ext4
(rw,nosuid,noatime,nodiratime,commit=45,stripe=256,inode_readahead_blks=256)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 263 bytes
Desc: OpenPGP digital signature
URL: <http://lists.fedoraproject.org/pipermail/users/attachments/20130505/1cf39521/attachment.sig>


More information about the users mailing list