[Linux-HA] Solution for Auto-Mount/Unmount an Ext3 Filesystem
mzfroshany at gmail.com
Tue Jun 1 08:45:40 MDT 2010
Thanks Karl. It did worked. This made me familiar with the details of
And Thank you David for that nice point. I did that by "tune2fs -i 0
> I use just such a set-up on a three node cluster of web-servers, the disk
> system gets mounted automatically on the active node. (The SAN serves it
> to all three, and any of the three can mount it, but the resource agent
> to it that it is only mounted by one node at a time.)
> Mine looks something like this:
> <primitive class="ocf" id="My_Disk" provider="heartbeat"
> <op id="My_Disk_mon" interval="25s" name="monitor"
> <instance_attributes id="My_Disk_inst_attr">
> <nvpair id="My_Disk_dev" name="device" value="/dev/sdb1"/>
> <nvpair id="My_Disk_mountpoint" name="directory"
> <nvpair id="My_Disk_fstype" name="fstype" value="ext3"/>
> <nvpair id="My_Disk_status" name="target_role"
> David wrote:
> >>> On 5/29/2010 at 04:54 AM, Mozafar Roshany <mzfroshany at gmail.com>
> > I've a mail system with two active/passive nodes using Heartbeat; these
> > servers use an ext3 partition on SAN storage for mailboxes. I want that
> > partition always be mounted on the active node. I mean when node switch
> > occurs for any reason, the partition be mounted/unmounted on
> > new-active/pre-active server automatically. I saw the Filesystem
> Filesystem is the right one. If you're using EXT3, you'll also want to look
> at tune2fs to ensure that you don't have an extended unplanned outage as ext
> spends time with fsck if it hasn't been run lately.
More information about the Linux-HA