palace's devices/global_filter is [ "r|^/dev/nvme|" "a|.*|" ]. LVM accepts a device if any of its names matches an accept pattern first, and slop-cannon's disk also has /dev/disk/by-* links, so the trailing a|.*| let it through. Running doas lvs main on palace today prints:
WARNING: VG name main is used by VGs MPW6o1-… and qPBpjc-…
Multiple VGs found with the same name: skipping main
So palace reads the guest's (agent-controlled) LVM metadata, and LVM commands naming main (creating a VM disk, for example) refuse to run while the disk is connected.
The filter is now [ "r|^/dev/nvme|" ]; names matching no pattern don't affect the decision. I checked both versions against a loop-device PV on slop-cannon: the old one still showed the VG, the new one hides it.
palace.md explains why there's no accept pattern.
After deploying, doas lvs main on palace should print no warnings. Activation doesn't need a reboot; the next LVM command reads the new lvm.conf.
`palace`'s `devices/global_filter` is `[ "r|^/dev/nvme|" "a|.*|" ]`. LVM accepts a device if *any* of its names matches an accept pattern first, and `slop-cannon`'s disk also has `/dev/disk/by-*` links, so the trailing `a|.*|` let it through. Running `doas lvs main` on `palace` today prints:
```
WARNING: VG name main is used by VGs MPW6o1-… and qPBpjc-…
Multiple VGs found with the same name: skipping main
```
So `palace` reads the guest's (agent-controlled) LVM metadata, and LVM commands naming `main` (creating a VM disk, for example) refuse to run while the disk is connected.
- The filter is now `[ "r|^/dev/nvme|" ]`; names matching no pattern don't affect the decision. I checked both versions against a loop-device PV on `slop-cannon`: the old one still showed the VG, the new one hides it.
- `palace.md` explains why there's no accept pattern.
- After deploying, `doas lvs main` on `palace` should print no warnings. Activation doesn't need a reboot; the next LVM command reads the new `lvm.conf`.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
`global_filter` rejected `/dev/nvme*` but then accepted everything
else, and LVM accepts a device if any of its names is accepted: the
disk's `/dev/disk/by-*` links were. So `palace` saw `slop-cannon`'s
volume group, also called `main`, and LVM commands naming `main`
refused to run while the disk was connected.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
dev
merged commit 5fcd2f29be into master2026-11-28 18:14:27 +00:00
dev
deleted branch palace-lvm-filter2026-11-28 18:14:27 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
palace'sdevices/global_filteris[ "r|^/dev/nvme|" "a|.*|" ]. LVM accepts a device if any of its names matches an accept pattern first, andslop-cannon's disk also has/dev/disk/by-*links, so the trailinga|.*|let it through. Runningdoas lvs mainonpalacetoday prints:So
palacereads the guest's (agent-controlled) LVM metadata, and LVM commands namingmain(creating a VM disk, for example) refuse to run while the disk is connected.[ "r|^/dev/nvme|" ]; names matching no pattern don't affect the decision. I checked both versions against a loop-device PV onslop-cannon: the old one still showed the VG, the new one hides it.palace.mdexplains why there's no accept pattern.doas lvs mainonpalaceshould print no warnings. Activation doesn't need a reboot; the next LVM command reads the newlvm.conf.🤖 Generated with Claude Code