免费注册 查看新帖 |

Chinaunix

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

因为误操作,导致ioscan -fn多出来两条,如果删除? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-05-29 19:09 |只看该作者 |倒序浏览
事情是这样的,在执行fcmsutil /dev/fcd1 replace_dsk -l 2时误将fcd1写成了td1
结果导致在ioscan 时出现了以下两项,红色字
#ioscan -fn
Class       I  H/W Path       Driver    S/W State   H/W Type     Description
=============================================================================
root        0                 root      CLAIMED     BUS_NEXUS   
ioa         0  0              sba       CLAIMED     BUS_NEXUS    System Bus Adapter (880)
ba          0  0/0            lba       CLAIMED     BUS_NEXUS    Local PCI-X Bus Adapter (783)
usb         0  0/0/1/0        hcd       CLAIMED     INTERFACE    NEC USB Interface
usbhub      0  0/0/1/0.1      hub       CLAIMED     DEVICE       USB Root Hub
usb         1  0/0/1/1        hcd       CLAIMED     INTERFACE    NEC USB Interface
usbhub      1  0/0/1/1.1      hub       CLAIMED     DEVICE       USB Root Hub
                             /dev/hub
usb         2  0/0/1/2        ehci      CLAIMED     INTERFACE    NEC USB Interface
sideba      0  0/0/2/0        side_ba   CLAIMED     INTERFACE    CMD IDE controller
ext_bus     0  0/0/2/0.0      side      CLAIMED     INTERFACE    IDE
target      0  0/0/2/0.0.0    tgt       CLAIMED     DEVICE      
disk        0  0/0/2/0.0.0.0  sdisk     CLAIMED     DEVICE       TEAC    DV-28E-C
                             /dev/dsk/c0t0d0   /dev/rdsk/c0t0d0
target      1  0/0/2/0.0.7    tgt       CLAIMED     DEVICE      
ctl         0  0/0/2/0.0.7.0  sctl      CLAIMED     DEVICE       Initiator
                             /dev/rscsi/c0t7d0
ext_bus     1  0/0/2/0.1      side      CLAIMED     INTERFACE    IDE
target      2  0/0/2/0.1.7    tgt       CLAIMED     DEVICE      
ctl         1  0/0/2/0.1.7.0  sctl      CLAIMED     DEVICE       Initiator
                             /dev/rscsi/c1t7d0
ba          1  0/1            lba       CLAIMED     BUS_NEXUS    Local PCI-X Bus Adapter (783)
ext_bus     2  0/1/1/0        c8xx      CLAIMED     INTERFACE    SCSI C1010 Ultra160 Wide LVD
target      3  0/1/1/0.0      tgt       CLAIMED     DEVICE      
disk        1  0/1/1/0.0.0    sdisk     CLAIMED     DEVICE       HP 36.4GMAS3367NC
                             /dev/dsk/c2t0d0   /dev/rdsk/c2t0d0
target      4  0/1/1/0.1      tgt       CLAIMED     DEVICE      
disk        2  0/1/1/0.1.0    sdisk     CLAIMED     DEVICE       HP 36.4GMAS3367NC
                             /dev/dsk/c2t1d0   /dev/rdsk/c2t1d0
target      5  0/1/1/0.7      tgt       CLAIMED     DEVICE      
ctl         2  0/1/1/0.7.0    sctl      CLAIMED     DEVICE       Initiator
                             /dev/rscsi/c2t7d0
ext_bus     3  0/1/1/1        c8xx      CLAIMED     INTERFACE    SCSI C1010 Ultra160 Wide LVD
target      6  0/1/1/1.4      tgt       CLAIMED     DEVICE      
tape        1  0/1/1/1.4.0    stape     CLAIMED     DEVICE       HP      C5683A
                             /dev/rmt/0m            /dev/rmt/0mnb          /dev/rmt/c3t4d0BESTn   /dev/rmt/c3t4d0DDSb  
                             /dev/rmt/0mb           /dev/rmt/c3t4d0BEST    /dev/rmt/c3t4d0BESTnb  /dev/rmt/c3t4d0DDSn  
                             /dev/rmt/0mn           /dev/rmt/c3t4d0BESTb   /dev/rmt/c3t4d0DDS     /dev/rmt/c3t4d0DDSnb
target      7  0/1/1/1.7      tgt       CLAIMED     DEVICE      
ctl         3  0/1/1/1.7.0    sctl      CLAIMED     DEVICE       Initiator
                             /dev/rscsi/c3t7d0
lan         0  0/1/2/0        igelan    CLAIMED     INTERFACE    HP PCI 1000Base-T Core
ba          2  0/2            lba       CLAIMED     BUS_NEXUS    Local PCI-X Bus Adapter (783)
ba          3  0/3            lba       CLAIMED     BUS_NEXUS    Local PCI-X Bus Adapter (783)
ba          4  0/3/1/0        PCItoPCI  CLAIMED     BUS_NEXUS    PCItoPCI Bridge
fc          0  0/3/1/0/4/0    fcd       CLAIMED     INTERFACE    HP 2Gb PCI/PCI-X Fibre Channel FC/GigE Dual Port Combo Adapter
                             /dev/fcd0
lan         1  0/3/1/0/6/0    igelan    CLAIMED     INTERFACE    HP A9784-60001 PCI/PCI-X 1000Base-T FC/GigE Combo Adapter
ba          5  0/4            lba       CLAIMED     BUS_NEXUS    Local PCI-X Bus Adapter (783)
ba          6  0/4/1/0        PCItoPCI  CLAIMED     BUS_NEXUS    PCItoPCI Bridge
fc          1  0/4/1/0/4/0    fcd       CLAIMED     INTERFACE    HP 2Gb PCI/PCI-X Fibre Channel FC/GigE Dual Port Combo Adapter
                             /dev/fcd1
fcp         0  0/4/1/0/4/0.8  fcd_fcp   CLAIMED     INTERFACE    FCP Protocol Adapter
ext_bus     4  0/4/1/0/4/0.8.0.255.0       fcd_vbus  CLAIMED     INTERFACE    FCP Device Interface
target      8  0/4/1/0/4/0.8.0.255.0.0     tgt       CLAIMED     DEVICE      
disk        3  0/4/1/0/4/0.8.0.255.0.0.0   sdisk     CLAIMED     DEVICE       HP 73.4GST373453FC
                             /dev/dsk/c4t0d0   /dev/rdsk/c4t0d0
target      9  0/4/1/0/4/0.8.0.255.0.1     tgt       CLAIMED     DEVICE      
disk        4  0/4/1/0/4/0.8.0.255.0.1.0   sdisk     CLAIMED     DEVICE       HP 73.4GST373453FC
                             /dev/dsk/c4t1d0   /dev/rdsk/c4t1d0
target     10  0/4/1/0/4/0.8.0.255.0.2     tgt       CLAIMED     DEVICE      
disk        5  0/4/1/0/4/0.8.0.255.0.2.0   sdisk     CLAIMED     DEVICE       HP 73.4GST373453FC
                             /dev/dsk/c4t2d0   /dev/rdsk/c4t2d0
target     11  0/4/1/0/4/0.8.0.255.0.3     tgt       CLAIMED     DEVICE      
disk        6  0/4/1/0/4/0.8.0.255.0.3.0   sdisk     CLAIMED     DEVICE       HP 73.4GST373453FC
                             /dev/dsk/c4t3d0   /dev/rdsk/c4t3d0
target     12  0/4/1/0/4/0.8.0.255.0.4     tgt       CLAIMED     DEVICE      
disk        7  0/4/1/0/4/0.8.0.255.0.4.0   sdisk     CLAIMED     DEVICE       HP 73.4GST373453FC
                             /dev/dsk/c4t4d0   /dev/rdsk/c4t4d0
target     13  0/4/1/0/4/0.8.0.255.0.5     tgt       CLAIMED     DEVICE      
disk        8  0/4/1/0/4/0.8.0.255.0.5.0   sdisk     CLAIMED     DEVICE       HP 73.4GST373453FC
                             /dev/dsk/c4t5d0   /dev/rdsk/c4t5d0
target     14  0/4/1/0/4/0.8.0.255.0.6     tgt       CLAIMED     DEVICE      
disk        9  0/4/1/0/4/0.8.0.255.0.6.0   sdisk     CLAIMED     DEVICE       HP 73.4GST373453FC
                             /dev/dsk/c4t6d0   /dev/rdsk/c4t6d0
target     15  0/4/1/0/4/0.8.0.255.0.7     tgt       CLAIMED     DEVICE      
disk       10  0/4/1/0/4/0.8.0.255.0.7.0   sdisk     CLAIMED     DEVICE       HP 73.4GST373453FC
                             /dev/dsk/c4t7d0   /dev/rdsk/c4t7d0
target     16  0/4/1/0/4/0.8.0.255.0.8     tgt       CLAIMED     DEVICE      
disk       11  0/4/1/0/4/0.8.0.255.0.8.0   sdisk     CLAIMED     DEVICE       HP 73.4GST373453FC
                             /dev/dsk/c4t8d0   /dev/rdsk/c4t8d0
target     17  0/4/1/0/4/0.8.0.255.0.9     tgt       CLAIMED     DEVICE      
disk       12  0/4/1/0/4/0.8.0.255.0.9.0   sdisk     CLAIMED     DEVICE       HP 73.4GST373453FC
                             /dev/dsk/c4t9d0   /dev/rdsk/c4t9d0
target     18  0/4/1/0/4/0.8.0.255.0.10    tgt       CLAIMED     DEVICE      
disk       13  0/4/1/0/4/0.8.0.255.0.10.0  sdisk     CLAIMED     DEVICE       HP 73.4GST373453FC
                             /dev/dsk/c4t10d0   /dev/rdsk/c4t10d0
target     19  0/4/1/0/4/0.8.0.255.0.11    tgt       CLAIMED     DEVICE      
disk       14  0/4/1/0/4/0.8.0.255.0.11.0  sdisk     CLAIMED     DEVICE       HP 73.4GST373453FC
                             /dev/dsk/c4t11d0   /dev/rdsk/c4t11d0
target     20  0/4/1/0/4/0.8.0.255.0.12    tgt       CLAIMED     DEVICE      
disk       15  0/4/1/0/4/0.8.0.255.0.12.0  sdisk     CLAIMED     DEVICE       HP 73.4GST373453FC
                             /dev/dsk/c4t12d0   /dev/rdsk/c4t12d0
target     21  0/4/1/0/4/0.8.0.255.0.13    tgt       CLAIMED     DEVICE      
disk       16  0/4/1/0/4/0.8.0.255.0.13.0  sdisk     CLAIMED     DEVICE       HP 73.4GST373453FC
                             /dev/dsk/c4t13d0   /dev/rdsk/c4t13d0
target     22  0/4/1/0/4/0.8.0.255.0.15    tgt       CLAIMED     DEVICE      
ctl         4  0/4/1/0/4/0.8.0.255.0.15.0  sctl      CLAIMED     DEVICE       HP      A6255A
                             /dev/rscsi/c4t15d0
ext_bus     5  0/4/1/0/4/0.8.0.255.7       fcd_vbus  NO_HW       INTERFACE    FCP Device Interface
target     23  0/4/1/0/4/0.8.0.255.7.2     tgt       NO_HW       DEVICE      

lan         2  0/4/1/0/6/0    igelan    CLAIMED     INTERFACE    HP A9784-60001 PCI/PCI-X 1000Base-T FC/GigE Combo Adapter
ba          7  0/6            lba       CLAIMED     BUS_NEXUS    Local PCI-X Bus Adapter (783)
ba          8  0/7            lba       CLAIMED     BUS_NEXUS    Local PCI-X Bus Adapter (783)
tty         0  0/7/1/0        asio0     CLAIMED     INTERFACE    PCI SimpleComm (103c1290)
                             /dev/diag/mux0  /dev/mux0       /dev/tty0p0   
tty         1  0/7/1/1        asio0     CLAIMED     INTERFACE    PCI Serial (103c104
                             /dev/GSPdiag1   /dev/diag/mux1  /dev/mux1       /dev/tty1p0     /dev/tty1p2     /dev/tty1p4   
unknown    -1  0/7/2/0                  UNCLAIMED   UNKNOWN      PCI Display (10025159)
memory      0  8              memory    CLAIMED     MEMORY       Memory
ipmi        0  16             ipmi      CLAIMED     INTERFACE    IPMI Controller
                             /dev/ipmi
processor   0  128            processor CLAIMED     PROCESSOR    Processor
processor   1  129            processor CLAIMED     PROCESSOR    Processor
processor   2  152            processor CLAIMED     PROCESSOR    Processor
processor   3  153            processor CLAIMED     PROCESSOR    Processor

然后dmesg里边出现以下错误信息
#dmesg
0/4/1/0/4/0: private loop device didn't acquire its hard address:
Hard Address is 0x43, but acquired AL_PA is 0xd1.
System won't be able to see LUNs behind this device port.
It appears that there are (or were) more than one device with the
same address setting.
NOTE:    Even after you change the address settings on the devices,
         it may be necessary to reset or power-cycle both the
         devices whose settings have been changed, and any remaining
         device with the address setting which encountered the
         conflict.
EXAMPLE: You see this diagnostic message and find three devices with
         address setting 0x05. You change one device to address 0x06
         and another to 0x07. You now may need to reset or
         power-cycle ALL THREE devices.

也就是说现在造成了设备冲突,我执行以下命令也没有成功
#rmsf -H 0/4/1/0/4/0.8.0.255.7.2
rmsf: Specified hardware path has no devices
#rmsf -H 0/4/1/0/4/0.8.0.255.7
WARNING: The specified hardware path is BUS_NEXUS/INTERFACE type.
This will remove all the devices connected to it.
rmsf: Specified hardware path has no devices

怎么样才能把这不应该有的两项删掉呢,难道只能重启机器吗?请高手帮忙.

论坛徽章:
0
2 [报告]
发表于 2009-05-29 20:23 |只看该作者
insf -eH 0/4/1/0/4/0.8.0.255.7
或者直接insf -e

论坛徽章:
0
3 [报告]
发表于 2009-05-29 22:39 |只看该作者
我是想删除啊大哥,这两项实际上是不存在的

论坛徽章:
0
4 [报告]
发表于 2009-05-29 23:24 |只看该作者
原帖由 hp-ux民工 于 2009-5-29 20:23 发表
insf -eH 0/4/1/0/4/0.8.0.255.7
或者直接insf -e

他是笔误。
rmsf -eH 0/4/1/0/4/0.8.0.255.7

论坛徽章:
0
5 [报告]
发表于 2009-05-29 23:54 |只看该作者
原帖由 czyf2001 于 2009-5-29 23:24 发表

他是笔误。
rmsf -eH 0/4/1/0/4/0.8.0.255.7


我相信他不是笔误,因为rmsf根本没有-e这个选项,只有insf才有-e选项
rmsf(1M) rmsf(1M)
NAME
rmsf - remove a special (device) file
SYNOPSIS
/sbin/rmsf [-a|-k] [-D directory] [-q|-v] special_file ...
/sbin/rmsf [-C class | -d driver] [-D directory] -H hw_path [-k] [-q|-v]

insf - install special (device) files
-e
Reinstall the special files for pseudo-drivers and existing devices. This is useful for
restoring special files if one or more have been removed.

论坛徽章:
0
6 [报告]
发表于 2009-05-30 00:22 |只看该作者
在网上搜了一下,有如下说法
如果是ext_bus 类型的信息,则无法直接用命令删除.需要重新启动server后,才能自动消失.
看来只能重启机器了.

论坛徽章:
0
7 [报告]
发表于 2009-05-30 09:05 |只看该作者
insf重建不行么?

rmsf -a /dev/td1 试试
或者rmsf -kH 加地址试试
要不就ls /dev* | more
找到他后,然后直接
rm /dev...
不过好像类型是INTERFACE  并没有设备文件名

[ 本帖最后由 hp-ux民工 于 2009-5-30 10:09 编辑 ]

论坛徽章:
0
8 [报告]
发表于 2009-05-30 10:06 |只看该作者
原帖由 hp-ux民工 于 2009-5-30 09:05 发表
insf重建不行么?

rmsf -a /dev/td1 试试
或者rmsf -kH 加地址试试
要不就ls /dev* | more
找到他后,然后直接
rm /dev...


/dev下没有该项的设备文件,我是想删除,不是重建.

论坛徽章:
0
9 [报告]
发表于 2009-05-30 22:35 |只看该作者
rmsf -H
可以删除!

论坛徽章:
0
10 [报告]
发表于 2009-05-30 23:00 |只看该作者
以我的经验,除了重启,删除不了。
rmsf -H也试过,不行。
hp相应中心也是这么说的。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP