在調用Restore-SPSite時指定ContentDatabase

來源:互聯網
上載者:User
在我的上一篇Blog中,我介紹了如何 實現一個SiteCollection一個ContentDatabase 在今天的實踐中,我們遇到了一個新問題 當調用Create-SC-OwnCDB (自訂函數,參見上一篇Blog)建立SiteCollection時,一個空的SiteCollection被成功建立,並且資料存放在指定的ContentDatabase中,一切按照計划進行。但是當我調用Restore-SPSite企圖用之前的SiteCollection備份覆蓋新建立的空SiteCollection時,結果發生了意外:這個備份被恢複到了其他ContentDatabase中。查了一下Restore-SPSite命令的協助,發現有一個-ContentDatabase參數,參數說明如下:Specifies the SQL Server content database where the site collection data will be stored. If no content database is specified, the content database with the greatest unused site collection capacity and whose database status is ready will be used. 個人認為這種預設設定不合理,我覺得預設應該使用被覆蓋的SiteCollection所在的ContentDatabase,而不是當前可用的具有最大SiteCollection可用數量(MaxSiteCount - CurrentSiteCount)的那個ContentDatabase。 最後的解決辦法是用Move-SPSite將那個SiteCollection移動到我們期望的ContentDatabase中:Move-SPSite -Identity http://mysharepointsite.com.au/sites/user -destinationdatabase WSS-Content-NewUserDB 這個命令提示需要重啟IIS,於是在每台FEW伺服器中執行IISRESET命令。 有誰知道簡單的方式實現自動重啟所有的FEW中的IIS? 望不吝賜教!通過 Wiz 發布

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.