Skip to content

Commit bd948be

Browse files
Merge pull request #17786 from t-mialve/t-mialve/u24-install
Add Ubuntu 24.04 install instructions
2 parents 8c47502 + 5452780 commit bd948be

File tree

6 files changed

+171
-22
lines changed

6 files changed

+171
-22
lines changed

.openpublishing.redirection.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1316,6 +1316,11 @@
13161316
"redirect_url": "/azure/azure-managed-lustre/client-install?pivots=ubuntu-22",
13171317
"redirect_document_id": false
13181318
},
1319+
{
1320+
"source_path": "azure-managed-lustre/install-ubuntu-24.md",
1321+
"redirect_url": "/azure/azure-managed-lustre/client-install?pivots=ubuntu-24",
1322+
"redirect_document_id": false
1323+
},
13191324
{
13201325
"source_path": "azure-stack/hci/get-started.md",
13211326
"redirect_url": "/azure-stack/hci/manage/monitor-cluster",

azure-managed-lustre/client-install.md

Lines changed: 89 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ms.topic: how-to
55
author: pauljewellmsft
66
ms.author: pauljewell
77
ms.reviewer: dsundarraj
8-
ms.date: 01/10/2025
8+
ms.date: 04/29/2025
99
zone_pivot_groups: select-os
1010

1111
---
@@ -89,11 +89,11 @@ This article shows how to install the client package to set up client VMs runnin
8989
```bash
9090
#!/bin/bash
9191
set -ex
92-
92+
9393
rpm --import https://packages.microsoft.com/keys/microsoft.asc
94-
94+
9595
DISTRIB_CODENAME=el8
96-
96+
9797
REPO_PATH=/etc/yum.repos.d/amlfs.repo
9898
echo -e "[amlfs]" > ${REPO_PATH}
9999
echo -e "name=Azure Lustre Packages" >> ${REPO_PATH}
@@ -125,11 +125,11 @@ This article shows how to install the client package to set up client VMs runnin
125125
```bash
126126
#!/bin/bash
127127
set -ex
128-
128+
129129
rpm --import https://packages.microsoft.com/keys/microsoft.asc
130-
130+
131131
DISTRIB_CODENAME=el7
132-
132+
133133
REPO_PATH=/etc/yum.repos.d/amlfs.repo
134134
echo -e "[amlfs]" > ${REPO_PATH}
135135
echo -e "name=Azure Lustre Packages" >> ${REPO_PATH}
@@ -160,11 +160,11 @@ This article shows how to install the client package to set up client VMs runnin
160160
```bash
161161
#!/bin/bash
162162
set -ex
163-
163+
164164
rpm --import https://packages.microsoft.com/keys/microsoft.asc
165-
165+
166166
DISTRIB_CODENAME=el8
167-
167+
168168
REPO_PATH=/etc/yum.repos.d/amlfs.repo
169169
echo -e "[amlfs]" > ${REPO_PATH}
170170
echo -e "name=Azure Lustre Packages" >> ${REPO_PATH}
@@ -195,11 +195,11 @@ This article shows how to install the client package to set up client VMs runnin
195195
```bash
196196
#!/bin/bash
197197
set -ex
198-
198+
199199
rpm --import https://packages.microsoft.com/keys/microsoft.asc
200-
200+
201201
DISTRIB_CODENAME=el9
202-
202+
203203
REPO_PATH=/etc/yum.repos.d/amlfs.repo
204204
echo -e "[amlfs]" > ${REPO_PATH}
205205
echo -e "name=Azure Lustre Packages" >> ${REPO_PATH}
@@ -241,12 +241,12 @@ This article shows how to install the client package to set up client VMs runnin
241241
```bash
242242
#!/bin/bash
243243
set -ex
244-
244+
245245
apt update && apt install -y ca-certificates curl apt-transport-https lsb-release gnupg
246246
source /etc/lsb-release
247247
echo "deb [arch=amd64] https://packages.microsoft.com/repos/amlfs-${DISTRIB_CODENAME}/ ${DISTRIB_CODENAME} main" | tee /etc/apt/sources.list.d/amlfs.list
248248
curl -sL https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor | tee /etc/apt/trusted.gpg.d/microsoft.gpg > /dev/null
249-
249+
250250
apt update
251251
```
252252

@@ -271,12 +271,12 @@ This article shows how to install the client package to set up client VMs runnin
271271
```bash
272272
#!/bin/bash
273273
set -ex
274-
274+
275275
apt update && apt install -y ca-certificates curl apt-transport-https lsb-release gnupg
276276
source /etc/lsb-release
277277
echo "deb [arch=amd64] https://packages.microsoft.com/repos/amlfs-${DISTRIB_CODENAME}/ ${DISTRIB_CODENAME} main" | tee /etc/apt/sources.list.d/amlfs.list
278278
curl -sL https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor | tee /etc/apt/trusted.gpg.d/microsoft.gpg > /dev/null
279-
279+
280280
apt update
281281
```
282282

@@ -322,7 +322,7 @@ This article shows how to install the client package to set up client VMs runnin
322322
1. Remove any kernels newer than the one mentioned in the LTS metapackage.
323323

324324
```bash
325-
sudo apt remove linux-image-5.15.0-1053-azure
325+
sudo apt remove linux-image-6.8.0-1027-azure
326326
```
327327

328328
You receive a warning about removing the kernels, but these steps work if you're following them on a newly provisioned host. If you have concerns, consult Ubuntu documentation on configuring kernels to ensure that they can start after a restart.
@@ -340,12 +340,12 @@ This article shows how to install the client package to set up client VMs runnin
340340
```bash
341341
#!/bin/bash
342342
set -ex
343-
343+
344344
apt update && apt install -y ca-certificates curl apt-transport-https lsb-release gnupg
345345
source /etc/lsb-release
346346
echo "deb [arch=amd64] https://packages.microsoft.com/repos/amlfs-${DISTRIB_CODENAME}/ ${DISTRIB_CODENAME} main" | tee /etc/apt/sources.list.d/amlfs.list
347347
curl -sL https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor | tee /etc/apt/trusted.gpg.d/microsoft.gpg > /dev/null
348-
348+
349349
apt update
350350
```
351351

@@ -363,6 +363,75 @@ This article shows how to install the client package to set up client VMs runnin
363363

364364
::: zone-end
365365

366+
::: zone pivot="ubuntu-24"
367+
368+
> [!IMPORTANT]
369+
> The Azure Marketplace image for the Ubuntu 24.04 LTS release uses the Hardware Enablement (HWE) kernel by default. However, HWE kernels are supported only for six-month periods, and Lustre support for these kernels is often not available when they're released. We recommend that you switch to the LTS kernel because it gives you more stability and it maintains a kernel version that's supported with the Lustre client.
370+
371+
1. Install the LTS kernel metapackage:
372+
373+
```bash
374+
sudo apt update && sudo apt install linux-image-azure-lts-24.04
375+
```
376+
377+
1. Remove the default (HWE) kernel metapackage. The response to the following command also asks you to remove the `linux-azure` metapackage.
378+
379+
```bash
380+
sudo apt remove linux-image-azure
381+
```
382+
383+
1. List installed kernels and see which one the LTS metapackage supplies:
384+
385+
```bash
386+
apt list --installed linux-image*
387+
```
388+
389+
Newly provisioned hosts have two kernels, and older hosts might have more. Compare the version that the LTS metapackage provides against the other installed kernels.
390+
391+
1. Remove any kernels newer than the one mentioned in the LTS metapackage.
392+
393+
```bash
394+
sudo apt remove linux-image-6.11.0-1013-azure
395+
```
396+
397+
You receive a warning about removing the kernels, but these steps work if you're following them on a newly provisioned host. If you have concerns, consult Ubuntu documentation on configuring kernels to ensure that they can start after a restart.
398+
399+
1. List installed kernels again to verify that you don't have kernels newer than the one mentioned in the LTS metapackage:
400+
401+
```bash
402+
apt list --installed linux-image*
403+
```
404+
405+
1. Restart to load the LTS kernel.
406+
407+
1. Install and configure the Azure Managed Lustre repository for the APT package manager. Create the following script and name it `repo.bash`:
408+
409+
```bash
410+
#!/bin/bash
411+
set -ex
412+
413+
apt update && apt install -y ca-certificates curl apt-transport-https lsb-release gnupg
414+
source /etc/lsb-release
415+
echo "deb [arch=amd64] https://packages.microsoft.com/repos/amlfs-${DISTRIB_CODENAME}/ ${DISTRIB_CODENAME} main" | tee /etc/apt/sources.list.d/amlfs.list
416+
curl -sL https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor | tee /etc/apt/trusted.gpg.d/microsoft.gpg > /dev/null
417+
418+
apt update
419+
```
420+
421+
1. Run the script as a superuser:
422+
423+
```bash
424+
sudo bash repo.bash
425+
```
426+
427+
1. Install the metapackage that matches your running kernel.
428+
429+
The following command installs a metapackage that keeps the version of Lustre aligned with the installed kernel. For this alignment to work, you must use `apt full-upgrade` instead of `apt upgrade` when updating your system.
430+
431+
[!INCLUDE [client-install-version-ubunt-24](./includes/client-install-version-ubuntu-24.md)]
432+
433+
::: zone-end
434+
366435
## Related content
367436

368437
- [Connect clients to an Azure Managed Lustre file system](connect-clients.md)

azure-managed-lustre/client-upgrade.md

Lines changed: 39 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ms.topic: how-to
55
author: pauljewellmsft
66
ms.author: pauljewell
77
ms.reviewer: dsundarraj
8-
ms.date: 01/10/2025
8+
ms.date: 04/29/2025
99

1010
---
1111

@@ -59,7 +59,7 @@ If your client machine uses an older version of Lustre, you can upgrade the Lust
5959

6060
If the output shows an old version of the Lustre kernel module, we recommend that you restart (`sudo reboot`) the system.
6161

62-
### [Ubuntu](#tab/ubuntu)
62+
### [Ubuntu 20.04/22.04](#tab/ubuntu)
6363

6464
1. Unmount any containers or mount points that are mounting the Lustre client by using the following command:
6565

@@ -97,6 +97,43 @@ If your client machine uses an older version of Lustre, you can upgrade the Lust
9797

9898
If the output shows an old version of the Lustre kernel module, we recommend that you restart (`sudo reboot`) the system.
9999

100+
### [Ubuntu 24.04](#tab/ubuntu24)
101+
102+
1. Unmount any containers or mount points that are mounting the Lustre client by using the following command:
103+
104+
```bash
105+
sudo umount <all Lustre mounts>
106+
```
107+
108+
1. Uninstall the existing Lustre client version by using the following command:
109+
110+
```bash
111+
sudo apt autoremove *lustre* -y
112+
```
113+
114+
1. Install the current version of the Lustre client by using the following command:
115+
116+
[!INCLUDE [client-upgrade-version-ubuntu](./includes/client-upgrade-version-ubuntu-24.md)]
117+
118+
1. Unload the Lustre and Lustre Networking (LNet) kernel modules by using the following command:
119+
120+
```bash
121+
sudo lustre_rmmod
122+
```
123+
124+
1. Verify that old kernel modules are removed by using the following command:
125+
126+
```bash
127+
cat /sys/module/lustre/version; lsmod | grep -E 'lustre|lnet'
128+
```
129+
130+
The output should look similar to the following example:
131+
132+
```bash
133+
cat: /sys/module/lustre/version: No such file or directory
134+
```
135+
136+
If the output shows an old version of the Lustre kernel module, we recommend that you restart (`sudo reboot`) the system.
100137
---
101138

102139
After you perform this procedure, you can [mount the client](connect-clients.md#start-the-lustre-client-by-using-the-mount-command) to your Azure Managed Lustre file system.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
author: t-mialve
3+
ms.author: normesta
4+
ms.service: azure-stack
5+
ms.topic: include
6+
ms.date: 04/29/2025
7+
ms.reviewer: rohogue
8+
---
9+
10+
> [!NOTE]
11+
> 2.16 is a non-LTS release of Lustre and will stop receiving support from the community soon after the release of 2.17. Please check back in late 2025/early 2026 for more information about the 2.17 release.
12+
13+
```bash
14+
sudo apt install amlfs-lustre-client-2.16.1-14-gbc76088=$(uname -r)
15+
```
16+
17+
> [!NOTE]
18+
> Running `apt search amlfs-lustre-client` doesn't show all available packages for your distribution. To see all available `amlfs-lustre-client` packages, run `apt list -a "amlfs-lustre-client*"`.
19+
20+
Optionally, if you want to upgrade *only* the kernel and not all packages, you must (at minimum) also upgrade the `amlfs-lustre-client` metapackage so that the Lustre client can continue to work after the restart. The command should look similar to the following example:
21+
22+
```bash
23+
apt upgrade linux-image-[new kernel version] amlfs-lustre-client-2.16.1-14-gbc76088
24+
```
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
author: t-mialve
3+
ms.author: normesta
4+
ms.service: azure-stack
5+
ms.topic: include
6+
ms.date: 04/29/2025
7+
ms.reviewer: rohogue
8+
---
9+
10+
```bash
11+
sudo apt install -y amlfs-lustre-client-2.16.1-14-gbc76088=$(uname -r)
12+
```

azure-stack/zone-pivot-groups.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ groups:
6666
title: Ubuntu 20.04
6767
- id: ubuntu-22
6868
title: Ubuntu 22.04
69+
- id: ubuntu-24
70+
title: Ubuntu 24.04
6971
- id: version-select
7072
title: AKS enabled by Azure Arc Azure Local versions
7173
prompt: AKS on Azure Local version

0 commit comments

Comments
 (0)