/[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 311 - (hide annotations)
Tue Jan 28 18:33:58 2014 UTC (10 years, 3 months ago) by dpavlin
File MIME type: application/x-sh
File size: 327 byte(s)
fix host mountpoint

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     ssh_lxc df -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