I created a RAID array using the 2 local SSD drives on a EC2 c3.4xlarge instance.
# mdadm --create /dev/md127 --level=0 --raid-devices=2 /dev/xvdf /dev/xvdg
# mkfs.ext4 /dev/md127
# mkdir /data
# echo 'DEVICE /dev/xvdf /dev/xvdg' > /etc/mdadm.conf
# mdadm --detail --scan >> /etc/mdadm.conf
# echo "/dev/md127 /data ext4 defaults 1 2" >> /etc/fstab
The device works great. However, when I am trying to set the I/O scheduler for for the array (as root), the scheduler file doesn't change.
# echo noop > /sys/block/md127/queue/scheduler
# cat /sys/block/md127/queue/scheduler
none
What is the proper way of setting the scheduler, so that last commands output is 'noop'?