Sunil Mushran wrote:

I have not seen the changes in code but the comments in the bug
indicate they have to do with adding umounts in o2cb stop.

'init script' in bug report refers to new gentoo-style init script...
I added unmount to that one, not the original one... Please take a look at sys-fs/ocfs2-tools/files/ocfs2.init file in the attachment.

Maybe a better idea would be to have a generic ocfs2 mount/umount
service as follows:
http://oss.oracle.com/bugzilla/attachment.cgi?id=162
This one is for SLES9. Maybe someone can write one up for gentoo.

ocfs2 should be added to gentoo's list of network filesystems (I forgot to open a bug on baselayout, just did it now - gentoo bz#102659 ), so netmount script will take care of mounting and unmounting it.

However, if you decide to stop ocfs2 cluster by other means than rebooting, it's initscript should unmount every ocfs2 mountpoint. Piece of script I copied from gentoo's netmount is far more complex, since 'umount -at ocfs2' might fail if someone is still using files on ocfs2. It adds a extra layer, killing all the processes that have open files on the mountpoint one is trying to unmount, so I find it a better solution.

If so, please add it as an attachment to bug:
http://oss.oracle.com/bugzilla/show_bug.cgi?id=524
Doc-ing this would be far easier.

Will do, as soon as I fix errors previously noted by manish.singh. I think this piece of code should also be usable on SLES and RHEL...

--
LO275-RIPE

--
[email protected] mailing list

Reply via email to