您的位置:首页 > 其它

how to install and configure Remote BLOB Storage (RBS) in a SharePoint 2013 farm

2013-01-09 15:28 906 查看

howtoinstallandconfigureRemoteBLOBStorage(RBS)inaSharePoint2013farm

WhatisRBS

OneofthenewthingsinSQLServer2008r2isRemoteBlobStorage(RBS)whichallowsadminstosetupSQLtosavedatathatwouldnormallygointoaBLOBfieldtobestoredsomewhereelseusinganRBSprovider.
Thisprovidercouldstoredataonacheaperdisksolution(comparedtotheexpensivedisksolutionsusuallyselectedforSQLServer),toaSANormaybeevenintothecloud…itreallydoesn’tmatterwhere.ThepointisthatBLOBscanbekeptoutofaSQLServer
DB.

RBSiscomposedofthefollowingcomponents:

RBSclientlibrary

AnRBSclientlibraryconsistsofamanagedlibrarythatcoordinatestheBLOBstoragewithSharePoint2013,SQLServer,andRBSprovidercomponents.

RemoteBLOBStorageprovider

AnRBSproviderconsistsofamanagedlibraryand,optionally,asetofnativelibrariesthatcommunicatewiththeBLOBstore.

AnexampleofanRBSprovideristheSQLFILESTREAMprovider.TheSQLFILESTREAMproviderisafeatureofSQLServer2008thatenablesstorageofandefficientaccesstoBLOBdatabyusingacombinationofSQLServer2008andtheNTFSfilesystem.Formore
informationaboutFILESTREAM,see
FILESTREAMOverview(http://go.microsoft.com/fwlink/p/?LinkID=166020&clcid=0x409)andFILESTREAMStorageinSQLServer2008(http://go.microsoft.com/fwlink/p/?LinkID=165746&clcid=0x409).

BLOBstore

ABLOBstoreisanentitythatisusedtostoreBLOBdata.Thiscanbeacontent-addressablestorage(CAS)solution,afileserverthatsupportsServerMessageBlock(SMB),oraSQLServerdatabase.

WhyweneedRBS

ByusingRBSforSharePoint,customermaybeabletoleveragecheaperstorage,improveperformance,andenablebetterintegrationstorieswith3rdpartytechnology
fortheirSharePointdatabases.Butbecareful,thebenefitisdifferentcasebycase.

Whatallweneed

SQLServer2008R2.

SharePointServer2013

Howtoconfigure

Beforeyoubeginthisoperation,reviewthefollowinginformationaboutprerequisites:

TheuseraccountprovisioningRBSstoresmustbeamemberofthedb_ownerfixeddatabaseroleoneachdatabasethatyouareconfiguringRBSfor.

TheuseraccountinstallingtheclientlibrarymustbeamemberoftheAdministratorsgrouponallofthecomputerswhereyouareinstallingthelibrary.

TheuseraccountenablingRBSmusthavesufficientpermissionstorunWindowsPowerShell.

1.EnableFILESTREAMonthedatabaseserver

EnableFILESTREAMforfileI/Ostreamingaccess.

AllowremoteclientstohavestreamingaccesstoFILESTREAMdata.

TheStep:enableandchangeFILESTREAMsettings



OntheStartmenu,pointtoAllPrograms,pointtoMicrosoftSQLServerCode-Named2012,pointtoConfigurationTools,and
thenclickSQLServerConfigurationManager.

Inthelistofservices,right-click
SQLServerServices,andthenclickOpen.



IntheSQLServerConfigurationManagersnap-in,locatetheinstanceofSQLServeronwhichyouwanttoenableFILESTREAM.

Right-clicktheinstance,andthenclick
Properties.

IntheSQLServerPropertiesdialogbox,clicktheFILESTREAMtab.

SelecttheEnableFILESTREAMforTransact-SQLaccesscheckbox.

IfyouwanttoreadandwriteFILESTREAMdatafromWindows,clickEnableFILESTREAMforfileI/Ostreamingaccess.EnterthenameoftheWindowsshareintheWindowsShareName
box.

IfremoteclientsmustaccesstheFILESTREAMdatathatisstoredonthisshare,selectAllowremoteclientstohavestreamingaccesstoFILESTREAMdata.

ClickApply.

InSQLServerManagementStudio,click
NewQuerytodisplaytheQueryEditor.

InQueryEditor,enterthefollowingTransact-SQLcode:

Transact-SQL

EXECsp_configurefilestream_access_level,2
RECONFIGURE


ClickExecute.

RestarttheSQLServerservice.

2.ToprovisionaBLOBstore

Confirmthattheuseraccountperformingthesestepsisamemberofthe
db_owner
fixeddatabaseroleoneachdatabasethatyouareconfiguringRBSfor.

ClickStart,clickAllPrograms,click
MicrosoftSQLServer2008
,andthenclickSQLServerManagementStudio.

ConnecttotheinstanceofSQLServerthathoststhecontentdatabase.

ExpandDatabases.

ClickthecontentdatabaseforwhichyouwanttocreateaBLOBstore,andthenclickNewQuery.

PastethefollowingSQLqueriesinQuerypane,andthenexecutetheminthesequencelisted.Ineachcase,replace[WSS_Content]withthecontentdatabasename,andreplacec:\BlobStorewiththevolume\directoryinwhich
youwanttheBLOBstorecreated.Theprovisioningprocesscreatesafolderinthelocationthatyouspecify.BeawarethatyoucanprovisionaBLOBstoreonlyonetime.IfyouattempttoprovisionthesameBLOBstoremultipletimes,you'llreceiveanerror.


Tip:
Forbestperformance,simplifiedtroubleshooting,andasageneralbestpractice,werecommendthatyoucreatetheBLOBstoreonavolumethatdoesnotcontaintheoperatingsystem,pagingfiles,databasedata,logfiles,orthetempdbfile.

use[WSS_Content]
ifnotexists
(select*fromsys.symmetric_keys
wherename=N'##MS_DatabaseMasterKey##')
createmasterkeyencryptionbypassword=N'AdminKeyPassword!2#4'


use[WSS_Content]
ifnotexists
(selectgroupnamefromsysfilegroups
wheregroupname=N'RBSFilestreamProvider')
alterdatabase[WSS_Content]
addfilegroupRBSFilestreamProvidercontainsfilestream


use[WSS_Content]
alterdatabase[WSS_Content]
addfile(name=RBSFilestreamFile,filename=
'c:\Blobstore')
tofilegroupRBSFilestreamProvider


Hereisthestep:



Note:Youshouldstepbystepdoit,oritwillwrong.

3.InstalltheRBSclientlibraryoneachwebserver

YoumustinstallRBSclientlibraryonallwebserversintheSharePointfarm.TheRBSclientlibraryisinstalledonlyonetimeperwebserver,butRBSisconfiguredseparatelyforeachassociatedcontentdatabase.Theclientlibraryconsists
ofaclient-sidedynamiclinklibrary(DLL)thatislinkedintoauserapplication,andasetofstoredproceduresthatareinstalledonSQLServer.


Warning:
DonotinstalltheRBSclientlibrarybyrunningtheRBS_amd64.msifileandstartingtheInstallSQLRemoteBLOBStoragewizard.ThewizardsetscertaindefaultvaluesthatarenotrecommendedforSharePoint2013.

1.ToinstalltheRBSclientlibraryontheonthefirstwebserver

YoumustinstallRBSclientlibraryonallwebserversintheSharePointfarm.TheRBSclientlibraryisinstalledonlyonetimeperwebserver,butRBSisconfiguredseparatelyforeachassociatedcontentdatabase.Theclient
libraryconsistsofaclient-sidedynamiclinklibrary(DLL)thatislinkedintoauserapplication,andasetofstoredproceduresthatareinstalledonSQLServer.
1.ConfirmthattheuseraccountperformingthesestepsisamemberoftheAdministratorsgrouponthecomputerwhereyouareinstallingthelibrary.

2.Onanywebserver,browsetohttp://go.microsoft.com/fwlink/p/?LinkId=271938anddownloadtheRBS_amd64.msifile.

3.CopyandpastethefollowingcommandintotheCommandPromptwindow.ReplaceWSS_Contentwiththedatabasename,andreplaceDBInstanceNamewiththeSQLServerinstancename.Youshouldrunthiscommandbyusingthespecificdatabasename
andSQLServerinstancenameonlyonetime.Theactionshouldfinishwithinapproximatelyoneminute.

msiexec/qn/lvx*rbs_install_log.txt/iRBS_amd64.msiTRUSTSERVERCERTIFICATE=trueFILEGROUP=PRIMARYDBNAME="WSS_Content"DBINSTANCE="DBInstanceName"FILESTREAMFILEGROUP=RBSFilestreamProviderFILESTREAMSTORENAME=FilestreamProvider_1





Note:

1.WSS_Contentisthedatabasename,DBInstanceNameistheSQLServerinstancename

2.AndtheSQLServerinstancenameshouldbecarful,itisrelativewithyousharepointcontentdatabase

3.TheRBS_amd64.msicoulddownloadinthelinkhttp://go.microsoft.com/fwlink/p/?LinkId=271938
4.RBS_amd64.msiisinstallfile,andrbs_install_log.txtisthelogfile.bothofthemismeanlocation.

ForExampl:msiexec/qn/lvx*C:\Users\v-trdong.FAREAST\rbs_install_log.txt/iC:\Users\v-trdong.FAREAST\RBS_amd64.msiTRUSTSERVERCERTIFICATE=trueFILEGROUP=PRIMARYDBNAME="WSS_Content"DBINSTANCE="v-trdong\sharepoint"FILESTREAMFILEGROUP=RBSFilestreamProvider
FILESTREAMSTORENAME=FilestreamProvider_1

2.ToinstalltheRBSclientlibraryonalladditionalwebandapplicationservers

ConfirmthattheuseraccountperformingthesestepsisamemberoftheAdministratorsgrouponthecomputerwhereyouareinstallingthelibrary.

Onanywebserver,browsetohttp://go.microsoft.com/fwlink/p/?LinkId=271938anddownloadtheRBS_amd64.msifile.

ClickStart,clickRun,typecmdintotheRuntextbox,andthenclickOK.

CopyandpastethefollowingcommandintotheCommandPromptwindow.Replace
WSS_Contentwiththedatabasename,andreplaceDBInstanceNamewiththenameoftheSQLServerinstance.Theactionshouldfinishwithinapproximatelyoneminute.

msiexec/qn/lvx*rbs_install_log.txt/iRBS_amd64.msiDBNAME="WSS_Content"DBINSTANCE="DBInstanceName"ADDLOCAL=Client,Docs,Maintainer,ServerScript,FilestreamClient,FilestreamServer




RepeatthisprocedureforallwebserversandapplicationserversintheSharePointfarm.

3.ToconfirmtheRBSclientlibraryinstallation

Therbs_install_log.txtlogfileiscreatedinthesamelocationastheRBS_amd64.msifile.Opentherbs_install_log.txtlogfilebyusingatexteditorandscrolltowardthebottomofthefile.Withinthelast20linesoftheendofthefile,anentryshould
readasfollows:Product:SQLRemoteBlobStorage–Installationcompletedsuccessfully.



2.OnthecomputerthatisrunningSQLServer2008,verifythattheRBStableswerecreatedinthecontentdatabase.Severaltablesshouldbelistedunderthecontentdatabasethathavenamesthatareprecededby
theletters"mssqlrbs".



Whatif?

ifwedon'tfindanyrbstables.

ReinstallRBS.msiagain

4.EnableRBSforeachcontentdatabase

YoumustenableRBSononewebserverintheSharePointfarm.Itisnotimportantwhichwebserverthatyouselectforthisactivity,aslongasRBSwasinstalledonitbyusingthepreviousprocedure.Youmustperformthisprocedureone
timeforeachcontentdatabase.


Note:
YoucanonlyenableRBSbyusingWindowsPowerShell.

ToenableRBSbyusingWindowsPowerShell

Verifythatyoumeetthefollowingminimumrequirements:See
Add-SPShellAdmin.

AttheWindowsPowerShellcommandprompt,typethefollowingcommand:

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


Forexample:



5.TesttheRBSinstallation

YoushouldtesttheRBSinstallationononewebserverintheSharePointfarmtomakesurethatthesystemworkscorrectly.
TotesttheRBSdatastore

OnthecomputerthatcontainstheRBSdatastore,clickStart,andthenclickComputer.

BrowsetotheRBSdatastoredirectory.



Confirmthatthefolderisempty.

OntheSharePointfarm,uploadafilethatisatleast100kilobytes(KB)toadocumentlibrary.

OnthecomputerthatcontainstheRBSdatastore,clickStart,andthenclickComputer.

BrowsetotheRBSdatastoredirectory.

Browsetothefilelistandopenthefilethathasthemostrecentchangeddate.Thisshouldbethefilethatyouuploaded.

Moretolink:
http://technet.microsoft.com/en-us/library/ee748631.aspx
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