smb文件共享_使用SMB文件共享作为存储替代方案
smb文件共享
Do you know that you can store system and user databases in a fileshare? Even for a clustered instance this is an option now. In this article we will check how to implement this solution.
您知道您可以将系统数据库和用户数据库存储在文件共享中吗? 即使对于集群实例,现在也可以选择。 在本文中,我们将检查如何实现此解决方案。
On the latest versions of SQL Server new possibilities to assign storage to a clustered instance became available. In this article, we will talk about one of these options, which is also an option for standalone instances by the way: The network-attached storage – SMB Fileshare.
在最新版本SQL Server中,可以使用新的方式将存储分配给群集实例。 在本文中,我们将讨论以下选项之一,顺便说一下,这也是独立实例的选项:网络附加存储– SMB Fileshare。
At first view, this looks weird and not a good option but, in fact, Microsoft worked to make this happen. The fileshare we are talking about has the Service Message Block (SMB) network protocol supporting it, which had an evolution on its latest versions looking to achieve a better reliability and performance. As an example, here is a list of some of those improvements:
乍一看,这看起来很奇怪,也不是一个好选择,但实际上,Microsoft努力做到了这一点。 我们正在讨论的文件共享具有支持它的服务消息块(SMB)网络协议,该协议在其最新版本上进行了改进,以期实现更好的可靠性和性能。 例如,以下是其中一些改进的列表:
Windows Server 2008 (SMB 2.0)
Durability, which helps recover from temporary network glitches.Windows Server 2008( SMB 2.0 )
耐用性,有助于从临时的网络故障中恢复。Windows Server 2008 R2 (SMB 2.1)
Significant performance improvements, specifically for SQL OLTP style workloads.Windows Server 2008 R2( SMB 2.1 )
显着的性能改进,特别是针对SQL OLTP样式的工作负载。Windows Server 2012 (SMB 3.0)
Support for transparent failover of file shares providing zero downtime.Windows Server 2012( SMB 3.0 )
支持文件共享的透明故障转移,从而实现零停机时间。Windows Server 2012 R2 (SMB 3.02)
MTU is turned on by default, which significantly enhances performance in large sequential transfers like SQL Server data warehouse and database backup or restore.Windows Server 2012 R2( SMB 3.02 )
默认情况下,MTU是打开的,这会大大提高SQL Server数据仓库和数据库备份或还原等大型顺序传输中的性能。As you can notice, at this moment (January 2015) the current version of SMB is 3.02, the one associated to the Windows Server 2012 R2, also the current version of Windows Server. Observing the improvements, we can clearly notice that the official support of a network-attached storage is being drawn since Windows Server 2008.
您会注意到,目前(2015年1月)的SMB当前版本是3.02,与Windows Server 2012 R2关联的版本,也是Windows Server的当前版本。 观察到这些改进,我们可以清楚地注意到,自Windows Server 2008以来,已经开始对网络连接存储提供官方支持。
The list of improvements above has only one improvement per version, as I selected the most important ones for this article, anyway more things were improved.
上面的改进列表中每个版本都只有一个改进,因为我选择了本文中最重要的改进,无论如何,还是有更多改进。
Store a database in a fileshare is supported since SQL Server 2008 R2, although only user databases could be stored on fileshares. Since SQL Server 2012, not only the user databases are supported, but also the system databases can be placed in SMB fileshares. The list above showed improvements since the Windows Server 2008, but SQL Server 2008, and versions before, are not officially supporting the use of fileshares.
从SQL Server 2008 R2开始,支持将数据库存储在文件共享中,尽管只能将用户数据库存储在文件共享中。 从SQL Server 2012开始,不仅支持用户数据库,而且可以将系统数据库放置在SMB文件共享中。 上面的列表显示了自Windows Server 2008以来的改进,但是SQL Server 2008和以前的版本不正式支持文件共享的使用。
Anyway, you can enable this possibility by activating the trace flag “1807”, by running the “DBCC TRACEON(1807)” command. However, remember that this is not supported on SQL Server 2008! You can check more details on this KB https://support.microsoft.com/kb/304261?wa=wsignin1.0.
无论如何,您可以通过运行“ DBCC TRACEON(1807)”命令激活跟踪标志“ 1807”来启用这种可能性。 但是,请记住,SQL Server 2008不支持此功能! 您可以在此KB https://support.microsoft.com/kb/304261?wa=wsignin1.0上查看更多详细信息。
如何实施 ( How to implement )
In order to use this capability, we need to specify the file path using the Universal Naming Convention (UNC), as the bellow examples:
为了使用此功能,我们需要使用通用命名约定(UNC)指定文件路径,如下所示:
Supported Universal Naming Convention (UNC):
支持的通用命名约定(UNC):
- \\ServerName\ShareName\\\ ServerName \ ShareName \
- \\ServerName\ShareName\\ ServerName \ ShareName
The following methods are not supported:
不支持以下方法:
- Loopback path: \\localhost\..\ or \\127.0.0.1\…\环回路径:\\ localhost \ .. \或\\ 127.0.0.1 \…\
- Administrative shares: \\servername\x$管理共享:\\服务器名\ x $
- Other UNC path formats like \\?\x:\其他UNC路径格式,例如\\?\ x:\
- Mapped network drives.映射的网络驱动器。
Moreover, the SQL Server engine and SQL Server agent service accounts should have FULL CONTROL share permissions and NTFS permissions on the SMB share folders, otherwise we will be frustrated with a not awesome error message
smb文件共享_使用SMB文件共享作为存储替代方案相关推荐
- smb服务器速度测试_通过 SMB 直通优化文件服务器的性能 | Microsoft Docs
SMB 直通SMB Direct 04/05/2018 本文内容 适用于:Windows Server 2012 R2.Windows Server 2012.Windows Server 2016A ...
- samba实现linux之间文件共享,使用 samba 实现文件共享
Samba简述: SMB(Server Messages Block)协议:实现局域网内文件或打印机等资源共享服务的协议. Samba服务程序是一款基于SMB协议并由服务端和客户端组成的开源文件共享软 ...
- java smb地址_Java中SMB的应用
SMB 服务操做 Ⅰ SMB简介 SMB(全称是Server Message Block)是一个协议名,它能被用于Web链接和客户端与服务器之间的信息沟通.SMB协议做为一种局域网文件共享传输协议 ...
- android盒子smb,普通安卓盒子smb方法 - 怀旧游戏长廊 - A9VG电玩部落论坛 - Powered by Discuz!...
本帖最后由 slime525 于 2018-10-20 21:00 编辑 1安卓下安装盒子伴侣一键自动安装Optware 2win下安装Putty,记下盒子ip端口,账户密码分别是:root,toor ...
- linux修改smb端口,centos下smb配置
1,系统安装时安装samba 2,useradd -d /home/pub/ -m pub创建一个系统用户,设置密码为public 3,创建共享目录/home/pub/doc/ 4,修改smb配置文件 ...
- 如何利用samba(smb服务)实现网络文件共享
文章目录 samba实现网络文件共享 前言 实验环境 利用samba搭建共享文件系统详细步骤 匿名用户读写共享文件 指定用户读写共享文件的权限 利用smb服务访问win10的共享目录 samba实现网 ...
- samba(smb服务)实现网络文件共享
文章目录 一.Samba基础 1.Samba服务器的主要程序 2. Samba的配置目录及文件 二.Samba服务的配置过程 1. 防火墙的关闭 2. 安装samba软件 3. 创建共享目录并设置权限 ...
- SMB协议端口号,Windows文件共享协议
When turning on Firewall, please assure that "File and Printer Sharing" on current network ...
- python dos攻击_利用SMB漏洞DoS攻击任何Windows系统
原标题:利用SMB漏洞DoS攻击任何Windows系统 近日微软报出SMB V1存在漏洞,安全研究员并将此漏洞称作 " SMBLoris ",解释其能够发动拒绝服务(Dos)攻击, ...
最新文章
- 2021-03-16 汽车二自由度操纵稳定性 Matlab simulink
- vue实现时间选择器,精确到秒
- wxWidgets:滚动窗口
- shell基本运算符
- nginx php value,PHP+NGINX参数优化
- bootstrap外不引用连接_网络编程Netty IoT百万长连接优化,万字长文精讲
- vue服务端转html,普通vue-cli初始项目转为服务端渲染SSR
- GO -- 一个经验
- 在Spring3中使用注解(@Scheduled)创建计划任务
- 计算机桌面推流,OBS推流PPT电脑桌面投屏
- java结业作业_学习平台-北语201606考试批次《JAVA语言程序设计》(结课作业)答案-成人高等教育_成人本科教育报名_远程网络教育学院-江苏学历网报名服务中心...
- Windows API ShowWindow和UpdateWindow
- python爬虫英文单词_利用PYTHON 爬虫爬出自己的英语单词库
- 时空大数据要把握“后发优势”
- 为什么建议大家使用 Linux 开发?爽!!!!!!!
- magic-把项目中的石头变成垫脚石
- Mysql索引的原理、调优及其相关基础知识
- 2021-06-03——CSS属性制作家用电器商品分类表
- Linux无root权限解决matplotlib中文字体各种疑难杂症
- 【小沐学GIS】基于Cesium实现三维数字地球Earth(CesiumJS入门安装)
热门文章