仅将日志文件(.ldf)移动到其他位置-SharePoint 2010 [英] Moving only log file (.ldf) to different location - SharePoint 2010
问题描述
内容DB数据文件(.mdf)位于E驱动器上
The content DB data file(.mdf) is located on E drive
日志文件位置(.ldf)是F驱动器
The log file location(.ldf) is F drive
我只想将.ldf 的位置更改为E盘.
I would just like to change the location of .ldf to E drive.
我该怎么做?是否< g class ="gr_ gr_329 gr-alert gr_tiny gr_spell gr_inline_cards gr_run_anim ContextualSpelling multiReplace" data-gr-id ="329" id ="329" i/g.需要从< g class ="gr_ gr_260分离数据库 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace" data-gr-id ="260" id ="260"> sharepoint/g.前端以及在下面的此链接中提到的内容:
How can I do so? Do <g class="gr_ gr_329 gr-alert gr_tiny gr_spell gr_inline_cards gr_run_anim ContextualSpelling multiReplace" data-gr-id="329" id="329">i</g> need to detach the DB from <g class="gr_ gr_260 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace" data-gr-id="260" id="260">sharepoint</g> front end as well as mentioned in this link below:
推荐答案
for moving the *.ldf to different location , do the following
*使用dismount-spcontentdatabase powershell命令卸载内容数据库,或从中央管理员中删除CDB
* dismount the content databases using dismount-spcontentdatabase powershell command, or remove the CDB from the central admin
Get-SPContentDatabase -WebApplication http://sitename | Dismount-SPContentDatabase
*打开sql Management Studio,然后备份数据库.
*open sql management studio, then backup the databases.
*然后分离数据库.
*移动ldf 文件到新位置.
*move the ldf files to the new location.
*关于再次使用sql managment studio附加数据库,将ldf文件的位置更改为新位置,如下所示:
* on attaching the the databases again using sql managment studio , change the location of the ldf files to the new location as the following
**不要忘记为新位置的SQL服务帐户提供适当的权限.
** don't forget to give the proper permission to the SQL service account on the new location .
**重新启动sql服务.
**restart the sql service.
这篇关于仅将日志文件(.ldf)移动到其他位置-SharePoint 2010的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!