{"id":50388259,"url":"https://github.com/scality/raidmgmt","last_synced_at":"2026-05-30T16:30:34.809Z","repository":{"id":359341738,"uuid":"877397458","full_name":"scality/raidmgmt","owner":"scality","description":"A library to manage RAID controllers","archived":false,"fork":false,"pushed_at":"2026-05-21T13:17:48.000Z","size":486,"stargazers_count":1,"open_issues_count":4,"forks_count":0,"subscribers_count":16,"default_branch":"main","last_synced_at":"2026-05-21T20:45:00.935Z","etag":null,"topics":["golang","hardware-raid","library","mdadm","megaraid","perccli","raid","raids","smartarray","ssacli","storcli"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/scality.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-10-23T15:22:22.000Z","updated_at":"2026-05-21T10:16:44.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/scality/raidmgmt","commit_stats":null,"previous_names":["scality/raidmgmt"],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/scality/raidmgmt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scality%2Fraidmgmt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scality%2Fraidmgmt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scality%2Fraidmgmt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scality%2Fraidmgmt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scality","download_url":"https://codeload.github.com/scality/raidmgmt/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scality%2Fraidmgmt/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33700863,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-30T02:00:06.278Z","response_time":92,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["golang","hardware-raid","library","mdadm","megaraid","perccli","raid","raids","smartarray","ssacli","storcli"],"created_at":"2026-05-30T16:30:34.054Z","updated_at":"2026-05-30T16:30:34.802Z","avatar_url":"https://github.com/scality.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RAIDmgmt\n\n[![Pre-merge checks](https://github.com/scality/raidmgmt/actions/workflows/pre-merge.yaml/badge.svg)](https://github.com/scality/raidmgmt/actions/workflows/pre-merge.yaml)\n![Status: Experimental](https://img.shields.io/badge/status-experimental-orange)\n[![GitHub release](https://img.shields.io/github/release/scality/raidmgmt.svg)](https://github.com/scality/raidmgmt/releases/latest)\n\n\u003e **Warning:** This project is in an experimental phase. While it is used as\n\u003e part of a larger product, its API may change and it has not been extensively\n\u003e battle-tested in diverse environments. Use with caution in production.\n\nRAIDmgmt is a Go library for managing RAID configurations across hardware and\nsoftware RAID controllers. It provides a unified abstraction layer so consumers\ncan perform RAID operations consistently, regardless of the underlying\ncontroller.\n\nManaging RAID across heterogeneous hardware is painful: each controller family\nhas its own CLI tool, output format, and quirks. RAIDmgmt solves this by\nproviding a single, well-typed Go interface that works identically whether\nyou're talking to a MegaRAID card, an HPE Smart Array, or a plain `mdadm`\nsetup.\n\n## Features\n\n- **Hardware RAID** -- MegaRAID, Dell PERC, and HPE Smart Array controllers.\n- **Software RAID** -- `mdadm`-based RAID on RHEL8-family systems.\n- **Unified interface** -- A single set of ports covers controller listing,\n  physical drive and logical volume management, cache options, JBOD, and drive\n  identification blinking.\n- **Extensible** -- New controllers can be added by implementing the adapter\n  interfaces.\n\n## Installation\n\n```bash\ngo get github.com/scality/raidmgmt\n```\n\n## Quick Start\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"log\"\n\n\t\"github.com/scality/raidmgmt/pkg/core\"\n\t\"github.com/scality/raidmgmt/pkg/implementation/commandrunner\"\n\t\"github.com/scality/raidmgmt/pkg/implementation/logicalvolumegetter\"\n\t\"github.com/scality/raidmgmt/pkg/implementation/logicalvolumemanager\"\n\t\"github.com/scality/raidmgmt/pkg/implementation/physicaldrivegetter\"\n\t\"github.com/scality/raidmgmt/pkg/implementation/raidcontroller\"\n)\n\nfunc main() {\n\t// Create an RHEL8 software RAID controller\n\trunner := commandrunner.New()\n\trc := raidcontroller.NewRHEL8(\n\t\tphysicaldrivegetter.NewRHEL8(runner),\n\t\tlogicalvolumegetter.NewMDADM(runner),\n\t\tlogicalvolumemanager.NewMDADM(runner),\n\t)\n\n\t// Wrap it with the core service for input validation\n\tsvc := core.NewRAIDController(rc)\n\n\t// List logical volumes (nil metadata for software RAID)\n\tvolumes, err := svc.LogicalVolumes(nil)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tfor _, lv := range volumes {\n\t\tfmt.Printf(\"Volume %s: %s (%s)\\n\", lv.ID, lv.DevicePath, lv.RAIDLevel)\n\t}\n}\n```\n\n\u003e **Note:** The example above is for software RAID. For hardware RAID\n\u003e controllers (MegaRAID, Smart Array), see the adapter constructors in\n\u003e `pkg/implementation/raidcontroller/`.\n\n## Project Structure\n\n```\npkg/\n├── core/                        # Core service (validation + delegation)\n├── domain/\n│   ├── entities/\n│   │   ├── logicalvolume/       # LogicalVolume entity, enums, methods\n│   │   ├── physicaldrive/       # PhysicalDrive entity, enums, methods\n│   │   └── raidcontroller/      # RAIDController entity\n│   └── ports/                   # Port interfaces\n├── implementation/\n│   ├── blinker/                 # Drive blinking adapters\n│   ├── commandrunner/           # CLI tool wrappers (storcli, ssacli, mdadm, ...)\n│   ├── controllergetter/        # Controller listing adapters\n│   ├── logicalvolumegetter/     # Logical volume listing adapters\n│   ├── logicalvolumemanager/    # Logical volume CRUD adapters\n│   ├── physicaldrivegetter/     # Physical drive listing adapters\n│   └── raidcontroller/          # Full RAIDController adapter compositions\n│       └── megaraid/            # MegaRAID/PERC-specific implementation\n└── utils/                       # Shared utilities\n```\n\nSee [DESIGN.md](DESIGN.md) for a detailed description of the architecture,\nentities, ports, and adapters.\n\n## Development\n\n### Prerequisites\n\n- Go 1.25+\n- [golangci-lint](https://golangci-lint.run/)\n\n### Commands\n\n```bash\nmake lint    # Run linters\nmake tests   # Run unit tests\nmake all     # Run both\n```\n\n## Help\n\n- **Issues \u0026 feature requests:** [GitHub Issues](https://github.com/scality/raidmgmt/issues)\n- **Design documentation:** [DESIGN.md](DESIGN.md)\n\n## Contributing\n\nSee [CONTRIBUTING.md](CONTRIBUTING.md).\n\n## Maintainers\n\nThis project is maintained by the [MetalK8s](https://github.com/scality/metalk8s)\nteam at [Scality](https://github.com/scality).\n\n## License\n\nThis project is licensed under the [Apache License 2.0](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscality%2Fraidmgmt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscality%2Fraidmgmt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscality%2Fraidmgmt/lists"}