免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 5106 | 回复: 0
打印 上一主题 下一主题

SUN V880 100M Full duplex Mode 修改方法 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-07-18 09:48 |只看该作者 |倒序浏览
刚刚遇到的问题,把处理过程和大家共乡一下,希望对大家有帮助!

SUN V880 换完风扇后,备份速度明显变慢的故障解决过程:
1.分析:
- 风扇的更换,没对系统做任何的改动
- 连存储的HBA CARD 状态都正常/mount 的卷也正常(这样基本排除FC 的问题)
- 在BACKUP SERVER  上对V880 做备份速度正常(这样可以判定NBU 没问题)
- 原因就只能出现在880 上。换风扇,做的唯一事情就是服务器reboot了,可能会
丢失了某些配置的修改(没永久保存)
- 速度慢,和网卡的工作模式有很大的关系的。。
- 交换机的工作模式是100M Full duplex
- 查看Link_mode以及各工作模式的状态(1,为FULL,0 为HALF)
#ifconfig -a
eri0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
#ndd -get /dev/eri link_mode
0
# ndd /dev/eri adv_autoneg_cap
1
#ndd /dev/eri adv_100fdx_cap
1
#ndd /dev/eri adv_100T4_cap
0
#ndd /dev/eri adv_100hdx_cap
1
#ndd /dev/eri adv_10fdx_cap
1
#ndd /dev/eri adv_10hdx_cap
1
#ndd /dev/eri instance
0

结论:通过以上分析
网卡采用的不是100M Full duplex ,和交换机的工作模式不匹配
现在可以判定问题的原因了。

2.解决过程:
1) To force the eri0 to 100 full duplex from the command line use the
following settings. Note: they will stay active only until the machine
is rebooted.

# ndd -set /dev/eri instance 0 (select interface; 0=eri0, 1=eri1, etc...)
# ndd -set /dev/eri adv_100fdx_cap 1 (enable 100MBit/s in Full Duplex)
# ndd -set /dev/eri adv_100hdx_cap 0 (disable 100MBit/s in Half Duplex)
# ndd -set /dev/eri adv_10fdx_cap 0 (disable 10MBit/s in Full Duplex)
# ndd -set /dev/eri adv_10hdx_cap 0 (disable 10MBit/s in Half Duplex)
# ndd -set /dev/eri adv_autoneg_cap 0 (disable auto-negotiation, forcingdriver)

There are two ways to make the settings permanent.

2) Add the following entries to the /etc/system file. Note: the
following entries will apply to ALL instances of eri on your system.

set eri:adv_100fdx_cap = 1
set eri:adv_100hdx_cap = 0
set eri:adv_10fdx_cap = 0
set eri:adv_10hdx_cap = 0
set eri:adv_autoneg_cap = 0

3.) OR create a boot script in the /etc/rc2.d directory, e.g.
S68nddtune. Make sure to set the execute bit by doing a chmod 755. In
the following example we show how to set two instances of eri to 100
full duplex.

#!/sbin/sh
#eri-Interfaces
#Forcing eri0 to work at 100mb full duplex.
ndd -set /dev/eri instance 0
ndd -set /dev/eri adv_100T4_cap 0
ndd -set /dev/eri adv_100fdx_cap 1
ndd -set /dev/eri adv_100hdx_cap 0
ndd -set /dev/eri adv_10fdx_cap 0
ndd -set /dev/eri adv_10hdx_cap 0
ndd -set /dev/eri adv_autoneg_cap 0

3.到次问题得到了解决,备份速度恢复到正常
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP