Ignore:
Timestamp:
Sep 28, 2008, 8:16:05 PM (16 years ago)
Author:
price
Message:

sipb-xen-install deals with lvcreate, and some tweaks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/sipb-xen-autoinstaller/host/usr/sbin/sipb-xen-install

    r937 r938  
    55# Unmount it, then kpartx -d $TARGET to clean up.
    66
     7set -e
     8
    79export PATH #WTF?
    810
    9 LVNAME="$1"
     11NAME="$1"
    1012export HOSTNAME="$2"
    1113export DIST="$3"
    1214export MIRROR="$4"
    13 export IMAGESIZE="$5"  # in megabytes
    14 export IP="$6"
     15export FSSIZE="$5"    # in megabytes
     16SWAPSIZE="$6"  # in megabytes
     17export IP="$7"
    1518
    1619export ARCH=amd64
     20VGNAME=xenvg
    1721
    1822#LVSIZE=`lvs --noheadings --units M --nosuffix -o Size /dev/xenvg/d_foobar_hda | sed 's/\..*//'`
     
    2226fi
    2327
    24 export TARGET=/dev/mapper/xenvg-$(echo "$LVNAME" | sed -e 's/-/--/g')_hda
     28/sbin/lvcreate -L $(($FSSIZE+$SWAPSIZE))M -n "${NAME}_hda" $VGNAME
     29
     30export TARGET=/dev/mapper/xenvg-"$(echo "${NAME}_hda" | sed -e 's/-/--/g')"
    2531
    2632/usr/sbin/sipb-xen-create-image
    27 
Note: See TracChangeset for help on using the changeset viewer.