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
[email protected]
http://zresearch.com/cgi-bin/mailman/listinfo/gluster-users
_______________________________________________
Gluster-users mailing list
[email protected]
http://zresearch.com/cgi-bin/mailman/listinfo/gluster-users
_______________________________________________
Gluster-users mailing list
[email protected]
http://zresearch.com/cgi-bin/mailman/listinfo/gluster-users