A way to change the default 027 umask of ftp is to change the entry in /etc/inetd.conf for ftpd:
ftp stream tcp6 nowait root /usr/sbin/ftpd -l -u 117
This will create files with umask 117 (mode 660). Using the -l option will make sure the FTP sessions are logged to the
syslogd. If you want to see these FTP messages in the
syslogd output, then you should add to
/etc/syslog.conf:
daemon.info [filename]
It's a good idea to centralize the shell history files for ease in tracking the actions done by the users:
Create a ${hist_dir}. Add the following lines to the /etc/profile file:
export HISTFILE=/${hist_dir}/${LOGNAME}_`date "+%Y%m%d_%H%M%S"`
export HISTSIZE=2000
When exchanging text files between Windows and AIX systems, you often run into ^M (CTRL-M) characters at the end of each line in a text file. To remove these ugly characters:
tr -d '^M' < [inputfile] > [outputfile]
To type the ^M character on the command line: press CTRL, then type v and the m.
Another way: download this zip archive:
controlm.zip (1KB).
This zip archive includes 2 files:
unix2dos and
dos2unix, which you can run on AIX:
To convert a Windows file to Unix file:
# dos2unix [filename]
To find out if your machine has a 64 or 32 bit architecture:
# bootinfo -y
To find out which kernel the system is running:
# bootinfo -K
You can also check the link
/unix:
# ls -ald /unix
unix_mp: 32 bits, unix_64: 64 bits
To find out from which disk your system last booted:
# bootinfo -b
To find out the size of real memory:
# bootinfo -r
To display the hardware platform type:
# bootinfo -T
In general IBM recommends that JFS log devices be set to 2MB for every 1GB of data to be protected. The default jfslog for rootvg is /dev/hd8 and is by default 1 PP large. In some cases, file system activity is too heavy or too frequent for the log device. When this occurs, the system will log errors like JFS_LOG_WAIT or JFS_LOG_WRAP.
First try to reduce the filesystem activity. If that's not possible, this is the way to extend the JFS log:
- Determine which log device to increase. This can be determined by its
Device Major/Minor Number in the error log:
# errpt -a
An example output follows:
Device Major/Minor Number
000A 0003
The preceding numbers are hexadecimal numbers and must be converted to decimal values. In this exmpale, hexadecial 000A 0003 equals to decimal numbers 10 and 3.
- Determine which device corresponds with these Device Major/Minor Numbers:
# ls -al /dev | grep "10, 3"
If the output from the preceding command reveals that the log device the needs to be enlarged is /dev/hd8 (the default JFS log device for rootvg), then special actions are needed. See further on.
- Increase the size of /dev/hd8:
extendlv hd8 1
- If the jfslog device is /dev/hd8, then boot the machine into Service Mode and access the root volume group and start a shell. If the jfslog is a user created jfslog, then unmount all filesystems that use the jfslog in question (use mount to show the jfslog used for each filesystem).
- Format the jfslog:
# logform [jsflog device]
For example:logform /dev/hd8
- If the jfslog device is /dev/hd8, then reboot the system:
# sync; sync; sync; reboot
If the jfslog is a user created jfslog, then mount all filesystems again after the logform completed.
It sometimes occurs that a file system runs full, while a process is active, e.g. when a process logs its output to a file. If you delete the log file of a process when it is still active, the file will be gone, but the disk space will usually not be freed. This is because the process keeps the inode of the file open as long as the process is active and still writes to the inode.
After deleting the file, it's not available as file anymore, so you can't view the log file of the process anymore. The disk space will ONLY be freed once the process actually ends.
To overcome it, don't delete the log file, but copy /dev/null to it:
# cp /dev/null [logfile]
This will clear the file, free up the disk space and the process logging to the file will just continue logging as nothing ever happened.
Use the following command to find any files that no longer have a valid user and/or group, which may happen when a group or user is deleted from a system:
# find / -fstype jfs \( -nouser -o -nogroup \) -ls
The uname -Ls command will show you the partition number and the partition (lpar) name. When setting the resource allocation for a partition profile, set the minimum to the absolute bare minimum, and set the maximum as high as possible.
For memory there are special considerations:
- If you set the maximum too low and you wish to exceed above the maximum amount of memory defined in the active profile, you can't simply adjust the profile and put extra memory in via DLPAR, because the LPAR has been initialized with a certain page table size, based on the maximum amount of memory setting. Therefore, a reboot will be required when you wish to use more memory than defined in the active profile. If you do try it however, you'll receive the following error:
HMCERRV3DLPAR018: There is no memory available for dynamic logical partioning on this partition.
- If you set the maximum too high, the partition will be initialize with a large page table size, which uses too much memory for overhead, which you might never use.

/dev/tesa0 Wireless Tape DriveIf you have a PMR open with IBM and you need to upload logs/snap/dump etcetera to IBM: You can use the below web interface to upload files. All you need is your PMR number, type (mostly AIX), and your email address. Once the files are uploaded, you get an email confirmation. You can still use the traditional ftp to testcase, should you prefer.
http://www.ecurep.ibm.com/app/upload
Number of results found: 469.
Displaying results: 331 - 340.