ONTAP Discussions

Verify Etc/rc file

haneshparag
9,479 Views

Please may you help?

 

I have created a vif lacp and succesfully added the changes to the /etc/rc file.

 

#Auto-generated by setup Fri Aug  2 18:46:55 GMT 2013
hostname ED-STRG-DR
ifgrp create multi VIF_1DR -b ip e0d e0c
ifgrp create lacp vif0 -b ip e0a e0b
ifconfig VIF_1DR `hostname`-VIF_1DR netmask 255.255.255.0 mtusize 1500 trusted wins up
ifconfig vif0 `hostname`-vif0 -b ip e0a e0b netmask 255.255.255.0 mtusize 9000
ifconfig vif0 10.10.20.1 mediatype auto netmask 255.255.255.0 mtusize 9000
ifconfig e0a flowcontrol full
ifconfig e0b flowcontrol full
ifconfig e0M flowcontrol full
#route add default NONE 1
routed on
options dns.enable off
options nis.enable off
savecore

 

i need confirmation on my etc/rc file. marked in red is what I have recently added. Is my rc file in order?, should a need to rebbot will this work

 

 

 

Thank You

1 ACCEPTED SOLUTION

Naveenpusuluru
9,299 Views

Hi @haneshparag

 

After making changes in rc file, just reboot the node. So what ever changes you made in the rc file will reflect.

 

Please configure default gateway and also make sure that your SP(rlm) ip address and root password with you before rebooting the controller.

View solution in original post

7 REPLIES 7

Naveenpusuluru
9,455 Views

Hi @haneshparag

 

Have you entered the ip address entry in /etc/hosts file like below example.

 

example : 10.10.20.1  fas01-vif0

 

ifgrp create lacp vif0 -b ip e0a e0b
ifconfig VIF_1DR `hostname`-VIF_1DR netmask 255.255.255.0 mtusize 1500 trusted wins up
ifconfig vif0 `hostname`-vif0 mediatype auto netmask 255.255.255.0 mtusize 9000

 

Please modify linke the above. Please let me know that is it a HA pair or stand alone controller.?

 

If it is HA-pair than you need to create ifgrp on partner also and need to add like below

 

ifgrp create lacp vif0 -b ip e0a e0b
ifconfig VIF_1DR `hostname`-VIF_1DR netmask 255.255.255.0 mtusize 1500 trusted wins up
ifconfig vif0 `hostname`-vif0 mediatype auto netmask 255.255.255.0 mtusize 9000 partner vif0

haneshparag
9,432 Views

Hi  Naveenpusuluru,

 

Thanks for getting back, this is standalone controller setup. The 192.168.10.x network (which is live) was not configured correctly, hence the need for a lacp jumbo frame setup.

 

1.   My Host File is configured as follows:

 

ED-STRG-DR> rdfile /etc/hosts
#Auto-generated by setup Fri Aug 2 18:46:55 GMT 2013
127.0.0.1 localhost localhost-stack
127.0.10.1 localhost-10 localhost-bsd
127.0.20.1 localhost-20 localhost-sk
# 0.0.0.0 ED-STRG-DR-e0M
# 0.0.0.0 ED-STRG-DR-e0P
# 0.0.0.0 ED-STRG-DR-e0b
# 0.0.0.0 ED-STRG-DR-e0c
# 0.0.0.0 ED-STRG-DR-e0d
192.168.10.158 ED-STRG-DR-VIF_1DR
10.10.20.1 ED-STRG-DR-vif0

ED-STRG-DR>

 

2.      ETC/RC file

 

If I remove  the

ifconfig vif0 10.10.20.1 mediatype auto netmask 255.255.255.0 mtusize 9000 from the etc/rc, system manger will alert with the issue attahced

 

Hence my confusion on how to confgure the rc file

 

Naveenpusuluru
9,415 Views

Hi @haneshparag

 

 

Please modify the rc file and host file like below.

 

 

Host file :

#Auto-generated by setup Fri Aug 2 18:46:55 GMT 2013
127.0.0.1 localhost localhost-stack
127.0.10.1 localhost-10 localhost-bsd
127.0.20.1 localhost-20 localhost-sk
# 0.0.0.0 ED-STRG-DR-e0M
# 0.0.0.0 ED-STRG-DR-e0P
# 0.0.0.0 ED-STRG-DR-e0b
# 0.0.0.0 ED-STRG-DR-e0c
# 0.0.0.0 ED-STRG-DR-e0d
192.168.10.158 ED-STRG-DR-VIF_1DR
10.10.20.1 ED-STRG-DR-vif0

 

 

rc file :

#Auto-generated by setup Fri Aug  2 18:46:55 GMT 2013
hostname ED-STRG-DR
ifgrp create multi VIF_1DR -b ip e0d e0c
ifgrp create lacp vif0 -b ip e0a e0b
ifconfig VIF_1DR `hostname`-VIF_1DR netmask 255.255.255.0 mtusize 1500 trusted wins up
ifconfig vif0 `hostname`-vif0 mediatype auto netmask 255.0.0.0 mtusize 9000
ifconfig e0a flowcontrol full
ifconfig e0b flowcontrol full
ifconfig e0M flowcontrol full
#route add default NONE 1 ---> route add default 192.168.10.1 1(it will be like this)
routed on
options dns.enable off
options nis.enable off
savecore

 

 

For vif0 ip configuration you have mentioned wrong subnet. You are assigning 10.10.20.1, means this is class A ipaddress. Please take subnet from your network team for this ip. Normally it will be 255.0.0.0

 

