Enno Lange
2009-Mar-08 13:05 UTC
[Gluster-users] mounting glusterfs on /etc/mtab read only
Hi, we running a cluster of diskless gentoo-systems. Therefore, /etc/mtab is linked to /proc/mounts as usual. Trying to mount a glusterfs fails because mtab is not writable. Is there by any chance a way to pass '-n' or something equivalent to the underlying mount -t fuse process? The actual workaround we deployed is to link /etc/mtab to a local file on a scratch partition, which in my opinion is quite unsatisfying: The mount process will succeed but the mounted fs will not appear in the linked /etc/mtab. Enno Lange
Harshavardhana
2009-Mar-09 17:42 UTC
[Gluster-users] mounting glusterfs on /etc/mtab read only
Hi Enno, Currently there is no such option, we will add it under development roadmap. Regards -- Harshavardhana "Yantra Shilpi" Z Research Inc - http://www.zresearch.com On Sun, Mar 8, 2009 at 6:35 PM, Enno Lange <Enno.Lange at iem.rwth-aachen.de>wrote:> Hi, > > we running a cluster of diskless gentoo-systems. Therefore, /etc/mtab is > linked to /proc/mounts as usual. Trying to mount a glusterfs fails because > mtab is not writable. Is there by any chance a way to pass '-n' or something > equivalent to the underlying mount -t fuse process? > > The actual workaround we deployed is to link /etc/mtab to a local file on a > scratch partition, which in my opinion is quite unsatisfying: The mount > process will succeed but the mounted fs will not appear in the linked > /etc/mtab. > > Enno Lange > > _______________________________________________ > 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/20090309/13510dfe/attachment.html>
Enno Lange
2009-Mar-10 22:01 UTC
[Gluster-users] mounting glusterfs on /etc/mtab read only
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