-
Notifications
You must be signed in to change notification settings - Fork 1
/
build2setup_bd.sh
43 lines (25 loc) · 921 Bytes
/
build2setup_bd.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/bin/bash
set -x
echo "1" > /proc/sys/kernel/softlockup_panic
echo "never" > /sys/kernel/mm/transparent_hugepage/enabled
echo "never" > /sys/kernel/mm/transparent_hugepage/defrag
apt-get install -y lxc
# apt-get install software-properties-common && add-apt-repository ppa:ubuntu-toolchain-r/test
# apt-get update && apt-get install -y gcc-8 g++-8
# cd /usr/bin && rm gcc g++
# ln -sf gcc-8 gcc
# ln -sf g++-8 g++
modprobe ib_ipoib
#git clone https://github.com/SymbioticLab/Infiniswap.git
#修改backup_disk="/dev/nvme0n1p4"
#100行的sudo去掉,docker里面没有这个
#vim ./setup/install.sh
# echo 1 > portal.list
# echo 10.10.1.2:9400 >> portal.list
# // fe80::1658:d0ff:fe58:4fb2
mkdir /mydata && /usr/local/etc/emulab/mkextrafs.pl /mydata
umount /dev/sda4 && swapoff /dev/sda3
cd /root/Infiniswap/setup
chmod +x *.sh && ./get_module.symvers.sh 4.1
./install.sh bd
./infiniswap_bd_setup.sh