Skip to content

Commit 926c1ad

Browse files
mharding-hpedenniswalker
authored andcommitted
CASMINST-3109: Update boot order set instructions to account for inactive boot options
1 parent 1406155 commit 926c1ad

File tree

1 file changed

+20
-11
lines changed

1 file changed

+20
-11
lines changed

background/ncn_boot_workflow.md

+20-11
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ Setting the boot order with efibootmgr will ensure that the desired network inte
108108

109109
> **`NOTE`** The four digit hex numbers shown in the examples below may be different, even between nodes of the same function and vendor. The first two efibootmgr commands will display the correct hex numbers for the third efibootmgr command to use in setting the proper boot order.
110110
111-
1. Create our boot-bios-selector file(s) based on the manufacturer:
111+
Follow the section corresponding to the hardware manufacturer of the system:
112112

113113
> <a name="gigabyte-technology"></a>
114114
> #### Gigabyte Technology
@@ -122,8 +122,9 @@ Setting the boot order with efibootmgr will ensure that the desired network inte
122122
> ncn-m# efibootmgr | grep cray | tee /tmp/bbs2
123123
> Boot0000* cray (sda1)
124124
> Boot0002* cray (sdb1)
125-
> ncn-m# efibootmgr -o $(cat /tmp/bbs* | awk '!x[$0]++' | sed 's/^Boot//g' | awk '{print $1}' | tr -t '*' ',' | tr -d '\n' | sed 's/,$//') | grep -i bootorder
125+
> ncn-m# efibootmgr -o $(cat /tmp/bbs* | awk '!x[$0]++' | sed 's/^Boot//g' | tr -d '*' | awk '{print $1}' | tr -t '\n' ',' | sed 's/,$//') | grep -i bootorder
126126
> BootOrder: 0007,0009,0000,0002
127+
> ncn-m# cat /tmp/bbs* | awk '!x[$0]++' | sed 's/^Boot//g' | tr -d '*' | awk '{print $1}' | xargs -r -t -i efibootmgr -b {} -a
127128
> ```
128129
>
129130
> ##### Storage
@@ -135,8 +136,9 @@ Setting the boot order with efibootmgr will ensure that the desired network inte
135136
> ncn-s# efibootmgr | grep cray | tee /tmp/bbs2
136137
> Boot0000* cray (sda1)
137138
> Boot0002* cray (sdb1)
138-
> ncn-s# efibootmgr -o $(cat /tmp/bbs* | awk '!x[$0]++' | sed 's/^Boot//g' | awk '{print $1}' | tr -t '*' ',' | tr -d '\n' | sed 's/,$//') | grep -i bootorder
139+
> ncn-s# efibootmgr -o $(cat /tmp/bbs* | awk '!x[$0]++' | sed 's/^Boot//g' | tr -d '*' | awk '{print $1}' | tr -t '\n' ',' | sed 's/,$//') | grep -i bootorder
139140
> BootOrder: 0007,0009,0000,0002
141+
> ncn-s# cat /tmp/bbs* | awk '!x[$0]++' | sed 's/^Boot//g' | tr -d '*' | awk '{print $1}' | xargs -r -t -i efibootmgr -b {} -a
140142
> ```
141143
>
142144
> ##### Workers
@@ -152,8 +154,9 @@ Setting the boot order with efibootmgr will ensure that the desired network inte
152154
> ncn-w# efibootmgr | grep cray | tee /tmp/bbs2
153155
> Boot0000* cray (sda1)
154156
> Boot0002* cray (sdb1)
155-
> ncn-w# efibootmgr -o $(cat /tmp/bbs* | awk '!x[$0]++' | sed 's/^Boot//g' | awk '{print $1}' | tr -t '*' ',' | tr -d '\n' | sed 's/,$//') | grep -i bootorder
157+
> ncn-w# efibootmgr -o $(cat /tmp/bbs* | awk '!x[$0]++' | sed 's/^Boot//g' | tr -d '*' | awk '{print $1}' | tr -t '\n' ',' | sed 's/,$//') | grep -i bootorder
156158
> BootOrder: 0009,0007,000B,0000,0002
159+
> ncn-w# cat /tmp/bbs* | awk '!x[$0]++' | sed 's/^Boot//g' | tr -d '*' | awk '{print $1}' | xargs -r -t -i efibootmgr -b {} -a
157160
> ```
158161
>
159162
> <a name="hewlett-packard-enterprise"></a>
@@ -169,8 +172,9 @@ Setting the boot order with efibootmgr will ensure that the desired network inte
169172
> ncn-m# efibootmgr | grep cray | tee /tmp/bbs2
170173
> Boot0021* cray (sdb1)
171174
> Boot0022* cray (sdc1)
172-
> ncn-m# efibootmgr -o $(cat /tmp/bbs* | awk '!x[$0]++' | sed 's/^Boot//g' | awk '{print $1}' | tr -t '*' ',' | tr -d '\n' | sed 's/,$//') | grep -i bootorder
175+
> ncn-m# efibootmgr -o $(cat /tmp/bbs* | awk '!x[$0]++' | sed 's/^Boot//g' | tr -d '*' | awk '{print $1}' | tr -t '\n' ',' | sed 's/,$//') | grep -i bootorder
173176
> BootOrder: 0014,0018,0021,0022
177+
> ncn-m# cat /tmp/bbs* | awk '!x[$0]++' | sed 's/^Boot//g' | tr -d '*' | awk '{print $1}' | xargs -r -t -i efibootmgr -b {} -a
174178
> ```
175179
>
176180
> ##### Storage
@@ -182,8 +186,9 @@ Setting the boot order with efibootmgr will ensure that the desired network inte
182186
> ncn-s# efibootmgr | grep cray | tee /tmp/bbs2
183187
> Boot0002* cray (sdg1)
184188
> Boot0020* cray (sdh1)
185-
> ncn-s# efibootmgr -o $(cat /tmp/bbs* | awk '!x[$0]++' | sed 's/^Boot//g' | awk '{print $1}' | tr -t '*' ',' | tr -d '\n' | sed 's/,$//') | grep -i bootorder
189+
> ncn-s# efibootmgr -o $(cat /tmp/bbs* | awk '!x[$0]++' | sed 's/^Boot//g' | tr -d '*' | awk '{print $1}' | tr -t '\n' ',' | sed 's/,$//') | grep -i bootorder
186190
> BootOrder: 001C,001D,0002,0020
191+
> ncn-s# cat /tmp/bbs* | awk '!x[$0]++' | sed 's/^Boot//g' | tr -d '*' | awk '{print $1}' | xargs -r -t -i efibootmgr -b {} -a
187192
> ```
188193
>
189194
> ##### Workers
@@ -195,8 +200,9 @@ Setting the boot order with efibootmgr will ensure that the desired network inte
195200
> ncn-w# efibootmgr | grep cray | tee /tmp/bbs2
196201
> Boot0017* cray (sdb1)
197202
> Boot0018* cray (sdc1)
198-
> ncn-w# efibootmgr -o $(cat /tmp/bbs* | awk '!x[$0]++' | sed 's/^Boot//g' | awk '{print $1}' | tr -t '*' ',' | tr -d '\n' | sed 's/,$//') | grep -i bootorder
203+
> ncn-w# efibootmgr -o $(cat /tmp/bbs* | awk '!x[$0]++' | sed 's/^Boot//g' | tr -d '*' | awk '{print $1}' | tr -t '\n' ',' | sed 's/,$//') | grep -i bootorder
199204
> BootOrder: 0012,0017,0018
205+
> ncn-w# cat /tmp/bbs* | awk '!x[$0]++' | sed 's/^Boot//g' | tr -d '*' | awk '{print $1}' | xargs -r -t -i efibootmgr -b {} -a
200206
> ```
201207
>
202208
> <a name="intel-corporation"></a>
@@ -210,8 +216,9 @@ Setting the boot order with efibootmgr will ensure that the desired network inte
210216
> ncn-m# efibootmgr | grep -i 'cray' | tee /tmp/bbs2
211217
> Boot0011* cray (sda1)
212218
> Boot0012* cray (sdb1)
213-
> ncn-m# efibootmgr -o $(cat /tmp/bbs* | awk '!x[$0]++' | sed 's/^Boot//g' | awk '{print $1}' | tr -t '*' ',' | tr -d '\n' | sed 's/,$//') | grep -i bootorder
219+
> ncn-m# efibootmgr -o $(cat /tmp/bbs* | awk '!x[$0]++' | sed 's/^Boot//g' | tr -d '*' | awk '{print $1}' | tr -t '\n' ',' | sed 's/,$//') | grep -i bootorder
214220
> BootOrder: 000E,0014,0011,0012
221+
> ncn-m# cat /tmp/bbs* | awk '!x[$0]++' | sed 's/^Boot//g' | tr -d '*' | awk '{print $1}' | xargs -r -t -i efibootmgr -b {} -a
215222
>```
216223
> ##### Storage
217224
> ```bash
@@ -221,8 +228,9 @@ Setting the boot order with efibootmgr will ensure that the desired network inte
221228
> ncn-s# efibootmgr | grep -i 'cray' | tee /tmp/bbs2
222229
> Boot0014* cray (sda1)
223230
> Boot0015* cray (sdb1)
224-
> ncn-s# efibootmgr -o $(cat /tmp/bbs* | awk '!x[$0]++' | sed 's/^Boot//g' | awk '{print $1}' | tr -t '*' ',' | tr -d '\n' | sed 's/,$//') | grep -i bootorder
231+
> ncn-s# efibootmgr -o $(cat /tmp/bbs* | awk '!x[$0]++' | sed 's/^Boot//g' | tr -d '*' | awk '{print $1}' | tr -t '\n' ',' | sed 's/,$//') | grep -i bootorder
225232
> BootOrder: 000E,0012,0014,0015
233+
> ncn-s# cat /tmp/bbs* | awk '!x[$0]++' | sed 's/^Boot//g' | tr -d '*' | awk '{print $1}' | xargs -r -t -i efibootmgr -b {} -a
226234
> ```
227235
> ##### Workers
228236
>
@@ -233,8 +241,9 @@ Setting the boot order with efibootmgr will ensure that the desired network inte
233241
> ncn-w# efibootmgr | grep -i 'cray' | tee /tmp/bbs2
234242
> Boot0010* cray (sda1)
235243
> Boot0011* cray (sdb1)
236-
> ncn-w# efibootmgr -o $(cat /tmp/bbs* | awk '!x[$0]++' | sed 's/^Boot//g' | awk '{print $1}' | tr -t '*' ',' | tr -d '\n' | sed 's/,$//') | grep -i bootorder
244+
> ncn-w# efibootmgr -o $(cat /tmp/bbs* | awk '!x[$0]++' | sed 's/^Boot//g' | tr -d '*' | awk '{print $1}' | tr -t '\n' ',' | sed 's/,$//') | grep -i bootorder
237245
> BootOrder: 0008,000C,0010,0011
246+
> ncn-w# cat /tmp/bbs* | awk '!x[$0]++' | sed 's/^Boot//g' | tr -d '*' | awk '{print $1}' | xargs -r -t -i efibootmgr -b {} -a
238247
> ```
239248
240249
After following the steps above on a given NCN, that NCN will now use the desired Shasta boot order.
@@ -271,7 +280,7 @@ Simply run the reverse-pattern of the PXE commands from the [setting boot order]
271280
2. Remove them:
272281
273282
```bash
274-
ncn# cat /tmp/rbbs* | awk '!x[$0]++' | sed 's/^Boot//g' | awk '{print $1}' | tr -d '*' | xargs -t -i efibootmgr -b {} -B
283+
ncn# cat /tmp/rbbs* | awk '!x[$0]++' | sed 's/^Boot//g' | awk '{print $1}' | tr -d '*' | xargs -r -t -i efibootmgr -b {} -B
275284
```
276285
277286
Your boot menu should be trimmed down to contain only relevant entries.

0 commit comments

Comments
 (0)