Skip to main content

SharePoint 2010 Remote BLOB Storage

Remote BLOB Storage 

RBS is a set of standardized APIs that allow storage/retrieval of BLOBs outside of your main SQL database where a dedicated BLOB store is desirable for various reasons. This uses a provider model for plugging in any dedicated BLOB store that implements these RBS APIs. 

What is BLOB ? 

FILESTREAM provides a storage option that allows storage, efficient streaming and integrated management of large BLOBs in a SQL database by utilizing the underlying NTFS file system for BLOB storage/streaming. It offers fully transactional access and compatible operations as varbinary(max). 
B: Binary 
L: Large 
OB: Object 
BLOB (Binary large object): Unstructured data (IMG, OFF 2010 files, MEDIA) 

Using RBS in SharePoint will improve the performance of the FARM

RBS may be used when: 
  1. You have huge content database for document archiving so you want to reduce storage cost (terabytes of data) 
  2. You have large media files to stream to the audience 
  3. You need to use RBS to integrate 3rd party storage/archiving solutions to SharePoint. (For example EMC Documentum(JAVA Document management)) 
  4. FILE> 100 KB Stored in file system 
  5. BLOB could be Store in file Remote File System,  Shared Files location etc.
Open SQL Server instance make sure the following option are enabled



Steps to implement the RBS to your SharePoint FARM.

1. To implement the RBS to your SharePoint Content DATABASE run the following SQL Scripts

This will create the database encryption key 

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'


This will create the database filegroup name RBSFilestreamProvider 

use [WSS_Content]
if not exists 
(select groupname from sysfilegroups 
where groupname=N'RBSFilestreamProvider')
alter database [WSS_Content]
add filegroup RBSFilestreamProvider contains filestream
This will alter database and add new file with specific system drive path. 

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

2. Install RBS_64.msi package 

Using the following command to install the package

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

Note: Replace WSS_Content with the database name, and replace DBInstanceName with the SQL Server instance name. 

3. To enable RBS by using Windows PowerShell 
  1. On the Start menu, click All Programs. 
  2. Click Microsoft SharePoint 2010 Products. 
  3. Click SharePoint 2010 Management Shell. 
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

Note: Where <ContentDatabaseName> is the name of the content database. 

4. Test the RBS installation 
  1. Make sure your RBS Data directory empty. 
  2. Go to the SharePoint Document library where you enabled the RBS to your content database. 
  3. Upload a file that is at least 100 kilobytes (KB) to a document library. 
  4. Browse to the RBS data store directory. 
  5. Browse to the file list and open the file that has the most recent modified date. This should be the file that you uploaded.

Comments

Popular posts from this blog

SharePoint RPC Protocols Examples Using OWSSVR.DLL

What is SharePoint RPC Protocols? Part 1 This reference includes information about the methods and usage of SharePoint Foundation Remote Procedure Call (RPC) protocol. This protocol can be used in Win32-based applications or in ASPX applications to make HTTP POST requests to the server. Methods in this protocol that do not modify the contents of the database can also be used in URL protocol to make HTTP GET requests. Definition taken from http://msdn.microsoft.com/en-us/library/ms448359.aspx You will find the OWSSVR.DLL in SharePoint 2010 Server Physical Path: C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\ISAPI and MOSS C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\ISAPI OWSSVR.DLL List of commands DialogView  Display ExportList GetProjSchema GetUsageBlob HitCounter RenderView To read more about the OWSSVR.DLL command Please read the URL Protocol from Microsoft Blog having a URL http://msdn.microsoft.com/en...

SharePoint 2013 Search Database Part 1

SharePoint 2013 Search architecture drastically change, as earlier in FS4SP 2010 we have 2 search applications “FASTContentSSA” and “FASTQuerySSA” and 7 total database in use. Following are the List of DB (FS4SP) FASTContentSSA Search Service Application DB Search Service Application Crawl Store DB Search Service Application Property Store DB FASTQuerySSA Search Service Application DB Search Service Application Crawl Store DB Search Service Application Property Store DB FASTSearchAdminDatabase : Fast Search Admin Database  In SharePoint 2013 search has only 1 Search Service application and 4 database in use. No property store database need any more, now the properties are directly stored inside the index component and all the index directly indexed to the physical system where FS4SP data comes from database as well as from the File system now data directly stored and indexed/ retried from the Physical disk because of this performance increase and search experien...

STS CryptographicException Error : Key set does not exist

Common mistakes Both SharePoint Site and SSO Site NOT running on the same application pool. Application pool identity user doesn’t have permission to access the certification.  Solution to this problem Set the same identity pool to  : 2. Be sure to grant rights to the certificate for the App Pool running the web service Start -> Run -> MMC File -> Add/Remove Snapin Add the Certificates Snap In Select Computer Account, then hit next Select Local Computer (the default), then click Finish On the left panel from Console Root, navigate to Certificates (Local Computer) -> Personal -> Certificates You're certificate will most likely be here. Right click on your certificate -> All Tasks -> Manage Private Keys Set you're private key settings here. Add app pool account Reset iis