![]() ![]() ![]() ![]() |
Appendix A
Customizing disk partitionsIntroduction
This section explains how to customize disk partitions to manage the available disk resources on your target server.
Customizing disk partitions
If the target server where you install Ensim Pro has single and medium capacity hard disks (typically 40 GB and less) the default partitioning scheme of /boot = 50 MB, swap = twice the amount the RAM, and /= rest of the hard disk space will suffice.
However, for disks with a capacity of 40 GB and above or for systems with more than one hard disk, the above scheme is not feasible. In such cases, a custom partitioning scheme must be specified.
If the target server has high capacity hard disks or multiple hard disks, it is recommended that you customize disk partitions so as to have multiple partitions on your hard disks.
Disk partitioning schemes for Ensim Pro
If the capacity of the hard disk is greater than 40 GB, or if the number of hard disks exceed one, the following partitions can be used:
- /= 5 GB
- /boot = 101 MB
- swap = 1 GB and above or multiple swap partitions
- /var = at least 5 GB
- /home = largest
If the target server has only one hard disk, you can opt for the above partitioning scheme on the same disk. However, if the target server has more than one hard disk (for example, two), the above scheme can be spread across the two disks as follows:
First disk (40 GB):
- / = <remaining disk space>
- /boot = 101 MB
- swap = 1024 MB
- /var = 20 GB
- /tmp = 2 GB
Second disk (40 GB):
- swap = 1024 MB
- /home = <remaining disk space>
Setting up Ensim Pro to use multiple partitions
To allow the server’s root user to configure where Ensim Pro temporary files are created, change the path name to the temporary files by editing the file /etc/virtualhosting/tmpdirs. Ensim Pro essentially makes changes to files located under /etc and /home/virtual.
![]()
You must not edit the file tmpdirs until you finish installing Ensim Pro. If you attempt to create the directories as detailed below prior to installing Ensim Pro, the installation will fail. This is because the installation checks for the existence of /etc/virtualhosting and /home/virtual.
Additionally, any changes made in the file tmpdirs are overwritten during the installation process.
When you change the path name to the temporary files, each line in the tmpdirs file should use the following format.
<path-prefix>:<directory>
where <path-prefix> matches the beginning of file path names whose associated temporary file locations you want to modify, and <directory> is a path to an existing directory that lies on the same partition as <path-prefix>.For security purposes, <directory> should be root-owned, with no permissions for either group or other (for example, 0700), and all path components leading to this directory should not be editable by anyone other than root. If this file is empty, then by default all temporary files will be created in /var/cache.
![]()
You have to restart Ensim Pro to complete this configuration process. To restart Ensim Pro, type the following command at the command prompt.
/etc/rc.d/init.d/webppliance restart
Assume the disk partitioning of the server is as follows:
- / is on /dev/hda1
- /var is on /dev/hda2
- /home is on /dev/hda3
- /usr is on /dev/hda5
Since /etc, /var, /usr and /home are on different partitions, a temporary directory must be specified for each partition. By default, Ensim Pro creates temporary directories on the /etc and /home partitions.
- /etc:/etc/virtualhosting/tmp
- /home:/home/virtual/FILESYSTEMTEMPLATE/.tmp
You can add an entry for the /usr partiton in /etc/virtualhosting/tmpdirs as follows.
- /usr:/usr/.tmp
To create the directory /usr/.tmp, type the following command.
#mkdir /usr/.tmp; chown 700 /usr/.tmp
You must edit the file /etc/virtualhosting/tmpdirs to include an entry for the temporary directory on the /var partition.
- /var:/var/tmp
By default, Ensim Pro uses /var/tmp as the temporary directory. If /var is mounted on a separate partition, you must make an entry for the temporary directory in the /etc/virtualhosting/tmpdirs file for the / partition. This is because Ensim Pro uses hard links when files are transferred and hard links do not work across partitions. So, you must ensure that the corresponding temporary directory for a partition resides on the same partition.
For example, if the dir /tmp is on the / partition, you must edit the configuration file /etc/virtualhosting/tmpdirs to include the following entry.
- /:/tmp
Summating the above assumptions, the file /etc/virtualhosting/tmpdirs would include the following sequence of entries.
- /etc:/etc/virtualhosting/tmp
- /home:/home/virtual/FILESYSTEMTEMPLATE/.tmp
- /usr:/usr/.tmp
- /var:/var/tmp
- /:/tmp
The sequence of entries in the file is important. During file operations, Ensim Pro uses the first partition that is reported by the system to contain the requisite directory or file. For example, placing the /:/tmp entry before the entry /var:/var/tmp, will cause any search for files in the /var directory to default to the / directory.
![]()
For more details on Linux partitions, please contact Ensim Support at https://onlinesupport.ensim.com.
Ensim
Corporation www.ensim.com Contact Ensim www.ensim.com/about/contact.html |
![]() ![]() ![]() ![]() |