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)and
BLOBstore
ABLOBstoreisanentitythatisusedtostoreBLOBdata.Thiscanbeacontent-addressablestorage(CAS)solution,afileserverthatsupportsServerMessageBlock(SMB),oraSQLServerdatabase.
WhyweneedRBS
ByusingRBSforSharePoint,customermaybeabletoleveragecheaperstorage,improveperformance,andenablebetterintegrationstorieswith3rdpartytechnologyfortheirSharePointdatabases.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.
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
Confirmthattheuseraccountperformingthesestepsisamemberofthedb_ownerfixeddatabaseroleoneachdatabasethatyouareconfiguringRBSfor.
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.Theclientlibraryconsistsofaclient-sidedynamiclinklibrary(DLL)thatislinkedintoauserapplication,andasetofstoredproceduresthatareinstalledonSQLServer.
Warning: |
---|
DonotinstalltheRBSclientlibrarybyrunningtheRBS_amd64.msifileandstartingtheInstallSQLRemoteBLOBStoragewizard.ThewizardsetscertaindefaultvaluesthatarenotrecommendedforSharePoint2013. |
1.ToinstalltheRBSclientlibraryontheonthefirstwebserver
YoumustinstallRBSclientlibraryonallwebserversintheSharePointfarm.TheRBSclientlibraryisinstalledonlyonetimeperwebserver,butRBSisconfiguredseparatelyforeachassociatedcontentdatabase.Theclientlibraryconsistsofaclient-sidedynamiclinklibrary(DLL)thatislinkedintoauserapplication,andasetofstoredproceduresthatareinstalledonSQLServer.
1.ConfirmthattheuseraccountperformingthesestepsisamemberoftheAdministratorsgrouponthecomputerwhereyouareinstallingthelibrary.
2.Onanywebserver,browseto
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.msicoulddownloadinthelink
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,browseto
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,anentryshouldreadasfollows:Product:SQLRemoteBlobStorage–Installationcompletedsuccessfully.
2.OnthecomputerthatisrunningSQLServer2008,verifythattheRBStableswerecreatedinthecontentdatabase.Severaltablesshouldbelistedunderthecontentdatabasethathavenamesthatareprecededby
theletters"mssqlrbs".
Whatif?
ifwedon'tfindanyrbstables.
ReinstallRBS.msiagain
4.EnableRBSforeachcontentdatabase
YoumustenableRBSononewebserverintheSharePointfarm.Itisnotimportantwhichwebserverthatyouselectforthisactivity,aslongasRBSwasinstalledonitbyusingthepreviousprocedure.Youmustperformthisprocedureonetimeforeachcontentdatabase.
Note: |
---|
YoucanonlyenableRBSbyusingWindowsPowerShell. |
ToenableRBSbyusingWindowsPowerShell
Verifythatyoumeetthefollowingminimumrequirements:SeeAdd-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:
相关文章推荐
- 【转】How to install and configure SharePoint Server 2010 SP1 on the existing SP 2010 Farm
- How to Configure Workflow Infrastructure 2013 in Sharepoint 2013
- how to add Javascript and CSS in page layout with sharepoint 2013
- install and configure Microsoft SharePoint Server 2013 on Windows Server 2008 R2
- How to custom search results in SharePoint Server 2013
- 转:How to create your own custom 404 error page and handle redirect in SharePoint 2007 (MOSS)?
- 四 错误处理篇 How to Fix Login Failed For User NT AUTHORITY IUSRS in SharePoint 2013 ...
- How to Sign in as a Different User in SharePoint 2013
- How to Setup Load Balance in SharePoint 2010 Farm
- How to change service accounts and service account passwords in SharePoint Server 2007 and in Windows SharePoint Services 3.0
- How to Install And Configure Apache In Ubuntu
- How to change service accounts and service account passwords in SharePoint Server 2007 and in Windows SharePoint Services 3.0(Se
- How to hide my site and my document link in the right-top corner of sharepoint 2010
- How to Enable or Disable Document Property Promotion (ParserEnabled) in SharePoint 2013
- How to copy files between sites using JavaScript REST in Office365 / SharePoint 2013
- how to install and configure snmp in freebsd
- Step By Step Guide to configure the “Replicating directory changes” for SharePoint 2010 and 2013
- How to create your own custom 404 error page and handle redirect in SharePoint
- to config RBS/RBLOB in sharepoint
- How to Back up and restore SharePoint 2013 using a VSS requestor