Re: [OpenIndiana-discuss] problems for setting up a high availability cluster on two openindiana machines
Hi, Marc The Directory you are looking for is the one defined in the SMF manifest. Or the default working directory of SMF services. It looks like the parent directories of that directory need to be accessible to the Corosync user aswell. Greetings Till On 21.02.22 09:33, Marc Lobelle wrote: Hello all, I'm trying to user the openindiana pacemaker package, using as documentation the "Clusters from scratch release 2.1.2", wich assumes CENT-OS(LINUX) as underlying OS and a 2014 document called "Use pacemaker and corosync on Illumos (OmniOS) to run a Ha active/passive cluster.", starting from the section "Corosync configuration". The user is hacluster and he has the right to su and sudo, to ssh to the other node without password nor passphrase. I attached the corosync configuration file, the smf manifest and the smf startup script. When I start the corosync service and look at what happened, I get this: root@mosquito:~# cat `svcs -L corosync` ... ... [ févr. 21 13:05:12 Leaving maintenance because disable requested. ] [ févr. 21 13:05:12 Disabled. ] [ févr. 21 13:05:23 Rereading configuration. ] [ févr. 21 13:05:31 Enabled. ] [ févr. 21 13:05:31 Executing start method ("/etc/smf/corosyncd start"). ] *shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied* Feb 21 13:05:32 notice [MAIN ] main.c:main:1352 Corosync Cluster Engine ('2.4.5'): started and ready to provide service. Feb 21 13:05:32 info [MAIN ] main.c:main:1353 Corosync built-in features: testagents monitoring augeas xmlconf qdevices snmp bindnow Feb 21 13:05:33 warning [MAIN ] main.c:corosync_set_rr_scheduler*:884 Could not set SCHED_RR at priority 59: Not owner (1)* Feb 21 13:05:33 warning [MAIN ] main.c:main:1438 *Could not set priority -2147483648: Permission denied (13)* [ févr. 21 13:05:38 Method "start" exited with status 0. ] shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied cmap connection setup failed: CS_ERR_NOT_EXIST . Retrying in 1s cmap connection setup failed: CS_ERR_NOT_EXIST . Retrying in 2s cmap connection setup failed: CS_ERR_NOT_EXIST . Retrying in 3s cmap connection setup failed: CS_ERR_NOT_EXIST . Retrying in 4s cmap connection setup failed: CS_ERR_NOT_EXIST . Retrying in 5s Could not connect to Cluster Configuration Database API, error 12 [ févr. 21 13:05:53 Stopping because all processes in service exited. ] [ févr. 21 13:05:53 Executing stop method ("/etc/smf/corosyncd stop"). ] [ févr. 21 13:05:54 Method "stop" exited with status 0. ] [ févr. 21 13:05:54 Executing start method ("/etc/smf/corosyncd start"). ] shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied Feb 21 13:05:56 notice [MAIN ] main.c:main:1352 Corosync Cluster Engine ('2.4.5'): started and ready to provide service. Feb 21 13:05:56 info [MAIN ] main.c:main:1353 Corosync built-in features: testagents monitoring augeas xmlconf qdevices snmp bindnow Feb 21 13:05:56 warning [MAIN ] main.c:corosync_set_rr_scheduler:884 Could not set SCHED_RR at priority 59: Not owner (1) Feb 21 13:05:56 warning [MAIN ] main.c:main:1438 Could not set priority -2147483648: Permission denied (13) [ févr. 21 13:06:01 Method "start" exited with status 0. ] shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied ... root@mosquito:~# I do not understand which parent directory cannot be accessed nor why priorities cannot be set. Can anybody help me ? Thanks Marc ___ openindiana-discuss mailing list openindiana-discuss@openindiana.org https://openindiana.org/mailman/listinfo/openindiana-discuss ___ openindiana-discuss mailing list openindiana-discuss@openindiana.org https://openindiana.org/mailman/listinfo/openindiana-discuss
[OpenIndiana-discuss] problems for setting up a high availability cluster on two openindiana machines
Hello all, I'm trying to user the openindiana pacemaker package, using as documentation the "Clusters from scratch release 2.1.2", wich assumes CENT-OS(LINUX) as underlying OS and a 2014 document called "Use pacemaker and corosync on Illumos (OmniOS) to run a Ha active/passive cluster.", starting from the section "Corosync configuration". The user is hacluster and he has the right to su and sudo, to ssh to the other node without password nor passphrase. I attached the corosync configuration file, the smf manifest and the smf startup script. When I start the corosync service and look at what happened, I get this: root@mosquito:~# cat `svcs -L corosync` ... ... [ févr. 21 13:05:12 Leaving maintenance because disable requested. ] [ févr. 21 13:05:12 Disabled. ] [ févr. 21 13:05:23 Rereading configuration. ] [ févr. 21 13:05:31 Enabled. ] [ févr. 21 13:05:31 Executing start method ("/etc/smf/corosyncd start"). ] *shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied* Feb 21 13:05:32 notice [MAIN ] main.c:main:1352 Corosync Cluster Engine ('2.4.5'): started and ready to provide service. Feb 21 13:05:32 info [MAIN ] main.c:main:1353 Corosync built-in features: testagents monitoring augeas xmlconf qdevices snmp bindnow Feb 21 13:05:33 warning [MAIN ] main.c:corosync_set_rr_scheduler*:884 Could not set SCHED_RR at priority 59: Not owner (1)* Feb 21 13:05:33 warning [MAIN ] main.c:main:1438 *Could not set priority -2147483648: Permission denied (13)* [ févr. 21 13:05:38 Method "start" exited with status 0. ] shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied cmap connection setup failed: CS_ERR_NOT_EXIST . Retrying in 1s cmap connection setup failed: CS_ERR_NOT_EXIST . Retrying in 2s cmap connection setup failed: CS_ERR_NOT_EXIST . Retrying in 3s cmap connection setup failed: CS_ERR_NOT_EXIST . Retrying in 4s cmap connection setup failed: CS_ERR_NOT_EXIST . Retrying in 5s Could not connect to Cluster Configuration Database API, error 12 [ févr. 21 13:05:53 Stopping because all processes in service exited. ] [ févr. 21 13:05:53 Executing stop method ("/etc/smf/corosyncd stop"). ] [ févr. 21 13:05:54 Method "stop" exited with status 0. ] [ févr. 21 13:05:54 Executing start method ("/etc/smf/corosyncd start"). ] shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied Feb 21 13:05:56 notice [MAIN ] main.c:main:1352 Corosync Cluster Engine ('2.4.5'): started and ready to provide service. Feb 21 13:05:56 info [MAIN ] main.c:main:1353 Corosync built-in features: testagents monitoring augeas xmlconf qdevices snmp bindnow Feb 21 13:05:56 warning [MAIN ] main.c:corosync_set_rr_scheduler:884 Could not set SCHED_RR at priority 59: Not owner (1) Feb 21 13:05:56 warning [MAIN ] main.c:main:1438 Could not set priority -2147483648: Permission denied (13) [ févr. 21 13:06:01 Method "start" exited with status 0. ] shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied ... root@mosquito:~# I do not understand which parent directory cannot be accessed nor why priorities cannot be set. Can anybody help me ? Thanks Marc # Please read the corosync.conf.5 manual page # create /etc/corosync/authkey with corosync-keygen # copy /etc/corosync/authkey to each node # restrict access with chmod 400 /etc/corosync/authkey totem { cluster_name: okapi_cluster version: 2 interface { ringnumber: 0 #bindnetaddr: 192.168.178.0 broadcast: yes mcastport: 5405 ttl: 1 } transport: udpu } logging { fileline: on function_name: on to_stderr: on to_logfile: on to_syslog: off syslog_facility: local6 logfile: /var/log/hacluster/corosync.log debug: trace logfile_priority: error syslog_priority: error tags: enter|leave|trace timestamp: on # logger_subsys { # subsys: QUORUM # debug: off # } } # expected_votes only to start with one node in the cluster ! quorum { provider: corosync_votequorum expected_votes: 1 # two_node: 1 } # already defined in SMF #qb { # ipc_type: socket #} nodelist { node { nodeid: 1 ring0_addr: okapi1 } node { nodeid: 2 ring0_addr: okapi2 } } #!/usr/bin/bash . /lib/svc/share/smf_include.sh ## Tracing with debug version # PCMK_trace_files=1 # PCMK_trace_functions=1 # PCMK_trace_formats=1 # PCMK_trace_tags=1 export PCMK_ipc_type=socket PREFIX=/usr/ CLUSTER_USER=hacluster COROSYNC=corosync PACEMAKERD=pacemakerd PACEMAKER_PROCESSES=pacemaker APPPATH=${PREFIX}/sbin/ SLEEPINTERVALL=10 SLEEPCOUNT=5 SLEPT=0 killapp() { pid=`pgrep -f $1` if [ "x$pid" != "x" ]; then kill -9 $pid fi return 0 } start() { stop su ${CLUSTER_USER} -c ${APPPATH}${COROSYNC} sleep $sleep0 su ${CLUSTER_USER} -c ${APPPATH}${PACEMAKERD} &
Re: [OpenIndiana-discuss] VirtualBox Error because of kernel module version
On 20.02.2022 20:22, Stephan Althaus wrote: Hello! I am getting errors today and had not updated for a week or so, virtualbox was last running on friday. Maybe someone can check the kernel module versions if they are the same as i have: $ VBoxManage startvm aLinux Waiting for VM "aLinux" to power on... VBoxManage: error: The virtual machine 'aLinux' has terminated unexpectedly during startup with exit code 1 (0x1) VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component MachineWrap, interface IMachine $ modinfo|grep -i vb *239 fa05b000 5a270 304 1 vboxdrv (VirtualBox HostDrv 6.1.30r14843) <- ???* 240 fa09d000 79e8 305 1 vboxflt (VirtualBox NetDrv 6.1.30r148432) 240 fa09d000 79e8 - 1 vboxflt (VirtualBox NetMod 6.1.30r148432) 241 f9cc34f8 d38 306 1 vboxnet (VirtualBox NetAdp 6.1.30r148432) 244 fa0b 70e0 307 1 vboxusb (VirtualBox USB 6.1.30r148432) 245 fa0b7000 4838 308 1 vboxusbmon (VirtualBox USBMon 6.1.30r148432 $ pkg info virtualbox Name: system/virtualbox Summary: VirtualBox - general-purpose full virtualizer Category: System/Virtualization State: Installed Publisher: openindiana.org Version: 6.1.30 Branch: 2022.0.0.2 Packaging Date: January 28, 2022 at 06:55:02 AM Last Install Time: September 7, 2019 at 07:43:17 PM Last Update Time: February 2, 2022 at 12:05:54 PM Size: 124.01 MB FMRI: pkg://openindiana.org/system/virtualbox@6.1.30-2022.0.0.2:20220128T065502Z Source URL: https://download.virtualbox.org/virtualbox/6.1.30/VirtualBox-6.1.30.tar.bz2 Project URL: https://www.virtualbox.org/ Greetings, Stephan Hi Stephan, I have identical package and modules: :; modinfo|grep -i vb 182 f9ce94f8 d38 289 1 vboxnet (VirtualBox NetAdp 6.1.30r148432) 184 f9f3f000 5a270 287 1 vboxdrv (VirtualBox HostDrv 6.1.30r14843) 246 fa2a2000 79e8 288 1 vboxflt (VirtualBox NetDrv 6.1.30r148432) 246 fa2a2000 79e8 - 1 vboxflt (VirtualBox NetMod 6.1.30r148432) 247 fa2aa000 70e0 290 1 vboxusb (VirtualBox USB 6.1.30r148432) 248 fa2b1000 4838 291 1 vboxusbmon (VirtualBox USBMon 6.1.30r148432 VB guest (CentOS 8 Stream) was started (in headless mode) w/o problems, from /var/log/messages: Feb 21 12:44:26 solarium kernel: vboxguest: loading out-of-tree module taints kernel. Feb 21 12:44:26 solarium kernel: vboxguest: module verification failed: signature and/or required key missing - tainting kernel Feb 21 12:44:26 solarium kernel: vboxguest: Successfully loaded version 6.1.30 r148432 Regards. P.S: OI was updated on :; beadm list -K date oi_220215.oi_nvidia BE Active Mountpoint Space Policy Created oi_220215.oi_nvidia NR / 51,76G static 2022-02-15 14:15 ___ openindiana-discuss mailing list openindiana-discuss@openindiana.org https://openindiana.org/mailman/listinfo/openindiana-discuss -- Predrag Zečević predrag.zecevic.1...@googlemail.com ___ openindiana-discuss mailing list openindiana-discuss@openindiana.org https://openindiana.org/mailman/listinfo/openindiana-discuss