[Ocfs2-users] mount readonly without lockmanager

Dennis Kruyt d.kruyt at zx.nl
Wed Jun 25 01:40:14 PDT 2008


I think I can use the heartbeat-none mount option in this case, right?
But when I use it it mounts fine, but I see when I tyope mount both heartbeat=none and heartbeat=local?
Is this a bug?

root at dennis-laptop:/# umount /mnt
root at dennis-laptop:/# mount -t ocfs2 -o ro,heartbeat=none /dev/loop0 /mnt/
root at dennis-laptop:/# mount | grep ocfs
ocfs2_dlmfs on /dlm type ocfs2_dlmfs (rw)
/dev/loop0 on /mnt type ocfs2 (ro,_netdev,heartbeat=none,heartbeat=local)


________________________________________
From: ocfs2-users-bounces at oss.oracle.com [ocfs2-users-bounces at oss.oracle.com] On Behalf Of Dennis Kruyt [d.kruyt at zx.nl]
Sent: Wednesday, June 25, 2008 8:41 AM
To: Sunil Mushran
Cc: ocfs2-users at oss.oracle.com
Subject: Re: [Ocfs2-users] mount readonly without lockmanager

Thanks,

But the filesystem is on a SAN, and shared arcoss 3 nodes. One of that node I dont wat a lockmanager and the system ro. Becus I got some problems there with the lockmanager, do IO problems. But if I mark the filesystem as local. Is it then not local for all nodes? I want it only for one of the 3 nodes.

Dennis,-
________________________________________
From: Sunil Mushran [Sunil.Mushran at oracle.com]
Sent: Tuesday, June 24, 2008 8:08 PM
To: Dennis Kruyt
Cc: ocfs2-users at oss.oracle.com
Subject: Re: [Ocfs2-users] mount readonly without lockmanager

Sure.

You can mark the volume as local (man tunefs.ocfs2 or mkfs.ocfs2)
and mount it without the cluster stack (like any local file system).

You can use the ro mount option to mount it readonly.

Combine the two and you get what you want.

BTW, if the fs image on a physical ro media, the fs automatically
detects it and mounts it ro with no cluster stack.

Sunil

Dennis Kruyt wrote:
> Is it posible to mount the ocfs2 filesystem in readonly without using the lock manager?
>
> Dennis,-
>
> _______________________________________________
> Ocfs2-users mailing list
> Ocfs2-users at oss.oracle.com
> http://oss.oracle.com/mailman/listinfo/ocfs2-users
>


_______________________________________________
Ocfs2-users mailing list
Ocfs2-users at oss.oracle.com
http://oss.oracle.com/mailman/listinfo/ocfs2-users



More information about the Ocfs2-users mailing list