SharePoint 2013 RBS(Remote BLOB Storag) 安装、部署、垃圾回收
SharePoint 承擔(dān)著文件管理的工作,默認(rèn)都是將它們以BLOB的數(shù)據(jù)形式存儲(chǔ)在內(nèi)容數(shù)據(jù)庫(kù)當(dāng)中;當(dāng)文件大時(shí),就很容易導(dǎo)致數(shù)據(jù)庫(kù)容量被這些BLOB數(shù)據(jù)所快速消耗,而且頻繁地對(duì)這些大數(shù)據(jù)量的BLOB數(shù)據(jù)進(jìn)行讀寫(xiě)訪問(wèn),很容易在SQL端造成性能瓶頸。 繼MOSS2007之后,SharePoint2010和2013可以使用SQL Server 2008及其以上版本提供的Remote Blob Storage (RBS) 這一新特性,可以將BLOB數(shù)據(jù)存儲(chǔ)在文件系統(tǒng)當(dāng)中或者是存儲(chǔ)在其他專(zhuān)門(mén)用于存儲(chǔ)BLOB數(shù)據(jù)的服務(wù)器上面。
示例采用sql server 2012 數(shù)據(jù)庫(kù)。系統(tǒng) windows 2008R2 SP1 。
?
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?
啟用RBS:
?
$cdb = Get-SPContentDatabase "WSS_Content"$rbss = $cdb.RemoteBlobStorageSettings $rbss.Installed() $rbss.Enable() $pvdName = $rbss.GetProviderNames()[0] $rbss.SetActiveProviderName($pvdName)$rbss.Migrate()//該命令可以將SharePoint內(nèi)容數(shù)據(jù)庫(kù)中原有的BLOB遷移到文件系統(tǒng)中$rbss.MinimumBlobStorageSize = 1048000 //該命令用于設(shè)置存于文件系統(tǒng)中的文件最小值,當(dāng)文件小于該值的時(shí)候,將還是照常保存在數(shù)據(jù)庫(kù)中。$cdb.Update()?
?
垃圾回收機(jī)制 ??這篇文章已經(jīng)說(shuō)得很好了,可以點(diǎn)擊閱讀
通常我們刪除文檔,并非真的刪除,而是保存在SharePoint回收站里,回收站有兩層,一層是用戶(hù)操作,可以刪除或者還原,跟PC 電腦差不多;第二層是網(wǎng)站集回收站,一般需要管理員才能操作,這層刪除后,文件就不能通過(guò)sharepoint 還原了。
垃圾回收是一個(gè)持續(xù)緩慢的過(guò)程,可以隔段時(shí)間查看存放文件的文件夾大小來(lái)判斷。
?
$cdb=Get-SPContentDatabase <ContentDbName>$rbs=$cdb.RemoteBlobStorageSettings$rbs.GetProviderNames()$rbs.SetActiveProviderName("")$rbs.Migrate()$rbs.Disable()?
?
?
?
Some question about RMB :
QUS:I?have other web servers, app servers and db servers, do i need to install the rbs.msi exe on every other server in the farm , or just only the web servers and the app servers. Such as do we run that msiexec command on each server.
ANS: Best recommend is to install on all the servers
QUS:Also how does rbs work for all migrated sites or existing sites which have documents already stored.? So if we enable rbs for these sites and for files over 5 mb, would that apply to only new uploaded files over 5mb, or will apply to also already stored over 5mb files.??
ANS:?
For newly created docs no issue, docs over 5MB would automatically move
For previous docs, run below commands once you set the "minimum blob storage"
???? $cdb = Get-SPContentDatabase –WebApplication <URL>
?????$rbss = $cdb.RemoteBlobStorageSettings
?????$rbss.Migrate()
QUS:Also does shredded storage impact the files sizes been uploaded as while, such if we configure files to be uploaded over 5 mb, will this apply to the files over this limit or does the files have to be much larger than 5 MB, such 8 or 9 mb have the rbs applied to them.
?
?
https://blogs.technet.microsoft.com/pramodbalusu/2011/07/08/rbs-and-sharepoint-2010/
總結(jié)
以上是生活随笔為你收集整理的SharePoint 2013 RBS(Remote BLOB Storag) 安装、部署、垃圾回收的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 又一知名演员立威廉确诊新冠 发帖晒合影照
- 下一篇: WebPart开发