Sample layouts for a server database on DS5000 series disks
Samples illustrate several ways to follow configuration guidelines for the server database when you use DS5000 series Fibre Channel disks. The samples illustrate advantages and disadvantages of configuration choices.
Remember: Ensure that the server database, recovery
logs, and storage pools are on different disks.
Sample 1: Good layout for a small server
By using five disks for the database, you can set up the disks with the following characteristics. See Figure 1.- Configure disks in a 4 + 1 RAID 5 array.
- Set the stripe size to 256 KB.
- Define one directory (also called a container) and one logical volume for the database.
- Set the DB2_Parallel_IO environment variable:
The IBM Db2 program that is the server's database manager uses this value when it balances load across the disks.DB2_Parallel_IO=*:4

- The layout follows the guidelines for optimal stripe size.
- The layout follows the guidelines for having a one-to-one correspondence between logical volumes and containers.
- Write operations for parity bits can affect performance if the system has a small cache.
- The layout has only one container for the database, which is typically not optimal but might not be a problem for small server workloads.
- Database and database indexes are spread across only five disks.
Sample 2: Better layout that uses RAID 10
By using eight disks for the database, you can set up the disks with the following characteristics. See Figure 2.- Configure disks in a 4 + 4 RAID 10 array.
- Set the stripe size to 256 KB.
- Define one directory (also called a container) and one logical volume for the database.
- Set the DB2_Parallel_IO environment variable:
DB2_Parallel_IO=*:4

- The layout follows the guidelines for optimal stripe size.
- The layout follows the guidelines for having a one-to-one correspondence between logical volumes and containers.
- The system does not have the performance cost of parity write operations.
- RAID 10 is an optimal choice for the server database. With its two sets of disks, this configuration results in faster reads for the database.
- The layout has only one container for the database, which is typically not optimal but might not be a problem for small server workloads.
- The layout requires twice as many disks as in sample 1 because of the use of RAID 10 instead of RAID 5.
Sample 3: Better layout that uses RAID 10 and more containers
By using 16 disks for the database, you can set up the disks with the following characteristics. See Figure 3.- Configure the disks in two 4 + 4 RAID 10 arrays.
- Set the stripe size to 256 KB.
- Define two directories (also called containers) and two logical volumes for the database.
- Set the DB2_Parallel_IO environment variable:
DB2_Parallel_IO=*:4

- The layout follows the guidelines for optimal stripe size.
- The layout follows the guidelines for having a one-to-one correspondence between logical volumes and containers.
- The system does not have the performance cost of parity write operations.
- RAID 10 is an optimal choice for the server database. With its two sets of disks, this configuration results in faster reads for the database.
- Many more physical spindles means better performance for database read and write operations.
- More database containers means that more data can be prefetched by the Db2 software.