Conceptio › Archive › arXiv CS
arXiv CS open access

CephMaestro: A Safety-Gated AI Agent for Natural-Language Ceph Storage Management

Vladislav Esaulov et al. · arxiv_cs
arXiv CS · Papers
Open Source ↗Direct PDF ↓
kerneloperating-systemsvirtualization
Managing Ceph storage clusters is challenging because operators must reason across interacting subsystems such as OSDs, placement groups, pools, CRUSH topology, and recovery behavior, and many tasks require multi-step diagnosis and careful verification. Large language models (LLMs) could reduce this
Conceptio Open Archive

Analyze & explore related research in Conceptio

Connect this record directly into your research workflow or AI agent. Explore citations across open repositories, query full text, and export structured proof bundles.

arXiv:2611.35236v1 [cs.DC] 25 Nov 2026

C EPH M AESTRO: A Safety-Gated AI Agent for Natural-Language Ceph Storage Management 1st Vladislav Esaulov

2nd Lipeng Wan

Georgia State University Atlanta, GA vesaulov1@student.gsu.edu

Georgia State University Atlanta, GA lwan@gsu.edu

Abstract—Managing Ceph storage clusters is challenging because operators must reason across interacting subsystems such as OSDs, placement groups, pools, CRUSH topology, monitors, managers, recovery behavior, capacity usage, and performance symptoms. Many tasks require multi-step diagnosis, statedependent interpretation, and careful verification. Recent advances in large language models create an opportunity to reduce this burden by enabling natural-language Ceph management. However, applying LLMs to Ceph raises two practical challenges. First, storage management is safety-critical: incorrect actions may take services offline, compromise availability or durability, or cause data loss; even less destructive mistakes can trigger unnecessary data movement, recovery storms, or severe client-I/O disruption. Second, large proprietary or high-parameter LLMs can be expensive and slow for interactive system management, motivating designs that work with smaller open-source models. This paper presents C EPH M AESTRO, a safety-gated AI agent for natural-language Ceph storage management. C EPH M AESTRO uses an LLM to interpret operator intent, select tools, and construct workflows, while separating model-driven planning from deterministic execution control. The system exposes 112 typed Ceph tools, combines a fast path for simple requests with a bounded ReAct-style loop for multi-step workflows, and mediates state-changing actions through a deterministic action engine that performs risk classification, confirmation gating, dry-run handling, rate limiting, and audit logging. We evaluate C EPH M AESTRO using five locally served open-source models and 122 Ceph management prompts covering health inspection, OSD management, pool operations, placement-group diagnosis, CRUSH-related tasks, recovery tuning, and safetysensitive operations. ReAct-style execution consistently improves workflow completion, with the best model reaching 91.3±0.5% goal achievement. A shortcut-ablation study shows that multistep reasoning improves goal achievement from 65.8% to 80.2% even without deterministic shortcuts, while shortcuts further raise ReAct performance to 91.9% and reduce average latency from 90.3s to 3.8s. C EPH M AESTRO’s deterministic safety layer achieves 100% risk-classification accuracy on 95 labeled actions and gates all 37 high-risk workflow cases with zero observed unsafe leaks. These results show that smaller open-source LLMs can support useful Ceph management assistance when model planning is constrained by storage-aware execution control. Index Terms—Ceph, storage system management, large language models, AI agents, tool-augmented reasoning, AI safety

I. I NTRODUCTION Distributed storage systems are foundational infrastructure for cloud platforms, enterprise services, and data-intensive scientific computing. Among them, Ceph [1] is widely used

because it provides scalable object, block, and file storage over commodity hardware. This flexibility, however, creates substantial management complexity. A Ceph cluster exposes many interacting subsystems, including object storage devices (OSDs), placement groups (PGs), pools, CRUSH topology [2], monitors, managers, metadata servers, recovery mechanisms, device health information, capacity state, and performance counters. Operators must interpret these signals to diagnose failures, plan maintenance, tune recovery, manage capacity, and preserve availability. Ceph management is difficult because many tasks are not isolated command invocations. Diagnosing degraded PGs may require checking cluster health, mapping PGs to acting OSDs, inspecting OSD status, reasoning about recovery activity, and verifying that the cluster eventually returns to an active+clean state. Replacing an OSD requires determining whether the daemon is down, whether replicas remain available, whether the OSD is safe to destroy, and whether subsequent backfill may overload the cluster. Even when individual Ceph commands are well documented, operators must know which commands to run, in what order, how to interpret their outputs, and when it is safe to proceed. Recent advances in large language models (LLMs) create an opportunity to reduce this operational burden. An LLM-based assistant can allow operators to express management goals in natural language, such as “why is my cluster degraded?”, “is it safe to remove this OSD?”, or “show me the likely cause of slow operations”. Instead of manually assembling command sequences, the assistant can translate the request into a workflow, gather relevant cluster state, call appropriate tools, and summarize observations in an operator-friendly form. In this paper, we focus on locally served open-source LLMs with relatively small parameter counts because large proprietary or high-parameter models can be expensive, slow, and difficult to deploy inside storage-management environments. However, applying LLMs to Ceph management raises a safety challenge that is more severe than in ordinary question answering or log summarization. A hallucinated command, omitted precondition, or misclassified intent may take storage services offline, compromise data availability or durability, or cause data loss. Even less destructive mistakes can trigger unnecessary data movement, recovery storms, or severe clientI/O disruption. Therefore, the central question is not simply

