projects
/
sysadmin-cookbook
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
migrate lxc container to ganeti
[sysadmin-cookbook]
/
recepies
/
ganeti
/
migrate-lxc
/
2-lxc-mount-point.sh
1
#!/bin/sh -x
2
3
. ./0-host.sh
4
. ./0-lxc.sh
5
6
ssh_lxc() {
7
log=`basename $1`
8
ssh root@$lxc $* | tee $host/$log
9
}
10
11
ssh_lxc /etc/init.d/lxc-watchdog status
12
mnt=`cat $host/lxc-watchdog | grep ^$host | awk '{ print $4 }' | tee $host/mnt`
13
ssh_lxc df -h $mnt
14
size=`cat $host/df | grep /mnt/rt | awk '{ print $2 }' | tee $host/size`
15