HPE Gen9 이하에서는 이미 boot order 설정이 되어 있는 서버가 있는 경우 conrep 명령을 통해 bios 설정을 저장해서 다른 서버에도 적용 할 수 있었는데, Gen10에서는 conrep 으로 설정을 적용하면 boot order 가 원하는대로 변경되지 않는 경우가 있었다.
콘솔에 접속해서 변경하자니 귀찮고, 특히나 관리하는 서버의 대수가 많은 경우에는 어느세월에 하고 있어!
그래서 ilorest 를 사용해보았다.
Redhat Linux 환경
일단 세션연결을 하자
ilorest --nologo --cache-dir=/tmp/cache-iloip login iloip -u username -p password
현재 boot order 확인
ilorest --nologo --cache-dir=/tmp/cache-iloip bootorder
https://hewlettpackard.github.io/python-redfish-utility/#bootorder-command 에서 가져온 결과 예 수정
Discovering data...Done Current Persistent Boot Order: 1. HD.EmbRAID.1.6 (sles-secureboot) 2. HD.EmbRAID.1.7 (Windows Boot Manager) 3. HD.EmbRAID.1.8 (Red Hat Enterprise Linux) 4. NIC.LOM.1.1.Httpv4 (Embedded LOM 1 Port 1 : HPE Ethernet 1Gb 4-port 331i Adapter - NIC (HTTP(S) IPv4)) 5. HD.EmbRAID.1.2 (Embedded RAID 1 : HPE Smart Array P408i-a SR Gen10 - Size:279.3 GiB Port:1I Bay:1 Box:1) 6. HD.SD.1.2 (Internal SD Card 1 : Generic USB3.0-CRW) 7. NIC.LOM.1.1.IPv4 (Embedded LOM 1 Port 1 : HPE Ethernet 1Gb 4-port 331i Adapter - NIC (PXE IPv4)) 8. HD.EmbRAID.1.3 (Embedded RAID 1 : HPE Smart Array P408i-a SR Gen10 - Size:279.3 GiB Port:1I Bay:2 Box:1) 9. HD.EmbRAID.1.4 (Embedded RAID 1 : HPE Smart Array P408i-a SR Gen10 - Size:279.3 GiB Port:1I Bay:3 Box:1) 10. HD.EmbRAID.1.5 (Embedded RAID 1 : HPE Smart Array P408i-a SR Gen10 - Size:279.3 GiB Port:1I Bay:4 Box:1) 11. Generic.USB.1.1 (Generic USB Boot) 12. NIC.LOM.1.1.Httpv6 (Embedded LOM 1 Port 1 : HPE Ethernet 1Gb 4-port 331i Adapter - NIC (HTTP(S) IPv6)) 13. NIC.LOM.1.1.IPv6 (Embedded LOM 1 Port 1 : HPE Ethernet 1Gb 4-port 331i Adapter - NIC (PXE IPv6)) Continuous and one time boot options: 1. None 2. Cd 3. Hdd 4. Usb 5. SDCard 6. Utilities 7. Diags 8. BiosSetup 9. Pxe 10. UefiShell 11. UefiHttp 12. UefiTarget Continuous and one time boot uefi options: 1. HD.EmbRAID.1.7 (Windows Boot Manager) 2. HD.EmbRAID.1.6 (sles-secureboot) 3. HD.EmbRAID.1.8 (Red Hat Enterprise Linux) 4. NIC.LOM.1.1.Httpv4 (Embedded LOM 1 Port 1 : HPE Ethernet 1Gb 4-port 331i Adapter - NIC (HTTP(S) IPv4)) 5. NIC.LOM.1.1.IPv4 (Embedded LOM 1 Port 1 : HPE Ethernet 1Gb 4-port 331i Adapter - NIC (PXE IPv4)) 6. HD.SD.1.2 (Internal SD Card 1 : Generic USB3.0-CRW) 7. HD.EmbRAID.1.2 (Embedded RAID 1 : HPE Smart Array P408i-a SR Gen10 - Size:279.3 GiB Port:1I Bay:1 Box:1) 8. HD.EmbRAID.1.3 (Embedded RAID 1 : HPE Smart Array P408i-a SR Gen10 - Size:279.3 GiB Port:1I Bay:2 Box:1) 9. HD.EmbRAID.1.4 (Embedded RAID 1 : HPE Smart Array P408i-a SR Gen10 - Size:279.3 GiB Port:1I Bay:3 Box:1) 10. HD.EmbRAID.1.5 (Embedded RAID 1 : HPE Smart Array P408i-a SR Gen10 - Size:279.3 GiB Port:1I Bay:4 Box:1) 11. Generic.USB.1.1 (Generic USB Boot) 12. NIC.LOM.1.1.Httpv6 (Embedded LOM 1 Port 1 : HPE Ethernet 1Gb 4-port 331i Adapter - NIC (HTTP(S) IPv6)) 13. NIC.LOM.1.1.IPv6 (Embedded LOM 1 Port 1 : HPE Ethernet 1Gb 4-port 331i Adapter - NIC (PXE IPv6)) |
boot order 변경하기
(숫자는 Current Persistent Boot Order 기준이다.)
예) Red Hat Linux 부팅(3번)을 최우선으로 하고, Embedded LOM 1 Port 1 (IPv4) (7번)을 4번 앞으로 둘거야!
원하는 결과=> 3,1,2,7,4,5,6,8,9,10,11,12,13
ilorest --nologo --cache-dir=/tmp/cache-iloip bootorder [3,1,2,7] --commit
Committing changes... One or more properties were changed and will not take effect until system is reset. |
서버 리부팅 후 적용된다.
다시 확인 하면,
[] 안에 써준 순서대로 맨 앞에 오게되고, 나머지는 기존에 설정되어 있던 순서대로 뒤에 오게 된다.
Current Persistent Boot Order: 1. HD.EmbRAID.1.8 (Red Hat Enterprise Linux) 2. HD.EmbRAID.1.6 (sles-secureboot) ... |
세션 종료
ilorest --nologo --cache-dir=/tmp/cache-iloip logout
부팅 순서 설정 규칙이 따로 정해져 있다면 스크립트로 작성하기도 편하겠지.
'공부하자' 카테고리의 다른 글
HPE Proliant Gen10 - PCI Slot 사용여부 설정 방법 (ilorest) (0) | 2020.05.03 |
---|---|
Redhat Linux 7 - 부팅 실패. error: not a correct XFS inode. (0) | 2020.04.29 |
Redhat Linux - 강제 rebooting (0) | 2020.04.29 |
댓글