From 9d5b7b73a21c307a6514f90f8674a4ff231c0bbc Mon Sep 17 00:00:00 2001 From: Edison Su Date: Thu, 30 Oct 2014 02:44:35 -0700 Subject: [PATCH] MTU should be put on storage network: eth3, instead of eth1 Reviewed-by: Frank --- systemvm/patches/debian/config/etc/init.d/cloud-early-config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/systemvm/patches/debian/config/etc/init.d/cloud-early-config b/systemvm/patches/debian/config/etc/init.d/cloud-early-config index a8750ba4ae8..32c520a9867 100755 --- a/systemvm/patches/debian/config/etc/init.d/cloud-early-config +++ b/systemvm/patches/debian/config/etc/init.d/cloud-early-config @@ -1131,6 +1131,7 @@ setup_storage_network() { echo "auto eth3" >> /etc/network/interfaces setup_interface "3" "$STORAGE_IP" "$STORAGE_NETMASK" + [ -n "$MTU" ] && ifconfig eth3 mtu $MTU #ip route add "$STORAGE_CIDR" via "$STORAGE_IP" log_it "Successfully setup storage network with STORAGE_IP:$STORAGE_IP, STORAGE_NETMASK:$STORAGE_NETMASK, STORAGE_CIDR:$STORAGE_CIDR" } @@ -1141,7 +1142,6 @@ setup_secstorage() { local hyp=$1 setup_common eth0 eth1 eth2 setup_storage_network - [ -n "$MTU" ] && ifconfig eth1 mtu $MTU sed -i /gateway/d /etc/hosts public_ip=$ETH2_IP [ "$ETH2_IP" == "0.0.0.0" ] && public_ip=$ETH1_IP