When trying to develop plans to repurpose machines and not being the sys admin that setup the machines is a difficult task. Part of the plan is to audit the hardware and their current configuration.
Memory, CPU, partitions, etc are easy parameters to determine in FreeBSD; hardware RAID on the other is not so simple.
To get most of the details, the SysInfo script makes this a breeze. (Make sure to install sysutils/dmidecode)
As for the current RAID configuration, it depends on your RAID adapter. I stumbled upon this gem FreeBSD RAID Monitoring by Nico Schottelius. It provides a nice list of different methods of finding this information.
For AMCC or 3ware adapters, sysutils/tw_cli is a simple utility
# tw_cli info
Ctl Model (V)Ports Drives Units NotOpt RRate VRate BBU ------------------------------------------------------------------------ c0 9650SE-8LPML 8 4 2 0 1 1 OK
# tw_cli info c0
Unit UnitType Status %RCmpl %V/I/M Stripe Size(GB) Cache AVrfy ------------------------------------------------------------------------------ u0 RAID-1 OK - - - 698.481 ON OFF u1 RAID-1 OK - - - 698.481 ON OFF Port Status Unit Size Blocks Serial --------------------------------------------------------------- p0 OK u0 698.63 GB 1465149168 5QK03R9K p1 OK u0 698.63 GB 1465149168 5QK07SEE p2 OK u1 698.63 GB 1465149168 5QK05X5G p3 OK u1 698.63 GB 1465149168 5QK07XTM p4 NOT-PRESENT - - - - p5 NOT-PRESENT - - - - p6 NOT-PRESENT - - - - p7 NOT-PRESENT - - - - Name OnlineState BBUReady Status Volt Temp Hours LastCapTest --------------------------------------------------------------------------- bbu On Yes OK OK OK 0 xx-xxx-xxxx
For LSI, sysutils/megacli
# MegaCli -LDInfo -LAll -aAll
Adapter 0 -- Virtual Drive Information: Virtual Disk: 0 (Target Id: 0) Name: RAID Level: Primary-1, Secondary-0, RAID Level Qualifier-0 Size:407.917 GB State: Optimal Stripe Size: 64 KB Number Of Drives per span:2 Span Depth:3 Default Cache Policy: WriteBack, ReadAheadNone, Direct, No Write Cache if Bad BBU Current Cache Policy: WriteThrough, ReadAheadNone, Direct, No Write Cache if Bad BBU Access Policy: Read/Write Disk Cache Policy: Disabled Encryption Type: None
Pingback: Buy Facebook Fans()