博科SAN交换机学习笔记之二:配置文件备份与固件升级 作者 LiaoJL | 转载时请务必以超链接形式标明文章原文链接和作者信息及本版权声明。 原文链接:http://www.liaojl.co

对交换机配置文件的备份非常重要,需要定期备份配置文件,并且熟悉恢复配置文件的过程。如果是新购买的光纤交换机,

配置文件备份

建议每次对光纤交换机配置以后都将配置文件备份到远程服务器,支持SCP, FTP和SFTP协议。可以通过configupload命令将博科交换机的配置以文本格式存到本地。

FCSwitch:root> configupload
Protocol (scp, ftp, sftp, local) [ftp]: ftp
Server Name or IP Address [host]: ftp.liaojl.com
User Name [user]: liaojl
Path/Filename [<home dir>/config.txt]: FCSwitch/FCSwitch-all.txt
Section (all|chassis|switch [all]): all
Password:

configUpload complete: All selected config parameters are uploaded

备份过程并不会保存以下信息:

  • dnsConfig information
  • Passwords

配置文件恢复

当需要备份中恢复交换机配置时,可以通过configdownload命令将博科交换机的配置从远程服务器恢复到交换机。博科交换机支持将旧版本的配置文件导入新版本固件的交换机,例如将v6.2.0的配置文件导入v6.3.0固件版本的交换机,或者将v6.4.1 配置文件导入 v7.0.0 版本的交换机。

如果将配置文件导入到不兼容的固件版本交换机,可能导致交换机故障。建议经常保存配置文件,确保备份的配置文件与交换机固件版本相同。

固件v6.1.0及以后的版本,恢复配置文件时不需要disableswitch。某些特殊情况下,恢复配置文件以后会提示你重启交换机。

FCSwitch:root> configdownload
Protocol (scp, ftp, local) [ftp]:
Server Name or IP Address [host]: ftp.liaojl.com
User Name [user]: liaojl
Path/Filename [<home dir>/config.txt]: FCSwitch/FCSwitch-all.txt
Section (all|chassis|FID# [all]): all
*** CAUTION ***
This command is used to download a backed-up configuration
for a specific switch. If using a file from a different
switch, this file's configuration settings will override
any current switch settings. Downloading a configuration
file, which was uploaded from a different type of switch,
may cause this switch to fail. A switch reboot might be
required for some parameter changes to take effect.
configDownload operation may take several minutes
to complete for large files.
Do you want to continue [y/n]: y
Password: <hidden>
configDownload complete.

固件升级

升级固件前,查看一下根分区的磁盘容量,如果使用率超过60%,建议联系Brodecade技术支持处理。

FCSwitch:root> df
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/root               495016    165432    304032  35% /
/dev/hda1               494984    165712    303724  35% /mnt

查看交换机当前固件版本:

FCSwitch:root> version
Kernel:     2.6.14.2
Fabric OS:  v6.4.1a
Made on:    Tue Dec 14 03:02:28 2010
Flash:      Mon Sep 12 11:03:46 2011
BootProm:   1.0.9

FCSwitch:root> firmwareShow
Appl     Primary/Secondary Versions
-----------------------------------------
FOS      v6.4.1a
         v6.4.1a

使用firmwareDownload工具从FTP服务器下载固件并升级。

FCSwitch:root> firmwareDownload
Server Name or IP Address: ftp.liaojl.com
User Name: liaojl
File Name: v6.4.2b
Network Protocol(1-auto-select, 2-FTP, 3-SCP) [1]: 2
Password:
Do you want to continue (Y/N) [Y]: y

All packages have been downloaded successfully.
Firmware has been downloaded to the secondary partition of the switch
HA Rebooting ...

升级过程一般需要10到30分钟,你可以使用firmwareDownloadStatus 命令来查看升级状态。

FCSwitch:root> firmwareDownloadStatus
[1]: Tue Feb 14 06:29:33 2012
Firmware is being downloaded to the switch. This step may take up to 30 minutes.

[2]: Tue Feb 14 06:33:27 2012
Firmware has been downloaded to the secondary partition of the switch.

[3]: Tue Feb 14 06:35:49 2012
The firmware commit operation has started. This may take up to 10 minutes.

[4]: Tue Feb 14 06:38:44 2012
The commit operation has completed successfully.

[5]: Tue Feb 14 06:38:44 2012
Firmwaredownload command has completed successfully. Use firmwareshow to verify
the firmware versions.

交换机重启以后,重新登录交换机,查看当前的Kernel和固件信息。

FCSwitch:root> version
Kernel:     2.6.14.2
Fabric OS:  v6.4.2b
Made on:    Tue Sep 20 17:57:39 2011
Flash:      Tue Feb 14 06:18:51 2012
BootProm:   1.0.9

FCSwitch:root> firmwareShow
Appl     Primary/Secondary Versions
------------------------------------------
FOS      v6.4.2b
         v6.4.2b
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值