主要原因是手快
YP thinks that perhaps pg_basebackup is being super pedantic about there being an empty data directory, decides to remove the directory. After a second or two he notices he ran it on
db1.cluster.gitlab.com, instead of
db2.cluster.gitlab.com2017/01/31 23:27 YP - terminates the removal, but it ’ s too late. Of around 310 GB only about 4.5 GB is left - Slack
然后他们还想用这个方法 恢复。难道他们是现场 google 的?应该不会吧。
JEJ: Probably too late, but isn't it sometimes possible if you make the disk read-only quickly enough? Also might still have file descriptor if the file was in use by a running process according to
http://unix.stackexchange.com/a/101247/213510Azure 这个删的快。想到 adobe 那个梗。 mac 要放个 adobe 压压惊。
Also, Azure is apparently also really good in removing data quickly, but not at sending it over to replicas.