NOTICE: Rackspace Engineers will be performing a scheduled maintenance on the infrastructure for support.rackspace.com and developer.rackspace.com on October 23, 2018 and October 24, 2018. During this maintenance, both sites will be down for a few hours between 10:00 PM CDT and 8:00 AM CDT, and customers will not be able to access the How-To or the API documentation. If you have any questions or concerns in regard to this maintenance, please do not hesitate to contact a member of our support team.

Configure flash drives in High I/O instances as Data drives

  • Last updated on: 2016-08-17
  • Authored by: Paul Querna

The two 1.6 TB PCIe flash cards included with the OnMetal I/O flavor come unformatted. Use the following steps to configure your flash cards for use as a data disk.

  1. Determine what devices are the PCIe block devices.

    Note: Find the high performance PCIe cards by running lsblk -oNAME, MODEL and looking for devices listed with model NWD-BLP* or XP6302*.

  2. Apply best SSD settings for each devices (sub DEVICENAME with name identified in step 1).

     echo noop | sudo tee /sys/block/DEVICENAME/queue/scheduler
     echo 4096 | sudo tee /sys/block/DEVICENAME/queue/nr_requests
     echo 1024 | sudo tee /sys/block/DEVICENAME/queue/max_sectors_kb
     echo 1 | sudo tee /sys/block/DEVICENAME/queue/nomerges
     echo 512 | sudo tee /sys/block/DEVICENAME/device/queue_depth
    
  3. (Optional) Partition the created raid device if you prefer, or can create an FS directly.

  4. Create an ext4 FS on it.

     mkfs.ext4 /dev/md0
    

Continue the conversation in the Rackspace Community.