GBase 8a organizes data as directories and files on the operating system's filesystem, so a full disk or a directory without write permission normally produces no space left on device. In this case from the China-domestically developed GBase 8a MPP database from GBASE, disk space, permissions and inodes all checked out clean. The real cause was the entire data directory moved with mv while services were still running — a service restart brought the cluster back.
Symptom
A cluster installed only 2 days earlier and not yet in production failed on CREATE TABLE with No Space left on device.
Investigation
-
Disk space:
df -hwas clean.df -iis normally fine on a fresh install; on a long-running cluster with many tables, check whether inodes are exhausted too. -
Install directory permissions: as
dbaUser, cd into the install directory, confirm the owner matches the database OS user and group, thentoucha file to test writing. No problem found. -
Directory writability: try
mkdirandtouch. One field case hitcannot create directory : Too many links, withcreate table tmpdb.XXXfailing and a manual directory creation undergctmpdb's metadata failing the same way — which pointed at filesystem internals. -
Data directory permissions: the
userdatadirectories of gnode and gcluster had correct ownership and modes. - umask: a 0222 umask has been seen in the field (no write permission by default); this site used 0002, so it was fine.
- Other DDL: creating a database succeeded, but creating a table inside the new database still failed.
- Server logs: no new log lines at all. The last entry was dated May 29, while the current day was May 31.
-
Install directory, second look: the user had linked
/opt/gbaseto/data12/gbase. The link timestamp was May 29, 18:42, while the last database startup was May 29, 18:33 — the data files had most likely been moved while services were still up. The site confirmed it: a plainmvfollowed by a link, with no service stop.
Resolution
Restart the database services; the cluster recovers.
Why it happens
Creating a database only creates a directory, with no in-process cache, so it still succeeds. Creating a table has to buffer metadata. Moving the whole data directory with mv breaks the file descriptors (FDs) that running processes still hold — log files and the redo log become unusable, writes fail, and the error surfaces.
Going forward, stop the services of a gbase cluster before any data migration on the database host. A moved directory is cheap to fix with a restart, but only when the move is done with the services down; the same message from a genuinely full disk needs a completely different fix.
Top comments (1)
This is a valuable reminder that a filesystem error can be an in-process state problem rather than a capacity problem. The diagnostic sequence is strong; I would add a preflight migration check that refuses a data-path move while database processes still hold file descriptors under that tree.