One more thing i have noticed from your rc file is you guys have not configured default gateway. You need to configure it in order to other networks outside data center to communicate with netapp box(for remote login .... etc).

 

Trust me i have configured these rc and host files alot. Please modify your rc file like the above.

Naveenpusuluru
9,413 Views

Please post me the output of below command here.

 

route -s

 

 

The error what you are seeing in tools is due to recent configuration changes you made on rcfile and host file. Please reboot the system once you cnfigured everything. This error will be washed away.

Naveenpusuluru
9,410 Views

Hi @haneshparag

 

 

If you are using two different networks then you need to add the route again like below.

 

route add 10.10.20.1  192.168.10.1 1

haneshparag
9,323 Views

D-STRG-DR> route -s
Routing tables

Internet:
Destination Gateway Flags Refs Use Interface
10.10.20/24 link#11 UC 0 0 vif0
10.10.20.20 0:50:56:64:2f:34 UHL 1 0 vif0
10.10.20.254 78:48:59:d8:6b:16 UHL 0 0 vif0
10.10.20.255 ff:ff:ff:ff:ff:ff UHL 0 204 vif0
localhost localhost UH 0 0 lo
localhost-10 localhost-20 UHS 2 48395 losk
localhost-20 localhost-20 UH 0 0 losk
192.168.10 link#10 UC 0 0 VIF_1DR
192.168.10.20 0:50:56:92:10:c9 UHL 3 288 VIF_1DR
192.168.10.41 0:50:56:68:ab:fd UHL 1 75310 VIF_1DR
192.168.10.42 0:50:56:68:18:29 UHL 1 103316 VIF_1DR
192.168.10.43 0:50:56:61:32:e UHL 1 39974350 VIF_1DR
192.168.10.157 0:50:56:65:b6:80 UHL 1 6667 VIF_1DR
ED-STRG-DR-VIF_1 2:a0:98:31:e:26 UHL 2 19 lo
192.168.10.223 link#10 UHL 0 0 VIF_1DR
192.168.10.251 28:94:f:24:8e:e3 UHL 0 0 VIF_1DR ->(this is my main gateway, the 10.10.20.x network is only for iSCSI
192.168.10.255 ff:ff:ff:ff:ff:ff UHL 0 30925 VIF_1DR

 

However, the rc file is still giving me problems.

I tried changing the netmask from 255.255.255.0 to 255.0.0.0 but still the system manger reflects 255.255.255.0

 

I am wondering if the config in memory and the rc file are not synchronising? No matter what change I do in the rc file, there is always an alert issue by the system manager!

 

Here is the ifconfig -a

 

ED-STRG-DR> ifconfig -a
e0a: flags=0x9f0c867<BROADCAST,RUNNING,MULTICAST,TCPCKSUM> mtu 9000
        ether 02:a0:98:31:0e:27 (auto-1000t-fd-up) flowcontrol full
        trunked vif0
e0b: flags=0x9f0c867<BROADCAST,RUNNING,MULTICAST,TCPCKSUM> mtu 9000
        ether 02:a0:98:31:0e:27 (auto-1000t-fd-up) flowcontrol full
        trunked vif0
e0c: flags=0x974c867<UP,BROADCAST,RUNNING,MULTICAST,TCPCKSUM> mtu 1500
        ether 02:a0:98:31:0e:26 (auto-1000t-fd-down) flowcontrol full
        trunked VIF_1DR
e0d: flags=0x9f4c867<UP,BROADCAST,RUNNING,MULTICAST,TCPCKSUM> mtu 1500
        ether 02:a0:98:31:0e:26 (auto-1000t-fd-up) flowcontrol full
        trunked VIF_1DR
e0M: flags=0x2b0c866<BROADCAST,RUNNING,MULTICAST,TCPCKSUM,MGMT_PORT> mtu 1500
        ether 00:a0:98:31:0e:2b (auto-100tx-fd-up) flowcontrol full
e0P: flags=0x2b4c867<UP,BROADCAST,RUNNING,MULTICAST,TCPCKSUM,ACP_PORT> mtu 1500 PRIVATE
        inet 192.168.0.140 netmask 0xfffffc00 broadcast 192.168.3.255 noddns
        ether 00:a0:98:31:0e:2a (auto-100tx-fd-up) flowcontrol full
lo: flags=0x1b48049<UP,LOOPBACK,RUNNING,MULTICAST,TCPCKSUM> mtu 9188
        inet 127.0.0.1 netmask 0xff000000 broadcast 127.0.0.1
losk: flags=0x40a400c9<UP,LOOPBACK,RUNNING> mtu 9188
        inet 127.0.20.1 netmask 0xff000000 broadcast 127.0.20.1
VIF_1DR: flags=0x22f4c863<UP,BROADCAST,RUNNING,MULTICAST,TCPCKSUM> mtu 1500
        inet 192.168.10.158 netmask 0xffffff00 broadcast 192.168.10.255
        ether 02:a0:98:31:0e:26 (Enabled interface groups)
vif0: flags=0x22f4c863<UP,BROADCAST,RUNNING,MULTICAST,TCPCKSUM> mtu 9000
        inet 10.10.20.1 netmask 0xffffff00 broadcast 10.10.20.255
        ether 02:a0:98:31:0e:27 (Enabled interface groups)
ED-STRG-DR>

 

 



Naveenpusuluru
9,300 Views

Hi @haneshparag

 

After making changes in rc file, just reboot the node. So what ever changes you made in the rc file will reflect.

 

Please configure default gateway and also make sure that your SP(rlm) ip address and root password with you before rebooting the controller.

Public