Managing Systems and Workgroups: A Guide for HP-UX System Administrators
Contents
23
Resizing a JFS File System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 652
To Resize a JFS File System using fsadm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 652
To Resize a Basic JFS File System. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 653
Examples and Cookbook Procedures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 654
Managing Large Files. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 654
Creating a Large-Files File System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 655
Examples of Creating a Large Files File System . . . . . . . . . . . . . . . . . . . . . . . . . 655
Examples of Creating a No-Large-Files File System . . . . . . . . . . . . . . . . . . . . . . 655
Changing from a Large-Files File System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 656
Command Support for Large Files. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 656
Repairing a Large-Files File System with fsck . . . . . . . . . . . . . . . . . . . . . . . . . . . 656
The mount Command and Large-Files File Systems . . . . . . . . . . . . . . . . . . . . . . 657
For More Information on Large Files. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 657
Managing FTP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 657
Enabling/Disabling the /etc/ftpd/ftpaccess Configuration File . . . . . . . . . . . . . . . 658
Verifying the Path Names of FTP Configuration Files . . . . . . . . . . . . . . . . . . . . . 658
Getting Information about FTP Users. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 659
Creating an FTP Shutdown Message. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 659
Logging FTP Session Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 659
Logging FTP File Transfers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 660
Configuring Logging in the /etc/ftpd/ftpaccess File . . . . . . . . . . . . . . . . . . . . . 660
Setting Up Virtual FTP Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 660
Managing Swap and Dump . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 662
Types of Swap Space . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 662
Device Swap . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 662
File System Swap . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 662
Pseudo-Swap . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 663
Primary and Secondary Swap . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 663
Designing Your Swap Space Allocation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 664
Checking How Much Swap Space You Currently Have . . . . . . . . . . . . . . . . . . . . 664
Estimating Your Swap Space Needs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 664
Local Swap Space Needs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 665
Server Swap Space Needs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 666
Adjusting Swap Space System Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 666
Guidelines for Setting Up Device Swap Areas . . . . . . . . . . . . . . . . . . . . . . . . . . . 667
Guidelines for Setting Up File System Swap Areas . . . . . . . . . . . . . . . . . . . . . . . 667
Guidelines for Assigning Swap Priority. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 668
Adding, Modifying, or Removing File System Swap . . . . . . . . . . . . . . . . . . . . . . . . 668