Bir RoCE ağında netmon.cf dosyasını ayarlama (Linux)

Bir Birleştirilmiş Ethernet üzerinden uzaktan doğrudan bellek erişimi (RDMA) (RoCE) ağında, bir ya da daha çok pingable IP adresi, netmon.cf yapılandırma dosyasında el ile ayarlanmalıdır. The netmon.cf file is required by Reliable Scalable Cluster Technology (RSCT) to monitor the network and ensure that the interfaces are pingable or not.

Bu sayfada belgelenmiş olan yordamlar artık bağdaştırıcı kapısı LIvelması testi geliştirildiğinden ve otomatikleştirildiği için gerekli değildir. Bazı kısıtlamalar geçerli olur. Kısıtlamalar için technote#0733765 belgesine bakın.

Başlamadan önce

Bu konudaki örnekler, bu konunun sonundaki şekle, İki CF ve dört üyeden iki anahtara bağlantemele dayanır.

Yordam

netmon.cf yapılandırma dosyasını ayarlamak için:

  1. Anasistemde kök olarak oturum açın.
  2. Küme yöneticisi etki alanı adını alın.
    /home/instname/sqllib/bin/db2cluster -cm -list -domain
  3. Etki alanını durdurun.
    /home/instname/sqllib/bin/db2cluster -cm -stop -domain domainname -force 
  4. üyelerin netmon.cf yapılandırma dosyasına hangi IP adresinin girilip girilmemesi gerektiğini belirleyin.
    Üye anasisteminde, iletişim bağdaştırıcısı kapılarını ve ilişkili hedef IP alt ağını denetlemek için route komutunu çalıştırın.
    /sbin/route | grep -v link-local
    Örneğin, bu konunun sonundaki şekle dayalı olarak:
    Member 0
    [root@host3]# route | grep -v link-local
    Kernel IP routing table
    Destination	Gateway 	Genmask Flags Metric Ref Use Iface
    192.168.1.0 	* 				255.255.255.0 U 0 0 0 eth0
    192.168.2.0 	* 				255.255.255.0 U 0 0 0 eth1
    9.26.92.0 	* 				255.255.254.0 U 0 0 0 eth2
    default 	9.26.92.1 0.0.0.0 UG 0 0 0 eth2
    
    Member 2
    [root@host5]# route | grep -v link-local
    Kernel IP routing table
    Destination	Gateway 	Genmask Flags Metric Ref Use Iface
    192.168.1.0 	* 				255.255.255.0 U 0 0 0 eth0
    192.168.2.0 	* 				255.255.255.0 U 0 0 0 eth1
    9.26.92.0 	* 				255.255.254.0 U 0 0 0 eth2
    default 	9.26.92.1 0.0.0.0 UG 0 0 0 eth2
    Son sütun (sütun adı "Iface" ile) geçerli anasistemdeki bağdaştırıcıları listeler. Hedef iletişim bağdaştırıcısı kapısına karşılık gelen bağdaştırıcıyı seçin. Bu örnekte, "eth0" ve "eth1" hedef RoCE bağdaştırıcılarıdır. İlk kolondaki karşılık gelen IP adresleri, sonraki adımda kullanılacak hedef IP alt ağını gösterir. Bu durumda, IP alt ağları "192.168.1.0" ve "192.168.2.0"olur.
  5. IP alt ağıyla, anahtar 1 'de yaratılan IP arabirimlerini ve geçerli anasistemin aynı IP alt ağına bağlandığı 2 numaralı anahtarı kullanın. (The IP interface should already be created as part of the RoCE network configuration steps, for details see Setting up the IP interfaces on the switch on a RoCE network (Linux).) In this example, assuming the IP interfaces on switch 1 have IP addresses of 192.168.1.2 and 192.168.2.2, and switch 2 have IP addresses of 192.168.1.5 and 192.168.2.5, these entries are added to the members configuration file/var/ct/cfg/netmon.cf.
    Member0 (host3)
    !REQD eth0 192.168.1.2
    !REQD eth1 192.168.2.5
    
    Member2 (host5)
    !REQD eth0 192.168.1.5
    !REQD eth1 192.168.2.2
    Burada:
    • token1 - !REQD zorunlu bir varlık
    • token2 - eth0 ve eth1 , yerel anasistemdeki RoCE bağdaştırıcı arabirimi adlarıdır
    • token3 - 192.168.1.2, 192.168.2.5, 192.168.1.5ve 192.168.2.2 , anahtarlarda oluşturulan arabirime atanan dış pingable IP adresleridir.
    The following is an example of what the full configuration file /var/ct/cfg/netmon.cf looks like for members:
    Member0(host3)
    !IBQPORTONLY !ALL
    !REQD eth2 9.26.92.1
    !REQD eth0 192.168.1.2
    !REQD eth1 192.168.2.5
    !REQD eth0 192.168.1.5
    !REQD eth1 192.168.2.2
    
    Member2(host5)
    !IBQPORTONLY !ALL
    !REQD eth2 9.26.92.1
    !REQD eth0 192.168.1.2
    !REQD eth1 192.168.2.5
    !REQD eth0 192.168.1.5
    !REQD eth1 192.168.2.2
  6. Küme önbelleğe alma olanaklarına (CF ' ler) netmon.cf yapılandırma dosyasına hangi IP adresinin girileceği belirleyin.
    İletişim bağdaştırıcısı kapısı ' na ve ilişkili hedef IP alt ağını denetlemek için şunu girin:
    /sbin/route | grep -v link-local
    Örneğin:
    Host1> $ /sbin/route | grep -v link-local
    Kernel IP routing table
    Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
    192.168.4.0     *               255.255.255.0   U     0      0        0 eth3
    192.168.3.0     *               255.255.255.0   U     0      0        0 eth1
    192.168.2.0     *               255.255.255.0   U     0      0        0 eth2
    192.168.1.0     *               255.255.255.0   U     0      0        0 eth0
    9.26.92.0       *               255.255.252.0   U     0      0        0 eth2
    default         rsb-v94-hsrp.to 0.0.0.0         UG    0      0        0 eth2
    Son sütun (Iface), bağdaştırıcı arabirimi adını belirtir. Bu durumda, eth0, eth1, eth2ve eth3 , bu anasistemdeki tek iletişim bağdaştırıcısı kapısı arabirimidir. Bu anasistemle ilgili dört IP alt ağı vardır.
    Anahtar üzerinde oluşturulan dört IP adresinin tümü (dört IP alt ağını kapsar) bu anasistemin netmon.cf yapılandırma dosyasına girilmelidir. Örneğin:
    !IBQPORTONLY !ALL
    !REQD eth2 9.26.92.1
    !REQD eth0 192.168.1.2
    !REQD eth1 192.168.3.2
    !REQD eth7 192.168.2.2
    !REQD eth6 192.168.4.2

    Kümedeki ikincil CF anasistemi için bu adımı yineleyin.

  7. Etki alanını yeniden başlatın.
    /home/instname/sqllib/bin/db2cluster -cm -start -domain domainname
  8. lssrc komutunu çalıştırarak tüm bağdaştırıcıların sabit olduğunu doğrulayın:
    lssrc -ls cthats
    Çıkış aşağıdakine benzer:
    [root@coralm234 ~]# lssrc -ls cthats
    Subsystem         Group            PID     Status
     cthats           cthats           31938   active
    Network Name   Indx Defd  Mbrs  St   Adapter ID      Group ID
    CG1            [ 0] 3     3     S    192.168.1.234   192.168.1.234
    CG1            [ 0] eth0             0x46d837fd      0x46d83801
    HB Interval = 0.800 secs. Sensitivity = 4 missed beats
    Ping Grace Period Interval = 60.000 secs.
    Missed HBs: Total: 0 Current group: 0
    Packets sent    : 560419 ICMP 0 Errors: 0 No mbuf: 0
    Packets received: 537974 ICMP 0 Dropped: 0
    NIM's PID: 31985
    CG2            [ 1] 4     4     S    9.26.93.226     9.26.93.227
    CG2            [ 1] eth2             0x56d837fc      0x56d83802
    HB Interval = 0.800 secs. Sensitivity = 4 missed beats
    Ping Grace Period Interval = 60.000 secs.
    Missed HBs: Total: 0 Current group: 0
    Packets sent    : 515550 ICMP 0 Errors: 0 No mbuf: 0
    Packets received: 615159 ICMP 0 Dropped: 0
    NIM's PID: 31988
    CG3            [ 2] 3     3     S    192.168.3.234   192.168.3.234
    CG3            [ 2] eth1             0x46d837fe      0x46d83802
    HB Interval = 0.800 secs. Sensitivity = 4 missed beats
    Ping Grace Period Interval = 60.000 secs.
    Missed HBs: Total: 0 Current group: 0
    Packets sent    : 493188 ICMP 0 Errors: 0 No mbuf: 0
    Packets received: 537949 ICMP 0 Dropped: 0
    NIM's PID: 31991
    CG4            [ 3] 2     2     S    192.168.2.234   192.168.2.234
    CG4            [ 3] eth6             0x46d83800      0x46d83803
    HB Interval = 0.800 secs. Sensitivity = 4 missed beats
    Ping Grace Period Interval = 60.000 secs.
    Missed HBs: Total: 0 Current group: 0
    Packets sent    : 470746 ICMP 0 Errors: 0 No mbuf: 0
    Packets received: 537992 ICMP 0 Dropped: 0
    NIM's PID: 31994
    CG5            [ 4] 2     2     S    192.168.4.234   192.168.4.234
    CG5            [ 4] eth7             0x46d837ff      0x46d83804
    HB Interval = 0.800 secs. Sensitivity = 4 missed beats
    Ping Grace Period Interval = 60.000 secs.
    Missed HBs: Total: 0 Current group: 0
    Packets sent    : 470750 ICMP 0 Errors: 0 No mbuf: 0
    Packets received: 538001 ICMP 0 Dropped: 0
    NIM's PID: 31997
      2 locally connected Clients with PIDs:
     rmcd( 32162) hagsd( 32035)
      Dead Man Switch Enabled:
         reset interval = 1 seconds
         trip  interval = 67 seconds
         Watchdog module in use: softdog
      Client Heartbeating Enabled. Period: 6 secs. Timeout: 13 secs.
      Configuration Instance = 1322793087
      Daemon employs no security
      Segments pinned: Text Data Stack.
      Text segment size: 650 KB. Static data segment size: 1475 KB.
      Dynamic data segment size: 2810. Number of outstanding malloc: 1165
      User time 32 sec. System time 26 sec.
      Number of page faults: 0. Process swapped out 0 times.
      Number of nodes up: 4. Number of nodes down: 0.
    Şekil 1. İki CF ve dört üye iki anahtara bağlanır.
    İki CF ve dört üye iki anahtara bağlanır.