Network and Storage Protocols

Edit /etc/rc file over NFS

helpdesk
4,552 Views

Since I cannot find another way to do this I was wondering if it is considered safe to edit the /etc/rc file over NFS. I mounted the /vol/vol0 as NFS datastore and want to change the vif config to LACP by downloading the RC file to windows, edit it, and upload it back to the NFS mounted datastore.

4 REPLIES 4

aborzenkov
4,552 Views

Yes, it is pretty safe. As you are going to edit it under Windows, watch out for line end change (Data ONTAP is using Unix convention, not DOS).

kumaraysun
4,552 Views

Hi,

The rc file takes inot effect the next time you reboot the Controller. So editing it throughNFS should not be an issue. You can do use the rfile command in SSH console and copy the content to the notepad and then paste the same back using the wrfile command and Ctrl C to save it.

Kumaresan

jake_struve
4,552 Views

Think you missed the d.....Filername> rdfile /etc/rc

columbus_admin
4,552 Views

As noted by aborznekov, notepad and wordpad will cause you problems.  You will need to use something like notepad++, textpad, programmer's notepad, etc.

- Scott

Public