We have a content DB with more than 120GB of data, it consists mostly documents and would like to introduce RBS to reduce size on the SQL server.
Have installed and Configured RBS on SharePoint 2010 test environment which has a SharePoint server and SQL server.
However in the production, we have 2WFEs, 2Apps and SQL server, request you to help me with sequence of command execution.
On Dev:
1. Enabled FILESTREAM on the database server
2. Executed the following SQL command
EXEC sp_configure filestream_access_level, 2
RECONFIGURE
3.Provisioned BLOB store on the SQL server
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
4. Installed the RBS client component on the SharePoint server
msiexec /qn /lvx* rbs_install_log.txt /i RBS.msi TRUSTSERVERCERTIFICATE=true FILEGROUP=PRIMARY DBNAME="WSS_Content" DBINSTANCE="DBInstance Name" FILESTREAMFILEGROUP=RBSFilestreamProvider FILESTREAMSTORENAME=FilestreamProvider_1<br/>
5. Enabled RBS for the Content Database from Web Server
$cdb = Get-SPContentDatabase –WebApplication <URL>
$rbss = $cdb.RemoteBlobStorageSettings
$rbss.Installed()
$rbss.Enable()
$rbss.SetActiveProviderName($rbss.GetProviderNames()[0])<br/>
6. Adjusted the Blob Threshold
$cdb = Get-SPContentDatabase –WebApplication <URL>
$cdb.RemoteBlobStorageSettings.MinimumBlobStorageSize=1048576
$cdb.Update()<br/>
7. Moved Content into RBS
$cdb = Get-SPContentDatabase –WebApplication <URL>
$rbss = $cdb.RemoteBlobStorageSettings
$rbss.Migrate()<br/>
When should I install RBS and configure on all the additional Web and application servers ? I hope that I can use the same RBS client component to install on the additional servers and run the below command between step 4 and 5.
msiexec /qn /lvx* rbs_install_log.txt /i RBS.msi DBNAME="WSS_Content" DBINSTANCE="DBInstance Name" ADDLOCAL="Client,Docs,Maintainer,ServerScript,FilestreamClient,FilestreamServer"