Case 01 · Infrastructure · Python · AI-Assisted Engineering

NKMZ S3 Sync

Recovering ~2.8 TB of Oracle data from S3—and building the tool mid-flight

A real enterprise recovery job: pull a multi-terabyte Oracle dataset down from S3-compatible object storage into a self-contained virtual environment. When severe I/O stalls began locking up the VM, I ran systematic diagnostics from physical storage up to the hypervisor—and built a custom desktop tool in parallel, without halting recovery, to bring the database across the finish line.

  • ~2.8 TBOracle data files in S3-compatible storage
  • SHA-2565-zone spot check or full-file verification
  • 4 demostransfer, safe cleanup, integrity check, resume
  • Oracledatabase startup verified by the DBA

01 Challenge

Rebuild an Oracle environment from object storage—without corrupting data along the way

Context. This was a real production assignment for a major industrial manufacturer, not a classroom exercise. After key corporate workloads had been moved to the cloud, we needed to reconstruct a local, self-contained Oracle environment from S3-compatible storage, verify it end-to-end, and hand the drive off to a colleague—an Oracle specialist.

My scope. The infrastructure stack: Windows host, VMware virtualization, physical and virtual storage, data transfer, and integrity verification. Database administration and startup lived with my colleague.

Initiative. Nobody asked for custom software. I made the call to build it myself so I could eliminate repetitive manual checks and avoid re-pulling terabytes of data from scratch.

Scale & source

Roughly 2.8 TB of Oracle data files sitting in S3-compatible object storage. Multi-hour transfers, dropped sessions, and partial files were guaranteed realities—not edge cases.

Target environment

A standalone Oracle Linux VM running in VMware Workstation on a Windows host, with data landing on a dedicated volume exposed over SMB for handoff.

Definition of done

Not "files copied," but "verified and bootable": cryptographic integrity checks, checkpointed resume after interruptions, and a confirmed Oracle Database startup.

02 Diagnostics

When the whole stack freezes: isolating faults from bare drive to hypervisor

Under sustained file copies, the guest VM would grind to a halt and drop off the network. Instead of shotgunning config tweaks, I ran disciplined single-variable tests—one hypothesis, one measurement, one conclusion at a time.

Testbed

Windows HostAMD Ryzen 7 5800X · 8 cores / 16 threads · 32 GB RAM
VMware Workstationdesktop hypervisor · VMDK virtual disks
Oracle Linux 7 (Guest)8 vCPU · 8 GB RAM · Oracle Database
1 TB NVMeSamsunghealthy
2 TB NVMeKingstonhealthy
4 TB USB HDDToshiba · SMRI/O stalls

Observed failure symptoms

NMI watchdog: soft lockup RCU stalls SSH disconnects guest VM freeze

SCSI command timeouts across drives

Sample 1
224 s
Sample 2
528 s
Sample 3
207 s

89 GB VMDK-to-VMDK copy

Before switch
hung at 16 GB
Workstation 17.6.4
89 GB · ~36 MB/s
01Guest kernel & CPU modeKernel traces showed cross-CPU calls and TLB shootdowns; Hyper-V was inactive, with VMware executing at CPL0.checked
02Host I/O contentionMoving the VM paging file (.vmem) to fast NVMe and reserving RAM cut contention, but freezes persisted.partial
03VMware Tools disk pollingDisabled in an isolated run—had no effect on the lockups.ruled out
04Controllers, VMDK layout & USBSplit SCSI controllers, LSI Logic SAS, preallocated VMDKs, and rear motherboard USB ports were each tested separately.checked
05Offline VMDK test on ToshibaCreating a 100 GB preallocated VMDK stalled even with the VM powered off—while succeeding on the Kingston SSD—weakening the "guest OS / Oracle only" theory.pivotal
06VMware Workstation 17.6.4100.05 GiB preallocated VMDK built cleanly; Experiment #11 copied all five files (89 GB at ~36 MB/s), sync completed, zero soft lockups.stable
What isn't claimed here. Switching to Workstation 17.6.4 delivered a clear operational result, but that is not formal proof of a single root cause. Diagnostic hypotheses in this case study are presented strictly as tested hypotheses, not proven causes.

03 Engineering Decision

Why I built a custom tool instead of starting over

