• 软件测试技术
  • 软件测试博客
  • 软件测试视频
  • 开源软件测试技术
  • 软件测试论坛
  • 软件测试沙龙
  • 软件测试资料下载
  • 软件测试杂志
  • 软件测试人才招聘
    暂时没有公告

字号: | 推荐给好友 上一篇 | 下一篇

关于overlaps with device in d11的解决办法

发布: 2007-6-08 22:43 | 作者: seanhe | 来源: | 查看: 26次 | 进入软件测试论坛讨论

领测软件测试网
这种情况应该只发生在使用SUN阵列里有不同厂家的硬盘的时候。
如需要转载,请注明转自CU_Solairs论坛 [color=white:fb528a2d5b]By Arthur[/color:fb528a2d5b]

如果磁盘没有一个唯一的ID的话SDS和VXVM没办法使用,因为是SCSI的阵列,所以存在SCSI ID

的问题。那么如果不是一个厂家的硬盘就存在标识的问题,那么SDS和VXVM不能正确的判断分

区的重叠,怎么解决呢?
问题的关键在于 /kernel/drv/sd.conf这个文件。

确定厂商和硬盘信息
.netstat -k | grep -i vendor
Soft Errors 0 Hard Errors 0 Transport Errors 0 Vendor TOSHIBA  
Soft Errors 0 Hard Errors 0 Transport Errors 0 Vendor FUJITSU  
dmaxh_inits 0 link_down_cnt 0 phy_failures 0 xcvr_vendor 524311 
dmaxh_inits 0 link_down_cnt 0 phy_failures 0 xcvr_vendor 24605 
dmaxh_inits 0 link_down_cnt 0 phy_failures 0 xcvr_vendor 524311 

# netstat -k | grep -i product
Product XM6201TASUN32XCDRevision Revision 1103 Serial No 12/12/97 Size 

18446744073709551615 Media Error 0 Device Not Ready 0 
Product MAG3091L SUN9.0GRevision Revision 1111 Serial No 02435009     Size 

9055065600 Media Error 0 Device Not Ready 0 

# format -e 
Searching for disks...done


AVAILABLE DISK SELECTIONS:
       0. c0t0d0 <SUN9.0G cyl 4924 alt 2 hd 27 sec 133>
          /pci@1f,4000/scsi@3/sd@0,0
Specify disk (enter its number): 0
selecting c0t0d0
[disk formatted]
Warning: Current Disk has mounted partitions.


FORMAT MENU:
        disk       - select a disk
        type       - select (define) a disk type
        partition  - select (define) a partition table
        current    - describe the current disk
        format     - format and analyze the disk
        repair     - repair a defective sector
        label      - write label to the disk
        analyze    - surface analysis
        defect     - defect list management
        backup     - search for backup labels
        verify     - read and display labels
        save       - save new disk/partition definitions
        inquiry    - show vendor, product and revision
        scsi       - independent SCSI mode selects
        cache      - enable, disable or query SCSI disk cache
        volname    - set 8-character volume name
        !<cmd>     - execute <cmd>, then return
        quit
format> scsi

Warning:  these functions are intended for expert use only, for
debugging disk devices and for unusual configuration settings.
It is recommended that you do not use this menu for normal disk
configuration and formatting, unless you have explicit instructions,
or know exactly what you are doing.


SCSI MENU:
        p<n>                   - display a mode sense page
        p<n> b<n> <op> [~]<n>  - change a byte and issue mode select
        b<n> <op> [~]<n>       - add an operation to the mode select list
                                     for the current page
        
                where:  p<n> specifies the page with page code <n>
                        b<n> specifies byte <n> of the page
                        <op> can be one of the following operators:
                             =    (set specified value)
                             |=   (bitwise OR with current value)
                             &=   (bitwise AND with current value)
                        <n> can be a decimal value in the range 0-255,
                        or two hexadecimal digits, in the form 0x<xx>.
                        [~] complements the specified value
        
        apply                  - apply mode select list
        cancel                 - cancel mode select list
        display                - display mode select list
        all                    - display all supported mode sense pages
        default p<n>           - mode select page <n> to default values
        default all            - mode select all pages to default values
        format                 - format without standard mode selects
        inquiry                - display device's inquiry response
        list                   - list common SCSI-2 mode pages
        !<cmd>                 - execute <cmd> , then return
        quit
