<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Computer Support &#187; storage group</title>
	<atom:link href="http://www.xiitec.com/blog/tag/storage-group/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.xiitec.com/blog</link>
	<description></description>
	<lastBuildDate>Wed, 30 Dec 2009 08:40:28 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Creating a Storage Group</title>
		<link>http://www.xiitec.com/blog/2008/11/10/creating-a-storage-group/</link>
		<comments>http://www.xiitec.com/blog/2008/11/10/creating-a-storage-group/#comments</comments>
		<pubDate>Mon, 10 Nov 2008 23:09:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Exchange server 2003]]></category>
		<category><![CDATA[storage group]]></category>

		<guid isPermaLink="false">http://www.xiitec.com/blog/?p=225</guid>
		<description><![CDATA[Storage groups are used for physically breaking your databases  up into smaller management groups. This is done for several reasons. Chief among  them are so you have more numerous but smaller databases, a logical organization  of mailboxes, or faster Exchange backups and restores. The Exchange Server can  run one simultaneous backup [...]]]></description>
			<content:encoded><![CDATA[<p>Storage groups are used for physically breaking your databases  up into smaller management groups. This is done for several reasons. Chief among  them are so you have more numerous but smaller databases, a logical organization  of mailboxes, or faster Exchange backups and restores. The Exchange Server can  run one simultaneous backup for each storage group. So if you have 10 databases  spread across two storage groups, you can have two backups running in parallel;  if you have 10 databases spread across five storage groups, you can have five  backups running in parallel.</p>
<p><span id="more-225"></span>Depending on the version (Standard versus Enterprise) of  Exchange, you can have up to four storage groups per server and up to five  mailbox stores per storage group. ESM enforces these limits, but it is possible  to directly modify Active Directory to exceed them. If you create more databases  or storage groups than allowed by your version, the additional databases will  not mount.</p>
<p>Storage groups are represented in Active Directory by the  <tt>msExchStorageGroup</tt> class. This class has several attributes that have  fairly intuitive string values and names and can be matched up to the options in  ESM. Unfortunately, the raw Active Directory objects and attributes and their  valid values for Exchange are not well documented. You can experiment with their  settings, but do so only in a lab environment.</p>
<h3>Using a command-line interface</h3>
<p>A bad aspect of creating storage groups by direct Active  Directory object manipulation is that you will not get warnings concerning the  maximum number of storage groups allowed.</p>
<h3>Using VBScript</h3>
<p>The process of calling the CDOEXM interfaces to create storage  groups is rather straightforward once you have the URL for the object&#8217;s location  in Active Directory. In this solution, to get the storage group container&#8217;s  distinguished name for the server, the script loops through all storage groups  on the sever and sets <tt>strTemp</tt> to the URL value of the last storage  group. This value is then parsed to get the parent container for the storage  groups to build the new storage group URL.</p>
<h5 class="docSection3Title"></h5>
<h3>Using a graphical user interface</h3>
<ol type="1">
<li> Open the Exchange System Manager (ESM) snap-in.</li>
<li> In the left pane, browse to the server that you want to create  a new storage group for.</li>
<li> Right-click on the server and select <span class="docEmphBold">New</span> -&gt; <span class="docEmphBold">Storage Group</span>.</li>
<li> Enter a name, transaction log location, system path location  for storage of temporary and recovered files, and click <span class="docEmphBold">OK</span>.</li>
</ol>
<h3>Using a command-line interface</h3>
<p>First, create an LDIF file called <em>add_sg.ldf</em> with the  following contents:</p>
<pre>dn: CN=<tt><em>&lt;Storage Group Name&gt;</em></tt>,<tt><em>&lt;ParentDN&gt;</em></tt>changetype: add

objectClass: msExchStorageGroup

cn: <tt><em>&lt;Storage Group Name&gt;</em></tt>

showInAdvancedViewOnly: TRUE

systemFlags: 1610612736

msExchESEParamEnableIndexChecking: TRUE

msExchESEParamEnableOnlineDefrag: TRUE

msExchESEParamSystemPath: <tt><em>&lt;Path to store system files&gt;</em></tt>

msExchESEParamPageFragment: 8

msExchESEParamPageTempDBMin: 0

msExchRecovery: TRUE

msExchESEParamZeroDatabaseDuringBackup: 0

msExchESEParamBaseName: E01

msExchESEParamCircularLog: 0

msExchESEParamEventSource: MsExchangeIS

msExchESEParamCheckpointDepthMax: 20971520

msExchESEParamCommitDefault: 0

msExchESEParamLogFilePath: <tt><em>&lt;Path to log files&gt;</em></tt>

msExchESEParamDbExtensionSize: 256

msExchESEParamLogFileSize: 5120</pre>
<p>Replace <tt><em>&lt;Storage</em></tt> <tt><em>Group</em></tt>  <tt><em>Name&gt;</em></tt> with the name of the storage group,  <tt><em>&lt;ParentDN&gt;</em></tt> with the distinguished names of the storage  groups container for the appropriate server,<tt><em> &lt;Path</em></tt>  <tt><em>to</em></tt> <tt><em>store</em></tt> <tt><em>system</em></tt>  <tt><em>files&gt;</em></tt> with the filesystem path where you want system files  (temporary and recovered files), and <tt><em>&lt;Path</em></tt> <tt><em>to</em></tt>  <tt><em>log</em></tt> <tt><em>files&gt;</em></tt> with the filesystem path where you  want exchange log files. Then run the following command:</p>
<pre>&gt;ldifde -i -f add-sg.ldf</pre>
<h3>Using VBScript</h3>
<pre>' This code creates a Storage Group.' ------ SCRIPT CONFIGURATION ------

strServer = "<tt><em>&lt;Exchange Server&gt;</em></tt>"      ' e.g., ExchServer2

strName   = "<tt><em>&lt;Storage Group Name&gt;</em></tt>"   ' e.g., SG1

strPath   = "<tt><em>&lt;File Path&gt;</em></tt>" &amp; strName  ' e.g., D:\Program Files\ExchSrvr

' ------ END CONFIGURATION ---------' Create URL to Storage Group

Set objSrv = CreateObject("CDOEXM.ExchangeServer")

objSrv.DataSource.Open strServer

' This for loop is a bit of a hack to retrieve the first Storage Group

' in the collection. VBScript doesn't let you access specific elements

' of a collection the way Jscript can.

for each strSg in objSrv.StorageGroups

strTemp = strSg

exit for

next

strTemp = mid(strTemp,instr(2,strTemp,"cn",1))

strSGUrl = "LDAP://cn=" &amp; strName &amp; "," &amp; strTemp

' Create/configure Storage Group and save it

set objSG = CreateObject("CDOEXM.StorageGroup")

objSG.MoveSystemFiles(strPath)

objSG.MoveLogFiles(strPath)

objSG.DataSource.SaveTo strSGUrl

Wscript.Echo "Successfully created storage group."</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.xiitec.com/blog/2008/11/10/creating-a-storage-group/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

