Ignore:
Timestamp:
Aug 26, 2010, 10:45:59 PM (15 years ago)
Author:
rock
Message:

Milestone: drbl-virt deployment completion.
Next Milestone: drbl-virt VM management interface.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • drbl-virt/sbin/drbl_xen_repush.sh

    r189 r190  
    2525    echo "DRBL environment has muiltpule netwrok card(NIC)."
    2626fi   
    27      
     27   
     28# backup IP_HOST_TABLE
     29if [ -e /etc/drbl/IP_HOST_TABLE.drbl-virt_bak ]; then
     30    cp /etc/drbl/IP_HOST_TABLE /etc/drbl/IP_HOST_TABLE.$(date +%Y-%m-%d-%H-%M-%S).drbl-virt_bak
     31    cp -f /etc/drbl/IP_HOST_TABLE.drbl-virt_bak /etc/drbl/IP_HOST_TABLE
     32else
     33    cp /etc/drbl/IP_HOST_TABLE /etc/drbl/IP_HOST_TABLE.drbl-virt_bak
     34fi 
     35
    2836for eth in $eths
    2937do   
     
    4553    VM_last_IP=""
    4654    VM_prefix_name=""
     55
    4756    get_VM_IP_range_and_prefix_name
    4857    create_VM_IP_table
     
    5766    VM_hosts=$(cat /opt/drbl-virt/etc/IP_VM_$eth | awk '{print $2}')
    5867    VM_MACs=$(cat /opt/drbl-virt/etc/macadr-VM-$eth.txt)
    59 
    60     #echo -e "VM_IPs=$VM_IPs \n VM_IPs_nu=$VM_IPs_nu \n VM_hosts=$VM_hosts \n VM_MACs=$VM_MACs"
    61 
    62     # delete duplicating value(ip,hostname) in IP_HOST_TABLE
    63     #if [ -e /etc/drbl/IP_HOST_TABLE ]; then
    64     #$Work_Path/duplicate_del /etc/drbl/IP_HOST_TABLE
    65     #fi
    66     # add ip & hostname
    67     #$Work_Path/add_value /opt/drbl-virt/etc/IP_VM_$eth /etc/drbl/IP_HOST_TABLE $eth
    68    
    69     # == delete duplicating MAC ==
    7068   
    7169    # == Add Mac address to macadr-ethX.txt ==
     
    8078# == Cheange Xen Kernel ==   
    8179Xen_Kernel=$(cat $Work_Home/etc/Xen_Kernel)
    82 read -p "Xen_Kernel=$Xen_Kernel"
     80#read -p "Xen_Kernel=$Xen_Kernel"
    8381echo "/opt/drbl/sbin/drblsrv-offline -s $Xen_Kernel"
    8482/opt/drbl/sbin/drblsrv-offline -s $Xen_Kernel                                                                                                                       
Note: See TracChangeset for help on using the changeset viewer.