日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問(wèn) 生活随笔!

生活随笔

當(dāng)前位置: 首頁(yè) > 编程资源 > 编程问答 >内容正文

编程问答

SharePoint 2013 RBS(Remote BLOB Storag) 安装、部署、垃圾回收

發(fā)布時(shí)間:2023/12/10 编程问答 29 豆豆
生活随笔 收集整理的這篇文章主要介紹了 SharePoint 2013 RBS(Remote BLOB Storag) 安装、部署、垃圾回收 小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

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 。

  • 啟用FilesStream:打開(kāi)Sql server 2012 的“配置工具”,然后打開(kāi)“Sql Server 配置管理器”,選擇“Sql Server 服務(wù)”,找到“SQL Server (MSSQLSREVER)”,右擊“屬性”,找到“FILESSTREAM”欄,操作如圖:
  • 通過(guò)SQL Server Configuration Manager,啟用數(shù)據(jù)庫(kù)的FileStream特性。然后通過(guò)以下語(yǔ)句,設(shè)置fielstream的可訪問(wèn)級(jí)別: EXEC sp_configure filestream_access_level, 2 RECONFIGURE
  • 為SharePoint的內(nèi)容數(shù)據(jù)庫(kù)加增加主密鑰 use [WSS_Content] if not exists (select * from sys.symmetric_keys where name = N'##MS_DatabaseMasterKey##') create master key encryption by password = N'輸入密碼'
  • 為該內(nèi)容數(shù)據(jù)庫(kù)增加FILESTREAM文件組和文件

    ?

    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:可通過(guò)直接執(zhí)行RBS_X64.msi文件來(lái)安裝程序,官方下載Sql Server2013?RBS.msi
  • 通過(guò)下面語(yǔ)句檢查是否安裝成功select * from dbo.sysobjects where name like 'rbs%'
  • 啟用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)擊閱讀

  • 我強(qiáng)調(diào)幾點(diǎn):
  • 通常我們刪除文檔,并非真的刪除,而是保存在SharePoint回收站里,回收站有兩層,一層是用戶(hù)操作,可以刪除或者還原,跟PC 電腦差不多;第二層是網(wǎng)站集回收站,一般需要管理員才能操作,這層刪除后,文件就不能通過(guò)sharepoint 還原了。

  • 垃圾回收是一個(gè)持續(xù)緩慢的過(guò)程,可以隔段時(shí)間查看存放文件的文件夾大小來(lái)判斷。

  • 卸載RMS
  • SharePoint中卸載

    ?

    $cdb=Get-SPContentDatabase <ContentDbName>$rbs=$cdb.RemoteBlobStorageSettings$rbs.GetProviderNames()$rbs.SetActiveProviderName("")$rbs.Migrate()$rbs.Disable()

    ?

    ?

  • 管理員方式運(yùn)行CMD,啟動(dòng)回收 C:\Program Files\Microsoft SQL Remote Blob Storage 11.0\Maintainer\Microsoft.Data.SqlRemoteBlobs.Maintainer.exe" -connectionstringname RBSMaintainerConnection -operation GarbageCollection ConsistencyCheck ConsistencyCheckForStores -GarbageCollectionPhases rdo -ConsistencyCheckMode r -TimeLimit 120

    ?

  • 點(diǎn)擊RBS.msi安裝文件以卸載RBS
  • 在數(shù)據(jù)庫(kù)中刪除RBS exec mssqlrbs.rbs_sp_uninstall_rbs 0ALTER TABLE [mssqlrbs_filestream_data_1].[rbs_filestream_configuration] DROP column [filestream_value]ALTER TABLE [mssqlrbs_filestream_data_1].[rbs_filestream_configuration] SET (FILESTREAM_ON = "NULL")

    ?

  • 現(xiàn)在你可以刪除文件和文件流filegroup: ALTER DATABASE yourdbname Remove file RBSFilestreamFile;ALTER DATABASE yourdbname REMOVE FILEGROUP RBSFilestreamProvider;
  • 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)題。

    如果覺(jué)得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。