How do I check Windows 7 Software RAID Rebuild Progress from the Command Line?
I use software RAID on my Windows 7 ultimate box media center. Unfortunately, Windows decides it needs to rebuild my software RAID pair much more often than I'd like. The most common way to see the progress of rebuilding the RAID is to use diskmgmt.msc
. However, this is very slow to start up and requires me to either be on the machine directly or use remote desktop to view the results.
I'd like to use diskpart
to check the status of my RAID rebuild as it runs much faster and I can SSH into the machine ( to BitVise SSHD) and check the status -- something that is very helpful when the display is active with a movie or TV show. However, it only says whether or not the RAID is rebuilding, not the progress of the rebuild:
DISKPART> list volume
Volume ### Ltr Label Fs Type Size Status Info
---------- --- ----------- ----- ---------- ------- --------- --------
Volume 0 C NTFS Mirror 1862 GB Rebuild Boot
Volume 1 System Rese NTFS Mirror 100 MB Healthy System
Volume 2 D DVD-ROM 0 B No Media
This shows that Volume 0 is currently in a rebuild process, so I select it for more information:
DISKPART> select volume 0
Volume 0 is the selected volume.
DISKPART> detail volume
Disk ### Status Size Free Dyn Gpt
-------- ------------- ------- ------- --- ---
Disk 0 Online 1863 GB 0 B *
Disk 1 Online 1863 GB 0 B *
Read-only : No
Hidden : No
No Default Drive Letter: No
Shadow Copy : No
Offline : No
BitLocker Encrypted : No
Installable : Yes
Volume Capacity : 1862 GB
Volume Free Space : 229 GB
As you can see, this provides more information on the volume, but does not provide any insight into the progress of the rebuild.
Any hints on how to get the progress of the rebuilt from diskpart
or other command line tool?
More information is available through PowerShell and WMI:
Get-WmiObject –List
Get-WmiObject –List | Select-String -pattern "disk"
Get-WmiObject –List | Select-String -pattern "volume"
Get-WmiObject Win32_Volume
I'm not sure if it has information you're searching for, but it has huge amounts of info compared to commmand line tools and certainly worth digging.