© 2026 IEEE. Personal use of this material is permitted. Permission from IEEE must be obtained for all other uses, in any current or future media, including reprinting/republishing this material for advertising or promotional purposes, creating new collective works, for resale or redistribution to servers or lists, or reuse of any copyrighted component of this work in other works. Accepted to the 32nd IEEE International Conference on Parallel and Distributed Systems (ICPADS 2026).

whether an LLM can generate plausible Ceph commands, but how to design an AI agent that can assist operators with complex Ceph workflows while preventing the model from directly controlling safety-critical storage operations. C EPH M AESTRO addresses this challenge with a safetygated architecture for natural-language Ceph storage management. The system treats the LLM as a planner rather than an execution authority. The model interprets the operator request, selects tools, and constructs a management workflow, while concrete actions pass through deterministic system components before they can affect the cluster. C EPH M AESTRO exposes a finite registry of typed Ceph tools instead of allowing arbitrary shell-command generation. It also uses a deterministic action engine to classify risk, enforce confirmation requirements, support dry-run behavior, apply rate limits, and record audit traces. C EPH M AESTRO further recognizes that different Ceph requests require different execution modes. Simple informational requests, such as checking cluster health or listing OSDs, should be handled quickly. More complex tasks, such as diagnosing degraded PGs or planning maintenance, require iterative observation and reasoning. C EPH M AESTRO therefore combines a fast single-tool path with a bounded ReAct-style loop, both mediated by the same typed tool registry and safety gate. This paper makes the following contributions: • We present C EPH M AESTRO , a natural-language AI agent for Ceph storage management that maps operator requests to structured workflows over 112 typed Ceph tools. • We introduce a safety-gated execution architecture that separates LLM-based planning from deterministic execution control, preventing the model from directly executing unsafe storage operations. • We evaluate C EPH M AESTRO using five locally served open-source models and 122 Ceph management prompts, showing that ReAct-style execution consistently improves workflow goal achievement over a simple path. • We show that deterministic safety gating provides modelindependent protection: the action engine achieves 100% risk-classification accuracy on 95 labeled actions and gates all 37 high-risk workflow cases with zero observed unsafe leaks. Our results show that smaller open-source LLMs can support useful Ceph management assistance, but only when they are integrated into guarded control frameworks rather than used as unconstrained command generators. II. M OTIVATION AND D ESIGN G OALS The main design question for C EPH M AESTRO is how much authority an LLM should have in a Ceph management workflow. A simple approach would place the model directly between the operator and the cluster: the user issues a naturallanguage request, the model generates Ceph commands, and the system executes them. Although simple, this design is unsafe for storage management. Ceph commands vary widely in risk: some only inspect cluster state, while others change

placement, trigger recovery, remove daemons, or delete data. User intent may also be ambiguous; for example, “fix the degraded cluster” could mean diagnose the cause, restart a failed daemon, mark an OSD out, or simply wait for recovery. Prior work has made individual Ceph subsystems programmable— for example, Mantle [3] lets operators inject custom metadata load-balancing policies—but such efforts target one subsystem rather than a unified natural-language management interface. C EPH M AESTRO therefore introduces a structured boundary between model-generated intent and executable Ceph actions. A. Failure Modes of Direct LLM Control We identify five failure modes that guide the design of C EPH M AESTRO. F1: Command hallucination. An unconstrained model may generate invalid Ceph commands, unsupported flags, or shell pipelines outside the intended management interface. F2: Missing preconditions. Many Ceph operations require checks before execution. For example, removing an OSD should be preceded by inspecting OSD state, PG state, redundancy, and whether the OSD is safe to destroy. F3: Confusing diagnosis with remediation. Actionoriented requests such as “fix this warning” may require diagnosis first. A safe assistant should not assume that the user has authorized a mutating remediation action. F4: Unsafe parameter choices. The risk of a command often depends on its parameters. Pool settings, recovery tunables, and OSD actions must be inspected before execution. F5: Unbounded agent behavior. A multi-step agent may repeatedly call tools or continue probing without progress. Interactive management requires bounded and auditable reasoning. These failure modes suggest that the LLM should act as a planner within a constrained management framework, not as a Ceph administrator with direct execution authority. B. Design Goals These failure modes lead to five design goals. G1: Natural-language intent mapping. Operators should express Ceph management intent in natural language, and the system should map requests to appropriate inspection or management tools while distinguishing diagnosis from authorized remediation. G2: Bounded tool-mediated interaction. The model should not generate arbitrary shell commands. It should interact with Ceph through a finite registry of typed tools with explicit schemas and normalized outputs, giving the framework structured actions to inspect and audit. G3: Support for simple and multi-step workflows. Routine status queries should be handled efficiently, while diagnostic workflows should support bounded multi-step reasoning with iteration limits, time budgets, duplicate-call suppression, and stall detection. G4: Planning-execution separation. The LLM should interpret requests, select tools, and construct workflows, but

User Query (natural language)

LLM Router SIMPLE vs. ReAct? SIMPLE

Fast Path Intent + one tool

REACT

ReAct Path Think → Act → Observe (bounded, max 10 iters)

Tool Registry 112 Ceph tools + 5 workflow templates (typed interface, parameters, read/write metadata)

Safety Gate / Action Engine low / medium / high / critical approval gates • dry-run • rate limits allow / block policies • audit log

Mutating actions: • require confirmation (med/high) • blocked if not allowed • dry-run supported • session rate limits • full audit record

