in

SharePoint Blogs

The Best Place for SharePoint-related Blogs

Jane Leung's Blog

Yeah, I want to share! Anything from SharePoint, Office and Business Intelligence! Containing my thoughts, comments and questions.

March 2008 - Posts

  • How much disk space is consumed in gradual migration?

    The standard answer is 3 times the size of your database.

    To be more exact, how much disk space is consumed when doing gradual migration for a site collection?

    When running test migrations, the following pattern is observed (assuming each site collection sits in its own content database):

    Temp database data file = 2.5 times the size of site collection

    Target database data file =  1.2 times the size of site collection

    Temp database log file = 1.2 to 1.5 times the size of target database

    Target database log file = 1.2 to 1.5 times the size of target database

    For example, if the site collection is 10 GB, the temp database will be 25 GB and the final target database will be around 12 GB. The log files might take up to 36 GB for both temp and target database.

     

  • Database restore and file cache in SharePoint

    I never aware there is file cache for SharePoint configuration.
     
    But there is.
     
    It is located at the %ALLUSERSPROFILE% \Application Data\Microsoft\SharePoint\Config\<GUID> folder. It contains infomation with timer jobs and farm data such as content databases for a web application, site collection count.
     
    So in a system restore scenario in the same farm (same server names), all the sharepoint databases are restored including the configuration database. Note that there may be new activities between the time the config database is backed up and restored on the server. Those new activities are cached in the physical file on the server and they are out of sync with the config db. So when you access the Central Administration website, you start to experience errors in modifying the farm settings!
     
    This is what happened over the past weekend at the client site: null object reference when accessing a content database information inside Central Administration after a config db restore. What makes it even worse, a 404 came back when browsing to the portal site.
     
    After serveral hours of digging and helpless attempt to fix the situation, we discovered that the config db data gets modified minutes after the db was restored.
     
    Central Administration web application is referring data from the config file cache, which is now showing inconsistent data with the restored configuration database, and OWSTIMER.exe is what controlled the file cache. An really really easy way to clear the cache is:
     
    1. stop the OWSTIMER.exe
    2. navigate to the file cache location
    3. delete or move all the files inside
    4. start the OWSTIMER.exe
    5. file cache will be populated with the correct information from the config db
    6. repeat above steps on all the servers in the farm with OWSTIMER.exe

    After re-creating the config cache, Central Administration web application is showing correct values again ......

    Knowing the importance of the OWSTIMER cache, I did some google quickly and find some resources about the SharePoint cache:

    JOPX on SharePoint 2007 - Clearing the SharePoint Configuration Cache

    Office Online - Configure Object Cache Settings

  • New target database for gradual migration

    In migrating a site collection (not the portal root) of 40GB, the reverts never worked. The reverts timed out and it's this 'hang in the middle situation' where you still see the site collection listed in MOSS 2007 central administration but you cannot see its associating information (such as which content database it resides in). Of course, you also cannot see the site collection among the ones ready to be migrated in the "Select site collection to migrate" page.

    This happened in one of the trial migration runs. Rebuilding the dev environment would be too time consuming because it involves migrating the portal first to get back to the state prior to migrate the specific site collection.

     So......

    This discovery was by accident:

    Before doing all these, you should check the "Database names" page for migration status, all the target databases are listed as read only

    1. Disassociate the PAIR database (which contains the migrated portal) from the sharepoint farm in CA --> Application Management --> Content Databases
    2. Re-associate the PAIR database to the sharepoint farm (that cleans up the 'bad' site collection associated with the web application)
    3. Goes back to the site collection upgrade status page in CA --> Operations
    4. Click "continue to upgrade" link next to the URL for migration
    5. Click "database names" inside the Actions menu area located on the bottom left hand corner of the page
    6. You can enter a new target database name for the orginal content database (change from read only to textbox for editing)
    7. Click "Save" and wait for the operation in progress page to finish (If you don't give it a new name for target content database, it will create a new database with guid attached to it)

    When you go back to the page that shows a list of site collection to be migrated, select the new target content database in the dropdown box and you see that all the un-migrated site collections are there (including the one that stucks in the revert process!)

    One thing to note:
    By associating to a new target database, there is no more options to revert those migrated site collections in the old target content database. But in my case, the reverts never worked anyway.  

    Posted Mar 10 2008, 01:26 PM by jleung with 1 comment(s)
    Filed under:

Need SharePoint Training? Attend a SharePoint Bootcamp!

Posts (c) their respective authors. Everything else (c) 2007 SharePoint Experts