[Openais] [call for porters to test corosync]

Steven Dake sdake at redhat.com
Thu Jun 18 18:56:20 PDT 2009


Wojtek,

I've done a bit more work on portability.  I ran your install test case
and found the directories required by corosync are not present in
default csw.  Corosync doesn't warn the user and proceeds without
actually being functional.

Note the requirement for the ais user is now gone.  If you want to run
clients as user AIS, (or yourself) You can create ais user support by
adding a uidgid.d directory to your etc/corosync directory.  In that
dir, place a file called 

"ais" with contents
uidgid {
	uid: ais
	gid: ais
}

Finally if suing to root from a normal user, this apparently doesn't
promote your privileges enough for the getpeerucred() syscall.  Instead
you must do su - root

I ran 1 million cpgverifys single node and that appears to work.
cpgbench also works although alarm() has an odd behavior of resetting
the alarm signal handler to the default.

I'd be interested in your cpgbench numbers and logsysbench numbers.

All code is currently in trunk.

regards
-steve

On Tue, 2009-06-16 at 10:47 +0200, Wojtek Meler wrote:
> bash-3.00# uname -a
> SunOS zone5.farm-7.dev 5.10 Generic_127128-11 i86pc i386 i86pc
> 
> run in foreground to see if it is running
> 
> bash-3.00# corosync -f -p
> Jun 16 10:30:21 corosync [MAIN  ] Corosync Executive Service RELEASE 'trunk'
> Jun 16 10:30:21 corosync [MAIN  ] Copyright (C) 2002-2006 MontaVista 
> Software, Inc and contributors.
> Jun 16 10:30:21 corosync [MAIN  ] Copyright (C) 2006-2008 Red Hat, Inc.
> Jun 16 10:30:21 corosync [MAIN  ] Corosync Executive Service: started 
> and ready to provide service.
> Jun 16 10:30:21 corosync [MAIN  ] Successfully read main configuration 
> file '/opt/csw/etc/corosync.conf'.
> Jun 16 10:30:21 corosync [SERV  ] Service initialized 'corosync extended 
> virtual synchrony service'
> Jun 16 10:30:21 corosync [SERV  ] Service initialized 'corosync 
> configuration service'
> Jun 16 10:30:21 corosync [SERV  ] Service initialized 'corosync cluster 
> closed process group service v1.01'
> Jun 16 10:30:21 corosync [SERV  ] Service initialized 'corosync cluster 
> config database access v1.01'
> Jun 16 10:30:21 corosync [SERV  ] Service initialized 'corosync profile 
> loading service'
> 
> on other window i run
> 
> Steven Dake pisze:
> > cpgverify
> > should not stop single node
> >   
> bash-3.00# ./cpgverify
> cpg_join failed with result 6
> bash-3.00# su ais
> bash-3.00$ ./cpgverify
> Segmentation Fault (core dumped)
> bash-3.00$ mdb /var/core/core.zone5.farm-7.dev.cpgverify.5146.1245141935
> Loading modules: [ libc.so.1 ld.so.1 ]
>  > ::stack
> libc.so.1`memcpy+0x162(8092ba4, feffb104, 28, 1, 0, feff0a80)
> libcoroipcc.so.4.0.0`coroipcc_msg_send_reply_receive+0xd8(0, 88aa102, 
> 8047764, 1, 8047748, 18)
> libcpg.so.4.0.0`cpg_join+0x157(0, 7be9c1bd, 8060e40, feffb818)
> main+0x3d(1, 8047890, 8047898)
> _start+0x5d(1, 8047964, 0, 8047970, 80479a2, 80479ad)
> 
> 
> compiled with gcc4, ./configure --disable-nss --prefix=/opt/csw & 
> manually removed pkgconfig subdir from makefile
> 
> regards,
> Wojtek
> 



More information about the Openais mailing list