Skip to content

fix: reuse existing local storage RAID array after volume replacement - #2869

Merged
lawraa merged 3 commits into
awslabs:mainfrom
lawraa:fix/raid0-root-volume-replacement
Oct 28, 2026
Merged

lawraa merged 3 commits into
awslabs:mainfrom
lawraa:fix/raid0-root-volume-replacement

Conversation

@lawraa

@lawraa lawraa commented Oct 27, 2026

Copy link
Copy Markdown
Contributor

Issue #, if available: #2867

Description of changes:
setup-local-disks creates RAID array whenever /.aws/mdadm.conf is missing. The file is on root volume, so whenever there's a root volume replacement, the scripts tries to create new array on the already existing array, so nodeadm-run fails and return Device or resource busy.

This PR only create array when array exist instead of relying on md_config and always rewrite the the md_config after. Applied to both al2023 and al2027

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Testing Done

See this guide for recommended testing for PRs. Some tests may not apply. Completing tests and providing additional validation steps are not required, but it is recommended and may reduce review time and time to merge.

@lawraa
lawraa requested a review from a team as a code owner October 27, 2026 19:06
@lawraa
lawraa requested a review from mselim00 October 27, 2026 19:06

@mselim00 mselim00 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, thanks 🚀

@lawraa
lawraa merged commit f113a68 into awslabs:main Oct 28, 2026
2 checks passed
@lawraa
lawraa deleted the fix/raid0-root-volume-replacement branch October 28, 2026 23:37
@github-actions

Copy link
Copy Markdown
Contributor

@lawraa this PR is not currently mergeable, you'll need to rebase it first.

jackmisbach added a commit to METR/hawk that referenced this pull request Nov 16, 2026
* fix(infra): bump the AL2023 node AMIs to v20261107

The gVisor, glovebox and Nitro pools boot the AL2023 EKS AMI, and the
GPU pools its NVIDIA variant, both pinned at v20261031. v20261107 keeps
that release's kernels, containerd, runc and NVIDIA driver. Three of
its changes can act on a Hawk node:

- AWS rebuilt the node binaries (kubelet v1.36.5-eks-6e7947a to
  eks-8418f54) in its 2026-11-06 bundle, the one the Nitro bootstrap
  already takes its runtime and guest image from, and publishes no
  change list for them
- an instance-store RAID0 array is found again after a root volume
  replacement (awslabs/amazon-eks-ami#2869)
- systemd restarts NVIDIA's fabric manager when it fails to start on a
  host with an NVSwitch (awslabs/amazon-eks-ami#2871)

Co-Authored-By: Claude <noreply@anthropic.com>

* docs: stop promising EPERM from io_uring_setup under gVisor

The hardening guide and the upgrade note promised EPERM on gVisor nodes.
A gVisor sandbox's syscalls go to gVisor's own kernel, which returns
ENOSYS for io_uring_setup unless runsc runs with --iouring (release
20260914.0, pkg/sentry/syscalls/linux/sys_iouring.go). EPERM is what the
sysctl gives a container on the node's kernel, and on a gVisor node only
one without CAP_SYS_ADMIN. The guide now names no error, and the upgrade
note says which containers get EPERM.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug(nodeadm): RAID0 local storage node fails to join after root volume replacement

2 participants