Ignore:
Timestamp:
Aug 26, 2010, 3:19:26 PM (14 years ago)
Author:
rock
Message:

Modify: the same

File:
1 edited

Legend:

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

    r184 r185  
    1515# [Main]
    1616
    17 # = 0. Variables setup =
     17# = 1. Variables setup =
    1818# == Get DRBL eth ==
    1919eths=""
     
    5252    generate_Xen_MAC_address
    5353     
    54     # == Add VM IP to dhcpd.conf  ==
     54    # == Add VM IP to /etc/drbl/IP_HOST_TABLE  ==
    5555    VM_IPs=$(cat /opt/drbl-virt/etc/IP_VM_$eth | awk '{print $1}')
     56    VM_IPs_nu=$(cat /opt/drbl-virt/etc/IP_VM_eth1 | awk '{print $1}' | wc -w)
    5657    VM_hosts=$(cat /opt/drbl-virt/etc/IP_VM_$eth | awk '{print $2}')
    5758    VM_MACs=$(cat /opt/drbl-virt/etc/macadr-VM-$eth.txt)
    58     add_VM_dhcpd_conf
    59      
    60     # == Add VM IP to exports  ==
    61     #add_VM_nfs_exportd
    62      
    63     # == Add VM IP to ypserv.securenets  ==
    64     #add_VM_ypserv_securenets
    65      
    66      
     59    # delete duplicating value(ip,hostname) in IP_HOST_TABLE
     60    if [ -e /etc/drbl/IP_HOST_TABLE ]; then
     61    $Work_Path/duplicate_del /etc/drbl/IP_HOST_TABLE
     62    fi
     63    # add ip & hostname
     64    $Work_Path/add_value /opt/drbl-virt/etc/IP_VM_$eth /etc/drbl/IP_HOST_TABLE
     65   
     66    # == Add Mac address to macadr-ethX.txt ==
     67    if [ -e /etc/drbl/macadr-$eth.txt ]; then
     68    $Work_Path/duplicate_del_MAC /etc/drbl/macadr-$eth.txt
     69    fi
     70
    6771done
    6872     
    69 # = 1. Copy VM fs =
    70 # Kernel & initrd -> /home/domains
    71      
    72      
    73 # = 2. Add NFS config =
    74    
    75 # = 3. Add DHCP config =
    76      
    77 # = 4. Add hosts and cp it to all drbl client =
    78      
    79 # = 5. generate guest config file =     
     73
     74# = 2. Re-deploy drbl client =
     75# == Cheange Xen Kernel ==   
     76echo "/opt/drbl/sbin/drblsrv-offline -s $Xen_Kernel"
     77/opt/drbl/sbin/drblsrv-offline -s $Xen_Kernel                                                                                                                       
     78echo ""
     79# == Re-delpoy drbl client ==
     80echo "Re-delpoy drbl client"           
     81echo "/opt/drbl/sbin/drblpush -c /etc/drbl/drblpush.conf"
     82/opt/drbl/sbin/drblpush -c /etc/drbl/drblpush.conf
     83echo ""
Note: See TracChangeset for help on using the changeset viewer.