Created
December 7, 2014 16:29
-
-
Save lorentzca/8e84127331ec943e21e5 to your computer and use it in GitHub Desktop.
update system, initialize disk and swap
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
#!/bin/bash | |
yum update -y | |
resize2fs -p /dev/xvde | |
mkdir /mnt/store_vol | |
mount /dev/xvdf /mnt/store_vol/ | |
dd if=/dev/zero of=/mnt/store_vol/swapfile bs=1M count=1024 | |
mkswap /mnt/store_vol/swapfile | |
swapon /mnt/store_vol/swapfile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Linux インスタンスでの起動時のコマンドの実行でシステムのアップデート、ディスクの拡張、swap領域の作成をする