Where am I? It’s dark and I’ve lost my network settings! How innocuous editing of NetApp config file can lead to lost IPs


So I was performing an initial configuration of a FAS3270 the other day when I changed the interface group information via PuTTY. Specifically, I deleted and recreated the interface groups manually instead of running setup. After I did this and following a reboot of the filer, the IP addresses for both interface groups were missing. Performing an ‘ifconfig -a’ before the reboot, I saw the IP addresses assigned correctly:

And after the reboot, this is what I saw:

What happened to the IP addresses? The /etc/rc file appeared correct:

And the /etc/hosts file had the correct entries:

Once rebooted, the filer should replace the ‘hostname’ string in the /etc/rc file with the IP address referenced in the /etc/hosts file. All looks good. It turns out another engineer I was working with, Chris H., had run across this problem before. Again, I edited this particular filer manually with ‘ifgrp’ and ‘ifconfig’ rather than running setup and letting the filer edit the relevant text files itself. As so many folks do, I was running a console session from a Windows laptop and copying, editing, and pasting the lines to and from Windows Notepad. Apparently, the problem was that I used the wrong apostrophe, of all things.

The offending apostrophes exist on the ‘ifconfig’ lines in the /etc/rc file, here:

When I edited this file in Notepad, I used the apostrophe that exists on the quotation mark key on the standard US keyboard layout. As Chris showed me, I should have used the reverse apostrophe instead, which is colocated with the tilde (~) above the tab key.

So the proper /etc/rc file looks like this:

Notice the backward tilt of the apostrophes here. After a reboot with the proper symbol, the IP settings stuck. Even while editing the /etc/rc directly within Data ONTAP via a console session, one can still input the wrong apostrophe. I also used Notepad++ with the same results. I don’t necessarily suggest not editing NetApp configuration files manually, but you should know the intricacies of doing so. Then again, running setup again for interface groups shouldn’t harm much. Setup keeps your previously entered values so you should be able to skip right to what you wish to edit without affecting other settings. Cheers!

Google


3 Comments on “Where am I? It’s dark and I’ve lost my network settings! How innocuous editing of NetApp config file can lead to lost IPs”

  1. True, setup is helpful to retain some of the settings and to make quick updates. But being able to manually edit those files (and understanding what those files do) is almost a black art these days. Dark wizardry! I encourage you to take the time to really understand what those files do, and how edits for them work. Grab the NetApp simulator to test it out.

    And start learning 8.1 Cluster Mode if you are hot for storage and ready to learn more 🙂 Wave o’ the future!

  2. Thanks for reading, Mike. The screen shots above came from the NetApp simulator. It was easy enough to duplicate the issue I ran into at work with the simulator. Also, the shared storage in my test lab comes from two simulators. It’s an excellent learning opportunity.

    Chris has been reading up on Cluster Mode and running the Cluster Mode simulator for a job he’s looking into back in Michigan. He says it’s very different from 7-Mode.

  3. Parikshith Reddy says:

    Did you save the /etc/rc file by doing wrfile /etc/rc before reboot? Because changes made to ifgrps outside the setup script are not reboot persistent , unless you save them using wrfile /etc/rc cmd. From what I’m seeing in the above /etc/rc you could have gotten away by just specifying ifconfig ifgrp name ,ip address and MTU settings instead of specifying the host name . That would assign the IP address to the ifgrps. I Always use wordpad or notedpad++ when making config changes , I always type my commands in notepads++ and paste them to the controller. Never use notepad 🙂


Leave a comment

vceplus-200-125    | boson-200-125    | training-cissp    | actualtests-cissp    | techexams-cissp    | gratisexams-300-075    | pearsonitcertification-210-260    | examsboost-210-260    | examsforall-210-260    | dumps4free-210-260    | reddit-210-260    | cisexams-352-001    | itexamfox-352-001    | passguaranteed-352-001    | passeasily-352-001    | freeccnastudyguide-200-120    | gocertify-200-120    | passcerty-200-120    | certifyguide-70-980    | dumpscollection-70-980    | examcollection-70-534    | cbtnuggets-210-065    | examfiles-400-051    | passitdump-400-051    | pearsonitcertification-70-462    | anderseide-70-347    | thomas-70-533    | research-1V0-605    | topix-102-400    | certdepot-EX200    | pearsonit-640-916    | itproguru-70-533    | reddit-100-105    | channel9-70-346    | anderseide-70-346    | theiia-IIA-CIA-PART3    | certificationHP-hp0-s41    | pearsonitcertification-640-916    | anderMicrosoft-70-534    | cathMicrosoft-70-462    | examcollection-cca-500    | techexams-gcih    | mslearn-70-346    | measureup-70-486    | pass4sure-hp0-s41    | iiba-640-916    | itsecurity-sscp    | cbtnuggets-300-320    | blogged-70-486    | pass4sure-IIA-CIA-PART1    | cbtnuggets-100-101    | developerhandbook-70-486    | lpicisco-101    | mylearn-1V0-605    | tomsitpro-cism    | gnosis-101    | channel9Mic-70-534    | ipass-IIA-CIA-PART1    | forcerts-70-417    | tests-sy0-401    | ipasstheciaexam-IIA-CIA-PART3    | mostcisco-300-135    | buildazure-70-533    | cloudera-cca-500    | pdf4cert-2v0-621    | f5cisco-101    | gocertify-1z0-062    | quora-640-916    | micrcosoft-70-480    | brain2pass-70-417    | examcompass-sy0-401    | global-EX200    | iassc-ICGB    | vceplus-300-115    | quizlet-810-403    | cbtnuggets-70-697    | educationOracle-1Z0-434    | channel9-70-534    | officialcerts-400-051    | examsboost-IIA-CIA-PART1    | networktut-300-135    | teststarter-300-206    | pluralsight-70-486    | coding-70-486    | freeccna-100-101    | digitaltut-300-101    | iiba-CBAP    | virtuallymikebrown-640-916    | isaca-cism    | whizlabs-pmp    | techexams-70-980    | ciscopress-300-115    | techtarget-cism    | pearsonitcertification-300-070    | testking-2v0-621    | isacaNew-cism    | simplilearn-pmi-rmp    | simplilearn-pmp    | educationOracle-1z0-809    | education-1z0-809    | teachertube-1Z0-434    | villanovau-CBAP    | quora-300-206    | certifyguide-300-208    | cbtnuggets-100-105    | flydumps-70-417    | gratisexams-1V0-605    | ituonline-1z0-062    | techexams-cas-002    | simplilearn-70-534    | pluralsight-70-697    | theiia-IIA-CIA-PART1    | itexamtips-400-051    | pearsonitcertification-EX200    | pluralsight-70-480    | learn-hp0-s42    | giac-gpen    | mindhub-102-400    | coursesmsu-CBAP    | examsforall-2v0-621    | developerhandbook-70-487    | root-EX200    | coderanch-1z0-809    | getfreedumps-1z0-062    | comptia-cas-002    | quora-1z0-809    | boson-300-135    | killtest-2v0-621    | learncia-IIA-CIA-PART3    | computer-gcih    | universitycloudera-cca-500    | itexamrun-70-410    | certificationHPv2-hp0-s41    | certskills-100-105    | skipitnow-70-417    | gocertify-sy0-401    | prep4sure-70-417    | simplilearn-cisa    |
http://www.pmsas.pr.gov.br/wp-content/    | http://www.pmsas.pr.gov.br/wp-content/    |