/[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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 318 - (hide annotations)
Fri May 2 15:47:55 2014 UTC (10 years ago) by dpavlin
File MIME type: application/x-sh
File size: 330 byte(s)
don't wrap df output

1 dpavlin 306 #!/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 dpavlin 318 ssh_lxc df -P -h $mnt
14 dpavlin 311 size=`cat $host/df | grep /mnt/$host | awk '{ print $2 }' | tee $host/size`
15 dpavlin 306

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26