Skip to content

Commit 7cf95da

Browse files
Update cloud init scripts
1 parent 3811bd0 commit 7cf95da

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

files/oke-nvme-raid.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@ fi
4343
# Determine config for detected device count and RAID level
4444
count=${#devices[@]}; bs=4; chunk=256
4545
stride=$((chunk/bs)) # chunk size / block size
46+
47+
# If only 1 device, force RAID level 0
48+
if [[ $count -eq 1 ]]; then
49+
level=0
50+
fi
51+
4652
eff_count=$count # $level == 0
4753
if [[ $level == 10 ]]; then eff_count=$((count/2)); fi
4854
if [[ $level == 5 ]]; then eff_count=$((count-1)); fi

files/oke-ubuntu-cloud-init.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@ else
88
exit 1
99
fi
1010

11+
# Disable nvidia-imex.service for GB200 and GB300 shapes for Dynamic Resource Allocation (DRA) compatibility
12+
SHAPE=$(curl -H "Authorization: Bearer Oracle" -L http://169.254.169.254/opc/v2/instance/shape)
13+
if [[ "$SHAPE" == BM.GPU.GB200* ]] || [[ "$SHAPE" == BM.GPU.GB300* ]]; then
14+
echo "Disabling nvidia-imex.service for shape: $SHAPE"
15+
systemctl disable --now nvidia-imex.service && systemctl mask nvidia-imex.service
16+
fi
17+
1118
case "$ID" in
1219
ubuntu)
1320
echo "Detected Ubuntu"

0 commit comments

Comments
 (0)