-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 12/21/2012 08:14 AM, Ulrich Windl wrote: >>>> Dimitri Maziuk <dmaz...@bmrb.wisc.edu> schrieb am 20.12.2012 um 17:50 in > Nachricht <50d341c3.1040...@bmrb.wisc.edu>: > Hi! > > So (pseudo-code following) > > if (host(NFS_server) == host(NFS_client)) > rmdir(mountpoint); > ln -s export_dir mountpoint > else > makedir(mountpoint); > mount(NFS_Server:export_dir, mountpoint)
Hmm - I was trying to something similar using bind mounts instead of symlinks which is more compatible to applications which may probe for DIRECTORIES and not also SYMLINKS. Unfortunately at least for SAP Workloads this is not an option, because all Instances must be killed to switch from a bind mount to an NFS mount and vice versa. This would decrease the availability of the Application level. The problem are already opened file handels which can't be shifted from the bind-Mount to the NFS-mount. For all files and directories which are only opened after the FS switch that might be OK, but again that would also mean to kill all application processes using the FS. I do not see that this would be a fissible solution. Kind regards Fabian > > ? > > Now when som program does a "cd mountpoint" and the NFS Server would move to > another host, you'd have to kill all processes that use mountpoint to be able > to unmount it. > In contrast with the NFS solution, the client applications would be blocked > until NFS server is running on the other node. Obviously this solution seems > preferrable. > > Regards, > Ulrich > > > _______________________________________________ > Linux-HA mailing list > Linux-HA@lists.linux-ha.org > http://lists.linux-ha.org/mailman/listinfo/linux-ha > See also: http://linux-ha.org/ReportingProblems > -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) Comment: Using GnuPG with undefined - http://www.enigmail.net/ iQEcBAEBAgAGBQJQ1f7hAAoJEJ1uHhrzMvZRmtcIAKeeOvfr67Ml3+oEd8mLI8hh WtqOfHzF5S1zhlnV+T3yli64E7xxFP42cR41dWJlZTU/McC6fFQbMklXLgagrqWc 0PC81BL9i4dBHFqFZDyg/GPmfSusXU3FCFftR5qYyiF6SAUfbdKWgzCUqCzpCcXX XHkOM8z9j9mgCDmYpbdjZfFyDu7XtVwQNyCl+OV5MBw3K0xBNBabpZ1yoYG7m5Nz xG4dk9YcO1PtReo0PkT2gg9vTJT8umPQdKGI6O6RstnpJR5lOCKHWUIjZ4tzlNqU bNoNSVLS4SYG6bH1hF8ZiC1p6Kc5ZxDyxJ51MbMmz7fkKum0BKUBCtm+a6TAcDA= =DM80 -----END PGP SIGNATURE----- _______________________________________________ Linux-HA mailing list Linux-HA@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems