remote blob storage in sharepoint 2010

20
Remote BLOB Storage Nathan DeWitt http://nathandewitt.net/

Upload: nathan-dewitt

Post on 20-Jun-2015

3.072 views

Category:

Technology


1 download

DESCRIPTION

A quick intro to using Remote Blob Storage in SharePoint 2010.

TRANSCRIPT

Page 1: Remote Blob Storage in SharePoint 2010

Remote BLOB Storage

Nathan DeWitthttp://nathandewitt.net/

Page 2: Remote Blob Storage in SharePoint 2010

WHAT’S A BLOB?

Page 3: Remote Blob Storage in SharePoint 2010

Blob: Super Villain

Page 4: Remote Blob Storage in SharePoint 2010

BLOB: Binary Large Object

Page 5: Remote Blob Storage in SharePoint 2010

Pictures

Page 6: Remote Blob Storage in SharePoint 2010

Large Documents

Page 7: Remote Blob Storage in SharePoint 2010

HOW DO WE STORE LARGE FILES?

Page 8: Remote Blob Storage in SharePoint 2010

In the database

Page 9: Remote Blob Storage in SharePoint 2010

WHY IS THAT BAD?

Page 10: Remote Blob Storage in SharePoint 2010

Big files take longer to retrieve

Requests stack up

Web server pages slow down

Page 11: Remote Blob Storage in SharePoint 2010

Bye-bye, uptime.

Page 12: Remote Blob Storage in SharePoint 2010

Website is not accessible. Please try back later.

Page 13: Remote Blob Storage in SharePoint 2010

IS THERE A BETTER WAY?

Page 14: Remote Blob Storage in SharePoint 2010

SQL Server 2008FILESTREAM data type

Page 15: Remote Blob Storage in SharePoint 2010

HOW DO I DO THIS IN SHAREPOINT?

Page 16: Remote Blob Storage in SharePoint 2010

Provision a Data Store!

use [Content_DB]if not exists (select * from sys.symmetric_keys where name = N'##MS_DatabaseMasterKey##')create master key encryption by password = N'Master Key Pa$$w0rd'

if not exists (select groupname from sysfilegroups where groupname=N'RBSFilestreamProvider')alter database [Content_DB]add filegroup RBSFilestreamProvider contains filestream alter database [Content_DB] add file (name = RBSFilestreamFile, filename = 'c:\Blobstore') to filegroup RBSFilestreamProvider 

Page 17: Remote Blob Storage in SharePoint 2010

Install RBS!

PS C:\> msiexec /qn /lvx* rbs_install_log1.txt /i RBS.msi TRUSTSERVERCERTIFICATE=true FILEGROUP=PRIMARY DBNAME="Content_DB" DBINSTANCE="SERVERNAME" FILESTREAMFILEGROUP=RBSFilestreamProvider FILESTREAMSTORENAME=RBSFilestreamStore

 

Page 18: Remote Blob Storage in SharePoint 2010

Enable RBS for a Content Database!

PS C:\> $cdb = Get-SPContentDatabase "Content_DB"

PS C:\> $rbss = $cdb.RemoteBlobStorageSettings

PS C:\> $rbss.Installed()PS C:\> $rbss.Enable()PS C:\> $rbss.SetActiveProviderName($rbss.GetProviderNames()[0])

PS C:\> $rbss

Page 19: Remote Blob Storage in SharePoint 2010

DocumentLibrary

File System

items uploaded to the

are actually stored in the

Verify!

Page 20: Remote Blob Storage in SharePoint 2010

Profit!

 Any questions?