본문 바로가기
공부하자

HPE Proliant Gen10 - PCI Slot 사용여부 설정 방법 (ilorest)

by yrmom 2020. 5. 3.

서버에 10G 네트워크 카드를 따로 사용하는 경우 Redhat Linux 에서 부팅 시 마다 네트워크 디바이스 네임이 변경 되는 문제가 발생 할 수 있다.

ex. eth4였다가 eth0이었다가 계속 바뀜

부팅 중에 읽어 오는 순서에 따라 랜덤하게 바뀐다.

그 문제를 방지하기 위한 방법 중에, 사용하지 않는 PCI Slot을 비활성 시키는 방법이 있다.

 

Gen9 이하에서는 이미 설정된 서버에서 conrep 으로 설정을 떠서 적용해 주는 방식으로 설정이 되었었는데, 

Gen10 에서 아무리 conrep으로 해봐도 PCI Slot 설정에 영향이 없었다.

F9에서 수동으로 설정 할 수도 있지만 대량 작업이 필요한 경우가 많아서 원격으로 할 수 있는 방법을 찾아보았다.

 

네트워크 연결 상태

DL360 Gen10

1G: Embedded nic (연결 안됨)

10G: PCI Slot 1 Port 1에 네트워크 연결

 

설정 파일 작성

(수동 설정해서 ilorest 명령으로 설정 저장후에 비교하는 방식으로 추출 함. 테스트 모두 성공.)

Embedded Nic Disable (emb_disable.json)

Embedded Nic Enable (emb_enable.json)

[

  {

    "#Bios.v1_0_0.Bios": {

      "/redfish/v1/systems/1/bios/settings/": {

        "Attributes": {

          "EmbNicAspm": "Disabled",

          "EmbNicEnable": "Disabled"

        },

      "id": "settings",

      "Name": "BIOS Pending Settings"

    }

  }

]

[

  {

    "#Bios.v1_0_0.Bios": {

      "/redfish/v1/systems/1/bios/settings/": {

        "Attributes": {

          "EmbNicEnable": "Auto",

          "EmbNicLinkSpeed": "Auto",

          "EmbNicPCIeOptionROM": "Enabled"

        },

      "id": "settings",

      "Name": "BIOS Pending Settings"

    }

  }

]

PCI Slot 1 Port 1 Disable (pci1-1_disable.json)

PCI Slot 1 Port 1 Enable (pci1-1_enable.json)

[

  {

    "#Bios.v1_0_0.Bios": {

      "/redfish/v1/systems/1/bios/settings/": {

        "Attributes": {

          "PciSlot1Enable": "Disabled"

        },

      "id": "settings",

      "Name": "BIOS Pending Settings"

    }

  }

]

[

  {

    "#Bios.v1_0_0.Bios": {

      "/redfish/v1/systems/1/bios/settings/": {

        "Attributes": {

          "PciSlot1Enable": "Auto",

          "PciSlot1LinkSpeed": "Auto",

          "PciSlot1PCIeOptionROM": "Enabled"

        },

      "id": "settings",

      "Name": "BIOS Pending Settings"

    }

  }

]

 

세션연결

ilorest --nologo --cache-dir=/tmp/cache-iloip login iloip -u username -p password --selector=Bios.

 

10G만 사용할 것이므로 1G 비활성 적용

ilorest --nologo --cache-dir=/tmp/cache-iloip load -f emb_disable.json
(rebooting 후 적용)

 

세션종료

ilorest --nologo --cache-dir=/tmp/cache-iloip logout

 

[참고]

conrep -s -f 파일명 = ilorest save --selector=Bios. -f 파일명

conrep -l -f 파일명 = ilorest load --selector=Bios. -f 파일명

댓글