我应该在 VMWare Server(或任何虚拟机)安装上将数据存储在哪里?

发布于 2024-07-15 04:11:21 字数 1459 浏览 5 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

花期渐远 2024-07-22 04:11:21

为什么要将数据移出虚拟机? 另外,有多少数据是真正共享的数据? 如果您想将其移走以便将其备份到某个地方,请为每台计算机创建单独的备份脚本/协议。 备份 MySQL 数据与备份 Windows 文件有很大不同。

如果数据真的是共享的,那么我会:

  • 使用Samba/NFS处理除MySQL数据之外的所有数据,并将数据存储在主机或另一台真实的机器上。
  • 将数据库放在单独的真实机器上,然后简单地将其他机器链接到其中(我也可能会考虑为数据库设置备份脚本)

Why do you want to move data off the VMs? Also, how much of the data is truly shared data? If you want to move it off so it is backed up somewhere, then create separate backup scripts/protocols for each machine. Backing up MySQL data is much different from backing up Windows files.

If the data truly is shared, then I would:

  • use Samba/NFS for everything but MySQL data and have the data stored on the host machine or another real machine.
  • put the database on a separate real machine and simply link the other machines into it (I might also look at setting up a backup script for the DB)
我不是你的备胎 2024-07-22 04:11:21

真正的最佳答案实际上取决于您需要数据的目的以及数据的重要性。 我通常将 VM 的所有系统数据与虚拟机一起保存。 真正重要的东西是持久驱动器,这是一个不受快照影响的虚拟机驱动器。 我不知道有多少次因为快照而丢失信息。

我的所有测试/开发虚拟机都驻留在专用 USB 硬盘上。 我发现这非常方便,因为我可以轻松地将它们移动到任何其他运行虚拟机服务器的机器。

如果您使用 NFS,则文件服务器必须始终运行,其他 VM 才能依赖它工作。 对我来说似乎有点麻烦。

The real best answer really depends on what you need the data for and how important it is. I usually keep all system data for my VM's with the virtual machine. The real important stuff goes into a persistent drive, this is a VM drive which isn't affected by snapshots. I don't know how many times I have lost information because of snapshots.

All of my testing/development VM's reside on dedicated USB hard disk. I have found this extremely handy because I can move them easily to any other machine runing vm server.

If you use NFS, the file server always has to be running for your other VM's to relying on it to work. Seems a little cumbersome to me.

溺孤伤于心 2024-07-22 04:11:21

这实际上取决于您(取决于您已经提到的性能考虑因素)。 由于您要进行虚拟化来划分应用程序,因此这将取决于您的需求。

如果您想要更轻松的管理,请将数据与使用它的应用程序放在同一虚拟机上。

如果您需要更精细的备份,请将数据放入单独的虚拟机或同一虚拟机上的单独 VHD 中,然后将这些数据以不同的方式备份到应用程序虚拟机。

如果您想了解 SMB/NFS,或者您希望远程客户端希望在您几乎不需要更改配置的情况下访问数据,请以这种方式将数据放在网络上。

虚拟化的伟大之处在于,您可以尝试各种方式,看看您最喜欢哪一种!

It's really up to you (subject to the performance considerations you've already mentioned). Since you're virtualizing to compartmentalize applications, it's going to come down to what you want.

If you want easier management, put the data on the same VM as the application(s) that use it.

If you want more granular backup, put the data in a separate vm, or a separate VHD on the same VM, and back those up differently to the application VMs.

If you want to learn about SMB/NFS, or you expect remote clients to want access to the data with little configuration change on your part, put the data on the network that way.

The great thing about virtualization is that you could try it each way and see which you like best!

千笙结 2024-07-22 04:11:21

您最好将数据存储在虚拟硬盘上。 这样您就不必担心 NFS 问题并保持另一个活动部件处于良好的工作状态。

You will be best off storing the data on the virtual hard disk. Then you don't have to worry about NFS issues and keeping another moving part in good working condition.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文