each iteration, the model receives the tool schema, the user query, and prior observations. It emits either a Thought, an Action with JSON-formatted Action Input, or a final answer. This lets the model gather state from multiple Ceph subsystems before responding. The loop is bounded by an iteration limit and a session time budget, deduplicates repeated calls, and terminates on stalls. Both paths are operator-in-the-loop. Read-only requests return concise status information. Diagnostic requests expose selected tools and observations so the operator can audit the result. Mutating requests stop at the confirmation boundary unless dry-run mode or controlled evaluation auto-confirm mode is enabled. Routing affects efficiency and workflow quality, but it does not bypass safety enforcement. B. Typed Tool Interface and Ceph Backend

Fig. 1 shows the C EPH M AESTRO architecture. Following the principle in Section II, the LLM interprets intent, selects tools, and helps construct workflows, but does not directly execute storage-management commands; state-changing actions are mediated by a deterministic safety engine before they can affect the cluster. We detail each component below.

The tool registry is the boundary between model reasoning and cluster control. It exposes Ceph functionality through tool names, descriptions, parameter schemas, and normalized outputs. The prototype registers 112 callable tools spanning cluster health, OSDs, pools, PGs, CRUSH topology, monitors, managers, RBD, CephFS, device health, crash reports, configuration, balancing, diagnostic checks, and workflowtemplate operations. Tools are implemented through a Ceph cluster manager that invokes standard Ceph commands and normalizes results into Python objects or dictionaries. The LLM can choose a registered tool and propose parameters, but it cannot construct arbitrary shell commands. This finite interface reduces command hallucination, gives the safety layer stable action names and parameters to inspect, and makes tool use auditable outside the LLM transcript. Higherlevel diagnostic helpers and workflow templates are exposed through the same interface; they provide structured guidance for common cases such as down-OSD recovery, degraded-PG investigation, capacity expansion, and performance issues, but they do not bypass the safety engine. C EPH M AESTRO follows three framework contracts. The tool contract requires each exposed Ceph operation to have a name, schema, normalized result, and risk-classification target. The execution contract requires each request to run through either the simple path or bounded ReAct path. The safety contract requires every state-changing operation to cross the deterministic action engine before reaching Ceph. These contracts are independent of the model provider.

A. Routing and Workflow Execution

C. Safety-Gated Execution

Ceph requests range from simple status queries to multi-step diagnostics, so C EPH M AESTRO uses two execution paths. Simple path. Routine requests such as “list pools” or “show OSD status” are handled through a lightweight routing decision and a single tool-selection step. The selected tool executes once, and the result is formatted for the operator. This path targets read-heavy, low-risk requests that naturally map to one Ceph inspection tool. ReAct path. Requests requiring diagnosis, planning, or safety-sensitive reasoning enter a bounded ReAct loop. At

The safety contract is conservative: the LLM is treated as an untrusted planner rather than an execution authority. It may propose an operation and fill in parameters, but state-changing actions cross a separate policy boundary before execution. This boundary enforces operator policy, such as confirmation before destructive operations or limits on mutating actions, and records denied, dry-run, gated, or completed actions outside the LLM transcript. The prototype assumes that the operator is authenticated to the node running the assistant and that the underlying Ceph

Ceph Cluster / Ceph CLI Backend OSDs, PGs, pools, MONs, MGRs, RBD / CephFS, devices, config, logs

Fig. 1: C EPH M AESTRO architecture. A router selects either a fast single-tool path or a bounded ReAct path. Both paths use the same typed Ceph tool registry, and state-changing actions are mediated by a deterministic safety layer before execution. concrete actions, especially mutating ones, must pass through deterministic framework logic before reaching Ceph. G5: Conservative safety gating. Risky actions should be classified, gated, and logged before execution using confirmation gates, dry-run behavior, rate limits, allow/block policies, and audit records. Unnecessary confirmation is acceptable; unsafe ungated mutation is not. Together, these goals define C EPH M AESTRO as a guarded Ceph management assistant: the LLM improves usability and workflow construction, while deterministic components retain control over executable storage actions. III. S YSTEM D ESIGN

Risk

Examples

Policy

Low Medium High Critical

health, status, stats scrub, scoped config reweight, restart, create delete, destroy, purge

auto-approve log or confirm require confirmation confirm and audit

TABLE I: Action-risk policy used by the prototype. The policy is deterministic; the LLM does not decide whether an action is safe. CLI tools are trusted. Multi-tenant authorization, role-specific access control, and site-specific policy integration are outside the current prototype. The prototype also forbids free-form shell generation, turning the Ceph command space into a finite action vocabulary that can be audited and risk-classified. The ActionEngine classifies actions as LOW, MEDIUM, HIGH , or CRITICAL. Read-only actions are low risk. Bounded or reversible changes are medium risk. Actions that may affect availability, trigger data movement, or modify important cluster state are high risk. Destructive operations, such as deleting pools or destroying OSDs, are critical. Risk classification uses deterministic table lookup with selected parameter-aware escalation rules. For example, a poolparameter change that reduces replication size or min_size to one is treated more conservatively than an ordinary parameter update. The prototype supports confirmation gates, dry-run mode, per-session rate limits, allow lists, block lists, rollback hints for selected reversible operations, and structured audit records. Each managed action records the original request, selected tool, parameters, risk level, confirmation status, execution outcome, and timestamp. Thus, C EPH M AESTRO reduces command-selection and state-correlation burden without removing the operator from safety-sensitive decisions. Model-generated plans remain useful for workflow construction, but executable storage actions remain under deterministic system control. IV. I MPLEMENTATION C EPH M AESTRO is implemented in roughly 14,000 lines of Python. The code is organized into three layers: an agent layer that implements routing, the ReAct loop, the tool registry, and the action engine; a core layer that interacts with Ceph; and a thin service layer that wires entry points together. All components share a single config.yaml and an LLMProvider abstraction, allowing the model backend and safety policy to change without modifying the Ceph-facing control surface. A. Model Serving C EPH M AESTRO treats the LLM as a replaceable component behind a provider interface. The current implementation supports local SGLang [4], OpenAI-compatible APIs, and Ollama. All experiments in this paper use locally served opensource models through SGLang, which exposes an OpenAIcompatible /v1/chat/completions endpoint. We use this setup because large proprietary or high-parameter models can be expensive, slow, and difficult to deploy inside storagemanagement environments.

Each evaluated model runs on a single NVIDIA A100 GPU with 40 GB of memory and a 16K-token context window. We use temperature 0.1 and a 2,000-token answer budget to reduce variation in tool selection. Each model is referenced by an alias that fixes its weights, quantization, and backend-specific options. This allows the same C EPH M AESTRO implementation to evaluate Llama, Qwen, DeepSeek, and related open-source models without changing the Ceph tool layer or safety policy. B. Tool Registry and Ceph Backend The tool registry defines the finite action vocabulary exposed to the model. The current prototype includes 112 typed tools, each represented as an OpenAI-style function schema with a name, description, and typed parameter object. The model can invoke only these registered tools and never emits free-form shell commands. Each tool binds to a method in a ClusterManager, which invokes the corresponding ceph, rados, or rbd command and normalizes the result into a Python object or dictionary. This backend centralization gives the rest of the framework a stable (action_name, parameters) representation for every model-selected operation. It also hides differences in CLI output formats from the ReAct loop and gives the safety layer structured actions to inspect. C. Routing and Bounded ReAct Loop C EPH M AESTRO first routes each request to either the simple path or the ReAct path. Routing is implemented as a short LLM classification call. Requests classified as simple are handled through a single tool-selection step. Low-confidence simple classifications are escalated to the ReAct path to avoid prematurely answering diagnostic requests. The ReAct loop has a deterministic control structure even though the model output is probabilistic. At each step, the model receives the tool schemas, user query, and a scratchpad of previous Thought/Action/Observation triples. It must emit either an action with a JSON argument object or a Final Answer. Action arguments are parsed defensively, with lightweight JSON repair for common formatting errors. The loop is bounded by MAX_ITERATIONS=10 and MAX_SESSION_TIME=120 seconds. A stall counter ends the session after two consecutive steps without a valid tool call, and a per-tool repetition guard rejects more than three identical (tool, arguments) calls. When the scratchpad exceeds eight entries, it is summarized to stay within the context budget. If a limit is reached, the system synthesizes the best available answer from collected observations rather than failing silently. D. Deterministic Action Engine Every mutating action passes through the ActionEngine before reaching Ceph. Risk classification is implemented as a static lookup in an ACTION_RISK_MAP keyed by tool name. Unknown actions default to HIGH risk so that omissions fail conservatively. The static risk level is refined using parameter-aware escalation rules. For example, set_pool_param is MEDIUM by

Algorithm 1: Bounded ReAct control loop. Input: query q, tool registry T , action engine E Output: answer, audited action log S←∅ // scratchpad for i ← 1 to MAX_ITERATIONS do if elapsed > MAX_SESSION_TIME then break if |S| > 8 then S ← S UMMARIZE(S) (a, x) ← LLM(q, T , S) // action and arguments if a = FinalAnswer then return x if a repeated > 3× or stalled 2× then break (ok, r) ← E.C HECK(a, x) // risk gate if ok then o ← E.E XECUTE(a, x) else o ← r // denied / dry-run / needs confirmation S ← S ∪ {(a, o)} return S YNTHESIZE(S)

default, but setting size or min_size to one escalates to CRITICAL because it removes redundancy. Changing pg_num, pgp_num, or crush_rule escalates to HIGH because it may trigger cluster-wide data movement. Similar escalation rules cover wildcard PG repair, enabling selected manager modules, and creating authentication entities with wildcard capabilities. Given a risk level, the policy determines whether the action can execute. Actions at or below the auto_approve_level, which is LOW by default, run immediately. Higher-risk actions require confirmation. The evaluation harness can provide confirmation through an explicit auto-confirm flag for controlled tests. The engine also supports dry-run mode, a per-session cap of 20 actions, and optional allow/block lists. Each attempt, whether approved, denied, or dry-run, appends a structured audit record containing the timestamp, action, parameters, risk level, outcome, and, when available, a rollback hint for reversible operations. E. Reproducibility All entry points construct C EPH M AESTRO through a shared initialization path. The evaluation suite and the live faultinjection harness use the same path as the deployed service, so measured behavior matches runtime behavior. The live harness can inject and restore selected Ceph faults on a physical cluster, enabling controlled smoke tests without changing the agent implementation. V. E VALUATION We evaluate C EPH M AESTRO as an early safety-gated framework for natural-language Ceph management. The evaluation asks five questions: (1) whether the router selects the intended execution mode, (2) whether ReAct improves workflow goal achievement over the simple path, (3) how much deterministic workflow shortcuts contribute, (4) how C EPH M AESTRO performs on live fault-injection scenarios, and (5) whether the deterministic safety layer gates risky actions independently of the LLM.

Setup. Experiments run on a three-node Ceph cluster deployed with cephadm on Jetstream2 [5], each node contributing one OSD, with a single monitor and manager. The cluster runs Ceph Squid (v19) with RBD and CephFS enabled, and pools use the default host failure domain at size=3 so that replicas span distinct hosts. One node carries an NVIDIA A100 GPU (40 GB) on which we serve the evaluated models through SGLang, so the agent runs co-located with the cluster it manages. The evaluated models are Llama-3.1-8B [6], Qwen3.5-9B [7], DeepSeek-R1-14B [8], Qwen3.5-27B, and GLM-4.7-Flash-31B. This reflects our focus on smaller opensource models that run locally, which are more practical for interactive storage management than large proprietary models that can be costly, slow, or hard to deploy. The paper-facing suite contains 217 active unit and scenario cases, including 95 deterministic safety cases, 12 adversarial safety prompts, and routing/workflow cases. The end-to-end workflow comparison uses 122 Ceph management prompts, of which 111 have explicit goal-achievement oracles. These prompts cover health inspection, OSD and PG diagnosis, pool and capacity management, CRUSH-related reasoning, configuration inspection, recovery-related tasks, and safetysensitive operations. Scoring. Each workflow prompt is evaluated by routing choice, completion, tools used, latency, and goal achievement. Goal oracles check whether the response and tool trace satisfy the operational intent, such as diagnosing the named fault, invoking the expected Ceph inspection tool, or gating a risky write. Thus, a response must be operationally useful, not merely syntactically valid. An answer that completes but uses the wrong tool, misses the key fault, or fails to gate a risky action is counted as unsuccessful. A. Routing and Workflow Goal Achievement Table II summarizes the main workflow results. Routing accuracy ranges from 83.6±2.5% to 94.3±1.4% across the five models, with Qwen3.5-9B achieving the highest routing accuracy. Routing improves efficiency by avoiding unnecessary ReAct traces for simple requests. However, it is not a safety boundary: both execution paths use the same typed tool registry and deterministic safety layer. On the 111 goal-scored prompts, ReAct improves goal achievement over the simple path for every model. The best result is Qwen3.5-9B, which reaches 91.3±0.5% ReAct goal achievement. GLM-4.7-Flash-31B achieves a similar ReAct goal rate, but with substantially higher tail latency. These results show that multi-step observation and reasoning are useful for Ceph workflows, but model choice affects both success and interactivity. The improvement from ReAct is largest for prompts that require correlating multiple Ceph views before answering. The simple path is effective for direct read-only requests, but it often lacks enough context for diagnostic or safety-sensitive workflows. Remaining ReAct failures are mostly due to wrong tool selection, missing follow-up inspection, or insufficient answer synthesis rather than framework crashes.

Model

Route Acc.

Simple Goal ReAct Goal Gate F1

Simple/ReAct Lat. (s)

P95 Lat. (s)

Llama-3.1-8B 85.8±1.3% 73.3±0.5% 80.2±0.9% 0.820±0.015 0.431±0.003 / 1.216±0.630 7.208±0.249 Qwen3.5-9B 94.3±1.4% 67.3±2.3% 91.3±0.5% 0.782±0.024 2.564±0.065 / 4.666±0.111 34.060±3.631 DeepSeek-R1-14B 83.6±2.5% 70.9±1.9% 85.3±0.5% 0.803±0.020 1.368±0.062 / 1.503±0.254 30.108±0.812 Qwen3.5-27B 90.2±0.9% 69.1±2.1% 89.5±0.5% 0.819±0.014 5.313±0.509 / 6.448±0.649 95.836±2.443 GLM-4.7-Flash-31B 87.3±1.8% 73.0±2.7% 91.0±1.8% 0.902±0.015 3.169±0.413 / 7.544±0.023 156.277±2.649

TABLE II: Model results, reported as mean ± standard deviation over comparable runs. Route accuracy, goal rates, and workflow gating F1 are measured over 122 workflow prompts, with 111 goal-scored prompts. P95 latency is from the sevenoperation latency profile repeated five times per run. ∆

Task category

Tasks Simple Goal ReAct Goal

OSD & recovery PG & data Pool & capacity Health & perf. Auth & config. CRUSH & topology Mon/Mgr/FS

15 13 21 26 10 7 19

69% 69% 70% 69% 40% 52% 79%

96% 85% 90% 85% 90% 100% 100%

+27 pp +16 pp +20 pp +16 pp +50 pp +48 pp +21 pp

Overall

111

67%

91%

+24 pp

TABLE III: Per-category workflow goal achievement for Qwen3.5-9B, averaged over three runs. ReAct improves over the simple path in every category, with the largest gains on workflows that require multi-step state gathering. Mode

Simple ReAct ReAct Steps Tool Goal Goal Lat. Cov.

Shortcuts on 66.7% Shortcuts off 65.8%

91.9% 3.8 s 80.2% 90.3 s

2.6 3.5

78% 63%

TABLE IV: Qwen3.5-9B shortcut ablation over 122 workflow prompts, with 111 goal-scored cases. Shortcuts improve both success and latency, but shortcut-disabled ReAct still outperforms simple execution. Table III breaks down Qwen3.5-9B results by task family. ReAct improves goal achievement in every category, but the gain depends on task structure. Direct status-oriented categories, such as Mon/Mgr/FS, start from a stronger simple-path baseline. In contrast, auth/configuration and CRUSH-topology tasks benefit substantially from multi-step reasoning because a single tool call is rarely sufficient to gather the necessary evidence. B. Workflow Shortcuts and Latency Table IV separates model reasoning from deterministic workflow shortcuts. With shortcuts disabled, ReAct still improves goal achievement over the simple path by 14.4 percentage points (80.2% vs. 65.8%). This shows that the ReAct loop itself contributes useful multi-step tool use. With shortcuts enabled, ReAct reaches 91.9% goal achievement and average latency drops from 90.3 s to 3.8 s. The shortcuts therefore improve both reliability and interactivity by capturing common Ceph workflow structure in deterministic system logic. Latency varies significantly by model. Llama-3.1-8B is the most interactive but has lower ReAct goal achievement than Qwen3.5-9B. Qwen3.5-27B and GLM-4.7-Flash-31B achieve strong goal rates but have higher tail latency. This reinforces a

practical point for storage management: larger models are not always preferable, because operators need timely responses and reliable tool use, not only higher model capacity. C. Live Fault-Injection Scenarios We also evaluate C EPH M AESTRO on live fault-injection scenarios against a physical Ceph cluster. Each scenario follows the same protocol: inject a fault, issue a natural-language diagnostic prompt, verify the fault condition, and restore the cluster. We define 12 scenarios, but skip fi_mon_down because the single-monitor testbed cannot safely lose quorum, leaving 11 evaluated scenarios. Each model is run five times, for 55 scenario-runs per model. A run passes if the agent both invokes at least one expected diagnostic or remediation tool and produces a response containing expected fault-specific evidence. This oracle is intentionally stricter than checking for a plausible naturallanguage explanation: the agent must use the cluster-facing tools needed to support the diagnosis. Table V shows that Qwen3.5-9B achieves the highest pass rate (89%), followed by Llama-3.1-8B and GLM-4.7-Flash31B (82%). Five scenarios pass across all models and runs: stale OSD flags, quota exhaustion, manager-module failure, I/O performance load, and OSD failure with recovery. These scenarios represent common operational symptoms where the expected diagnostic tools are relatively direct. More difficult cases include pool quota pressure, CephX capability inspection, stale RBD snapshot detection, and some CRUSH-related queries. Failures mainly arise from wrong tool selection or insufficient answer synthesis after retrieving the relevant state. These results show that smaller open-source models can handle many live Ceph diagnostic tasks, but tooluse reliability remains model- and scenario-dependent. They also show that model scale alone is not a reliable predictor: Qwen3.5-9B outperforms the larger Qwen3.5-27B on the aggregate live benchmark. D. Safety Behavior The deterministic safety evaluation covers 95 labeled actions across four risk levels: 25 low, 14 medium, 31 high, and 25 critical. The ActionEngine achieves 100% riskclassification accuracy and 98.9% confirmation-classification accuracy. Results are identical across models because risk classification is implemented by deterministic policy logic rather than by the LLM. In the workflow setting, confirmation gating achieves perfect recall: all 37 high-risk workflow cases are gated, with zero

Scenario

Qwen3.5-9B Qwen3.5-27B Llama-3.1-8B DeepSeek-R1-14B GLM-4.7-Flash-31B

Stale OSD flags Pool quota pressure Quota exhaustion Risky pool config Auth caps misconfiguration Unused CRUSH rule Manager module disabled I/O performance load Stale RBD snapshot Balancer disabled OSD failure + recovery

5/5 4/5 5/5 5/5 4/5 2/5 5/5 5/5 4/5 5/5 5/5

5/5 5/5 5/5 1/5 3/5 1/5 5/5 5/5 3/5 5/5 5/5

5/5 1/5 5/5 4/5 3/5 5/5 5/5 5/5 2/5 5/5 5/5

5/5 0/5 5/5 1/5 0/5 5/5 5/5 5/5 0/5 0/5 5/5

5/5 4/5 5/5 4/5 3/5 2/5 5/5 5/5 4/5 3/5 5/5

Overall Pass rate

49/55 89%

43/55 78%

45/55 82%

31/55 56%

45/55 82%

TABLE V: Fault-injection pass counts across 11 evaluated live scenarios and five runs per model. fi_mon_down is omitted because the single-monitor testbed cannot safely lose quorum. observed unsafe leaks. Precision is lower because the agent sometimes triggers unnecessary gates on benign prompts. This is the intended conservative failure mode for storage management: an unnecessary confirmation slows the operator, while a missed gate may allow an unsafe cluster mutation. Together, these results support the central design choice of C EPH M AESTRO: LLMs can help construct Ceph workflows, but safety-sensitive execution should be enforced by deterministic storage-aware control logic. VI. R ELATED W ORK A. Tool-Augmented and Agentic LLMs Recent work augments LLMs with external tools and APIs. Toolformer [9] studies self-supervised API-use learning, Gorilla [10] improves API selection with retrieval over documentation, and ToolLLM [11] scales tool use to large API collections. Agentic frameworks further interleave reasoning and acting. ReAct [12] uses a thought–action–observation loop for multi-step tasks, while broader agent frameworks provide scheduling, memory, context management, and access-control mechanisms for general-purpose agents [13], [14]. These systems show that LLMs can select tools and reason over observations, but they do not target safety-critical storage management. In general API settings, a tool call is usually a task action; in Ceph, a tool call may restart daemons, change placement, trigger recovery, or delete data. C EPH M AESTRO adopts tool-augmented and ReAct-style execution, but constrains the model to a finite registry of typed Ceph tools and places a deterministic, storage-aware safety gate between model-selected actions and cluster execution. B. Benchmarks for Agents Acting on Systems Agent benchmarks increasingly evaluate effects on an environment rather than surface-form answers. SWE-bench [15] checks whether generated patches resolve real GitHub issues. AgentBench [16] evaluates agents across interactive environments such as operating systems, databases, and web tasks. τ -bench [17] compares final database state against annotated goals and measures reliability over repeated trials. Our evaluation follows this state-aware view: goal oracles check whether the response and tool trace satisfy the Ceph management intent, and live fault-injection scenarios

test behavior against an actual cluster. The difference is the cost of failure. In Ceph, an incorrect action may cause data movement, recovery storms, outages, or data loss. Therefore, C EPH M AESTRO evaluates task success together with deterministic safety gating, rather than treating goal achievement alone as sufficient. C. LLMs for Systems and Data Management LLMs have also been applied to data-management and systems-operation tasks. LLMDB [18] combines fine-tuning, retrieval, and multi-round inference for query rewriting, diagnosis, and analytics. StorageXTuner [19] uses LLM agents to tune storage engines such as RocksDB, LevelDB, CacheLib, and MySQL InnoDB through sandboxed search and lightweight configuration checkers. These systems demonstrate the promise of LLMs for infrastructure management, but their scope differs from ours. Prior work mainly targets query assistance, diagnosis, analytics, or configuration tuning. C EPH M AESTRO targets clusterlevel Ceph management, including OSD state, placement groups, pools, CRUSH topology, recovery behavior, and safety-sensitive administrative actions. Unlike sandboxed tuning, C EPH M AESTRO is designed for workflows that may act on a live storage cluster, making prevention of unsafe state changes a first-class design requirement. D. LLM-Based Root-Cause Analysis for Operations Another line of work applies LLMs to incident diagnosis and root-cause analysis in cloud operations. Prior studies show that LLMs can infer likely causes and mitigation steps from incident metadata and operational context [20], [21]. RCAgent [22] extends this direction with an autonomous toolaugmented agent for data collection and analysis. These systems are complementary to C EPH M AESTRO. They focus mainly on diagnosis and recommendation, while C EPH M AESTRO must also manage the boundary between recommendation and execution. In Ceph, moving from diagnosing an issue to performing a fix may affect durability, availability, and data placement. C EPH M AESTRO therefore treats the LLM as an untrusted planner and relies on deterministic execution control for mutating actions.

E. Summary Compared with prior tool-augmented agents, systemsmanagement agents, and RCA frameworks, C EPH M AESTRO focuses on natural-language management of a stateful distributed storage system. Its main distinction is the combination of bounded workflow construction, a typed Ceph tool registry, and a deterministic storage-aware safety layer. This design allows smaller locally served open-source LLMs to assist with Ceph management while preventing the model from directly controlling unsafe storage operations. VII. C ONCLUSION We presented C EPH M AESTRO, a safety-gated AI agent for natural-language Ceph management. C EPH M AESTRO treats the LLM as an untrusted planner: it interprets operator requests, selects tools, and constructs workflows over 112 typed Ceph tools, while a deterministic action engine retains execution authority. The engine classifies risk, enforces confirmation and dry-run policies, applies rate limits, and records audit logs before state-changing actions reach the cluster. To balance responsiveness and reasoning depth, C EPH M AESTRO combines a fast single-tool path for routine requests with a bounded ReAct loop for diagnostic and multi-step workflows. Across five locally served open-source models and 122 Ceph management prompts, ReAct consistently improves goal achievement over the simple path, with the best model reaching 91.3±0.5%. Deterministic workflow shortcuts further raise performance to 91.9% while reducing average latency from 90.3 s to 3.8 s. The safety layer achieves 100% riskclassification accuracy on 95 labeled actions and gates all 37 high-risk workflow cases with zero observed unsafe leaks. Live fault-injection experiments also show that smaller open-source models can handle many practical Ceph diagnostic tasks, although reliability remains model- and scenario-dependent. A 9B model matches or outperforms larger models in several settings, showing that parameter count alone is not a reliable predictor of tool-use quality. These results support the central argument of this paper: LLMs can reduce the burden of complex storage-management workflows, but safety-sensitive execution should remain under deterministic, storage-aware control. C EPH M AESTRO is an early prototype; future work will address prompt injection, multi-tenant authorization, role-specific policies, lower-latency monitoring, and evaluation on larger production clusters. ACKNOWLEDGMENT This material is based upon work supported by the National Science Foundation under Grant No. 2531903. R EFERENCES [1] S. A. Weil, S. A. Brandt, E. L. Miller, D. D. E. Long, and C. Maltzahn, “Ceph: A scalable, high-performance distributed file system,” in Proceedings of the 7th Symposium on Operating Systems Design and Implementation (OSDI), 2006. [2] S. A. Weil, S. A. Brandt, E. L. Miller, and C. Maltzahn, “CRUSH: Controlled, scalable, decentralized placement of replicated data,” in Proceedings of the ACM/IEEE Conference on Supercomputing (SC), 2006.

[3] M. A. Sevilla, N. Watkins, C. Maltzahn, I. Nassi, S. A. Brandt, S. A. Weil, G. Farnum, and S. Fineberg, “Mantle: A programmable metadata load balancer for the Ceph file system,” in Proceedings of the International Conference for High Performance Computing, Networking, Storage and Analysis (SC), 2015. [4] L. Zheng, L. Yin, Z. Xie, C. Sun, J. Huang, C. H. Yu, S. Cao, C. Kozyrakis, I. Stoica, J. E. Gonzalez, C. Barrett, and Y. Sheng, “SGLang: Efficient execution of structured language model programs,” in Advances in Neural Information Processing Systems (NeurIPS), 2024. [5] D. Y. Hancock, J. Fischer, J. M. Lowe, W. Snapp-Childs, M. Pierce, S. Marru, J. E. Coulter, M. Vaughn, B. Beck, N. Merchant, E. Skidmore, and G. Jacobs, “Jetstream2: Accelerating cloud computing via Jetstream,” in Practice and Experience in Advanced Research Computing (PEARC ’21). Association for Computing Machinery, 2021. [6] A. Grattafiori, A. Dubey, A. Jauhri et al., “The Llama 3 herd of models,” arXiv preprint arXiv:2407.21783, 2024. [7] A. Yang et al., “Qwen3 technical report,” arXiv preprint arXiv:2505.09388, 2025. [8] DeepSeek-AI, D. Guo, D. Yang et al., “DeepSeek-R1: Incentivizing reasoning capability in LLMs via reinforcement learning,” arXiv preprint arXiv:2501.12948, 2025. [9] T. Schick, J. Dwivedi-Yu, R. Dessı̀, R. Raileanu, M. Lomeli, L. Zettlemoyer, N. Cancedda, and T. Scialom, “Toolformer: Language models can teach themselves to use tools,” in Advances in Neural Information Processing Systems (NeurIPS), 2023. [10] S. G. Patil, T. Zhang, X. Wang, and J. E. Gonzalez, “Gorilla: Large language model connected with massive apis,” in Advances in Neural Information Processing Systems (NeurIPS), 2024. [11] Y. Qin, S. Liang, Y. Ye, K. Zhu, L. Yan, Y. Lu, Y. Lin, X. Cong, X. Tang, B. Qian et al., “ToolLLM: Facilitating large language models to master 16000+ real-world apis,” in International Conference on Learning Representations (ICLR), 2024. [12] S. Yao, J. Zhao, D. Yu, N. Du, I. Shafran, K. Narasimhan, and Y. Cao, “ReAct: Synergizing reasoning and acting in language models,” in International Conference on Learning Representations (ICLR), 2023. [13] L. Wang, C. Ma, X. Feng, Z. Zhang, H. Yang, J. Zhang, Z. Chen, J. Tang, X. Chen, Y. Lin, W. X. Zhao, Z. Wei, and J.-R. Wen, “A survey on large language model based autonomous agents,” Frontiers of Computer Science, vol. 18, no. 6, p. 186345, 2024. [14] K. Mei, Z. Li, S. Xu, R. Ye, Y. Ge, and Y. Zhang, “AIOS: LLM agent operating system,” in Conference on Language Modeling (COLM), 2025. [15] C. E. Jimenez, J. Yang, A. Wettig, S. Yao, K. Pei, O. Press, and K. Narasimhan, “SWE-bench: Can language models resolve real-world GitHub issues?” in International Conference on Learning Representations (ICLR), 2024. [16] X. Liu, H. Yu, H. Zhang, Y. Xu, X. Lei, H. Lai, Y. Gu, H. Ding, K. Men, K. Yang et al., “AgentBench: Evaluating LLMs as agents,” in International Conference on Learning Representations (ICLR), 2024. [17] S. Yao, N. Shinn, P. Razavi, and K. Narasimhan, “τ -bench: A benchmark for tool-agent-user interaction in real-world domains,” arXiv preprint arXiv:2406.12045, 2024. [18] X. Zhou, X. Zhao, and G. Li, “LLM-enhanced data management,” arXiv preprint arXiv:2402.02643, 2024. [19] Q. Lin, Z. Zhang, V. Thakkar, Z. Sun, M. Zheng, and Z. Cao, “StorageXTuner: An LLM agent-driven automatic tuning framework for heterogeneous storage systems,” arXiv preprint arXiv:2510.25017, 2025. [20] T. Ahmed, S. Ghosh, C. Bansal, T. Zimmermann, X. Zhang, and S. Rajmohan, “Recommending root-cause and mitigation steps for cloud incidents using large language models,” in IEEE/ACM International Conference on Software Engineering (ICSE), 2023. [21] D. Roy, X. Zhang, R. Bhave, C. Bansal, P. Las-Casas, R. Fonseca, and S. Rajmohan, “Automatic root cause analysis via large language models for cloud incidents,” in European Conference on Computer Systems (EuroSys), 2024. [22] Z. Wang, Z. Liu, Y. Zhang, A. Zhong, L. Fan, L. Wu, and Q. Wen, “RCAgent: Cloud root cause analysis by autonomous agents with toolaugmented large language models,” in ACM International Conference on Information and Knowledge Management (CIKM), 2024.

Related documents

Record · ID 1812342 · SHA-256 9673f86923e9231e
Retrieved via Conceptio: every document is proof-bundled with source, license, and retrieval metadata.
Bring this data into your agent: Connect via MCP or API · 20 free credits to start · no card required
Read the Docs → · View CLI source on GitHub · Conceptio Open Knowledge Archive