/[sysadmin-cookbook]/recepies/ganeti/migrate-lxc/C-ganeti-swap.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/C-ganeti-swap.sh

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

revision 315 by dpavlin, Sun Jan 12 13:39:28 2014 UTC revision 316 by dpavlin, Thu Apr 24 07:26:24 2014 UTC
# Line 3  Line 3 
3  . ./0-host.sh  . ./0-host.sh
4  . ./0-ganeti.sh  . ./0-ganeti.sh
5    
6  ssh_master lvcreate -L 1G -n $host-swap ffzgvg  ssh_storage lvcreate -L 1G -n $host-swap ffzgvg
7    
8  ssh_master parted -s /dev/mapper/ffzgvg-$host--swap 'mklabel msdos mkpartfs primary linux-swap 0% 100%'  ssh_storage parted -s /dev/mapper/ffzgvg-$hostlv--swap 'mklabel msdos mkpartfs primary linux-swap 0% 100%'
9    
10  ssh_master dmsetup remove ffzgvg-${host}--swapp1  ssh_storage dmsetup remove ffzgvg-${hostlv}--swapp1

Legend:
Removed from v.315  
changed lines
  Added in v.316

  ViewVC Help
Powered by ViewVC 1.1.26