Skip to content

docs(admin): add Oracle ASM administration skill#42

Draft
guborges wants to merge 1 commit into
oracle:mainfrom
guborges:41-asm-management
Draft

docs(admin): add Oracle ASM administration skill#42
guborges wants to merge 1 commit into
oracle:mainfrom
guborges:41-asm-management

Conversation

@guborges

Copy link
Copy Markdown
Contributor

Refs #41

Summary

Adds db/admin/asm-management.md, a single-file skill covering Oracle Automatic Storage Management administration for both Standalone Grid Infrastructure and RAC Grid Infrastructure. Updates db/SKILL.md so the routing table and Common Multi-Step Flows reflect the new content.

Opening as a draft so maintainers can shape the scope before review. The proposal in #41 includes an open question on whether to keep this as one file or split into asm-diskgroups.md + asm-monitoring.md + asm-troubleshooting.md. The current PR is the single-file shape; happy to split if maintainers prefer.

Why this skill

ASM was already mentioned as adjacent context in six existing skills:

  • db/architecture/rac-concepts.md
  • db/architecture/exadata-features.md
  • db/architecture/oracle-cloud-oci.md
  • db/architecture/multitenant.md
  • db/admin/backup-recovery.md
  • db/admin/redo-log-management.md

But day-to-day administration (disk-group lifecycle, disk add/drop with rebalance, ASMCMD, monitoring views, diagnostic flows for the most common ASM errors) had no home. ASM underpins almost every Oracle deployment on Exadata, ODA, RAC, and Oracle Cloud DB systems, so this gap shows up the moment an agent or operator needs to reason about disk-group state.

What is in the file

Following SKILL_AUTHORING_GUIDE.md and matching the existing db/admin/ files in tone and length (~420 lines, in line with dataguard.md, rman-basics.md, backup-recovery.md):

  • Overview and architecture (ASM instance, background processes, disk groups, disks, files, allocation units, COMPATIBLE.ASM / COMPATIBLE.RDBMS attributes).
  • Redundancy levels (EXTERNAL, NORMAL, HIGH, FLEX) and failure groups, including a multi-failgroup CREATE DISKGROUP example.
  • Disk discovery (ASM_DISKSTRING) and the trade-offs between AFD, ASMLib, and udev rules.
  • Disk-group lifecycle: CREATE, ALTER, DROP, rebalance semantics, POWER tuning, suspend/resume.
  • Day-to-day operations: add/drop disks, resize, online file move, ASMCMD essentials.
  • Monitoring with the principal V$ASM_* views; ready-to-run health and rebalance-progress queries; explicit alerting guidance.
  • Diagnostic-first walkthroughs for ORA-15014, ORA-15032, ORA-15040, ORA-15042.
  • Best practices and Common Mistakes covering failure-group placement, ASM_DISKSTRING scoping, FORCE drop misuse, rebalance power during business hours, disk-group naming across environments, and free-space validation before disk drop.
  • ## Oracle Version Notes (19c vs 26ai)FLEX disk groups, POWER ceiling, AFD positioning, mixed-version compatibility ceiling.
  • Cross-links to db/architecture/rac-concepts.md, db/architecture/exadata-features.md, db/admin/redo-log-management.md, db/admin/backup-recovery.md, and db/agent/ora-error-catalog.md.
  • Sources limited to Oracle 19c documentation (ASM Administrator's Guide, Reference for V$ASM_*, ASMCMD command reference, Grid Infrastructure Linux installation guide, ORA-15000 error messages page).

Scope guards

  • Single file, RAC-aware but not a RAC tutorial — defers cluster topology to db/architecture/rac-concepts.md.
  • No Exadata Cell Server / cell administration content.
  • No deep ACFS coverage.
  • No MCP-specific examples — those live in db/sqlcl/sqlcl-mcp-server.md.

Open questions for maintainers

  1. Single file vs split? Current shape is one file (consistent with existing db/admin/). If a split fits better, the natural cut is asm-diskgroups.md + asm-monitoring.md + asm-troubleshooting.md.
  2. Routing wording. Updated db/SKILL.md row reads "Backup, recovery, RMAN, Data Guard, redo/undo logs, users, ASM" for db/admin/. Happy to phrase it differently.
  3. Common Multi-Step Flows entry. Added "Investigate an ASM disk-group issue" pointing at this file → ora-error-catalograc-concepts. Will adjust to the maintainers' preferred sequence.

Refs oracle#41

Add db/admin/asm-management.md covering Standalone Grid Infrastructure
and RAC Grid Infrastructure ASM administration. The repository had no
dedicated ASM skill, even though ASM is referenced as adjacent context
in db/architecture/rac-concepts.md, db/architecture/exadata-features.md,
db/architecture/oracle-cloud-oci.md, db/architecture/multitenant.md,
db/admin/backup-recovery.md, and db/admin/redo-log-management.md.

The new file follows the SKILL_AUTHORING_GUIDE.md structure and the
shape of the existing db/admin/ files (dataguard.md, rman-basics.md,
backup-recovery.md, redo-log-management.md, undo-management.md):

- Overview and architecture (ASM instance, processes, disk groups,
  disks, files, allocation units, COMPATIBLE.ASM / COMPATIBLE.RDBMS).
- Redundancy levels (EXTERNAL, NORMAL, HIGH, FLEX) and failure groups.
- Disk discovery via AFD, ASMLib, and udev, with ASM_DISKSTRING
  guidance.
- Disk-group lifecycle: CREATE, ALTER, DROP, rebalance behaviour and
  POWER tuning.
- Day-to-day operations: add/drop disks, resize, online file move,
  ASMCMD essentials.
- Monitoring through V$ASM_DISK, V$ASM_DISKGROUP, V$ASM_OPERATION,
  V$ASM_CLIENT, V$ASM_FILE, V$ASM_TEMPLATE, V$ASM_ATTRIBUTE, with
  daily-health and rebalance-progress queries and clear alerting
  guidance.
- Diagnostic-first walkthroughs for ORA-15014, ORA-15032, ORA-15040,
  and ORA-15042.
- Best practices and a Common Mistakes section that covers failure
  group placement, ASM_DISKSTRING scoping, FORCE drop misuse,
  rebalance power during business hours, disk-group naming across
  environments, and free-space validation before disk drop.
- Oracle Version Notes (19c vs 26ai) covering FLEX disk groups,
  rebalance POWER ceiling, AFD positioning, and mixed-version
  ceiling rules.
- Cross-links to db/architecture/rac-concepts.md,
  db/architecture/exadata-features.md, db/admin/redo-log-management.md,
  db/admin/backup-recovery.md, and db/agent/ora-error-catalog.md.
- Sources limited to Oracle 19c documentation (ASM Administrator's
  Guide, Reference, ASMCMD command reference, Grid Infrastructure
  Linux installation guide, ORA-15000 error messages page).

Update db/SKILL.md so the routing table mentions ASM under db/admin/
and add an Investigate an ASM disk-group issue entry to Common
Multi-Step Flows.

Signed-off-by: Gustavo Evangelista <gustavoborges2@gmail.com>

@krisrice krisrice left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Held during review because the PR is still marked draft. I did not find a content blocker in the sampled ASM skill, but I did not merge a draft PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants