AboutBlogContact
DatabasesNovember 5, 2001 2 min read 121Updated: June 22, 2026

AIX 5L: JFS2 Logging Internals (2001)

AunimedaAunimeda
📋 Table of Contents

AIX 5L: JFS2 Logging Internals

With AIX 5L, IBM introduced JFS2 (Enhanced Journaled File System). While JFS was great, JFS2 handles massive files and high-concurrency workloads like a champ. The secret sauce? The log manager and its use of inline logs or dedicated log devices.

Extent-Based Allocation

Unlike older block-based systems, JFS2 uses extents. An extent is a contiguous sequence of blocks. This reduces fragmentation and improves I/O performance for large databases.

# Creating a JFS2 filesystem with an inline log
crfs -v jfs2 -g rootvg -m /data -a size=1G -a logname=INLINE

The Transaction Log

JFS2 doesn't log data; it logs metadata. This ensures that even after a crash, the filesystem structure remains consistent. The log records describe changes to inodes, maps, and directories.

When a metadata change occurs, the kernel writes a log record to the log buffer.

/* Simplified conceptual view of a JFS2 log record */
struct jfs2_log_record {
    uint32_t transaction_id;
    uint16_t record_type;
    uint32_t inode_number;
    uint64_t offset;
    uint32_t length;
    char     undo_data[LOG_SIZE];
    char     redo_data[LOG_SIZE];
};

If the system crashes, the logredo command (run during boot) replays these records. Redo records are applied for committed transactions, and undo records are used for uncommitted ones. By keeping the log on a separate, fast disk (like a high-speed SSA array), you can significantly boost write performance for Oracle or DB2 workloads.


Aunimeda builds backend systems with optimized database architectures - PostgreSQL, Redis, ClickHouse, and more.

Contact us for backend and database engineering. See also: Custom Software Development

Read Also

PostgreSQL EXPLAIN ANALYZE: Reading Query Plans Like a Senior DBAaunimeda
Databases

PostgreSQL EXPLAIN ANALYZE: Reading Query Plans Like a Senior DBA

Stop guessing why your queries are slow. Learn to read PostgreSQL query plans at a level where you can actually fix problems - seq scans, join strategies, row estimate disasters, and the N+1 you didn't know was hiding in your ORM output.

Drizzle ORM vs Prisma in 2026: A Production Engineer's Honest Comparisonaunimeda
Databases

Drizzle ORM vs Prisma in 2026: A Production Engineer's Honest Comparison

Both ORMs are genuinely good. The choice depends on your migration discipline, whether you hit Prisma's edge runtime limitations, and how much you care about the SQL Drizzle generates vs the DX Prisma provides. Here's the honest comparison - same query, both ORMs, real trade-offs.

Postgres BML: Binary Model Loading and Vector Speed (2025)aunimeda
Databases

Postgres BML: Binary Model Loading and Vector Speed (2025)

Postgres is no longer just for rows. In 2025, BML allows us to load ML models directly into the database for ultra-low latency inference.

Need IT development for your business?

We build websites, mobile apps and AI solutions. Free consultation.

Get Consultation All articles