'Replace Cassandra seed node after hardware failure on same machine?

I have two VMs, each hosting a Cassandra seed node. I wipe one VM to simulate a hardware failure. I reinstall Cassandra and add replace_address_first_boot the end of the cassandra-env.sh file (with my real ipaddress)

 JVM_OPTS="$JVM_OPTS -Dcassandra.replace_address_first_boot=1.1.1.1"

nodetool status on the other machine lists this machine as DN

cassandra.yaml displays the default value of auto_bootstrap: true

Yet, Cassandra startup fails with:

ERROR [main] 2022-02-24 01:43:36,546 CassandraDaemon.java:803 - Exception encountered during startup
java.lang.RuntimeException: Replacing a node without bootstrapping risks invalidating consistency guarantees as the expected data may not be present until repair is run. To perform this operation, please restart with -Dcassandra.allow_unsafe_replace=true      

How can I bootstrap the new seed machine even though it has the same ipaddress as the old seed machine without using an unsafe flag?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source