File systems


Local (JFS) filesystems

/var and /tmp should be at least 64MB (131072 512-byte blocks) in size. Paging space should be at least as large as the machine's RAM.
The /tmp filesystem should be cleaned on a daily basis, edit /var/spool/cron/crontabs/root or use
   crontab -e
to insert
   0 3 * * * /usr/sbin/skulker >/dev/null # obsolete
or
   0 3 * * * /opt/bin/scavenger -t+1 /tmp >/dev/null
which will cleanup at 3 AM.

/opt

This filesystem usually holds optional software, mostly freeware. It is created automatically during installation of AIX>=5.1. On earlier versions one has to create it manually on rootvg with a size of 64MB, better 128MB:
   smitty storage: Logical Volumes - Add a Logical Volume 
   smitty storage: Filesystems - Add / Change / Show / Delete File Systems
   smitty storage: Filesystems - Add / Change / Show / Delete File Systems
   smitty storage: Filesystems - Mount a File System
or per command line
   mklv -y'hd10opt' -t'jfs' rootvg 1               # 1 partition to start with
   crfs -v jfs -d'hd10opt' -m'/opt' -p'rw' -A yes  # filesystem with default parameters
   chfs -a size='262144' /opt                      # increase it to 128MB      
   mount /dev/hd10opt /opt                         # mount it

Remote filesystems, mounted via automounter

There are user, scratch and data filesystems, as well as freeware and commercial applications.
  1. Prepare links and directories,
       rm /u     # it's only a softlink to /home 
       mkdir /u
    
  2. Prepare the automounter files (the comments in the following should be omitted, their content belongs into the respective /etc/auto.* file)
  3. At GSI, for a new machine, the operating group (E.Stiel@gsi.de) has to be informed to regularly update the autofs maps on this machine.
    (Obsolete as of fall 2006: it must be allowed to mount filesystems on the servers filesv1 and filesv2, M.Feyerabend@gsi.de).
    clri6m

Last update: 30-Dec-2012, M.Kraemer