HP StorageWorks Storage Mirroring Application Notes - Guidelines for using Windows SharePoint Services with Storage Mirroring (T2558-96057, April 2007)

postover.bat
preback.bat
rem ***
SAMPLE*** post-failover script for Windows SharePoint Services and SQL 2000
rem This sample batch file is provided as an example only. Because no two
rem environments or configurations are exactly the same, you MUST modify
rem this script in order to make the solution work in your environment.
rem You may need to remark out some commands depending on the function of your target.
rem The following commands should be used if your target is functioning as a back-end SQL target.
rem Make sure that you start all of the services, SQL included, relevant to your
rem environment.
net start "Distributed Transaction Coordinator"
net start "MSSQLServer"
net start "SQLServerAgent"
net start "Microsoft Search"
rem The following commands should be used if your target has WSS/IIS loaded, but it is in a dormant
rem state. In this case, the WSS/IIS services will start and the target will function as a front-end
rem WSS/IIS server.
net start "IISAdmin"
net start "World Wide Web Publishing Service"
net start "Simple Mail Transfer Protocol (SMTP)"
net start "Network News Transfer Protocol (NNTP)"
net start "HTTP SSL"
net start "SharePoint Timer Service"
rem ***
SAMPLE*** pre-failback script for Windows SharePoint Services and SQL 2000
rem This sample batch file is provided as an example only. Because no two
rem environments or configurations are exactly the same, you MUST modify
rem this script in order to make the solution work in your environment.
rem You may need to remark out some commands depending on the function of your target.
rem The following commands should be used if your target is functioning as a back-end SQL target.
rem Make sure that you start all of the services, SQL included, relevant to your
rem environment.
net stop "Distributed Transaction Coordinator"
net stop "MSSQLSERVER" /y
net stop "SQLSERVERAGENT"
net stop "Microsoft Search"
rem The following commands should be used if you want your target to revert back to a dormant WSS/IIS
rem state.
net stop "IISAdmin" /y
net stop "SharePoint Timer Service"