Add ping.py so we can test when a host is up. ping -c 2 -w 90 will almost do the right thing, but will exit on a icmp host unreachable. We need to continue to wait. ping.py just waits for an answer to a ping. Parallelize building the compute nodes (but not the head node). Kill ping process in ping.py. Copy PIP cache to host before running. Add syslog artifacts. Remove known_host weirdness, depend on .ssh/config instead. Change-Id: I65a12074cf80feb3ae69d15c81ba32a81566b22a
8 lines
277 B
Bash
Executable File
8 lines
277 B
Bash
Executable File
#!/bin/bash -x
|
|
lvremove -f /dev/main/last_root
|
|
lvrename /dev/main/root last_root
|
|
lvcreate -L20G -s -n root /dev/main/orig_root
|
|
APPEND="`cat /proc/cmdline`"
|
|
kexec -l /vmlinuz --initrd=/initrd.img --append="$APPEND"
|
|
nohup bash -c "sleep 2; kexec -e" </dev/null >/dev/null 2>&1 &
|