Job Management Partner 1/Software Distribution Setup Guide
The partition size for this example assumes 1,000 clients are being administered, each client collects 2,000 operation monitoring history items per day, and the database is storing eight months of data. In this case, 2 million operating information items are created daily and 40 million items are created monthly (assuming 20 days). Since this means a medium-sized user, we recommend that you create database partitions that can store a month's worth of data.
When creating a new JP1/Software Distribution database, you also need to include in the estimate the space required for devices other than software operation monitoring history database devices. For details, see 5.4.2 Estimating disk space required for Microsoft SQL Server in the manual Description and Planning Guide. Estimate the space required monthly for the software operation monitoring history database devices and for the software operation monitoring history data partitions that hold one month of data. Here, we use 10 for the number of programs for which operating time is acquired.
To change existing JP1/Software Distribution databases to data partitions, also estimate the size of the monthly software operation monitoring history data partition.
Therefore, when creating a new JP1/Software Distribution database, create a 40-GB software operation monitoring history database device as a secondary area with Database Manager and create eight 80-GB software operation monitoring history data partitions for eight months of data using SQL Server Management Studio.
To change a JP1/Software Distribution database to a data partition, use the existing software operation monitoring history database device as a secondary area and create eight 80-GB software operation monitoring history data partitions for eight months of data using SQL Server Management Studio.
Here, we assume the following three disks are available for creating the secondary area.
In this subsection, we prepare code query scripts for creating the data partitions.
Table 7-6 Query scripts (when creating data partitions)
No. | Query script name | Description | Sample |
---|---|---|---|
1 | DropTable.sql | Deletes the existing netmdm_monitoring_security table created by Database Manager. To create your own query script based on this sample, change the following item:
|
F.1 |
2 | AddFilegroup.sql | Adds a filegroup to be assigned a data partition. To create your own query script based on this sample, change the following items:
|
F.2 |
3 | AddFiletoEdrive.sql | Adds an actual file to the E drive and assigns it to a filegroup. To create your own query script based on this sample, change the following items:
|
F.3 |
4 | AddFiletoFdrive.sql | Adds an actual file to the F drive and assigns it to a filegroup. To create your own query script based on this sample, change the following items:
|
F.4 |
5 | CreatePartition.sql | Creates a partition function (PARTITION FUNCTION) and partition scheme (PARTITION SCHEME). To create your own query script based on this sample, change the following items:
|
F.5 |
6 | CreateTable.sql | Creates a netmdm_monitoring_security table in the partition scheme. To create your own query script based on this sample, change the following item:
|
F.6 |
The data partitions shown in Tables 7-7 and 7-8 will be created when you execute the query scripts listed in Table 7-6.
Table 7-7 Files and filegroups (when creating data partitions)
No. | Logical name | File name | Initial size | Upper limit | Increase amount | Filegroup name |
---|---|---|---|---|---|---|
1# | NETMDM_MONI_DEVICE | D:\Program Files\Hitachi\NETMDB\MSSQL\MONITOR.sdf | 40,000 MB | UNLIMITED | 10% | netmdm_moni_seg |
2 | NETMDM_DP_0001 | E:\NETMDP\MONITOR_DP_0001.ndf | 80 GB | UNLIMITED | 10% | netmdm_moni_dp_0001 |
3 | NETMDM_DP_0002 | E:\NETMDP\MONITOR_DP_0002.ndf | 80 GB | UNLIMITED | 10% | netmdm_moni_dp_0002 |
4 | NETMDM_DP_0003 | E:\NETMDP\MONITOR_DP_0003.ndf | 80 GB | UNLIMITED | 10% | netmdm_moni_dp_0003 |
5 | NETMDM_DP_0004 | E:\NETMDP\MONITOR_DP_0004.ndf | 80 GB | UNLIMITED | 10% | netmdm_moni_dp_0004 |
6 | NETMDM_DP_0005 | F:\NETMDP\MONITOR_DP_0005.ndf | 80 GB | UNLIMITED | 10% | netmdm_moni_dp_0005 |
7 | NETMDM_DP_0006 | F:\NETMDP\MONITOR_DP_0006.ndf | 80 GB | UNLIMITED | 10% | netmdm_moni_dp_0006 |
8 | NETMDM_DP_0007 | F:\NETMDP\MONITOR_DP_0007.ndf | 80 GB | UNLIMITED | 10% | netmdm_moni_dp_0007 |
9 | NETMDM_DP_0008 | F:\NETMDP\MONITOR_DP_0008.ndf | 80 GB | UNLIMITED | 10% | netmdm_moni_dp_0008 |
Table 7-8 Partition function name and partition scheme name (when creating data partitions)
Partition function name | Partition scheme name |
---|---|
netmdm_monitoring_security_pf | netmdm_monitoring_security_ps |
Operation monitoring histories are stored by this partition function and partition scheme for each month for event start times as indicated in the following table.
Table 7-9 Operation monitoring history that is stored (when creating data partitions)
No. | Filegroup name | Partition number | Operation monitoring history that is stored |
---|---|---|---|
1 | netmdm_moni_seg | 1 | event-start-time < 01/01/2011 |
2 | netmdm_moni_dp_0001 | 2 | 01/01/2011 |
3 | netmdm_moni_dp_0002 | 3 | 02/01/2011 |
4 | netmdm_moni_dp_0003 | 4 | 03/01/2011 |
5 | netmdm_moni_dp_0004 | 5 | 04/01/2011 |
6 | netmdm_moni_dp_0005 | 6 | 05/01/2011 |
7 | netmdm_moni_dp_0006 | 7 | 06/01/2011 |
8 | netmdm_moni_dp_0007 | 8 | 07/01/2011 |
9 | netmdm_moni_dp_0008 | 9 | 08/01/2011 |
For more information about how to create a new JP1/Software Distribution database, see 7.5.1 Creating a new database. When you create a new database, specify the initial size, upper limit, and increase amount from entry No. 1 in Table 7-7 in the software operation monitoring history database file.
For information about changing an existing JP1/Software Distribution database to a data partition, see 7.5.4 Upgrading the database.
Create data partitions by running the query scripts from Table 7-6 using SQL Server Management Studio.
To create a new JP1/Software Distribution database:
To change an existing JP1/Software Distribution database into a data partition:
All Rights Reserved. Copyright (C) 2009, 2013, Hitachi, Ltd.
Copyright, patent, trademark, and other intellectual property rights related to the "TMEng.dll" file are owned exclusively by Trend Micro Incorporated.