cetrafs

0.10.6 Linux kernel module + tools · GPL / AGPL

Many hosts, one LUN.
One filesystem.

cetrafs, said /ˈtʃɛtra ɛf ɛs/, CHEH-trah ef-ess (cetra as in Italian, then the English letters F and S), is a clustered, shared-disk filesystem for Linux. Several hypervisors mount the same iSCSI or Fibre Channel LUN at once and keep their VM disk images directly on it, coordinating through the storage itself. It is an open alternative to VMFS.

Shared-disk clustering

Up to 64 nodes mount one block device. Each node allocates only from the Zone Groups it owns, so two nodes never draw from the same free-space pool.

One atomic primitive

Every contested claim is a single SCSI COMPARE AND WRITE on one 512-byte record. It is the same idea as VMFS's ATS, with no DLM, no corosync and no network protocol in the data path.

Crash consistent

Each node has its own write-ahead redo journal. It is replayed at mount and whenever a dead peer is reclaimed, and a replay guard refuses to roll back blocks that someone else has since rewritten.

Checksummed end to end

CRC32C on every on-disk structure and on every 512-byte sector of the allocation bitmaps, verified by the kernel on read. Damage found at runtime is contained to the file it touches.

Live migration

With nofilelock, a VM image can be open on two nodes during a Proxmox/qemu online-migration handoff, and the handoff stays coherent even across a snapshot.

Online maintenance

Grow a mounted volume, give freed space back to a thin LUN, defragment live images, and let a background scrubber reclaim leaked blocks. fsck.cetra can check a volume while it is in use.

Built for one workload

cetrafs is a VM datastore, not a general-purpose POSIX cluster filesystem. Keeping to that narrow contract is what lets it run without a cluster lock manager in the I/O path.

613–710
MB/s O_DIRECT writes on a 3PAR LUN, about 2.3× GFS2 on the same LUN
64
hosts per volume at most, each owning its own allocation regions
1 EiB
maximum size of a single file, with up to 65 million extents
0
daemons, lock managers or cluster networks required in the data path

Find what you need

Pick a section based on what you are trying to do.

Tested harder than it is built

Every change has to pass 837 regression suites and about 6,600 assertions, and five suites in six prove they fail without the fix they guard. Two-node scenarios run on real Fibre Channel and iSCSI storage, crash tests replay every write up to arbitrary cuts, and hostile images are fuzzed against fsck and the mount. There is more test code than filesystem code.