Archived
clearconfig does not reliably clear kernel LIO configfs state — the kernel still holds backing-file references, blocking umount. Replace clearconfig with explicit targetcli delete commands (/iscsi delete, /backstores/fileio delete) which do release kernel state. Also make DRBD secondary demote idempotent (skip if already Secondary). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HaH1cSGvhogRP5ExoF6nD8