@@ -30,24 +30,24 @@ echo "Setting up slave on `hostname`... of type $instance_type"
3030if [[ $instance_type == r3* || $instance_type == i2* || $instance_type == hi1* ]]; then
3131 # Format & mount using ext4, which has the best performance among ext3, ext4, and xfs based
3232 # on our shuffle heavy benchmark
33- EXT4_MOUNT_OPTS=" defaults,noatime,nodiratime "
33+ EXT4_MOUNT_OPTS=" defaults,noatime"
3434 rm -rf /mnt*
3535 mkdir /mnt
3636 # To turn TRIM support on, uncomment the following line.
37- # echo '/dev/sdb /mnt ext4 defaults,noatime,nodiratime, discard 0 0' >> /etc/fstab
37+ # echo '/dev/sdb /mnt ext4 defaults,noatime,discard 0 0' >> /etc/fstab
3838 mkfs.ext4 -E lazy_itable_init=0,lazy_journal_init=0 /dev/sdb
3939 mount -o $EXT4_MOUNT_OPTS /dev/sdb /mnt
4040
4141 if [[ $instance_type == " r3.8xlarge" || $instance_type == " hi1.4xlarge" ]]; then
4242 mkdir /mnt2
4343 # To turn TRIM support on, uncomment the following line.
44- # echo '/dev/sdc /mnt2 ext4 defaults,noatime,nodiratime, discard 0 0' >> /etc/fstab
44+ # echo '/dev/sdc /mnt2 ext4 defaults,noatime,discard 0 0' >> /etc/fstab
4545 if [[ $instance_type == " r3.8xlarge" ]]; then
4646 mkfs.ext4 -E lazy_itable_init=0,lazy_journal_init=0 /dev/sdc
4747 mount -o $EXT4_MOUNT_OPTS /dev/sdc /mnt2
4848 fi
4949 # To turn TRIM support on, uncomment the following line.
50- # echo '/dev/sdf /mnt2 ext4 defaults,noatime,nodiratime, discard 0 0' >> /etc/fstab
50+ # echo '/dev/sdf /mnt2 ext4 defaults,noatime,discard 0 0' >> /etc/fstab
5151 if [[ $instance_type == " hi1.4xlarge" ]]; then
5252 mkfs.ext4 -E lazy_itable_init=0,lazy_journal_init=0 /dev/sdf
5353 mount -o $EXT4_MOUNT_OPTS /dev/sdf /mnt2
5757
5858# Mount options to use for ext3 and xfs disks (the ephemeral disks
5959# are ext3, but we use xfs for EBS volumes to format them faster)
60- XFS_MOUNT_OPTS=" defaults,noatime,nodiratime, allocsize=8m"
60+ XFS_MOUNT_OPTS=" defaults,noatime,allocsize=8m"
6161
6262function setup_ebs_volume {
6363 device=$1
0 commit comments