<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from rtf -->
<style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<font face="Calibri, sans-serif" size="2">
<div>Hi,</div>
<div> </div>
<div>I am configuring a service that uses HA-LVM and XFS filesystem on top of it.</div>
<div>The filesystem will be backed up by a separate script run from cron(8) creating an LVM snapshot of the filesystem and mounting it on a mountpoint.</div>
<div><font face="Times New Roman, serif"> </font></div>
<div>To have a foolproof HA service I need to:</div>
<div><font face="Times New Roman, serif"> </font></div>
<ul style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 36pt; ">
<li>Check, if the snapshot filesystem is mounted</li><li>If it is, all processes running in it need to be killed</li><li>Then the snapshot filesystem needs to be unmounted.</li></ul>
<div><font face="Times New Roman, serif"> </font></div>
<div>All of that is a prerequisite for HA-LVM to be able to do its work on the volume group.  HA-LVM needs to deactivate the volume group.  Once this is done the relocation of the service to another node will succeed</div>
<div><font face="Times New Roman, serif"> </font></div>
<div>I could configure a script resource with a script that would do the 3 steps listed above as part of its stop action.  It would have essentially null start and status actions.</div>
<div><font face="Times New Roman, serif"> </font></div>
<div>Is there a better, more elegant way of achieving the same result e.g. using the filesystem resource?</div>
<div> </div>
<div>Thanks and regards,</div>
<div> </div>
<div>Chris Jankowski</div>
<div><font face="Times New Roman, serif"> </font></div>
<div><font face="Times New Roman, serif"> </font></div>
</font>
</body>
</html>