/
(root), /var
and /tmp
should be at least 64MB
(131072 512-byte blocks) in size for AIX <=5.1,
and 128MB, 512MB and 512MB, respectively, for AIX >=5.2.
The amount of necessary
paging space depends on the nature of the applications.
The installation default may suffice, but
for memory hogs one should consider paging space about
as large as the machine's RAM.
/tmp
filesystem should be cleaned on a daily basis,
edit /var/spool/cron/crontabs/root
or use
crontab -eto insert
0 3 * * * /usr/sbin/skulker >/dev/null # obsoleteor
0 3 * * * /opt/bin/scavenger -t+1 /tmp >/dev/nullwhich will cleanup at 3 AM.
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 Systemor 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
rm /u # it's only a softlink to /home mkdir /u
mkdir /nfs ln -s /nfs/clri6c/cern /cern ln -s /nfs/clri6c/local.AIX /usr/local mkdir /bio ln -s /nfs/bio/local.AIX/52 /bio/local # for AIX 5.2 ln -s /nfs/bio/local.AIX/53 /bio/local # for AIX 5.3 ln -s /nfs/bio/local.AIX/61 /bio/local # for AIX 6.1 ln -s /nfs/bio/local.AIX/71 /bio/local # for AIX 7.1
mkdir /nfs
/etc/auto.*
file)
/etc/auto_master
for example looks like
/u /etc/auto.u # $user -rw,vers=3,proto=tcp biops5z:/userfs/userb01/$user (distributed by IT) /s /etc/auto.s # bio -rw,bg,soft,intr,retry=10 biops5w:/fsscratch/bio /- /etc/auto.d # /d/bio -rw,bg,soft,intr,retry=10 biops5w:/data/data014 # ... more similar entries /nfs/clri6c /etc/auto.nfs # cern -rw,vers=3,proto=tcp clri6m:/usrlocal/cern # local.AIX -rw,vers=3,proto=tcp clri6m:/usrlocal/local.AIX # ... more similar entries /nfs/bio /etc/auto.bio # local.AIX -ro,vers=3,proto=tcp biops5z:/applfs/applb00/AIX /- /etc/auto.lxg0110 # /data.local -rw,bg,soft,intr,retry=10 lxg0110:/data.local2 # ... more similar entries /- /etc/auto.lxg0113 # /datalxg0113 -rw,bg,soft,intr,retry=10 lxg0113:/data.local1 /- /etc/auto.lxg0115 # /datalxg0115 -rw,bg,soft,intr,retry=10 lxg0115:/data.local1If maps have changed, stop the automounter and restart:
stopsrc -s automountd; /usr/sbin/automount -m -v -f /etc/auto_master
/etc/auto_master
for example looks like:
/- /etc/auto.u # direct map to allow new users in /u # /u -rw,soft,intr,retry=10 rs6kf:/userfs/AIX/POWER # /c -rw,soft,intr,retry=10 rs6kf:/userfs/COMMON # /WWW -rw,soft,intr,retry=10 rs6kf:/userfs/WWW /s /etc/auto.s # bio -rw,soft,intr,retry=10 rs6kf:/scratch/bio /d /etc/auto.d # bio -rw,soft,intr,retry=10 rs6kf:/datafs/bio # depot -rw,soft,intr,retry=10 rs6kf:/depotfs/ # swdepot -rw,soft,intr,retry=10 rs6kf:/swdepotfs/ # img -rw,soft,intr,retry=10 rs6kf:/imgfs/ /nfs /etc/auto.nfs # local -ro,soft,intr,retry=10 rs6kf:/applfs/applb01/AIX/POWER # install -rw,soft,intr,retry=10 rs6kf:/applfs/applb01/AIX/POWER # common -rw,soft,intr,retry=10 rs6kf:/applfs/applb01/COMMONIf this file exists, the automount daemon will be started on boot automatically via
/etc/rc.nfs
.
/etc/auto.master
for example looks like:
/- /etc/auto.u # direct map to allow new users in /u # /u -rw,soft,intr,retry=10 rs6kf:/userfs/AIX/POWER # /c -rw,soft,intr,retry=10 rs6kf:/userfs/COMMON # /WWW -rw,soft,intr,retry=10 rs6kf:/userfs/WWW /s /etc/auto.s # bio -rw,soft,intr,retry=10 rs6kf:/scratch/bio /d /etc/auto.d # bio -rw,soft,intr,retry=10 rs6kf:/datafs/bio # depot -rw,soft,intr,retry=10 rs6kf:/depotfs/ # swdepot -rw,soft,intr,retry=10 rs6kf:/swdepotfs/ # img -rw,soft,intr,retry=10 rs6kf:/imgfs/ /nfs /etc/auto.nfs # local -ro,soft,intr,retry=10 rs6kf:/applfs/applb01/AIX/POWER # install -rw,soft,intr,retry=10 rs6kf:/applfs/applb01/AIX/POWER # common -rw,soft,intr,retry=10 rs6kf:/applfs/applb01/COMMONNote that it might be necessary to explicitly fall back to an ancient NFS version by specifying
vers=2
as mount option.
/etc/rc.local
:
/usr/sbin/automount -f /etc/auto.masterAlternatively, it may be placed in
/etc/inittab
:
automount:2:once:/usr/etc/automount -T -v >/dev/null 2>&1Note that the automount daemon should not be terminated by
kill -9
, rather use kill -15
in order to allow cleanup.
/etc/rc.nfs
)
have to be active
in order for the automounter to work.
autofs
(file /etc/auto.u
) maps on this machine.