Hi,
Let's assume we have two nodes - A and B - with /usr/local/httpd on a DRBD
volume. Node A goes down, node B becomes primary, then node A comes back
to life and B has to give back the DRBD volume. So it should stop apache,
unmount /usr/local/httpd and set /dev/drbd0 as secondary.
What if something else than apache opened a file in /usr/local/httpd? For
example someone started 'joe /usr/local/httpd/etc/httpd.conf'. The
'umount' command will fail and the resource will be 'unstoppable'.
Should I do something like this before umounting:
for i in `lsof -n | grep REG | grep /usr/local/httpd | awk '{print $2}'
| sort | uniq` ; do kill -9 $i ; done
?
In fact I wanted to use DRBD on /home directory to provide
highly-available mail service. Before unmounting /home I'll stop postfix,
pop3d, imapd, etc., but what if someone has shell access and reads mail
with 'pine'?
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.
Anyone did such things already?
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