Changeset 185 for drbl-virt/sbin/drbl_xen_repush.sh
- Timestamp:
- Aug 26, 2010, 3:19:26 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
drbl-virt/sbin/drbl_xen_repush.sh
r184 r185 15 15 # [Main] 16 16 17 # = 0. Variables setup =17 # = 1. Variables setup = 18 18 # == Get DRBL eth == 19 19 eths="" … … 52 52 generate_Xen_MAC_address 53 53 54 # == Add VM IP to dhcpd.conf==54 # == Add VM IP to /etc/drbl/IP_HOST_TABLE == 55 55 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) 56 57 VM_hosts=$(cat /opt/drbl-virt/etc/IP_VM_$eth | awk '{print $2}') 57 58 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 67 71 done 68 72 69 # = 1. Copy VM fs = 70 # Kernel & initrd -> /home/domains71 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 == 76 echo "/opt/drbl/sbin/drblsrv-offline -s $Xen_Kernel" 77 /opt/drbl/sbin/drblsrv-offline -s $Xen_Kernel 78 echo "" 79 # == Re-delpoy drbl client == 80 echo "Re-delpoy drbl client" 81 echo "/opt/drbl/sbin/drblpush -c /etc/drbl/drblpush.conf" 82 /opt/drbl/sbin/drblpush -c /etc/drbl/drblpush.conf 83 echo ""
Note: See TracChangeset
for help on using the changeset viewer.