How To replace S2D Cache device from SSD to NVME

A friend of mine asked me about this a while ago, as he had setup his S2D cluster with SSD and HDD only. So the SSD’s became the journal drives(caching drives). Now he wanted to replace the SSD’s with NVME disks that he had replaced. Yesterday he did the swap and it worked great.

The process of doing this is.

  1. Stop all VM’s running.
  2. Shut down nodes one and one, then add the NVME disks to the server
  3. Retire the SSD journal drives
  4. Run command on the node that is the owner of the storagepool
    enable-clusters2d -autoconfig:0 -cachestate enabled -Verbose
  5. Here is a screenshot of the above command where the NVME disks where not added as caching drives. But what you should see at the bottom is that drives are added as caching drives.
  6. Add NVME drives to storagepool
  7. Set NVME drives as Journal drives, should go automatic
  8. Remove SSD drives from the pool
  9. Add SSD drives back to the pool and add them as autoselect drives.

Thanks to my good friend Vidar Friis for doing this and testing it out.

Use at own risk on any production cluster. If you are doing this make sure you have backup of the files on your storage.

4 thoughts on “How To replace S2D Cache device from SSD to NVME

  • March 8, 2022 at 10:51 am
    Permalink

    Hello Jan-Tore,

    since its four years since you wrote this blog i would like to know if your recommendation to do this offline still stand?

    Kind Regards
    Harald

    Reply
    • March 11, 2022 at 11:06 am
      Permalink

      Yes this would be my recommendation still. I have not seen a better way to change from SSD to NVME cache. VM’s must be offline, and make sure you have backup of the VM’s before hand. If you do it online, you need to swap out 1 and one drive and wait for ever. But it’s the same steps. And there might be something that happens.

      Reply
  • November 10, 2017 at 8:57 am
    Permalink

    Hi,

    I know there is a little while this article was written but I was woundering if it was possible to add the NVMe to the S2D without taking down the whole system.

    I have a 4 node Hyper-V cluster with S2D and it is in production. It is really hard to take it down like this.

    Reply
    • November 10, 2017 at 3:38 pm
      Permalink

      As far as i know, it’s not possible. I would not recomend doing it while the disks are online.

      JT

      Reply

Leave a Reply

Your email address will not be published. Required fields are marked *