WD DX4000: Customize RAID Configuration

Over the past year, I received several great compliments regarding these postings, and for that I just wanted to say thanks. There have been a few questions floating around regarding the RAID configuration possibilities and today, I have something I found interesting to share with everyone.

You can in fact change the volume and array structure to fit your needs. I found a really nice command line tool on the Intel® Download Center called the RST CLI. The tool corresponds with a particular driver release, but allows you to configure the controller and drives for any particular array and volume you choose. In my initial tests, I have been able to successfully use the version driver and RST CLI tool, to change my 4 drive array, into a RAID 10 configuration (*see note at the end). I have since changed back to a RAID 5 configuration and modified the stripe size to fit my particular data storage and performance needs.

To get started, download the drivers and toolkit from the links above, or just visit the download center and search for RST drivers and RST CLI. Note: they do have a newer driver available (version 13.1); however, as of the time of this writing they do not have a matching toolkit available (version 13.0 is the latest for RST CLI) so use the 12.9 versions.

Update WINPE:

If you have been following along my articles to this point, congratulations on being able to decipher my sometimes cryptic process. Similarly to Part 1 at Step 3, you will need to inject the driver into the boot.wim; however, make sure to “remove” the older version from the image prior to doing this. It is really simple, just get a list of the drivers you currently have injected by executing the following command after mounting the image:

dism /get-drivers /image:E:\WINPE\MOUNT\WINRE

You should see a list of “OEM” drivers you have previously injected that you can selectively remove. For example:

Figure 1

If I needed to update the drivers related to the RST controller, I would remove oem0.inf, and oem1 as listed in Figure 1 by executing the following command:

dism /remove-driver /image:E:\WINPE\MOUNT\WINRE /DRIVER:oem0.inf /DRIVER:oem1.inf

and then inject the new drivers (note the location where you extracted them):

dism /add-driver /image:E:\WINPE\MOUNT\WINRE /DRIVER:E:\WINPE\WDRST\12.9\f6flpy-x64

You do not have to list the driver specifically, unless you want to. You could just list the directory you extracted the files into, and DISM will pick up any INF files in the directory and add them to the image. In the case of our RST driver download, this adds both the iaahcic and iastorac files into the image.


Add RSTCLI toolkit:

This is pretty simple, just extract the CLI tool you downloaded to a directory and make sure to extract the x64 version. There should be some scripts zipped up there, which you can ignore for now, and the RSTCLI64.EXE command line tool.

Create a directory for that tool at the root of WIM image you extracted (E:\WINPE\MOUNT\WINRE in my case examples above). I created a directory simply called RSTCLI, and copy that file into it. Close any explorer windows you may have open to prevent DISM issues with open file handles, and commit the changes to your updated boot.wim for use in your bootable USB.


Setting up your ARRAY:

This is where things can get a bit complex and I’ll try to only go over what I know for fact and boil it down as simply as possible. The most important thing you need to remember when using the RST CLI tool… it is destructive! It will in fact wipe out anything and everything related to your volumes and arrays. So just make absolutely sure you’ve got backups of your data before using the tool to reconfigure the array. Unless you have a good friend at a data recovery company, which I don’t, then just be aware that the changes made are not reversible.

Of course I do have to say, try to read a document called “Intel® Rapid Storage Technology OEM Technical Guide.” If you do a Bing or Google search, you may be able to find it for download. I am not an OEM, and I’m nearly certain the document is hard to get outside of that circle… but there are versions floating around out there. Otherwise, you’ll need to do the old-school method of using the command line tool help feature (rstcli64.exe –help). Unfortunately, there are limited examples in the help feature, and the document provides several of how to use the tool for many configurations.

To get to the basics though, there are really only 4 steps to deconstruct and build an array with the tool:

  • Clear the metadata on the disks
  • Create the volume and type with your specific parameters
  • Modify the cache policy if so desired
  • Initialize the volume (note: this is not required, but is important as I’ll explain a little later)


Step 0:

Ok, so maybe there are five steps, the initial being… get some information about your controller and array, which can be done by executing the following command:

X:\RSTCLI\rstcli64.exe –information

You should be presented with a plethora of details that might, or not thrill you. The important thing to note, are the ID values provided to you about each disk in the subsystem. Just make a mental note, or jot it down. You’ll find it a bit odd, as I did, that the drive in Port 1 will have an ID of 0-2-0-0.

If you are thinking like I did, yes indeed… the onboard controller is missing two slots. As you and I have now discovered the Max Disks support on this system is 6, not 4. However, 0-0-0-0 and 0-1-0-0 are not accessible to us due to the fact that the PCIe x4 riser card that feeds the BUS only supports the last four ports. Wouldn’t it be great if someone made a riser card that supported the first two internal ports? I thought so.


Step 1:

To clear the metadata, execute the following command in WINPE shell in the RST CLI directory:

X:\RSTCLI\rstcli64.exe –manage –delete-all-metadata

The text there is red for a reason, not because I’m angry but because you really need to make sure you want to do this.


Step 2:

To create the volume, you will need to decide what kind of configuration your heart desires. In this example, I’ll show you how to rebuild the subsystem for RAID 5 with a stripe size of 128K.

X:\RSTCLI\rstcli64.exe –C –l 5 –n VolumeName 0-2-0-0 0-3-0-0 0-4-0-0 0-5-0-0 –stripe-size 128

Valid unit sizes for the stripe are 4, 8, 16, 32, 64, and 128. These are for the subsystem and are not related the allocation unit values which you will chose when you format the volume using DISKPART. This property is related to how the controller reads data blocks from the drives. This is actually a really important value to get right and it truly depends on how the system is going to be used. In simple terms, if you read and write a lot of small files, use a lower stripe size. However, if you are like me and store rather large files like video or ISO files, then perhaps you can benefit from using a larger stripe.

For further information, I recommend reading an article posted by Kendal Van Dyke regarding “Disk Performance Hands On”. It is a good article.


Step 3:

To modify the cache policy execute the following:

X:\RSTCLI\rstcli64.exe –manage –volume-cache-policy WB –volume VolumeName

Just note, this sets the policy to Write-back, which is great in my opinion for performance but you must have a backup power supply for the server. The risk is too great without one.

Step 4:

To initialize the array, it is a really simple command; however, you should know that this is an optional feature and should probably only be done when you have settled on your configuration and want to solidify it. It is not necessary to do this but I do recommend it. If you do not initialize the array, there is no guarantee that the data can be verified. So it must be initialized. I noticed that on my DX4000, the array was not initialized from the factory.

You can safely work with the subsystem while it is being initialized. You can even power down the system and on startup the system will continue the initialization process from where it left off. There may be some performance hit during this period, but so far my 12TB configuration has been working over 24hours on the initialization with practically zero impact and I’ve rebooted multiple times.

To begin the initialization, execute the following command for the volume you’ve structured:

X:\RSTCLI\rstcli64.exe –manage –initialize VolumeName



Those are the nuts and bolts to reconfiguring your very own array subsystem on the Western Digital DX4000. This will also provide you a way to customize the stripe size for optimal performance, which is nice as we all do not use our storage system the same way. This also gives you a way to actually initialize a volume properly to ensure some data integrity if the need to reconstruct or verify a drive happens.

