You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by ap...@apache.org on 2010/01/16 10:05:34 UTC
svn commit: r899908 - in /hadoop/hbase/trunk: CHANGES.txt
src/contrib/ec2/bin/hbase-ec2-init-remote.sh
src/contrib/ec2/bin/image/create-hbase-image-remote
Author: apurtell
Date: Sat Jan 16 09:05:34 2010
New Revision: 899908
URL: http://svn.apache.org/viewvc?rev=899908&view=rev
Log:
HBASE-2131 [EC2] Mount data volumes as xfs, noatime
Modified:
hadoop/hbase/trunk/CHANGES.txt
hadoop/hbase/trunk/src/contrib/ec2/bin/hbase-ec2-init-remote.sh
hadoop/hbase/trunk/src/contrib/ec2/bin/image/create-hbase-image-remote
Modified: hadoop/hbase/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/hbase/trunk/CHANGES.txt?rev=899908&r1=899907&r2=899908&view=diff
==============================================================================
--- hadoop/hbase/trunk/CHANGES.txt (original)
+++ hadoop/hbase/trunk/CHANGES.txt Sat Jan 16 09:05:34 2010
@@ -318,6 +318,7 @@
HBASE-2084 [EC2] JAVA_HOME handling broken
HBASE-2100 [EC2] Adjust fs.file-max
HBASE-2103 [EC2] pull version from build
+ HBASE-2131 [EC2] Mount data volumes as xfs, noatime
HBASE-1901 "General" partitioner for "hbase-48" bulk (behind the api, write
hfiles direct) uploader
HBASE-1433 Update hbase build to match core, use ivy, publish jars to maven
Modified: hadoop/hbase/trunk/src/contrib/ec2/bin/hbase-ec2-init-remote.sh
URL: http://svn.apache.org/viewvc/hadoop/hbase/trunk/src/contrib/ec2/bin/hbase-ec2-init-remote.sh?rev=899908&r1=899907&r2=899908&view=diff
==============================================================================
--- hadoop/hbase/trunk/src/contrib/ec2/bin/hbase-ec2-init-remote.sh (original)
+++ hadoop/hbase/trunk/src/contrib/ec2/bin/hbase-ec2-init-remote.sh Sat Jan 16 09:05:34 2010
@@ -62,7 +62,12 @@
service gmond start
fi
-# Probe for instance volumes
+# Reformat sdb as xfs
+umount /mnt
+mkfs.xfs -f /dev/sdb
+mount -o noatime /dev/sdb /mnt
+
+# Probe for additional instance volumes
# /dev/sdb as /mnt is always set up by base image
DFS_NAME_DIR="/mnt/hadoop/dfs/name"
@@ -71,8 +76,9 @@
for d in c d e f g h i j k l m n o p q r s t u v w x y z; do
m="/mnt${i}"
mkdir -p $m
- mount /dev/sd${d} $m > /dev/null 2>&1
+ mkfs.xfs -f /dev/sd${d}
if [ $? -eq 0 ] ; then
+ mount -o noatime /dev/sd${d} $m > /dev/null 2>&1
if [ $i -lt 3 ] ; then # no more than two namedirs
DFS_NAME_DIR="${DFS_NAME_DIR},${m}/hadoop/dfs/name"
fi
Modified: hadoop/hbase/trunk/src/contrib/ec2/bin/image/create-hbase-image-remote
URL: http://svn.apache.org/viewvc/hadoop/hbase/trunk/src/contrib/ec2/bin/image/create-hbase-image-remote?rev=899908&r1=899907&r2=899908&view=diff
==============================================================================
--- hadoop/hbase/trunk/src/contrib/ec2/bin/image/create-hbase-image-remote (original)
+++ hadoop/hbase/trunk/src/contrib/ec2/bin/image/create-hbase-image-remote Sat Jan 16 09:05:34 2010
@@ -44,7 +44,7 @@
# Install tools
echo "Installing rpms."
yum -y update
-yum -y install rsync lynx screen ganglia-gmetad ganglia-gmond ganglia-web httpd php lzo-devel
+yum -y install rsync lynx screen ganglia-gmetad ganglia-gmond ganglia-web httpd php lzo-devel xfsprogs
yum -y clean all
# Install Hadoop