If would be the best to replace underlying DRBD with NFS so that user could
still operate on his files without logging out, but user processes (including
bash) would have to be restarted to reopen the files.
I'll answer to myself (partially) - first of all I found 'Filesystem' OCF
script and it's use of fuser command (so the recommended solution is to
kill everything), second - I read a note on http://www.linux-ha.org/HaNFS
saying that "NFS-mounting any filesystem on your NFS servers is highly
discouraged".
I don't understand why. I did that manually and it worked:
- mounted /dev/drbd2 as /usr/local/mysql-drbd
- added IP 10.0.0.1 to eth0
- started NFS
- mounted via NFS 10.0.0.1:/usr/local/mysql-drbd as /usr/local/mysql
Then:
- stopped mysqld (just in case)
- stopped NFS server
- removed IP 10.0.0.1
- unmounted /dev/drbd2 (only nfsd used it) and set it as secondary
On second node:
- set /dev/drbd2 as primary
- mounted it as /usr/local/mysql-drbd
- added IP 10.0.0.1 to eth0
- started NFS
And the directory was still accessible from the first node. So what's
wrong with such configuration and why it should be avoided? It has
advantages - users having shell access won't notice that something has
changed, postfix will be able to deliver mail queued in local spool, etc.
Best regards,
Piotr
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems