略過巡覽連結首頁 > 產品與服務 > 技術分享

技術分享

[技術分享] NS8/NS4 主機程序(Process)及子系統(Subsys)管理(下)

作者/郭哲銘
作者簡歷

作者現職凌群電腦NSK服務總處系統工程師,主要負責HPE Nonstop證券、期貨、銀行客戶交易系統維運服務、軟體產品整合服務,專長為HPE NonStop系統整合。

前言

在 NonStop 系統環境中,有許多程式、工具和子系統應用程式共同執行並控制系統的核心任務運作。本期我們將介紹 NonStop 系統中常用的各種子系統 (SubSystem),並簡要描述這些子系統中許多常見任務的操作方式。

TCP/IP

NSX TCP/IP SubSystem 主要是建構在 NSK CIP (Cluster I/O Protocols)Subsystem 上,NSK CPU 經由 IB Fabric 與 底層 IP CLIM 連接,提供 1G/10GB FC/Ethernet 網路介面,TCP/IP APPLICATION 服務:包括 TELNET/SSH/SFTP…等。



一、IP CLIM 的管理檢查
  • IP CLIM 的檢查

    TACL>SCF
    SCF-> ASSUME PROCESS $ZZCIP
    SCF->STATUS CLIM *
    CIP Status CLIM

    Name Config State Trace
    NCLIM000 Yes STARTED OFF
    NCLIM001 Yes STARTED OFF
    NCLIM002 Yes STARTED OFF
    NCLIM003 Yes STARTED OFF
    SCLIM000 Yes STARTED OFF
    SCLIM001 Yes STARTED OFF


  • 檢查IP CLIM 在 TCP/IP Protocol 上的參數設定

    TACL> climcmd nclim000 climconfig sysctl -info all
    net.ipv4.tcp_keepalive_time = 45
    net.ipv4.tcp_keepalive_intvl = 45
    net.ipv4.tcp_keepalive_probes = 8

二、SCF Network CLIM 指令操作
  • 檢查 IP CLIM 的配置參數,Default Provider 及 Mulit-Provider 是否為 ON

    SCF->INFO CLIM $ZZCIP.*

    CIP Info CLIM

    Name Mode *Provider *MultiProv
    NCLIM000 IP ZTC0 ON
    NCLIM001 IP ZTC1 ON
    NCLIM002 IP ZTC2 ON
    NCLIM003 IP ZTC3 ON
    SCLIM000 STORAGE -- --
    SCLIM001 STORAGE -- --


  • 檢查IP CLIM上配置的Provider及binding的port

    TACL> climcmd nclim000 climconfig interface -info all

    可以檢查 nclim000 上的 provider/port/ip 配置狀態,每一台 IP CLIM 可供配置 eth1 ~ eth5 共5個介面

    Maintenance LAN Interfaces
    Interface : eth0
    Interface Type : Physical Interface
    MTU Size : 1500
    IP Address : xxx.xxx.xxx.xxx
    Netmask : xxx.xxx.xxx.xxx
    Type of Card : 1G Copper
    Auto Negotiation Details :
    - Status : on
    Line Speed : Not Applicable
    Duplex : Not Applicable
    Supports Autonegotiation: Yes
    Supported Link Modes : Speed Duplex
    1000 full
    100 full
    100 half
    10 full
    10 half
    Software MAC Address : Unspecified

    Maintenance Provider Interfaces
    Interface : eth0:0
    Interface Type : Logical Interface
    IP Address : xxx.xxx.xxx.xxx
    Netmask : xxx.xxx.xxx.xxx

    Data Provider ZTC0 interfaces
    Interface : bond1
    Interface Type : Bonding Interface
    MTU Size : 1500
    Slave Interfaces : eth1(Active),eth3
    Primary Slave : Unspecified
    IP Address : xxx.xxx.xxx.xxx
    Netmask : xxx.xxx.xxx.xxx
    ROUTE Details :
    - Route Type : Default Route
    Destination Address : 0.0.0.0
    Netmask : 0.0.0.0
    Gateway Address : xxx.xxx.xxx.xxx
    Metric : 0
    Minimum RTO : Unspecified
    InitCWND : Unspecified
    Src : Unspecified
    Type of Card of eth3 : 10G Fibre
    Auto Negotiation Details of eth3:
    - Status : on
    Line Speed : Not Applicable
    Duplex : Not Applicable
    Supports Autonegotiation: No
    Supported Link Modes : Speed Duplex
    10000 full
    Software MAC Address of eth3 : Unspecified
    Type of Card of eth1 : 10G Fibre
    Auto Negotiation Details of eth1:
    - Status : on
    Line Speed : Not Applicable
    Duplex : Not Applicable
    Supports Autonegotiation: No
    Supported Link Modes : Speed Duplex
    10000 full
    Software MAC Address of eth1 : Unspecified

    Data Provider ZTC4 interfaces
    Interface : eth2
    Interface Type : Physical Interface
    MTU Size : 1500
    IP Address : xxx.xxx.xxx.xxx
    Netmask : xxx.xxx.xxx.xxx

    ROUTE Details :
    - Route Type : Default Route
    Destination Address : 0.0.0.0
    Netmask : 0.0.0.0
    Gateway Address : xxx.xxx.xxx.xxx
    Metric : 0
    Minimum RTO : Unspecified
    InitCWND : Unspecified
    Src : Unspecified
    Type of Card : 10G Fibre
    Auto Negotiation Details :
    - Status : on
    Line Speed : Not Applicable
    Duplex : Not Applicable
    Supports Autonegotiation: No
    Supported Link Modes : Speed Duplex
    10000 full
    Software MAC Address : Unspecified

    Data Provider ZTCG1 interfaces
    Interface : eth4
    Interface Type : Physical Interface
    MTU Size : 1500
    IP Address : xxx.xxx.xxx.xxx
    Netmask : xxx.xxx.xxx.xxx
    ROUTE Details :
    - Route Type : Default Route
    Destination Address : 0.0.0.0
    Netmask : 0.0.0.0
    Gateway Address : xxx.xxx.xxx.xxx
    Metric : 0
    Minimum RTO : Unspecified
    InitCWND : Unspecified
    Src : Unspecified
    Type of Card : 10G Fibre
    Auto Negotiation Details :
    - Status : on
    Line Speed : Not Applicable
    Duplex : Not Applicable
    Supports Autonegotiation: No
    Supported Link Modes : Speed Duplex
    10000 full
    Software MAC Address : Unspecified

    Data Provider ZTCB1 interfaces
    Interface : eth5
    Interface Type : Physical Interface
    MTU Size : 1500
    IP Address : xxx.xxx.xxx.xxx
    Netmask : xxx.xxx.xxx.xxx
    ROUTE Details :
    - Route Type : Default Route
    Destination Address : 0.0.0.0
    Netmask : 0.0.0.0
    Gateway Address : xxx.xxx.xxx.xxx
    Metric : 0
    Minimum RTO : Unspecified
    InitCWND : Unspecified
    Src : Unspecified
    Type of Card : 1G Copper
    Auto Negotiation Details :
    - Status : on
    Line Speed : Not Applicable
    Duplex : Not Applicable
    Supports Autonegotiation: Yes
    Supported Link Modes : Speed Duplex
    1000 full
    100 full
    100 half
    10 full
    10 half
    Software MAC Address : Unspecified

  • 使用 Climcmd ethtool 工具程式檢查線路速率及全雙工狀態

    TACL> climcmd nclim000 prov ztc0 ethtool eth1
    Settings for eth1:
    Supported ports: [ FIBRE ]
    Supported link modes: 1000baseT/Full
    10000baseT/Full
    Supported pause frame use: Symmetric Receive-only
    Supports auto-negotiation: No
    Advertised link modes: 10000baseT/Full
    Advertised pause frame use: No
    Advertised auto-negotiation: No
    Speed: 10000Mb/s
    Duplex: Full
    Port: FIBRE
    PHYAD: 1
    Transceiver: internal
    Auto-negotiation: off
    Supports Wake-on: d
    Wake-on: d
    Current message level: 0x00000000 (0)

    Link detected: yes


  • 檢查及測試 IP CLIM 上的 port

    經由 $ztc0 確認對外 ip connection 是否正常

    TACL> add define =TCPIP^PROCESS^NAME,FILE $ZTC0
    TACL> ping 10.204.2.41 (eth0 binding ip-address)
    TACL> ping 10.204.5.1 (Gateway )

    Or

    TACL> climcmd nclim000 -provider ztc0 ping 10.204.5.1 -c4


  • IP CLIM port (eth1~ eth5 ) 的 patch-panel 配置



    IP CLIM000 : A1(eth1) , B1(eth2) , C1 (eth3) , D1(eth4) , E1(eth5)
    IP CLIM001 : A2(eth1) , B2(eth2) , C2 (eth3) , D2(eth4) , E2(eth5)
    IP CLIM002 : A3(eth1) , B3(eth2) , C3 (eth3) , D3(eth4) , E3(eth5)
    IP CLIM003 : A4(eth1) , B4(eth2) , C4 (eth3) , D4(eth4) , E4(eth5)


  • Network CLIM 的狀態檢查

    climcmd nclim001 climstatus -o l ==> option lan info
    climcmd nclim001 climstatus -o c ==> option clim pre-config
    climcmd nclim001 climstatus -o s ==> option software version
    climcmd nclim000 ifstart eth2 ==> interface start eth2

    climcmd nclim001 climconfig prov -info all
    ==> show provider all in CLIM

    climcmd nclim001 climconfig route -info
    ==> show all I/F routing info

    climcmd nclim001 man climconfig.all
    ==> help climconfig usage !


  • 設定及修改介面參數

    climcmd nclim001 climconfig interface -modify eth2 &
    -autonegotiation off -linespeed 100 -duplex full
    ==> 修改 eth2: speed,duplex ... 等

    climcmd nclim001 climconfig interface -modify eth2 &
    -ipaddress 10.60.3.91 -netmask 255.255.255.224
    ==> 修改 eth2: ip-address,mask

    修改介面設定時,必須先將 Ethernet port stop

三、TCPIP Process 操作管理
  • TCP/IP Process 檢查(Provider 必須為 Started state)

    SCF-> LISTDEV TCPIP
    LDev Name PPID BPID Type RSize Pri Program
    73 $ZTC9 1,456 0,484 (48,0 ) 57344 201 \NSX.$SYSTEM.SYS04.CIPSAM
    74 $ZTC4 1,457 0,485 (48,0 ) 57344 201 \NSX.$SYSTEM.SYS04.CIPSAM
    75 $ZTC2 1,458 0,486 (48,0 ) 57344 201 \NSX.$SYSTEM.SYS04.CIPSAM
    127 $ZBOND 1,459 0,487 (48,0 ) 57344 201 \NSX.$SYSTEM.SYS04.CIPSAM
    141 $NXN02 1,460 0,488 (48,0 ) 57344 201 \NSX.$SYSTEM.SYS04.CIPSAM
    142 $NXN01 1,461 0,489 (48,0 ) 57344 201 \NSX.$SYSTEM.SYS04.CIPSAM
    143 $NXE02 1,462 0,490 (48,0 ) 57344 201 \NSX.$SYSTEM.SYS04.CIPSAM
    144 $NXE01 1,463 0,491 (48,0 ) 57344 201 \NSX.$SYSTEM.SYS04.CIPSAM
    169 $ZTCP0 0,438 1,438 (48,0 ) 57344 201 \NSX.$SYSTEM.SYS04.CIPSAM
    191 $ZTC0 0,450 1,418 (48,0 ) 57344 201 \NSX.$SYSTEM.SYS04.CIPSAM
    193 $ZTC1 0,451 1,420 (48,0 ) 57344 201 \NSX.$SYSTEM.SYS04.CIPSAM
    194 $ZTCP1 1,884 0,1134 (48,0 ) 57344 201 \NSX.$SYSTEM.SYS04.CIPSAM
    627 $ZTC5 0,1141 1,638 (48,0 ) 57344 201 \NSX.$SYSTEM.SYS04.CIPSAM

    SCF-> status provider $zzcip.*

    CIP Status PROVIDER

    Name Status TPStatus Trace
    ZTC0 STARTED Started OFF
    ZTC1 STARTED Started OFF
    ZTC2 STARTED Started OFF
    ZTC3 STARTED Started OFF
    ZTC4 STARTED Started OFF
    ZTC5 STARTED Started OFF
    ZTCP0 STARTED Started OFF
    ZTCP1 STARTED Started OFF

