mounting glusterfs on /etc/mtab read only

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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://zresearch.com/pipermail/gluster-users/attachments/20090316/02c40e37/attachment-0001.htm>


[Index of Archives]     [Gluster Development]     [Linux Filesytems Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux