设为首页 收藏本站
查看: 1665|回复: 0

[经验分享] how to install and configure Remote BLOB Storage (RBS) in a SharePoint 2013 farm

[复制链接]

尚未签到

发表于 2017-5-24 11:28:52 | 显示全部楼层 |阅读模式
how to install and configure Remote BLOB Storage (RBS) in a SharePoint 2013 farm

What is RBS
  One of the new things in SQL Server 2008 r2is Remote Blob Storage (RBS) which allows admins to setup SQL to save data that would normally go into a BLOB field to be stored somewhere else using an RBS provider.
This provider could store data on a cheaper disk solution (compared to the expensive disk solutions usually selected for SQL Server), to a SAN or maybe even into the cloud… it really doesn’t matter where. The point is that BLOBs can be kept out of a SQL Server
DB.

  RBS is composed of the following components:


  •   RBS client library
      An RBS client library consists of a managed library that coordinates the BLOB storage with SharePoint 2013, SQL Server, and RBS provider components.

  •   Remote BLOB Storage provider
      An RBS provider consists of a managed library and, optionally, a set of native libraries that communicate with the BLOB store.
      An example of an RBS provider is the SQL FILESTREAM provider. The SQL FILESTREAM provider is a feature of SQL Server 2008 that enables storage of and efficient access to BLOB data by using a combination of SQL Server 2008 and the NTFS file system. For more
    information about FILESTREAM, see
    FILESTREAM Overview (http://go.microsoft.com/fwlink/p/?LinkID=166020&clcid=0x409) andFILESTREAM Storage in SQL Server 2008 (http://go.microsoft.com/fwlink/p/?LinkID=165746&clcid=0x409).

  •   BLOB store
      A BLOB store is an entity that is used to store BLOB data. This can be a content-addressable storage (CAS) solution, a file server that supports Server Message Block (SMB), or a SQL Server database.


Why we need RBS
  By using RBS for SharePoint, customer maybe able to leverage cheaper storage, improve performance, and enable better integration stories with 3rd party technology
for their SharePoint databases. But be careful, the benefit is different case by case.


What all we need
  SQL Server 2008 R2.

SharePoint Server 2013


How to configure

  Before you begin this operation, review the following information about prerequisites:




  • The user account provisioning RBS stores must be a member of thedb_owner fixed database role on each database that you are configuring RBS for.

  •   The user account installing the client library must be a member of the Administrators group on all of the computers where you are installing the library.

  •   The user account enabling RBS must have sufficient permissions to run Windows PowerShell.



1. Enable FILESTREAM on the database server

  Enable FILESTREAM for file I/O streaming access.
  Allow remote clients to have streaming access to FILESTREAM data.

The Step: enable and change FILESTREAM settings




  •   On the Start menu, point toAll Programs, point toMicrosoft SQL Server Code-Named 2012, point toConfiguration Tools, and
    then clickSQL Server Configuration Manager.


  •   In the list of services, right-click
    SQL Server Services, and then click Open.
    DSC0000.png


  •   In the SQL Server Configuration Manager snap-in, locate the instance of SQL Server on which you want to enable FILESTREAM.

  •   Right-click the instance, and then click
    Properties.


  •   In the SQL Server Properties dialog box, click theFILESTREAM tab.

  •   Select the Enable FILESTREAM for Transact-SQL access check box.

  •   If you want to read and write FILESTREAM data from Windows, clickEnable FILESTREAM for file I/O streaming access. Enter the name of the Windows share in theWindows Share Name
    box.


  •   If remote clients must access the FILESTREAM data that is stored on this share, selectAllow remote clients to have streaming access to FILESTREAM data.

  •   Click Apply.

  •   In SQL Server Management Studio, click
    New Query to display the Query Editor.


  •   In Query Editor, enter the following Transact-SQL code:

    Transact-SQL



    EXEC sp_configure filestream_access_level, 2
    RECONFIGURE

  •   Click Execute.

  •   Restart the SQL Server service.








2. To provision a BLOB store


  •   Confirm that the user account performing these steps is a member of the
    db_owner
    fixed database role on each database that you are configuring RBS for.

  •   Click Start, click All Programs, click
    Microsoft SQL Server 2008
    , and then click SQL Server Management Studio.

  •   Connect to the instance of SQL Server that hosts the content database.

  •   Expand Databases.

  •   Click the content database for which you want to create a BLOB store, and then clickNew Query.

  •   Paste the following SQL queries in Query pane, and then execute them in the sequence listed. In each case, replace[WSS_Content] with the content database name, and replacec:\BlobStore with the volume\directory in which
    you want the BLOB store created. The provisioning process creates a folder in the location that you specify. Be aware that you can provision a BLOB store only one time. If you attempt to provision the same BLOB store multiple times, you'll receive an error.

    DSC0001.gif Tip:

      For best performance, simplified troubleshooting, and as a general best practice, we recommend that you create the BLOB store on a volume that does not contain the operating system, paging files, database data, log files, or the tempdb file.






    use [WSS_Content]
    if not exists
    (select * from sys.symmetric_keys
    where name = N'##MS_DatabaseMasterKey##')
    create master key encryption by password = N'Admin Key Password !2#4'











    use [WSS_Content]
    if not exists
    (select groupname from sysfilegroups
    where groupname=N'RBSFilestreamProvider')
    alter database [WSS_Content]
    add filegroup RBSFilestreamProvider contains filestream











    use [WSS_Content]
    alter database [WSS_Content]
    add file (name = RBSFilestreamFile, filename =
    'c:\Blobstore')
    to filegroup RBSFilestreamProvider



  Here is the step:
DSC0002.png


  Note: You should step by step do it , or it will wrong.



3. Install the RBS client library on each web server



You must install RBS client library on all web servers in the SharePoint farm. The RBS client library is installed only one time per web server, but RBS is configured separately for each associated content database. The client library consists
of a client-side dynamic link library (DLL) that is linked into a user application, and a set of stored procedures that are installed on SQL Server.



DSC0003.gif Warning:

  Do not install the RBS client library by running the RBS_amd64.msi file and starting the Install SQL Remote BLOB Storage wizard. The wizard sets certain default values that are not recommended for SharePoint 2013.





1. To install the RBS client library on the on the first web server


You must install RBS client library on all web servers in the SharePoint farm. The RBS client library is installed only one time per web server, but RBS is configured separately for each associated content database. The client
library consists of a client-side dynamic link library (DLL) that is linked into a user application, and a set of stored procedures that are installed on SQL Server.
  1. Confirm that the user account performing these steps is a member of the Administrators group on the computer where you are installing the library.
  2. On any web server, browse to http://go.microsoft.com/fwlink/p/?LinkId=271938 anddownload the RBS_amd64.msi file.
  3. Copy and paste the following command into the Command Prompt window. ReplaceWSS_Content with the database name, and replaceDBInstanceName with the SQL Server instance name. You should run this command by using the specific database name
and SQL Server instance name only one time. The action should finish within approximately one minute.


msiexec /qn /lvx* rbs_install_log.txt /i RBS_amd64.msi TRUSTSERVERCERTIFICATE=true FILEGROUP=PRIMARY DBNAME="WSS_Content" DBINSTANCE="DBInstanceName" FILESTREAMFILEGROUP=RBSFilestreamProvider FILESTREAMSTORENAME=FilestreamProvider_1









   DSC0004.png
  Note:
  1. WSS_Content isthe database name,DBInstanceName isthe SQL Server instance name
  2. And the SQL Server instance name should be carful, it is relative with you sharepoint content database
  3. The RBS_amd64.msi could download in the link
http://go.microsoft.com/fwlink/p/?LinkId=271938

  4. RBS_amd64.msi is install file, and rbs_install_log.txt is the log file. both of them is mean location.
  For Exampl: msiexec /qn /lvx* C:\Users\v-trdong.FAREAST\rbs_install_log.txt /i C:\Users\v-trdong.FAREAST\RBS_amd64.msi TRUSTSERVERCERTIFICATE=true FILEGROUP=PRIMARY DBNAME="WSS_Content" DBINSTANCE="v-trdong\sharepoint" FILESTREAMFILEGROUP=RBSFilestreamProvider
FILESTREAMSTORENAME=FilestreamProvider_1


2. To install the RBS client library on all additional web and application servers



  •   Confirm that the user account performing these steps is a member of the Administrators group on the computer where you are installing the library.

  •   On any web server, browse to http://go.microsoft.com/fwlink/p/?LinkId=271938 anddownload the RBS_amd64.msi file.

  •   Click Start, click Run, type cmd into theRun text box, and then clickOK.

  •   Copy and paste the following command into the Command Prompt window. Replace
    WSS_Content
    with the database name, and replace DBInstanceName with the name of the SQL Server instance. The action should finish within approximately one minute.


    msiexec /qn /lvx* rbs_install_log.txt /i RBS_amd64.msi DBNAME="WSS_Content" DBINSTANCE="DBInstanceName" ADDLOCAL=Client,Docs,Maintainer,ServerScript,FilestreamClient,FilestreamServer








    DSC0005.png


  •   Repeat this procedure for all web servers and application servers in the SharePoint farm.





3. To confirm the RBS client library installation



  •   The rbs_install_log.txt log file is created in the same location as the RBS_amd64.msi file. Open the rbs_install_log.txt log file by using a text editor and scroll toward the bottom of the file. Within the last 20 lines of the end of the file, an entry should
    read as follows: Product: SQL Remote Blob Storage – Installation completed successfully.
    DSC0006.png


2. On the computer that is running SQL Server 2008, verify that the RBS tables were created in the content database. Several tables should be listed under the content database that have names that are preceded by
the letters "mssqlrbs".
DSC0007.png
  What if ?



  • if we don't find any rbs tables.

    • Reinstall RBS.msi again




4. Enable RBS for each content database


You must enable RBS on one web server in the SharePoint farm. It is not important which web server that you select for this activity, as long as RBS was installed on it by using the previous procedure. You must perform this procedure one
time for each content database.



DSC0008.gif Note:

  You can only enable RBS by using Windows PowerShell.





To enable RBS by using Windows PowerShell


  •   Verify that you meet the following minimum requirements: See
    Add-SPShellAdmin.

  •   At the Windows PowerShell command prompt, type the following command:


    $cdb = Get-SPContentDatabase <ContentDatabaseName>
    $rbss = $cdb.RemoteBlobStorageSettings
    $rbss.Installed()
    $rbss.Enable()
    $rbss.SetActiveProviderName($rbss.GetProviderNames()[0])
    $rbss




For example:
DSC0009.png



5. Test the RBS installation

You should test the RBS installation on one web server in the SharePoint farm to make sure that the system works correctly.
To test the RBS data store




  • On the computer that contains the RBS data store, clickStart, and then clickComputer.

  •   Browse to the RBS data store directory.
    DSC00010.png

  •   Confirm that the folder is empty.

  •   On the SharePoint farm, upload a file that is at least 100 kilobytes (KB) to a document library.

  •   On the computer that contains the RBS data store, click Start, and then clickComputer.

  •   Browse to the RBS data store directory.

  •   Browse to the file list and open the file that has the most recent changed date. This should be the file that you uploaded.



  More to link :
http://technet.microsoft.com/en-us/library/ee748631.aspx

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-380466-1-1.html 上篇帖子: 使用 SharePoint 2010 Client Object Model 修改用户Email(邮箱) 地址 下篇帖子: How to delete a large number of data in SharePoint for List when refreshing data
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表