Changeset 187 for drbl-virt/sbin/drbl_xen_repush.sh
- Timestamp:
- Aug 26, 2010, 5:24:32 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
drbl-virt/sbin/drbl_xen_repush.sh
r185 r187 57 57 VM_hosts=$(cat /opt/drbl-virt/etc/IP_VM_$eth | awk '{print $2}') 58 58 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 59 62 # delete duplicating value(ip,hostname) in IP_HOST_TABLE 60 63 if [ -e /etc/drbl/IP_HOST_TABLE ]; then … … 62 65 fi 63 66 # add ip & hostname 64 $Work_Path/add_value /opt/drbl-virt/etc/IP_VM_$eth /etc/drbl/IP_HOST_TABLE 67 $Work_Path/add_value /opt/drbl-virt/etc/IP_VM_$eth /etc/drbl/IP_HOST_TABLE $eth 65 68 66 69 # == Add Mac address to macadr-ethX.txt == … … 68 71 $Work_Path/duplicate_del_MAC /etc/drbl/macadr-$eth.txt 69 72 fi 70 73 cat /opt/drbl-virt/etc/macadr-VM-$eth.txt >> /etc/drbl/macadr-$eth.txt 71 74 done 72 75
Note: See TracChangeset
for help on using the changeset viewer.