In this article, we will explore a system for recognizing RAID and disk configurations, both hardware and software.
This includes manufacturers: MegaRaid/PERC/SAS2IRCU/ADAPTEC, RAID types via SoftRAID/ZFS/Btrfs/LVM, and disks connected directly to the motherboard.
The source code is hosted on GitHub , where you will find the latest available version. However, I also provide a compressed copy here.
The steps to follow are:
git clone https://github.com/ARPABoy/hardwareAnalyzer.git
go mod tidy
go build
./hardwareAnalyzer
Some screenshots:
CLI parameters can be obtained as follows:
go run hardwareAnalyzer.go -h
You can also run the unit tests:
go test ./...
go test ./... -coverprofile=coverage.out && go tool cover -func=coverage.out