Is it posible to mount the ocfs2 filesystem in readonly without using the lock manager? Dennis,-
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 >
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 >
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
SUNIL.MUSHRAN at ORACLE.COM
2008-Jun-25 15:16 UTC
[Ocfs2-users] mount readonly without lockmanager
User specified heartbeat=xx mount option is ignored. The mount option is added by the mount.ocfs2 merely to inform the user as to how the fs has been mounted. You cannot mount the fs on multiple nodes without the lock manager even if only one node is writing to the fs. Afterall, the nodes reading need to be informed that the fs is morphing under them and that they need to refresh the updated inodes. Instead, expand on the problem you encountered with the lock manager. There are lots of people running the fs on more than the 3 nodes that you have. Best would be to file a bugzilla with the details. Sunil -------------- next part -------------- An embedded message was scrubbed... From: Dennis Kruyt <d.kruyt at zx.nl> Subject: Re: [Ocfs2-users] mount readonly without lockmanager Date: Wed, 25 Jun 2008 10:40:14 +0200 Size: 5978 Url: http://oss.oracle.com/pipermail/ocfs2-users/attachments/20080625/176d9b9f/attachment-0001.mht