四、Telserv/Ftp Process 操作管理
  • TELSERV/FTP PROCESS 的啟動
    comment --- nclim000.eth1/eth3 ==> bond1
    comment --- nclim001.eth1/eth3 ==> bond1
    comment --- tcpip : $ztc0/$ztc1 ---

    Delete DEFINE =TCPIP^PROCESS^Name
    ADD DEFINE =TCPIP^PROCESS^NAME, FILE $ZTC0
    PARAM TCPIP^PROCESS^NAME $ZTC0
    PARAM ZTNT^TRANSPORT^PROCESS^NAME $ZTC0
    stop $lsn0
    stop $ZTN0
    stop $ZTN01

    LISTNER /NAME $LSN0 ,CPU 1, NOWAIT, IN $ZHOME, OUT $ZHOME, &
    TERM $ZHOME, PRI 150/0

    TELSERV /CPU 0, TERM $ZHOME, NAME $ZTN0 , PRI 150, NOWAIT/ -BACKUPCPU 1

    TELSERV /CPU 1, TERM $ZHOME, NAME $ZTN01, PRI 150, NOWAIT/5001 -BACKUPCPU 0
    Comment – Telserv process : $ztn01/ listen port #5001

  • 檢查被 open 的 listen port number

  • SCF->listopens provider $zzcip.ztc0
    CIP Listopens PROVIDER \XXX.$ZZCIP.ZTC0

    Openers Ppid State Proto Lport Provider CLIM
    \XXX.$ZTN0 0,543 LISTEN TCP telnet ZTC0 NCLIM000
    \XXX.$ZTN0 0,543 ESTAB TCP telnet ZTC0 NCLIM000
    \XXX.$ZNA06 0,1183 LISTEN TCP 6606 ZTC0 NCLIM000
    \XXX.$ZTN0 0,543 ESTAB TCP telnet ZTC0 NCLIM000
    \XXX.$ZNC00 0,1119 LISTEN TCP 6700 ZTC0 NCLIM000
    \XXX.$ZTN0 0,543 ESTAB TCP telnet ZTC0 NCLIM000
    \XXX.$ZNA22 0,908 LISTEN TCP 6622 ZTC0 NCLIM000
    \XXX.$ZNA20 0,870 LISTEN TCP 6620 ZTC0 NCLIM000

Disk/Tape 及 Storage CLIM

Storage CLIM 介接 DISK ENCLOSURE 提供 DISK VOLUMES 的儲存位置。

TAPE DRIVE經由FIBRE CHANNEL介面與STORAGE CLIM 連接,提供磁帶的備份作業功能


一、Storage CLIM 的管理設定

  • 檢查 Storage CLIM 的狀態
    SCF> STATUS CLIM $ZZCIP.*

    CIP Status CLIM

    Name Config State Trace
    SCLIM000 Yes STARTED OFF
    SCLIM001 Yes STARTED OFF

    SCF> INFO CLIM $ZZCIP.SCLIM000,DETAIL

    CIP Detailed Info CLIM \XXX.$ZZCIP.SCLIM000

    Mode....................... STORAGE
    X-Fabric ID................ 0x0A026500
    Y-Fabric ID................ 0x0A826500
    Maintenance Interface IP... 192.168.37.0
    12-> STATUS CLIM $ZZCIP.SCLIM000,DETAIL

    CIP Detailed Status CLIM \XXX.$ZZCIP.SCLIM000

    Mode...................... STORAGE
    CLIM HW Config Status..... Configured
    State..................... STARTED
    Trace Status.............. OFF

    Last Restart Time......... 17 Jan 2019, 23:50:04.000
    CLIM Hostname............. SCLIM000
    CIP SW Version............ T0853L03_01AUG2018_28AUG2018_DBF

    Network SW Version........ T0691L03_01AUG2018_DBF_CLIM_G24
    Storage SW Version........ T0830L03_01AUG2018_21AUG2018_DBF
    Number of Socket Servers.. 1
    Linux Version:
    Linux 3.16.56-clim-4-amd64 #1 SMP Debian 3.16.56-clim-4 (2018-07-19)

    Fabric Status:
    CIPMON Mgmt Data
    ZCM00 XY-1 XY-1
    ZCM01 XY-1 XY-1
    ZCM02 XY-1 XY-1
    ZCM03 XY-1 XY-1

    CLIM Maintenance Interface Status & IP Addresses:
    eth0 Sts:UP Lkp:UP IPv4: 192.168.37.0
    IPv6: fe80::5680:28ff:fe50:ddcc

    Data Provider Interface Status & IP Addresses:
    Flg Name Status LkP Master / IP Family & Address
    lo UP --
    IPv4: 127.0.0.1
    IPv6: ::1

二、Storage CLIMCMD 指令操作
  • 檢查 Storge CLIM 介接的 DISK ENCLOSURE 狀態
    TACL> climcmd sclim000 lunmgr –e

    -- Enclosure table --
    lun type stable address
    1 3 tape HP UltriumM8801A #HUJ816ACFK
    51 6 changer HP MSLG3Series #DEC82805K0
    100 1 enclosure 5001438041876100
    200 1 enclosure 5001438041875f40
    -- Enclosures present --
    lun type stable address device controller
    serial # revision
    6 changer HP MSLG3Series #DEC82805K0 sg27 slot 3, port 1
    DEC82805K0 E.92
    200 1 enclosure 5001438041875f40 sg40 slot 2, port 2, exp
    ander 1 4C18491333 4.04
    100 1 enclosure 5001438041876100 sg41 slot 2, port 1, exp
    ander 1 4C18491332 4.04
    3 tape HP UltriumM8801A #HUJ816ACFK sg22 slot 3, port 1
    HUJ816ACFK 23GW
    Termination Info: 0

三、SCF/MEDIACOM TAPE 指令操作
  • SCF-> STATUS TAPE $TAPE
    STORAGE - Status TAPE \XXX.$TAPE
    LDev State Primary Backup DeviceStatus
    PID PID
    156 STARTED 0,404 1,395 ONLINE, BOT

    正常狀態下放入磁帶後,DeviceStatus 會出現 “ONLINE, BOT”

  • TACL> MEDIACOM
    MC>INFO TAPEDRIVE $TAPE

    Tape Drive Name Device Type NL Check BLP Check
    --------------- ----------- -------- ---------
    $TAPE LTO6 OFF OFF

    1 tape drive returned.

    MC>STATUS TAPEDRIVE $TAPE

    Drive Tape Tape Label Open
    Tape Drive Status Name Status Type Mode Process Name
    ------------------ ----- ------ -------- ------- ---- ------------
    $TAPE FREE

    1 tape drive returned.

結論

這些 Subsystem 為 NonStop 系統帶來了高可靠性、高可用性、高性能以及靈活的擴展能力。KMSF SWAPFILE 通過有效的 virtual memory 管理,確保系統能夠應對繁重的工作負載。TMF 確保了交易資料的一致性和可靠性。Network CLIM 提供了高效能的網路傳輸能力。Storage CLIM 提升了 I/O 效能,尤其是在處理大量資料的應用場景中表現出色,並且提供了更好的可擴展性,支持線上擴展儲存資源,無需中斷系統運行,以滿足企業不斷增長的需求。

參考資料
  • NonStop NS4 Planning Guide
  • NonStop NS8 Planning Guide
  • Cluster I/O Protocols (CIP) Configuration and Management Manual
  • SCF Reference Manual for Storage Subsystem
  • Guardian Disk & Tape Utilities Reference Manual

 

回上一頁