SharePoint 2013 RBS(Remote BLOB Storag) 安装、部署、垃圾回收
SharePoint 承擔著文件管理的工作,默認都是將它們以BLOB的數據形式存儲在內容數據庫當中;當文件大時,就很容易導致數據庫容量被這些BLOB數據所快速消耗,而且頻繁地對這些大數據量的BLOB數據進行讀寫訪問,很容易在SQL端造成性能瓶頸。 繼MOSS2007之后,SharePoint2010和2013可以使用SQL Server 2008及其以上版本提供的Remote Blob Storage (RBS) 這一新特性,可以將BLOB數據存儲在文件系統當中或者是存儲在其他專門用于存儲BLOB數據的服務器上面。
示例采用sql server 2012 數據庫。系統 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內容數據庫中原有的BLOB遷移到文件系統中$rbss.MinimumBlobStorageSize = 1048000 //該命令用于設置存于文件系統中的文件最小值,當文件小于該值的時候,將還是照常保存在數據庫中。$cdb.Update()?
?
垃圾回收機制 ??這篇文章已經說得很好了,可以點擊閱讀
通常我們刪除文檔,并非真的刪除,而是保存在SharePoint回收站里,回收站有兩層,一層是用戶操作,可以刪除或者還原,跟PC 電腦差不多;第二層是網站集回收站,一般需要管理員才能操作,這層刪除后,文件就不能通過sharepoint 還原了。
垃圾回收是一個持續緩慢的過程,可以隔段時間查看存放文件的文件夾大小來判斷。
?
$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/
總結
以上是生活随笔為你收集整理的SharePoint 2013 RBS(Remote BLOB Storag) 安装、部署、垃圾回收的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 又一知名演员立威廉确诊新冠 发帖晒合影照
- 下一篇: 曝三星Galaxy FE系列机型被砍掉