-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbd.sh
More file actions
36 lines (26 loc) · 638 Bytes
/
bd.sh
File metadata and controls
36 lines (26 loc) · 638 Bytes
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
#!/bin/bash
"""
## Instruction list for Infiniband
## M1 is compute node, M2 is memory node
# 1. Setup Infiniband NIC on both machines
cd setup
# M1:192.168.0.11, M2:192.168.0.12
sudo ./ib_setup.sh 192.168.0.<11, 12>
# 2. Compile infiniswap daemon on M2:
# In setup
./install.sh daemon
# 3. Install infiniswap block device on M1:
# In setup
./install.sh bd
"""
REPO_DIR = $(dirname -- $(readlink -f "${BASH_SOURCE}"))
cd $REPO_DIR/setup
if [ $# -eq 0 ]
then
echo "No arguments supplied; default 192.168.1.11"
sudo ./ib_setup.sh 192.168.1.11
else
echo "Setup with $1"
sudo ./ib_setup.sh $1
fi
./install.sh bd