scsi> inquiry

Inquiry:
    00 00 02 42 29 00 01 3a 46 55 4a 49 54 53 55 20     ...B)..:FUJITSU 
    4d 41 47 33 30 39 31 4c 20 53 55 4e 39 2e 30 47     MAG3091L SUN9.0G
    31 31 31 31 30 30 31 34 34 33 35 30 30              1111001443500

Vendor:                     FUJITSU 
Product:                    MAG3091L SUN9.0G
Revision:                   1111
Removable media:            no
Device type:                0
ISO version:                0
ECMA version:               0
ANSI version:               2
Async event notification:   no
Terminate i/o process msg:  yes
Response data format:       2
Additional length:          41
Relative addressing:        no
32 bit transfers:           no
16 bit transfers:           yes
Synchronous transfers:      yes
Linked commands:            yes
Command queueing:           yes
Soft reset option:          no

scsi> 

Inquiry:
    00 00 02 42 29 00 01 3a 46 55 4a 49 54 53 55 20     ...B)..:FUJITSU 
    4d 41 47 33 30 39 31 4c 20 53 55 4e 39 2e 30 47     MAG3091L SUN9.0G
    31 31 31 31 30 30 31 34 34 33 35 30 30              1111001443500

Vendor:                     FUJITSU 
Product:                    MAG3091L SUN9.0G
Revision:                   1111
Removable media:            no
Device type:                0
ISO version:                0
ECMA version:               0
ANSI version:               2
Async event notification:   no
Terminate i/o process msg:  yes
Response data format:       2
Additional length:          41
Relative addressing:        no
32 bit transfers:           no
16 bit transfers:           yes
Synchronous transfers:      yes
Linked commands:            yes
Command queueing:           yes
Soft reset option:          no

scsi> 

看到我们查询到的信息了吧,我们把它增加到/kernel/drv/sd.conf里面
格式为
     sd-config-list=
             "vendor  product         ", "anystring";
     anystring=1,0x8,0,0,0,0,0;
"vendor  product         "记录有24位组成,分别是8位的vendor string和16位的product 

string.如果不够长度用空格补齐,"anystring"没什么限制,它是作为标识符匹配下一行,

1,0x8,0,0,0,0,0是传输的标记,不要用相同的

修改完了重新启动reboot -- -r

 peng 回复于:2003-11-29 20:58:28
好贴子。
感谢,看来你身边的机器环境不错啊。。:)

 C.Arthur 回复于:2003-11-29 21:03:41
还行吧,都是些旧机器啊

 peng 回复于:2003-11-29 21:09:39
[quote:9f1288cd2a="C.Arthur"]还行吧,都是些旧机器啊[/quote:9f1288cd2a]

我也是,都是一堆e450。。。。
希望能买点新的。。

 C.Arthur 回复于:2003-11-29 21:20:51
很羡慕人家网管,啥机器都能弄

 nanaskylead 回复于:2003-11-30 12:01:35
不错了,我还有ss5呢?见过没?

 C.Arthur 回复于:2003-11-30 12:38:12
见过了,哈哈

延伸阅读

文章来源于领测软件测试网 https://www.ltesting.net/


关于领测软件测试网 | 领测软件测试网合作伙伴 | 广告服务 | 投稿指南 | 联系我们 | 网站地图 | 友情链接
版权所有(C) 2003-2010 TestAge(领测软件测试网)|领测国际科技(北京)有限公司|软件测试工程师培训网 All Rights Reserved
北京市海淀区中关村南大街9号北京理工科技大厦1402室 京ICP备2023014753号-2
技术支持和业务联系:info@testage.com.cn 电话:010-51297073

软件测试 | 领测国际ISTQBISTQB官网TMMiTMMi认证国际软件测试工程师认证领测软件测试网