所选语种没有对应资源,请选择:

本站点使用Cookies,继续浏览表示您同意我们使用Cookies。Cookies和隐私政策>

提示

尊敬的用户,您的IE浏览器版本过低,为获取更好的浏览体验,请升级您的IE浏览器。

升级

华为SAN存储在Solaris系统下的主机连通性指南

华为SAN存储在Solaris下的主机连通性指南
评分并提供意见反馈 :
华为采用机器翻译与人工审校相结合的方式将此文档翻译成不同语言,希望能帮助您更容易理解此文档的内容。 请注意:即使是最好的机器翻译,其准确度也不及专业翻译人员的水平。 华为对于翻译的准确性不承担任何责任,并建议您参考英文文档(已提供链接)。
主机系统扫描LUN

主机系统扫描LUN

存储系统上完成LUN映射后,主机系统上需要进行下面的操作才能找到映射过来的LUN。

  1. 显示当前所有可配置的硬件信息。

    执行cfgadm命令,显示当前所有可配置的硬件信息,同时该命令有重新扫描LUN的功能。

    命令格式如下:

    root@solaris:~# cfgadm -al
    Ap_Id                          Type         Receptacle   Occupant     Condition
    c2                             scsi-sas     connected    configured   unknown
    c2::dsk/c2t0d0                 disk         connected    configured   unknown
    c2::dsk/c2t1d0                 disk         connected    configured   unknown
    c2::dsk/c2t2d0                 disk         connected    configured   unknown
    c2::dsk/c2t3d0                 disk         connected    configured   unknown
    c2::dsk/c2t5d0                 disk         connected    configured   unknown
    c3                             fc-fabric    connected    configured   unknown
    c3::20019c37f496bdb8           disk         connected    configured   unknown
    c3::201a9c37f496bdb8           disk         connected    configured   unknown
    c3::22380a2b3c4d5f6e           disk         connected    unconfigured unknown
    c3::2412346ac2afeaf7           disk         connected    unconfigured unknown
    c4                             fc-fabric    connected    configured   unknown
    c4::20019c37f496bdb8           disk         connected    configured   unknown
    c4::201a9c37f496bdb8           disk         connected    configured   unknown
    c4::22380a2b3c4d5f6e           disk         connected    unconfigured unknown
    c4::2412346ac2afeaf7           disk         connected    unconfigured unknown
    usb0/1                         unknown      empty        unconfigured ok
    usb0/2                         unknown      empty        unconfigured ok
    usb0/3                         unknown      empty        unconfigured ok
    usb1/1                         unknown      empty        unconfigured ok
    usb1/2                         unknown      empty        unconfigured ok
    usb2/1                         unknown      empty        unconfigured ok
    usb2/2                         unknown      empty        unconfigured ok
    usb2/3                         unknown      empty        unconfigured ok
    usb2/4                         usb-hub      connected    configured   ok
    usb2/4.1                       unknown      empty        unconfigured ok
    usb2/4.2                       unknown      empty        unconfigured ok
    usb2/4.3                       unknown      empty        unconfigured ok
    usb2/4.4                       usb-device   connected    configured   ok
    usb2/5                         unknown      empty        unconfigured ok
    root@solaris:~# 

  2. 显示和查看系统识别到的磁盘信息。

    当主机系统上执行format命令,查看识别到的LUN信息。

    举例如下:

    root@solaris:~# format
    Searching for disks...done
    
    
    AVAILABLE DISK SELECTIONS:
           0. c2t0d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
              /pci@0/pci@0/pci@2/scsi@0/sd@0,0
           1. c2t1d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
              /pci@0/pci@0/pci@2/scsi@0/sd@1,0
           2. c2t2d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
              /pci@0/pci@0/pci@2/scsi@0/sd@2,0
           3. c2t3d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
              /pci@0/pci@0/pci@2/scsi@0/sd@3,0
           4. c2t5d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
              /pci@0/pci@0/pci@2/scsi@0/sd@5,0
           5. c3t201A9C37F496BDB8d1 <HUAWEI-XSG1-4303-100.00GB>
              /pci@0/pci@0/pci@8/pci@0/pci@2/QLGC,qlc@0/fp@0,0/ssd@w201a9c37f496bdb8,1
           6. c3t201A9C37F496BDB8d2 <HUAWEI-XSG1-4303 cyl 12798 alt 2 hd 64 sec 256>
              /pci@0/pci@0/pci@8/pci@0/pci@2/QLGC,qlc@0/fp@0,0/ssd@w201a9c37f496bdb8,2
           7. c3t20019C37F496BDB8d1 <HUAWEI-XSG1-4303-100.00GB>
              /pci@0/pci@0/pci@8/pci@0/pci@2/QLGC,qlc@0/fp@0,0/ssd@w20019c37f496bdb8,1
           8. c3t20019C37F496BDB8d2 <HUAWEI-XSG1-4303 cyl 12798 alt 2 hd 64 sec 256>
              /pci@0/pci@0/pci@8/pci@0/pci@2/QLGC,qlc@0/fp@0,0/ssd@w20019c37f496bdb8,2
           9. c4t201A9C37F496BDB8d1 <HUAWEI-XSG1-4303-100.00GB>
              /pci@0/pci@0/pci@8/pci@0/pci@2/QLGC,qlc@0,1/fp@0,0/ssd@w201a9c37f496bdb8,1
          10. c4t201A9C37F496BDB8d2 <HUAWEI-XSG1-4303 cyl 12798 alt 2 hd 64 sec 256>
              /pci@0/pci@0/pci@8/pci@0/pci@2/QLGC,qlc@0,1/fp@0,0/ssd@w201a9c37f496bdb8,2
          11. c4t20019C37F496BDB8d1 <HUAWEI-XSG1-4303-100.00GB>
              /pci@0/pci@0/pci@8/pci@0/pci@2/QLGC,qlc@0,1/fp@0,0/ssd@w20019c37f496bdb8,1
          12. c4t20019C37F496BDB8d2 <HUAWEI-XSG1-4303 cyl 12798 alt 2 hd 64 sec 256>
              /pci@0/pci@0/pci@8/pci@0/pci@2/QLGC,qlc@0,1/fp@0,0/ssd@w20019c37f496bdb8,2
    Specify disk (enter its number):

    上面的例子中,主机系统上找到存储系统映射过来的两个LUN,其中c3t201A9C37F496BDB8d1、c3t20019C37F496BDB8d1 、c4t201A9C37F496BDB8d1和c4t20019C37F496BDB8d1是一个LUN在四条路径上对应的盘符(同一个LUN最后的disk number一样,比如d1),c3t201A9C37F496BDB8d2、c3t20019C37F496BDB8d2、c4t201A9C37F496BDB8d2和c4t20019C37F496BDB8d2是另外一个LUN在四条路径上对应的盘符。

  3. 给找到的LUN打上标签,准备使用。

    Solaris系统在使用磁盘之前,需要先对磁盘打上标签(label),然后才能使用这些LUN。

    举例说明如下:

    root@solaris:~# format
    Searching for disks...done
    
    
    AVAILABLE DISK SELECTIONS:
           0. c2t0d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
              /pci@0/pci@0/pci@2/scsi@0/sd@0,0
           1. c2t1d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
              /pci@0/pci@0/pci@2/scsi@0/sd@1,0
           2. c2t2d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
              /pci@0/pci@0/pci@2/scsi@0/sd@2,0
           3. c2t3d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
              /pci@0/pci@0/pci@2/scsi@0/sd@3,0
           4. c2t5d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
              /pci@0/pci@0/pci@2/scsi@0/sd@5,0
           5. c3t201A9C37F496BDB8d1 <HUAWEI-XSG1-4303-100.00GB>
              /pci@0/pci@0/pci@8/pci@0/pci@2/QLGC,qlc@0/fp@0,0/ssd@w201a9c37f496bdb8,1
           6. c3t201A9C37F496BDB8d2 <HUAWEI-XSG1-4303 cyl 12798 alt 2 hd 64 sec 256>
              /pci@0/pci@0/pci@8/pci@0/pci@2/QLGC,qlc@0/fp@0,0/ssd@w201a9c37f496bdb8,2
           7. c3t20019C37F496BDB8d1 <HUAWEI-XSG1-4303-100.00GB>
              /pci@0/pci@0/pci@8/pci@0/pci@2/QLGC,qlc@0/fp@0,0/ssd@w20019c37f496bdb8,1
           8. c3t20019C37F496BDB8d2 <HUAWEI-XSG1-4303 cyl 12798 alt 2 hd 64 sec 256>
              /pci@0/pci@0/pci@8/pci@0/pci@2/QLGC,qlc@0/fp@0,0/ssd@w20019c37f496bdb8,2
           9. c4t201A9C37F496BDB8d1 <HUAWEI-XSG1-4303-100.00GB>
              /pci@0/pci@0/pci@8/pci@0/pci@2/QLGC,qlc@0,1/fp@0,0/ssd@w201a9c37f496bdb8,1
          10. c4t201A9C37F496BDB8d2 <HUAWEI-XSG1-4303 cyl 12798 alt 2 hd 64 sec 256>
              /pci@0/pci@0/pci@8/pci@0/pci@2/QLGC,qlc@0,1/fp@0,0/ssd@w201a9c37f496bdb8,2
          11. c4t20019C37F496BDB8d1 <HUAWEI-XSG1-4303-100.00GB>
              /pci@0/pci@0/pci@8/pci@0/pci@2/QLGC,qlc@0,1/fp@0,0/ssd@w20019c37f496bdb8,1
          12. c4t20019C37F496BDB8d2 <HUAWEI-XSG1-4303 cyl 12798 alt 2 hd 64 sec 256>
              /pci@0/pci@0/pci@8/pci@0/pci@2/QLGC,qlc@0,1/fp@0,0/ssd@w20019c37f496bdb8,2
    Specify disk (enter its number): 8
    selecting c3t20019C37F496BDB8d2
    [disk formatted]
    
    
    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 disk ID
            volname    - set 8-character volume name
            !<cmd>     - execute <cmd>, then return
            quit
    format> p
    
    
    PARTITION MENU:
            0      - change `0' partition
            1      - change `1' partition
            2      - change `2' partition
            3      - change `3' partition
            4      - change `4' partition
            5      - change `5' partition
            6      - change `6' partition
            7      - change `7' partition
            select - select a predefined table
            modify - modify a predefined partition table
            name   - name the current table
            print  - display the current table
            label  - write partition map and label to the disk
            !<cmd> - execute <cmd>, then return
            quit
    partition> p
    Current partition table (original):
    Total disk cylinders available: 12798 + 2 (reserved cylinders)
    
    Part      Tag    Flag     Cylinders         Size            Blocks
      0       root    wm       0 -    15      128.00MB    (16/0/0)       262144
      1       swap    wu      16 -    31      128.00MB    (16/0/0)       262144
      2     backup    wu       0 - 12797       99.98GB    (12798/0/0) 209682432
      3 unassigned    wm       0                0         (0/0/0)             0
      4 unassigned    wm       0                0         (0/0/0)             0
      5 unassigned    wm       0                0         (0/0/0)             0
      6        usr    wm      32 - 12797       99.73GB    (12766/0/0) 209158144
      7 unassigned    wm       0                0         (0/0/0)             0
    
    partition>
    
    
    

    上面的操作中,我们先是选定需要操作的磁盘(8,代表c3t20019C37F496BDB8d2),主机系统发现该磁盘没有打上标签,会自动提示是否现在打上标签。选择yes后,主机系统给磁盘打上标签后会列出可供操作的指令(如果已经打上标签就直接会列出可供操作的指令)。这里我们输入“p”接着又输入“p”查询了一下磁盘的分区情况。

    Solaris有VTOC和EFI两种磁盘标号。

    默认情况下小于1TB的磁盘是打标签时是VTOC类型,它一个磁盘会有8个分区,编号为0~7。分区2表示整个磁盘。如果大于2TB的话打标签时默认是EFI类型。

    Solaris系列x86的VTOC类型的磁盘有10个分区,编号为0-9;EFI磁盘有9个分区,编号为0-8;Solaris系列SPARC的VTOC类型的磁盘有8个分区,编号为0-7;EFI磁盘有9个分区,编号为0-8。

    Solaris 11以前的版本VTOC标签支持小于1TB的磁盘,EFI支持大于1TB的磁盘。

    Solaris 11及其以后的版本VTOC最大可寻址支持2TB,EFI支持2TB以上。

翻译
下载文档
更新时间:2019-12-09

文档编号:EDOC1000158280

浏览量:26337

下载量:1329

平均得分:
本文档适用于这些产品
相关版本
相关文档
Share
上一页 下一页