Since V95, the China-domestically developed GBase 8a MPP database from GBASE runs entirely under a dedicated non-root OS user. If someone starts the cluster as root instead, root-owned log and pid files can be created. Later, when the service runs under that account again, it can no longer access those files and the service fails to start.
Symptom
One node's gcware service stays CLOSE; its log shows the process starting and exiting repeatedly.
Analysis
The first of two ERROR lines points to the cause:
Corosync Executive couldn't create lock file. The lock file could not be created. Working through the usual suspects:
- Disk space: no sign of a full filesystem.
- OS logs:
/var/log/messagesshows no disk errors. - gcware pid directory:
gcware/run/gcware.pidis owned by root:root.
Root cause
The gcware service had once been started with the OS root user, which produced that pid file. On the next start the service switched back to the non-root OS user, which has no permission to access the root-owned file — so the lock file cannot be created and startup fails.
Resolution
Switch to the OS root user, change the pid file's ownership to gbase:gbase, then restart the gcware service.
Going forward, keep cluster start, stop and restart operations under the same dedicated OS user on every node of a gbase cluster. Ownership drift on a single file is easy to overlook, yet it is enough to keep an entire database node in CLOSE state and stall a rolling restart.
