Week 9 Self-Check — Installation & Deployment

Closed book. Target ≥ 15/18.

1. In BCM, what is the difference between a node category and a software image?

Answer A software image is the filesystem (OS + packages) that gets provisioned onto nodes. A category is a group of nodes sharing settings — including *which* software image they get, plus disk layout, network config, and other properties. Many categories can point at different (or the same) images; you patch the image, and all nodes in categories using it pick it up on imageupdate/reboot.

2. Describe the BCM node provisioning sequence from power-on to a running compute node.

Answer Node PXE-boots from the provisioning (head) node → loads the node-installer environment → node is identified (MAC/position) and matched to its category → node-installer partitions disks per category layout and syncs the assigned software image → switches root into the installed OS and boots it → node reports up to CMDaemon.

3. Give the cmsh one-liner to list all devices, and the interactive sequence to power on node003.

Answer One-liner: cmsh -c "device; list". Interactive: cmsh → device → power -n node003 on (or use node003 then power on). Power control goes through the BMC/IPMI interface BCM manages.

4. You edited a setting in cmsh but it isn’t taking effect. What did you probably forget?

Answer commit. cmsh changes are staged and only applied when committed (Base View has the equivalent Save). Uncommitted changes are shown by refresh/prompt markers.

5. What is the correct way to patch OS packages across 200 BCM compute nodes?

Answer Patch the software image, not the nodes: chroot into the image on the head node (cm-chroot-sw-img /cm/images/<image>), run apt/yum update inside, exit, then push with imageupdate (live sync) or reboot nodes per category. Hand-patching live nodes drifts from the image and is undone at next provisioning.

6. Name the three core Slurm daemons and where each runs.

Answer slurmctld — controller, on the head/controller node (optionally HA pair). slurmd — on every compute node, launches jobs. slurmdbd — accounting daemon, fronts the MySQL/MariaDB accounting database, usually on the head or a DB node. (Plus munge everywhere for auth.)

7. Slurm jobs fail with credential/auth errors on some nodes. Two classic root causes?

Answer Munge key mismatch (the same /etc/munge/munge.key must be on every node) and clock skew (munge credentials are time-stamped — nodes need NTP-synced clocks).

8. Write a minimal slurm.conf node + partition definition for node01 with one L4 GPU, 8 CPUs, 30 GB RAM.

Answer
GresTypes=gpu
SelectType=select/cons_tres
NodeName=node01 CPUs=8 RealMemory=30000 Gres=gpu:l4:1 State=UNKNOWN
PartitionName=gpu Nodes=node01 Default=YES MaxTime=INFINITE State=UP
And gres.conf on node01: AutoDetect=nvml (or Name=gpu Type=l4 File=/dev/nvidia0).

9. What does AutoDetect=nvml in gres.conf do, and what’s the manual alternative?

Answer It makes slurmd query the NVIDIA driver via NVML to discover GPUs (count, type, device files, NUMA/core affinity) automatically. Manual alternative: explicit lines like Name=gpu Type=a100 File=/dev/nvidia0 Cores=0-15 per GPU.

10. In what order do you upgrade Slurm components, and why?

Answer slurmdbd first, then slurmctld, then slurmd (then client commands). Newer daemons speak older RPC protocols (typically two versions back) but not vice versa, so the DB/controller must be newest to keep accepting traffic from not-yet-upgraded slurmds.

11. List the GPU Operator components in dependency order and one sentence on each.

Answer (1) NFD/GFD — label nodes with GPU presence/attributes; (2) driver DaemonSet — kernel driver as a container (skip with driver.enabled=false if pre-installed); (3) container toolkit — installs nvidia-container-runtime and configures containerd; (4) device plugin — advertises nvidia.com/gpu to kubelet; (5) DCGM exporter — GPU metrics for Prometheus; (6) MIG Manager — applies MIG partition configs; plus validator pods that gate readiness.

12. When must you set driver.enabled=false when installing GPU Operator?

Answer When the node already has the NVIDIA driver installed on the host — e.g. DGX OS, cloud GPU images with pre-baked drivers, or admin-managed drivers. The operator then only deploys toolkit/plugin/DCGM etc. Running the driver container on top of an existing host driver fails.

13. What is CDI and how does it relate to the container toolkit?

Answer Container Device Interface — a vendor-neutral spec (JSON files describing device nodes, mounts, hooks) for exposing devices to containers. nvidia-ctk generates CDI specs; runtimes (containerd/CRI-O/podman) inject GPUs from them, replacing the legacy runtime-hook injection. GPU Operator can enable it with cdi.enabled=true.

14. kubeadm init succeeded but pods stay Pending with no network. What’s missing?

Answer A CNI plugin. kubeadm does not install one; nodes stay NotReady/coredns Pending until you apply Calico/Flannel/Cilium etc., matching the --pod-network-cidr you gave kubeadm init.

15. Which BCM wizards deploy Slurm and Kubernetes respectively?

Answer cm-wlm-setup for workload managers (Slurm etc.) and cm-kubernetes-setup for Kubernetes. Both configure the cluster from the head node using BCM's knowledge of nodes/categories.

16. Name the four logically separate networks in a typical GPU cluster and what runs on each.

Answer Management/provisioning network (PXE, BCM CMDaemon, SSH); out-of-band/BMC network (IPMI/Redfish power and console); high-speed compute fabric (InfiniBand or RoCE — NCCL inter-node traffic); storage network (parallel FS traffic, sometimes shared with compute fabric). Exam angle: know which failure shows up where.

17. Which DCGM metric names would you alert on for (a) GPU utilization, (b) framebuffer memory used, (c) Xid errors?

Answer (a) DCGM_FI_DEV_GPU_UTIL, (b) DCGM_FI_DEV_FB_USED, (c) DCGM_FI_DEV_XID_ERRORS — all exposed by dcgm-exporter on :9400/metrics.

18. How do you add user alice to BCM, and separately give her a Slurm account association?

Answer BCM: cmsh → user → add alice → set properties → commit (stored in BCM's LDAP). Slurm accounting: sacctmgr add account research then sacctmgr add user alice account=research — without an association (when AccountingStorageEnforce includes associations) her jobs are rejected.

This site uses Just the Docs, a documentation theme for Jekyll.