Created
September 22, 2016 15:02
-
-
Save gbraccialli/5e8a3048be33e40af69c8e872d2d2ac6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vi /etc/mke2fs.conf | |
#add to /etc/mke2fs.conf : | |
hadoop = { | |
features = has_journal,extent,huge_file,flex_bg,uninit_bg,dir_nlink,extra_isize | |
inode_ratio = 131072 | |
blocksize = -1 | |
reserved_ratio = 0 | |
default_mntopts = acl,user_xaddr | |
} | |
##for all 12 disks | |
echo y | mkfs.ext4 -T hadoop /dev/sdb & | |
mkdir /data1 | |
mount /dev/sdb /data1 -o inode_readahead_blks=128,data=writeback,noatime,nodev,nobarrier | |
vi /etc/fstab | |
#on /etc/fstab: | |
/dev/sdb /data1 ext4 data=writeback,noatime,nodev,nobarrier 0 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment