cots 常见问题解答

来源:互联网 发布:随机森林算法matlab 编辑:程序博客网 时间:2024/04/30 14:51
1. 如何手动更改板子类型和槽位号?
    
        需要更改虚拟机的appl.xml的appid和type,以及/etc/rc.local的tipc-config -addr。
        步骤:
        a. 登录虚拟机;
        b. cd /opt/v7510/share/inputs
                [root@vmm04-18 inputs]# ls
                appl.xml  templates
        c. vi appl.xml 进行修改appid和type,其中appid对应槽位号,type对应板子类型;
      d. vi /etc/rc.local  修改tipc-config -addr 数字对应板子号。
 

2. 当虚拟机启动不了, 如何重新启动虚拟机?

        需要在host上destroy对应的虚拟机,再重新start。
        步骤:
        a. 登录到COTS环境对应的host上
        b. 使用virsh list 查看虚拟机,获取虚拟机的vm-name;
        c. 使用virsh destroy vm-name 将该虚拟机destroy
        d. 使用virsh start vm-name重新启动虚拟机,也可以等待一段时间,host会自动去启动
           destroy的虚拟机。
           
3. COTS环境中,由于版本不一致或者其他原因,导致PIM或者MCM一直来回重启,如何停下,让
     虚拟机启动起来,换版本?
    
     需要登录到COTS环境中的scm板对应的虚拟机,将虚拟机上的nodemgr进程结束。
     步骤:
     a. 登录到COTS环境中,scm板子对应的虚拟机;
     b. 使用 ps -ef | grep 7510 查看运行的nodemgr 对应的进程号;
     c. 使用kill 进程号 -9 将nodemgr停下或者使用monit stop nodemgr;
     d. 如果有2个scm板子,使用同样的方法将另一个scm板子上的nodemgr进程停下;
     e. 等待一段时间,其他板子的虚拟机会启动起来。
    
    
4. 创建COTS环境时,板子创建顺序是什么?
        在创建vm的时候,应该先创建PIM板,然后再创建SCM。
        
5. 在创建COTS环境过程中,配置参数的时候,PIM板槽位的选择,只有17,18;如果要创建PIM板子的
   个数大于2块,该怎么进行处理?
   以创建含有4块PIM的COTS环境为例,可以先创建含有2个PIM板的环境,通过手动更改配置文件的方式,
   将PIM板的槽位更改为19,20;然后再创建2个PIM板,槽位号为17,18;通过这种方式,可以创建多个
   PIM板。
   
6. 如何删除虚拟机?
     虚拟机的删除,都是在host01上进行,如果要删除一个虚拟机,首先要先登录到该环境中的host01,
     执行vm_degrow命令,根据提示往下进行操作即可。
    
7. PIM MCM 板间不能通信解决过程总结
     虚拟机有些版本在安装后,配置文件不是最新,造成pim mcm板子不能通信,需要手动更改配置文件。
      
     以151环境为例:
     在host1(ip:135.251.148.10)上,使用virsh list查看虚拟机:

        [root@cloud-host01 ~]# virsh list
         Id    Name                           State
        ----------------------------------------------------
         45    04-s00c17h0                    running
         54    04-s00c15h0                    running
         57    04-s00c51h0                    running
         72    04-s00c16h0                    running
         74    04-s00c18h0                    running
         238   04-s00c13h0                    running
         242   04-s00c11h0                    running
         244   04-s00c14h0                    running
         245   04-s00c12h0                    running

         在host里,对所有vPIM/vMCM虚拟机,virsh edit <domain>
         以vPIM为例 eg: virsh edit 04-s00c16h0
 
            找到 <address type='pci' domain='0x0000' bus='0x00' slot='0x15' function='0x0'/>
            和<address type='pci' domain='0x0000' bus='0x00' slot='0x1a' function='0x0'/>
            切记:一定是这2行

            然后在前面插入vlan,如果已经存在,看vlan是否一致,如果不同,则修改:
            <vlan>
                    <tag id='910'/>
            </vlan>

            如下:
            <interface type='hostdev' managed='yes'>
                  <mac address='e2:68:01:04:01:8e'/>
                  <source>
                    <address type='pci' domain='0x0000' bus='0x04' slot='0x16' function='0x2'/>
                  </source>
                  <vlan>
                    <tag id='910'/>
                  </vlan>
                  <address type='pci' domain='0x0000' bus='0x00' slot='0x15' function='0x0'/>
            </interface>

            注:一定要在 slot='0x15'和slot='0x1a'都加上vlan
            <vlan>
                    <tag id='910'/>
            </vlan>

8. 如何查看host上cpu cores的数量?
     使用命令“cat /proc/cpuinfo”可以查看总共cpu cores的数量,processor个数的一半是总的cores数量;
     使用命令“cm_adm -a vm_status -t  host**”(在host01上敲),查看使用的cores数量,就知道剩下多
     少还没有使用等信息。
    
     常用命令:
     查看物理cpu个数:cat /proc/cpuinfo| grep "physical id"| sort| uniq| wc -l
     查看每个物理cpu中core的个数:cat /proc/cpuinfo| grep "cpu cores"| uniq
     查看逻辑cpu的个数:cat /proc/cpuinfo| grep "processor"| wc -l
       
    
    
    
    
                

          

0 0