It would be great if I had time to do some benchmarks on various stripe sizes versus allocation unit sizes, but unfortunately I can’t right now. I will leave you with a few notes on my discoveries, I hope this post has been helpful. And again, good luck out there!




  • While dynamic storage accelerator is a feature which can be enabled, it seems the actual use of acceleration is not possible in this system. Why? I have no clue, but after several attempts of sitting an SSD in port 1 and 2, I could not get the system to successfully do storage acceleration. It is unfortunate and I go back to the “Max Disks” thing I mentioned earlier. The technology requires internal ports for use, and even though drives in ports 1 and 2 show up as internal, they are not usable as such. Perhaps there is a magical way to get it done, but I could not figure it out.
  • Regardless of the OROM built in to the UEFI, you can in fact use the 12.9 driver and CLI to modify the array. I was not able to find any OROM updates that could potentially allow me to enable DSA (dynamic storage acceleration).
  • I may have missed in an earlier article a requirement for getting the LCD PowerShell thing working properly. If (like me), you are moving up to server 2012R2, you will need to get the VC++ 2010 x64 redistributable package installed along with the original WD LPC driver from their recovery ISO to get the script working. Also note that in order to get the PowerShell script working in the scheduler in 2012R2, you need to remove the quotes from around the path to the script… why? No idea.
  • TIP:  I believe I mentioned in the video that I was experiencing an issue related to the cache policy for the array.  Well, it turns out that since the volume contained both partitions C: and D:, and I had promoted the system to a domain controller, Microsoft has a built in policy to disable write-back caching.  To solve this, I rebuilt the array by taking one drive out, and placed a SSD into port 1 to be used for EFI, System, and Windows partitions.  I took the remaining drives, built my array with the CLI tool in RAID 5.  The RAID will obviously now utilize caching.  While the SSD looses the ability to use write-back caching, it really isn’t necessary.  The system boots considerably faster, and is far more reactive in RDP sessions.  Oh, and here’s a great review on the product I used for the SSD, thanks to the folks over at Home Server Show for this little treat.  Here’s what I used from Newegg: ICY DOCK MB882SP.
  • ** seems that RAID 10 may not be working.  I’m checking into it; however, it seems another feature of the subsystem is perhaps crippled.
  • After several attempts to rebuild the array for RAID 10, it would now seem pretty clear that the ROM has been feature crippled.  The controller is fully capable for both DSA and RAID 0, 10; however, without being able to gain access via IPMI or some type of remote UEFI shell, WD has built a brick wall for any enthusiast.  That’s unfortunate.  I was able to get two RAID 1 volumes built, but that’s just silly.  I have some serious data storage for rendering, images, and video so being able to gain the RAID 10 benefit and redundancy is important to me.  However, I guess I’ll just have to build my own solution for that purpose and keep the DX4000 as a simple client storage dump.
  • On these notes, I will say that after building the array myself and updating the RST drivers to 12.9, enabling the write-back cache policy on the array, and installing Windows Server 2012R2…  the write-back cache policy has held even after promoting the system to a domain controller.  This is more likely due to the fact that pulling one of the drives and replacing it with a SSD and using it as the primary boot drive allows the system to function with that caching policy on the array.
Tagged with: , , , ,
Posted in WD DX4000
17 comments on “WD DX4000: Customize RAID Configuration
  1. fulano says:

    HI, great tuto. I have to ask you if it’s possible to install another OS (Linux) into the Dx4000 ??? How to do it ?

    • tswalker says:

      I would think that if you can find a distro of Linux with the hardware support you may. The only hurdle you might have is building a bootable USB (perhaps with GRUB?) with an integrated VNC (or SSH into it?) to do a remote setup. Otherwise, you might have to build it on a technician computer and slide the drive into it ready to go.

      sorry, but I have not tried this.. sounds interesting though. good luck!

  2. Stettler Martin says:

    Hi tswalker – Realy no RAID-10 possible?
    For me is fulfill to have a mirror from the main harddisk.
    Example: Disk 1 and 2 (8TB) is active and Disk 3 and 4 mirror as backup.
    From time to time change I the Disk 3 and 4 and put in two new Disk.
    Need I a file from Backupset – I can put in both Disk in my Workstation PC.
    Bye from switzerland – Martin

    • tswalker says:

      Hi Martin, unfortunately no. RAID 10 using the hardware is not possible; however, you “may” be able to do this with software RAID in Windows (using storage spaces?) but I wouldn’t recommend it at all.. the performance is quite low, and has been known to have issues. If only we could somehow gain access remotely with UEFI, … the possibility to edit the ROM and reprogram it would be nice… I spent a bit of time trying to figure it out, but just wasn’t able too.

      • Stettler Martin says:

        Hi tswalker – Ok – then two RAID-1 or I will put the DX400 into the trash.
        You know the DX4000 good? Have this stupide system no VGA Displayport – perhaps inside on the motherboard?
        WD have realy build a stupide system .. and was expensive.
        🙂 Bye – Martin

      • tswalker says:

        Hi Martin, well… there would appear to be a location on the PCB for a VGA pin-out… I guess, not 100% sure though.

        I can understand having to just go RAID-1 for you.. it is a bummer. I too was a little disappointed with no RAID 10 (or even just 0) 😦

  3. Krishna says:

    Hi Troy

    Came across your interesting articles on DX4000.

    One of my drives in DX4000 went kaput. Got a WD Red 6TB (someone told me to read the manual on compatible drives!!)

    As usual, the system refuses to accept the drive, marking it as incompatible.

    Is there any way to tweak some place to make it accept 6TB drive?

    Thanks in advance

    • tswalker says:

      Hi Krishna, The only way around the black list is to either… dig into and located the black list that their controlling software is using (which may not work)… or scrub the entire system and use my techniques to setup a new system. 😦

  4. GGG says:

    A little late to the party on this, but I came across another way of doing this that doesn’t require the RSTCLI toolkit or any drivers.

    What it does require:
    A Desktop computer with any of the Intel chip sets that support RST, and four SATA ports.

    In short, you remove all existing hard drives on the desktop and connect the drives from your DX4000.

    If currently in use, be sure to make note of which SATA port each drive uses before you remove them.
    It might not matter, but I connect the drives to the SATA port that corresponds with the number of the bay it occupies in the DX4000
    If the motherboard’s SATA controller is not already in RAID mode, boot the computer, get into its BIOS, change the SATA configuration from AHCI to RAID, and then reboot.
    The Intel RST BIOS will now show up before the motherboard BIOS.
    When it appears, use CTRL+I to access the controller configuration.
    Create a RAID volume with the Name, RAID level, stripe size and volume size you desire.

    Now you can put them back in your DX4000.

    Even if the desktop has an existing RAID array set up, you can use this method without loss to the existing array.
    Unlike true RAID controllers, RST stores the volume information on the array, not on the controller.
    As long as you don’t damage the disks of the existing array, you can put them back and they will work as before.

  5. cybernol says:

    I have learned a lot on dism and winpe building by reading this posts.
    My old DX4000 came with 2x 2TB in mirror and I wanted after 5 or 6 years to upgrade those disks. Already found info on how to disable the supported drives because those are not available anymore. Finally I got 4 disks WD4003FFBX I managed to “upgrade the disks”
    By removing the second disk and replace it for an new one after rebuild the same with the first disk and after rebuild an extra disk. yes that works fine 😉 except one thing your not getting all the space but only 3 times 2TB in raid 5.
    In my search i landed on your posts which are great thanks!!.
    Because the 2008R2 dashboard does not give any way to control the raid. its my home NAS i don’t need 2012R2 using veem as backup solution.
    So how to get at that raid settings, well with your posts i was able to build the winpe USB with the rstcli 12.9 and only one command to claim the other part of the disks. Super
    it took 2 days to do it because needed to backup the NAS first using USB SATA dock.

    But Finally its working and I have all disk space available
    thanks for making this tut.

  6. Kevin says:

    I’m really not interested in RAID at all, is there a way to completely disable RAID on the DX4000? I’d rather have 4 completely independent disks each as their own individual network share and that’s it. Any possibility?

    • tswalker says:

      Hi Kevin, my apologies in the long delay to respond.

      Yes, you can do this. Simply remove all but one drive prior to initializing and installing the OS. After the system is up and running, you can shut it down and add the additional drives. You may need to use the Intel RST software afterwards to initialize the disks individually, or use the CLI tools. But this can definitely be done. You will however, still need the RAID controller drivers added via the DISM process I describe for it to be usable.

    • tswalker says:

      just FYI, if you do the “serial console” mod to the system, you are able to access the BIOS and change the IDE configuration from RAID to AHCI mode which will provide independent disks.. it works. I’m doing it as I type.

      here are some instructions: https://www.youtube.com/watch?v=amUXkdGdcTg

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: