diff --git a/playbooks/biscayne-recover.yml b/playbooks/biscayne-recover.yml index 07388207..de320902 100644 --- a/playbooks/biscayne-recover.yml +++ b/playbooks/biscayne-recover.yml @@ -92,8 +92,8 @@ when: agave_procs.rc == 0 # ---- step 3: wipe accounts ramdisk ----------------------------------------- - # Cannot umount+mkfs because the kind node's bind mount holds it open. - # Instead, delete contents. This is sufficient — agave starts clean. + # Cannot umount+remount because the kind node's bind mount holds it open. + # rm -rf is required here (slower than remount but the only option). - name: Wipe accounts data ansible.builtin.shell: | rm -rf {{ accounts_dir }}/* diff --git a/playbooks/biscayne-redeploy.yml b/playbooks/biscayne-redeploy.yml index 608ec328..180e7f6f 100644 --- a/playbooks/biscayne-redeploy.yml +++ b/playbooks/biscayne-redeploy.yml @@ -139,9 +139,10 @@ when: wipe_ledger | bool tags: [wipe] - - name: Wipe accounts ramdisk + - name: Wipe accounts ramdisk (remount tmpfs) ansible.builtin.shell: | - rm -rf {{ accounts_dir }}/* + umount {{ ramdisk_mount }} 2>/dev/null || true + mount -t tmpfs -o nodev,nosuid,noexec,nodiratime,size={{ ramdisk_size }} tmpfs {{ ramdisk_mount }} mkdir -p {{ accounts_dir }} chown solana:solana {{ ramdisk_mount }} {{ accounts_dir }} become: true