Every manual audit burned hours on the same two questions: which exact files didn't match S3, and could I pull down only the delta without restarting multi-gigabyte transfers? Re-downloading the entire dataset wasn't a serious option—so I built a dedicated sync utility while keeping recovery moving forward.

Before Manual workflow

  • Repetitive hand-checking of file lists and sizes
  • Missing or corrupted database files caught late
  • Dropped transfers risked starting huge files from byte zero
  • Heavy, repetitive manual effort with no disk-load visibility

After NKMZ S3 Sync

  • Automated S3 diffing by byte size and SHA-256 checksums
  • Selective sync of missing or mismatched files only
  • Checkpointed, byte-offset resumable downloads
  • Live disk telemetry plus structured LOG / CSV / HTML reports

04 Architecture

NKMZ S3 Sync: end-to-end data path from S3 to the Oracle volume

A Windows desktop application built with Python, PySide6, and Boto3. Objects stream from S3-compatible storage through diffing, staged transfer, and hash-verification pipelines onto an SMB share mounted to the Oracle Linux volume.

SOURCE S3-Compatible Object Storage ~2.8 TB dataset Oracle data files BOTO3 NKMZ S3 SYNC · PYTHON · PYSIDE6 GUI Scanner & Diff Engine file size · 5-zone SHA-256 · full SHA-256 · filters Transfer Engine sequential file writes · 1–5 concurrent files · job queue Checkpoints & Safe Swap staging .nkmzpart · resumable transfers · pre-swap check Live Telemetry & Reports disk load · real-time charts · LOG / CSV / HTML SMB WINDOWS Mapped Drive O: Samba share DESTINATION Oracle Linux ext4 · 3.2 TB VMDK UUID mount DB startup by DBA

Write profile over peak speed

Each file is written sequentially. On shingled magnetic recording (SMR) drives, a predictable write pattern matters far more than chasing peak MB/s.

Tunable concurrency

1 to 5 concurrent files backed by a queue, letting you pace throughput to the target disk rather than the network pipe.

Staging files & checkpoints

Downloads stream into temporary .nkmzpart files and replace the target file only after verification passes.

Three verification tiers

Byte size, 5-zone SHA-256 spot check, and full-file SHA-256—pick the right trade-off between speed and certainty.

Proper TLS & secret storage

Uses the Windows trust store instead of disabling TLS verification, and keeps S3 credentials in protected storage rather than plaintext config files.

Audit reports & safe cleanup

Generates LOG, CSV, and HTML reports, plus orphan-file detection—flagging local files absent from S3 for safe removal.

05 Data Integrity

Verification & resumable transfers: never losing hard-won progress

Switch between verification modes below to see which blocks of a file are sampled.

5-zone SHA-256 check

Catches
Does not guarantee
Important distinction. A 5-zone SHA-256 spot check is not equivalent to a full-file SHA-256 hash—it is a fast sampling check for multi-gigabyte files, and is explicitly treated as one throughout this case.
large_datafile.dbf → .nkmzpart idle
  1. Stream to .nkmzpart
  2. Save checkpoint
  3. Connection drop
  4. Resume from offset
  5. Verify file
  6. Safe swap
0%checkpoint: —
From the production log: resuming transfer from byte offset 3,040,870,400 — picked right up without re-downloading data already on disk.

06 Full Film & Demos

Complete technical walkthrough

Deep-dive video covering the production problem, VMware and storage diagnostics, software architecture, and four live demonstrations (Russian-language narration; click any chapter below to jump straight to that timestamp).

Four hands-on software demonstrations

DEMO 01

Transfer & disk load telemetry

Concurrent multi-file downloads paired with a real-time disk activity chart.

DEMO 02

Safe orphan-file cleanup

Detecting local files that don't exist in the S3 bucket and removing them safely.

DEMO 03

5-zone SHA-256 spot check

Sampling and comparing five strategic byte ranges against the S3 source.

DEMO 04

Resumable transfer recovery

Picking up an interrupted download right from its last saved checkpoint.

Software demonstrations were recorded against test data. Historical production outcomes are reported separately in the Results section below.

07 AI-Assisted Engineering

ChatGPT as a force multiplier—not an autopilot

I built NKMZ S3 Sync alongside active recovery operations using ChatGPT Plus across diagnostics, architecture, implementation, and test design. Engineering judgment and accountability stayed squarely with me.

Engineer My ownership

  • Problem framing, diagnostic order of operations, and strategy
  • Risk assessment and architectural trade-offs (SMR, SMB, TLS)
  • Running controlled tests on real hardware and interpreting logs
  • Code review, acceptance testing, and release gating

ChatGPT Plus Acceleration

  • Structuring diagnostic steps and parsing kernel / host logs
  • Iterating on module boundaries and state-machine edge cases
  • Drafting and refactoring Python, PySide6, and Boto3 code
  • Designing synthetic failure tests and debugging corner cases

The point isn't switching careers—it's combining deep infrastructure intuition, disciplined diagnostics, and AI-assisted software development to ship a working tool while the clock is ticking.

08 Results

Verified production outcomes

Historical production results, point-in-time snapshot measurements, and test-data demonstrations are kept strictly separate—just as they are in the film.

● Real production results
14 / 14

files passed 5-zone SHA-256 verification after recovery

Initial scan: 13 size matches, 1 mismatch, 0 errors. Zero mismatches after selective re-sync.

96.35 %

of overnight batch preserved via checkpoints

486.76 / 505.21 GB
19 recovered2 downloaded, metadata flag1 incomplete
2 files

re-verified in place without re-downloading payload

A protective metadata guard flagged two fully downloaded files; the tool re-verified both locally instead of pulling gigabytes over the wire again.

Oracle Database startup was confirmed by the Oracle specialist.

Environment handoff

  • New 3.2 TB ext4 volume replaced the legacy ext3 filesystem while preserving UUID mounts, Samba shares, VMX config, and ACLs.
  • 50 GiB system VMDK copied in 7 min 20 s (124.36 MB/s) with exact byte-size match across all three files.
  • Self-contained boot of Oracle Linux from the external drive, SSH access, and clean data-volume mount verified via command output.
  • SMART status: PASSED with 1 reallocated sector (0 pending / uncorrectable / CRC)—flagged for ongoing monitoring and never to be used as a sole copy.
Scope of verification. Oracle Database startup was confirmed. This does not imply a documented byte-for-byte check of every file in the dataset or long-term production burn-in.
Snapshot comparison

Toshiba drive load: third-party S3 client vs. NKMZ S3 Sync 1.2.0

Disk active time · 3rd-party client
94%
Disk active time · NKMZ S3 Sync
25%
Response time · 3rd-party client
467 ms
Response time · NKMZ S3 Sync
2.8 ms

NKMZ S3 Sync 1.2.0 sustained 26.20 MB/s across three concurrent files. These are point-in-time snapshots captured under different operating modes—not a controlled benchmark or a speedup guarantee.

Test-data demonstrations

DEMO 01–04 in the full film were recorded on synthetic test data to demonstrate application behavior and are not counted toward the production figures above.

Application release history

  • 1.0.0Core PySide6 GUI, verification modes, and checkpointed resume.
  • 1.1.0Run history, pinned reports, built-in docs, and size diffing.
  • 1.1.1Expanded table filters and UI refinements.
  • 1.2.01–5 concurrent file transfers, job queue, live disk telemetry, and charts.
  • 1.2.1LK app icon, telemetry from startup, orphan-file scan and safe deletion.
  • 1.2.2Samba deletion fix—tested and verified on the live share.
  • 1.2.3Planned: dynamic filtered byte totals, net-new-bytes ETA, and stall alerting. Held back intentionally until production recovery wrapped up.

09 Technology Stack

One project across infrastructure, software, and AI

Infrastructure

Oracle DatabaseOracle LinuxWindowsVMware WorkstationSambaSMARTNVMe / HDD / SMR

Software engineering

PythonPySide6Boto3S3 Object StorageSHA-256TLS

AI-assisted engineering

ChatGPT PlusDiagnosticsArchitectureQA & Testing
DiagnosticsIsolating root causes layer by layer instead of guessing.
DevelopmentTurning repetitive manual ops into reliable software.
QualityChecksums, staging guardrails, and audit trails.
OwnershipDriving the job all the way to a verified DB startup.

From knowledge to working solutions

Engineering experience. Artificial intelligence. Responsible decisions. Real results. Watch the complete technical walkthrough or explore the rest of the portfolio.