虚拟驱动器上的 MDF、LDF 文件
情况。 我有一个物理驱动器分为 3 个虚拟驱动器。 C:已安装 SQL Server, D:有MDF文件, E:有LDF文件
问题 因为这都是虚拟的,SQL Server 是否仍会将 MDF 和 LDF 文件视为位于一个物理驱动器上?
谢谢
The situation.
I have one physical drive split into 3 virtual drives.
C: Has SQL Server installed,
D: Has the MDF files,
E: Has the LDF files
The question
Because this is all virtual will SQL Server still see the MDF and LDF files as being on one physical drive ?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
仅当驱动器确实是不同的物理驱动器时,将 MDF 和 LDF 放在不同的驱动器上(甚至将 MDF 拆分为多个文件)才有意义。
如果它们位于同一个物理驱动器上(就像您的情况一样),您也可以将所有内容放在同一个驱动器上,因为这对性能没有影响。
它还遵循逻辑意义:将 1 个物理驱动器拆分为 3 个虚拟驱动器会增加虚拟化层,这可能会降低性能。
Putting MDF and LDF on different drives (or even splitting the MDF in several files) only makes sense if the drives are really different physical drives.
If they are on the same physical drive (like in your case), you can as well put everything on the same drive, because it makes no difference performance wise.
It also follows logical sense that splitting 1 physical drive into 3 virtual drives adds a virtualization layer that could potentially slow down performance.
SQL Server 会将这些文件视为位于不同的驱动器上,但由于程序、数据和日志文件位于一个物理驱动器上,因此性能将严重下降。
SQL Server will see the files as being on separate drives, but performance will be severely diminished because of the program, data and log files being on the one physical drive.