[Gluster-users] mounting glusterfs on /etc/mtab read only
Harshavardhana
harsha at zresearch.com
Mon Mar 16 06:55:49 UTC 2009
Ok,
There is a way, recently i saw something in the fuse configuration.
"./configure --disable-mtab"
Now with this option if you build fuse based filesystems will not update
/etc/mtab.
So i think there is nothing that glusterfs needs to provide as such,
unless fuse gives
enhanced API for fuse_mount to request for ignoring mtab.
Regards
--
Harshavardhana
"Yantra Shilpi"
Z Research Inc - http://www.zresearch.com
On Wed, Mar 11, 2009 at 3:31 AM, Enno Lange
<Enno.Lange at iem.rwth-aachen.de>wrote:
> Hi,
>
> Keith Freedman wrote:
>
>> why not look into editing /sbin/mount.glusterfs
>> if you're mounting through fstab or the mount command that seems the
>> logical place to address this.
>>
> The idea would be to copy /proc/mounts to a local filesystem, to which
> /etc/mtab points. After mount succeeded, you have to relink the link to
> /proc/mounts.....
>
> 1. /etc/mtab -> /<tmpfs>/mymtab -> /proc/mounts
> 2. rm /<tmpfs>/mymtab
> 3. cp /proc/mounts /<tmpfs>/mymtab (creating an empty file should be
> sufficient...)
> 4. mount glusterfs volume
> 5. rm /<tmpfs>/mymtab
> 6. ln -s /proc/mounts /<tmpfs>/mymtab
>
> All these steps should can be implemented in a fail save way in
> /sbin/mount.glusterfs
>
> Cheers
> Enno
>
>>
>> At 12:31 AM 3/10/2009, Enno Lange wrote:
>>
>>> On Monday 09 March 2009 18:46:28 Smart Weblications GmbH - Florian
>>> Wiessner
>>> wrote:
>>> > why not use tmpfs and link /etc/mtab to tmpfs?
>>> This would actually give the same result: You can mount any glusterfs
>>> volume
>>> but they will not appear in <linkto>/mtab. Though, they will appear
>>> in /proc/mounts.
>>> This is somewhat tricky, as you wont't be able to unmount the volume
>>> gracefully.
>>> IMHO this is quite a disadvantage because for any (system-)diskless
>>> computation cluster this tricky situation comes up.
>>>
>>> Another workaround might be to replace /bin/mount with a script, which
>>> keeps
>>> the link <linkto>/mtab in sync with /proc/mounts. Will check on this
>>> soon.
>>>
>>> Enno
>>>
>>> --
>>> Dipl.-Ing. Enno Lange, Wissenschaftlicher Mitarbeiter
>>> Institut fuer Elektrische Maschinen
>>> Lehrstuhl fuer Elektromagnetische Energiewandlung
>>> RWTH Aachen, Schinkelstr. 4, D-52056 Aachen
>>> Tel. +49 241 80 97644, Fax +49 241 80 92270
>>>
>>> _______________________________________________
>>> Gluster-users mailing list
>>> Gluster-users at gluster.org
>>> http://zresearch.com/cgi-bin/mailman/listinfo/gluster-users
>>>
>>
>>
>> _______________________________________________
>> Gluster-users mailing list
>> Gluster-users at gluster.org
>> http://zresearch.com/cgi-bin/mailman/listinfo/gluster-users
>>
>
>
> _______________________________________________
> Gluster-users mailing list
> Gluster-users at gluster.org
> http://zresearch.com/cgi-bin/mailman/listinfo/gluster-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://supercolony.gluster.org/pipermail/gluster-users/attachments/20090316/02c40e37/attachment.html>
More information about the Gluster-users
mailing list