/[sysadmin-cookbook]/recepies/ganeti/migrate-lxc/2-lxc-mount-point.sh
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /recepies/ganeti/migrate-lxc/2-lxc-mount-point.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 317 by dpavlin, Tue Jan 28 18:33:58 2014 UTC revision 318 by dpavlin, Fri May 2 15:47:55 2014 UTC
# Line 10  ssh_lxc() { Line 10  ssh_lxc() {
10    
11  ssh_lxc /etc/init.d/lxc-watchdog status  ssh_lxc /etc/init.d/lxc-watchdog status
12  mnt=`cat $host/lxc-watchdog | grep ^$host | awk '{ print $4 }' | tee $host/mnt`  mnt=`cat $host/lxc-watchdog | grep ^$host | awk '{ print $4 }' | tee $host/mnt`
13  ssh_lxc df -h $mnt  ssh_lxc df -P -h $mnt
14  size=`cat $host/df | grep /mnt/$host | awk '{ print $2 }' | tee $host/size`  size=`cat $host/df | grep /mnt/$host | awk '{ print $2 }' | tee $host/size`
15    

Legend:
Removed from v.317  
changed lines
  Added in v.318

  ViewVC Help
Powered by ViewVC 1.1.26