Diagnosis and Native IMPORT Assistance

To assess readable file ranges or native IMPORT eligibility, run read-only diagnosis first and prepare a separate working copy. The following sections describe diagnosis, capture and task registration in detail.


I. Diagnose Original Files

diagnose ibd /recovery-input/orders.ibd /recovery-input/diagnose.conf;
diagnose inventory /recovery-input/expected-files.manifest;
diagnose instance /recovery-input/instance.manifest;

Diagnosis retains original errors and offsets, distinguishing file extraction, missing definitions, sparse pages and rejected paths. Passing diagnosis neither guarantees a bootable instance nor replaces IMPORT eligibility assessment.


II. Capture Deleted Files That Remain Open

capture fd <PID> <FD> /recovery-work/new-capture-task;

The incident engineer must confirm PID/FD. Linux capture copies read-only without closing the owner FD or stopping the source process. A live copy alone does not prove cold database consistency. Use a new capture-task directory.


III. Assess IMPORT Eligibility

import qualify /recovery-input/orders.ibd /recovery-input/diagnose.conf /recovery-input/import.conf;
import prepare /recovery-input/orders.ibd /recovery-input/diagnose.conf /recovery-input/import.conf /recovery-work/new-import-task;

Eligibility and preparation use a separate working copy, retaining source identity and operation evidence. Ordinary InnoDB, partitions, FULLTEXT, CFG/CFP and INSTANT each require their own eligibility conditions and profiles. Confirm definitions, tablespace layouts, keys and target versions before preparation.


IV. Inspect Tasks and Record External Results

import show /recovery-work/new-import-task;
import record /recovery-work/new-import-task <phase> /recovery-input/native-result.conf;

Phase names and native-result profiles must come from actual external execution records for this run. Record phases in the order of the task manifest. FULLTEXT uses its own flow including OPTIMIZE; do not skip intermediate phases. Preparation is not completed IMPORT, and phase registration does not trigger automatic trial imports.


Output Files

Retain diagnosis reports, capture tasks, IMPORT operation lists and original phase results. Use paths reported by commands without extending partial acceptance to all objects.

After export, record native success and failure counts and original errors. Resume uses records and file metadata such as existence and size without rereading or validating exported data.

MySQL 文档