重新启动后删除的Google Cloud VM文件 [英] Google Cloud VM Files Deleted after Restart

查看:102
本文介绍了重新启动后删除的Google Cloud VM文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我重新启动了我的VM实例,发现我的所有文件都被删除了.我的VM有一个10 GB的SSD永久性增强磁盘和一个额外的50 GB的SSD永久性磁盘. VM仅在当前会话中保存文件吗?

I've restarted my VM instance and found that all of my files are deleted. My VM has a 10 GB SSD persistent boost disk and an additional 50GB SSD persistent disk. Do VM's only save files within the current session?

谢谢!

推荐答案

Google重启后不会删除数据.确保已装载包含数据的磁盘.也许您是在手动安装&后重新启动的磁盘不再挂载.您可能还一直在使用云外壳,而不是使用终止实例后,您在$ HOME之外对该实例所做的任何修改都将丢失."根据John Hanley的评论,您还应该检查控制台日志以查看重新启动时发生的情况.最后,请确保您没有任何可能已删除的启动脚本数据.

Google does not delete data upon restart. Be sure the disk containing your data is mounted. Perhaps you restarted after manually mounting & the disk is no longer mounted. You may have also been using the cloud shell instead of your VM which "After the instance is terminated, any modifications that you made to it outside your $HOME are lost." As per John Hanley's comment, you should also check the console log to see what happened on restart. Lastly, be sure you don't have any start-up scripts that may have deleted data.

这篇关于重新启动后删除的Google Cloud VM文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