logo
Published on

Woowangthon 17. Overwriting the Disks on Award Day

Authors
  • avatar
    Name
    seren-wib
    Twitter
Contents

0. Introduction

Part 17 and the last post of the series. The regression test on submission day is in part 16, the disk images taken at the start for this very return are in part 3, and the big picture is in Woowangthon 0.

The contest ended on November 21, and the three borrowed school PCs had to go back in the state we received them. Deleting, one by one, what I had installed over three weeks would be easy to get wrong, so I chose to overwrite them with the disk images taken at the start.

In restaurant terms, it is emptying a borrowed kitchen before handing it back. You restore it to the photos taken before opening, take out the recipe notes you want to keep, cancel the credit accounts with suppliers, and return the keys last. The kitchen photos are the disk images taken with Clonezilla plus the BIOS photos, the recipe notes are the leader's Prometheus metrics data, the credit accounts are the Cloudflare Tunnels, keys and certificates left in the cloud, and the keys are the device entries in the Tailscale admin console.

We submitted with the 18:00 commit on November 15, and at the finals on November 21 team 18 won the Excellence Award (School of Electrical Engineering Head's Award). That evening I moved the leader's metrics to an external disk, deleted what was left in the cloud, and overwrote the three PCs. Removing them from the admin console on November 26 finished the return on the school side.

1. Submission, finals and the award

DateWhat
November 15 18:00Submission deadline. Judged on the main commit at this time
November 16~20Preliminary judging, 10 teams picked for the finals
November 21 13:00~Finals. Each team gets a 10-minute talk (demo video included) and 5 minutes of Q&A

On the morning of submission day I ran the demo path again from start to finish on the new main, and that afternoon I fixed two failures and passed them on a rerun. That story is part 16. Judging used the 18:00 commit after that.

The finals started at 13:00 on Saturday, November 21. In the Q&A after the talk, I answered part of the cluster questions. Since the design runs student services on three school PCs, I expected questions like what happens if the leader goes down, or how many students it can take. So I took the infrastructure questions from the team's list of expected questions and put them in one document I could read on my phone right before the talk. A Claude Code session put the document together, and I decided which questions stayed or went and which answers to rewrite shorter. 14 questions were left.

Team 18 on the finals stage holding the Excellence Award plaque

AI WOOWANG THON Final Round, November 21. I am in the middle. My teammates' faces on either side are masked

Out of the 10 teams in the finals, team 18 (3 people) won the Excellence Award (School of Electrical Engineering Head's Award). The hosts were the CBNU AI Bootcamp program (충북대학교 AI부트캠프사업단) and LIKELION CBNU (충북대학교 멋쟁이사자처럼).

2. My part of the cluster

Parts 2 through 16 of this series are the story of the school PC cluster I was in charge of. I built the cluster from start to finish. Grouped by stage:

StageWhat I didPost
DesignA network design that flipped four times: classroom PCs to dedicated PCs, Wi-Fi to the wall portPart 2
1 Image backupImaging all three disks with Clonezilla before changing anything, with verificationPart 3
2 Remote accessA way in from home over Tailscale, an SSH key per device, booting back up after a power lossPart 4
3 Node prepConfig changes that roll themselves back if the link drops, node addresses, firewallPart 5
4 Clusterk3s install with flannel host-gw, reboot test, vLLM on the leader GPU, the leader image cachePart 6, Part 7, Part 8
5 Student spacesThe space template, resource limits, proving the blocks with a control spacePart 9
6 Connect to the outsideThe Cloudflare Tunnel and visitor addresses, the platform server account, the deploy executor on the leader, the EC2 joining the tailnet, GoCD registrationPart 10, Part 11, Part 12, Part 14, Part 15
7 MonitoringPrometheus and Grafana, the platform server's path to query metricsPart 13
Pre-submission checkDemo-path regression test on the new main, fixing two bugs that only showed when runs overlappedPart 16
End: returnThis postSections 3–7

3. What set the return order

Return order. On November 21: back up the leader data, clean up the cloud, Clonezilla restoredisk on three PCs, put the BIOS back. On November 26: remove the three PCs from the admin console

This is where the reason for choosing a disk image over "deleting things one by one" in part 3 pays off. I don't have to delete, item by item, the k3s, student data, public keys, sudo settings and Tailscale installed on the three PCs over three weeks. One restoredisk brings a disk back to the state imaged on November 4, which is the state we received.

There are things an image can't erase, though. They set the order.

OrderWhatWhy it has to come first
1Back up leader datarestoredisk erases the leader disk. Anything worth keeping has to leave first
2Cloud cleanupCloudflare Tunnels, keys and certificates live outside the disk. They survive an overwrite
3restoredisk ×3Back to the disk as received
4Put the BIOS backBIOS settings live on the motherboard, not on the disk
5Remove from admin consoleDelete only after seeing that the three will never come back

4. What I kept before the overwrite

The leader held about 10 days of cluster metrics that Prometheus had collected since the night of November 11. An overwrite would erase them, so they came out first.

FileSizeContent
prometheus-tsdb.tar4.76 GBPrometheus data. 17 blocks, November 11 22:54 ~ November 21 18:39
grafana-data.tar58.6 MBGrafana dashboards and settings
cluster-state.txtCluster state right before the overwrite
prometheus-cr.yamlPrometheus configuration

I stopped Prometheus and Grafana before copying. Archiving a data folder while it is being written can capture a half-written block. The copy took 16 seconds, and I remounted the external disk and compared SHA-256 values. All three files matched. This backup currently lives on that one external disk only.

5. Cloud cleanup

These are the things left outside the disks. I handed this job to a Claude Code session, and I checked the list of what to delete and decided how to proceed.

WhereWhat was deleted
Cloudflare4 DNS records (wildcard, api., app., certificate validation), 2 tunnels (the leader's visitor entrance, the EC2's api. entrance)
AWS SSM8 parameters. Tunnel token, vLLM API key, GoCD auto-register key, admin password and notify token, the server account's connection details
GoCDScaled the leader executor to replicas 0, then disabled and deleted the leader GoCD Agent on the server
AWS ACMDetached the app. address and certificate from CloudFront, and deleted the certificate once nothing used it (18:47)
Tailscale1 EC2 device, 6 shares on the three nodes (one teammate plus one share link per node)
AWS Elastic IPConfirmed none was ever created

The ACM certificate didn't delete right away. Deletion is refused while a CloudFront distribution still uses the certificate. So I detached it from CloudFront first, and deleted it after that change had deployed and the certificate's users (InUseBy) dropped to 0.

The student service images (GHCR) and the registry write token belong to the bot account, so that account's owner cleans them up. The Grafana view-only password went away with the leader disk.

6. Overwriting the three PCs

On site, I booted each PC from the Clonezilla USB and ran restoredisk. The source is the image taken in part 3, and the target is the internal NVMe. From imaging on November 4 to the overwrite on November 21 is 17 days.

PCImageTargetCheck
Worker 1k3s-w1-orig-2026-11-04nvme0n1 931.5GImage check 3 min 44 s (9.00 GB/min), Cloning finished
Worker 2k3s-w2-orig-2026-11-04nvme0n1 931.5GTarget confirmed with lsblk before the restore
Leaderk3s-leader-orig-2026-11-04nvme0n1 931.5GTarget confirmed with lsblk before the restore

The same trap as imaging sits here, pointing the other way. In part 3 the device names differed from PC to PC. Picking the wrong target this time would overwrite the external disk that holds the images. So before each restore I checked size and model with lsblk and picked only the 931.5G internal NVMe as the target.

For worker 1 I recorded the check time and the completion screen. For worker 2 and the leader I only confirmed that the restore and boot finished, and didn't keep a record of the target disk screen or the check time.

7. BIOS reset and the admin console

I had changed one thing in the BIOS. In part 4 I set "Restore after AC Power Loss" to Power On so the PCs would come back after an outage. On all three I set it back to Power Off as in the part 3 photos, saved, booted normally, and saw the same screen as when we received them.

With Tailscale wiped by the overwrite, the three PCs sat offline in the admin console from November 21. On November 26 I removed them under Machines in the console (6 devices to 3). The k3s-* entries in the ACL made for the nodes and the teammate share rule went out the same day, when I rewrote the ACL. The return stage's done criterion, "all three exactly as in the first images, BIOS matching the photos", closed here.

8. Reflection

One disk image taken at the start stands in for most of the return list, so prepare the return on day one.