|
» |
|
|
|
Increasing the Number of nfsd Daemons | |
To increase the number
of nfsds running on a server, do the following
steps: Edit /etc/rc.config.d/nfsconf, raising the value of NUM_NFSD; for example: NUM_NFSD=8 Stop
and restart the nfs.server script: /sbin/init.d/nfs.server stop /sbin/init.d/nfs.server start
Defragmenting an HFS File System | |
Defragmenting an HFS file system could improve throughput
by reducing disk seek time. In practice, though, most experts believe
it will usually make little or no difference to performance. You should
do it only if you have good reason to believe, or have received expert
advice, that your system will really benefit. You can defragment an HFS file system by backing
it up to tape, removing and recreating it, then recovering the data
from the tape. The example that follows shows an alternative
method, using dcopy, and assumes you have enough
disk space to create a new logical volume at least as large as /dev/vg01/lvol8. We’ll operate on the /work file system, which resides on the logical volume /dev/vg01/lvol8. Back
up the file system; for example, tar cv /work backs up /work to the system
default tape device, /dev/rmt/0m. Create
a new logical volume (see HP-UX System Administrator) but do not mount
it to any file system. We’ll assume
this new logical volume is /dev/vg01/lvol9. Make
sure no one has files open in /work and that
it is no one’s current working directory, for example: fuser -cu /work Unmount /work: umount
/work Write
out the contents of /work to /dev/vg01/lvol9: dcopy -v /dev/vg01/rlvol8
/dev/vg01/lvol9 | | | | | NOTE: The source file system should be a raw device
(/dev/vg01/rlvol8) and the destination file system
should be a block device (/dev/vg01/lvol9). | | | | |
Mount
the new logical volume to the mount point of the original file system, /work: mount
/dev/vg01/lvol9 /work You can now reuse the original logical volume /dev/vg01/lvol8) or remove it (see “Removing a Logical Volume”).
Defragmenting a JFS File System | |
HP-UX System
Administrator’s Guide: Configuration Management
To maintain performance, particularly on file
systems with very large files, JFS provides the means to reorder disk
space to regain contiguous areas on which to write files. This process
of defragmentation should be performed periodically. To defragment a JFS file system using HP SMHAccess
the HP SMH Homepage as root. Select Tools, Disks and File Systems, File Systems. This will display a list of file systems. Select
the desired JFS (VxFS) file system. You can now display extent or
directory fragmentation for the file system, or click on the Defragment Extents... or Defragment
Directories... actions on the right side of the page.
For more information, consult HP SMH’s
online help. To defragment a JFS file system using fsadm Execute the following to perform both directory
and extent reorganization and to generate reports before and after
reorganization: fsadm -d -D -e -E /mount_point
|
For detailed information, consult fsadm_vxfs(1M). To maintain optimal performance on busy file systems,
it may be necessary to defragment them nightly. For example, to defragment every evening at 9
p.m. all the extents and directories within the file system mounted
at /home, include the following entry in a file
used by cron(1M): 0 21 * * * fsadm -d -e /home
|
Configurable Kernel Parameters | |
In some cases, you may be able
to get the results you need by resetting kernel parameters. For example,
if a user frequently runs out of processes (symptom no more processes), raising the value of maxuprc might be the answer. Configuring Kernel Tunable Parameters Using HP SMHAccess
the HP System Management Homepage (HP SMH) as root. Select Tools, Kernel Configuration, Tunables. This will display the Kernel Configuration page
with the Tunables tab displayed. Click
on the Modify Tunable action on the right side of
the page. This will display the Modify Tunable page. You
can now reset the tunable default, enter a new value, or log comments. Click
on Modify to complete the change.
For more information on dynamic tunables, see HP-UX System Administrator’s Guide: Configuration Management and the Dynamically Tunable Kernel Parameters in HP-UX
11i whitepaper at http://docs.hp.com. | | | | | CAUTION: Make sure you read the help for all the parameters
related to any parameter you are considering changing. In the case
of maxuprc, you would need to read the help on nproc as well as maxuprc. | | | | |
|