[Ocfs2-users] mount type heartbeat=local

Sunil Mushran sunil.mushran at oracle.com
Wed Sep 14 12:44:03 PDT 2011


To mount without heartbeat, you have to make it a local mount.
Maybe mount.ocfs2 should error out if user specifies heartbeat=...

To make it mount locally:
umount on all nodes
tunefs.ocfs2 --fs-features=local /dev/mapper/....
mount /dev/mapper/...  /mnt/path

To revert:
umount
tunefs.ocfs2 --fs-features=nolocal /dev/mapper/...

On 09/14/2011 12:23 PM, Ulf Zimmermann wrote:
>
> Sunil, I was trying to see what the speed difference would be if I mount a volume with no heartbeat (for copy purpose):
>
> dbtest01 root /home/ulf # mount -o datavolume,nointr,heartbeat=none /dev/mapper/350002ac001380dab /export/coptest/
>
> dbtest01 root /home/ulf # mount
>
> /dev/mapper/350002ac001380dab on /export/coptest type ocfs2 (rw,_netdev,datavolume,nointr,heartbeat=none,heartbeat=local)
>
> This was with o2cb running, is this right? This is on EL5 with ocfs2 1.4.7 and tools 1.4.4
>
> *From:*ocfs2-users-bounces at oss.oracle.com [mailto:ocfs2-users-bounces at oss.oracle.com] *On Behalf Of *Sunil Mushran
> *Sent:* Friday, September 09, 2011 9:46 PM
> *To:* Hai Tao
> *Cc:* ocfs2-users at oss.oracle.com
> *Subject:* Re: [Ocfs2-users] mount type heartbeat=local
>
> That's mount type. Yes, we should not have overloaded the term "local".
>
> On 09/09/2011 07:53 PM, Hai Tao wrote:
>
> but this is what I saw in the guide
>
>
>       OCFS2 - A Cluster File System For Linux <http://oss.oracle.com/projects/ocfs2/dist/documentation/v1.4/ocfs2-1_4-usersguide.pdf>
>
>
> **
>
> *Mount Type*
>
> Valid types are
>
> /cluster /and /local/, with the former also being the default. Specify
>
> /
> local/if you intend to use the file system on one node only.
>
>
>
> Thanks.
>
> Hai Tao
>
>
> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Date: Fri, 9 Sep 2011 19:04:28 -0700
> From: sunil.mushran at oracle.com <mailto:sunil.mushran at oracle.com>
> To: taoh666 at hotmail.com <mailto:taoh666 at hotmail.com>
> CC: ocfs2-users at oss.oracle.com <mailto:ocfs2-users at oss.oracle.com>
> Subject: Re: [Ocfs2-users] mount type heartbeat=local
>
> That mount option is appended by mount.ocfs2. It tells users
> the heartbeat mode. "none" means non-clustered. "local" means
> the heartbeat region is on the mounted volume. This is the default
> mode. In 1.8 we have "global" which means the heartbeat region
> has been configured on 1+ devices. local and global are only
> pertinent in the o2cb stack. If you are using pacemaker, you will
> see cluster_stack=pcmk and not heartbeat=.
>
> There is no heartbeat=cluster.
>
> On 09/09/2011 04:43 PM, Hai Tao wrote:
>
> Hi,
>
> when I mount ocfs2 file system, what the heartbeat=local option means? what is the difference between heartbeat=local and heartbeat=cluster (I know that is default)?
>
> Thanks.
>
> Hai
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://oss.oracle.com/pipermail/ocfs2-users/attachments/20110914/741930ce/attachment-0001.html 


More information about the Ocfs2-users mailing list