我有一个旧的Netapp Filer,我将所有的NTFS文件迁移到一个新的NAS。
我将要使用与旧的netapp文件pipe理器相同的IP和CIFS服务器名称来设置新的NAS。 这部分我知道该怎么做。
但是,简单地关掉旧的netapp文件pipe理器,是否有办法改变旧的netapp文件pipe理器上的“CIFS服务器”的IP和名称,这样我就可以在线连接几周抓取文件或做最后的备份?
这是数据ontap 7.2
这里是ontap的ifconfig手册页的链接: http ://ecserv1.uwaterloo.ca/netapp/man/man1/na_ifconfig.1.html
这里是一个用于cifs命令的地方: http : //ecserv1.uwaterloo.ca/netapp/man/man1/na_cifs.1.html
改变你的IP会是这样的(当你从控制台login时你会想这样做,以防它不明显):
# Get the name of the interface your current IP is assigned to, as well as # netmask, etc ifconfig -a # down the interface (i'm not actually sure if this is needed) ifconfig INTERFACE down # bring the interface back up with the new network info (substituting the # correct values for INTERFACE, NETMASK, and ADDRESS) ifconfig INTERFACE ADDRESS netmask NETMASK ip
您可能还需要编辑文件pipe理器的etc / dir中的一些文件,以便在重新启动时保持更改,正如我所说已经很长时间了。 cd到文件pipe理器等和grep的当前IP来获得一个想法。
至于重命名份额…看起来像你不能做一个直接重命名,你删除旧的和重新创build它的新名称。 怎么样这样的事情:
# show the info about the current shares: cifs shares # change the share name cifs shares -delete OLDSHARE # add the new name with the same settings as the old cifs shares -add NEWNAME [options]
请参阅na_cifs_shares手册页,了解有关重新创build共享的更多信息( http://ecserv1.uwaterloo.ca/netapp/man/man1/na_cifs_shares.1.html )
希望有所帮助…
要使更改在重新启动时保持不变,首先必须读取两个文件:
ontap1> rdfile /etc/rc #Auto-generated by setup Fri Jan 25 07:18:17 GMT 2013 hostname ontap1 ifconfig e0a `hostname`-e0a mediatype auto flowcontrol full netmask 255.255.255.0 mtusize 9000 ifconfig e0b `hostname`-e0b mediatype auto flowcontrol full netmask 255.255.255.0 mtusize 9000 ifconfig e0c `hostname`-e0c mediatype auto flowcontrol full netmask 255.255.255.0 mtusize 9000 ifconfig e0d `hostname`-e0d mediatype auto flowcontrol full netmask 255.255.255.0 mtusize 9000 route add default 10.19.11.1 1 routed on options dns.domainname fibra options dns.enable on options nis.enable off savecore ontap1> rdfile /etc/hosts #Auto-generated by setup Fri Jan 25 07:18:17 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 19.19.11.51 ontap1 ontap1-e0a 10.19.11.52 ontap1-e0b 10.19.11.53 ontap1-e0c 10.19.11.54 ontap1-e0d
现在你可以看到,第一个文件设置所有接口的IP地址,但是IP地址值取自第二个文件(/ etc / hosts),那么你必须修改第二个文件:
wrfile /etc/hosts #Auto-generated by setup Fri Jan 25 07:18:17 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 10.19.11.51 ontap1 ontap1-e0a 10.19.11.52 ontap1-e0b 10.19.11.53 ontap1-e0c 10.19.11.54 ontap1-e0d (Ctrl-c)
现在,你可以重新启动。