Skip to content
This repository was archived by the owner on Nov 23, 2017. It is now read-only.

Commit 9314296

Browse files
authored
Merge pull request #79 from dud225/branch-2.0
Get rid of useless mount flag
2 parents 5188c78 + fcbe85f commit 9314296

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

create_image.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ sudo sed -i 's/.*ephemeral.*//g' /etc/cloud/cloud.cfg
3838
sudo sed -i 's/.*swap.*//g' /etc/cloud/cloud.cfg
3939

4040
echo "mounts:" >> /etc/cloud/cloud.cfg
41-
echo " - [ ephemeral0, /mnt, auto, \"defaults,noatime,nodiratime\", "\
41+
echo " - [ ephemeral0, /mnt, auto, \"defaults,noatime\", "\
4242
"\"0\", \"0\" ]" >> /etc/cloud.cloud.cfg
4343

4444
for x in {1..23}; do
4545
echo " - [ ephemeral$x, /mnt$((x + 1)), auto, "\
46-
"\"defaults,noatime,nodiratime\", \"0\", \"0\" ]" >> /etc/cloud/cloud.cfg
46+
"\"defaults,noatime\", \"0\", \"0\" ]" >> /etc/cloud/cloud.cfg
4747
done
4848

4949
# Install Maven (for Hadoop)

setup-slave.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,24 +30,24 @@ echo "Setting up slave on `hostname`... of type $instance_type"
3030
if [[ $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
@@ -57,7 +57,7 @@ fi
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

6262
function setup_ebs_volume {
6363
device=$1

0 commit comments

Comments
 (0)