How do I update a Linux user’s home directory?

For more information on the new home directory format, please see this advisory.
Before making changes to your system, please review the general system administration best practices.

To migrate existing Linux users’ home directories to the new format:

Verify that /u2/eclipse/.profile has been updated:

vi /u2/eclipse/.profile

The following block of code must appear before “Setup the Eclipse environment.” If it doesn’t, add it:

# Move to the Eclipse account home directory
export ECLIPSEHOME=/u2/eclipse
cd $ECLIPSEHOME

After the .profile has been updated, backup the existing /etc/passwd file containing user information:

TIMESTAMP=`date +%Y%m%d.%H%M%S`
echo "`date`: backing up /etc/passwd to /etc/passwd.$TIMESTAMP"
cp /etc/passwd /etc/passwd.$TIMESTAMP

Run the following script to update the existing user’s home directories:

ECLIPSEHOME=/u2/eclipse
echo "`date`: started user migration"
awk -F":" '{ print $1 " " $6 }' /etc/passwd | egrep "$ECLIPSEHOME$" | sort | {
    while read LINE; do
        USERNAME=$(echo $LINE | awk '{print $1}')
        ECLIPSEHOME=$(echo $LINE | awk '{print $2}')
        echo "`date`: Setting $USERNAME's home directory to /home/$USERNAME with a link to $ECLIPSEHOME/.profile"
        mkdir -p /home/$USERNAME
        chown $USERNAME /home/$USERNAME
        usermod -d /home/$USERNAME $USERNAME
        ln -sf $ECLIPSEHOME/.profile /home/$USERNAME/.profile
        ln -sf $ECLIPSEHOME/.profile /home/$USERNAME/.bash_profile
    done
}

Log in as an Eterm user to verify that the steps been completed properly. If you encounter any issues, please open a support request.

Review the updated user maintenance procedures.

 

How do I change a UniVerse tuning parameter?

The current settings for the configurable parameters are stored in the uvconfig file, located in the UV account directory (/u2/uv). A command called uvregen uses the uvconfig file to create another file in the UV account directory named .uvconfig, which contains an encrypted version of the current configurable parameter settings. The .uvconfig file is used during the startup of UniVerse.

When you run the uvregen program, it does the following:

  • Verifies that the values in the uvconfig file are reasonable
  • Creates a new .uvconfig file in the UV account directory
  • Resets the master key if you are using encryption

To change configurable parameter values, you can edit the uvconfig file manually. When you change configurable parameter settings, you must save them in the uvconfig file. You must restart UniVerse for the new settings to take affect.

Make sure you understand the effect of any changes you make to the default values. A small change can have a significant impact on your system. It is impossible to document the impact of each of these parameters so that you can predict the effect of a value change. If you are not sure about how to change the value of any parameter, please consult with a UniVerse support specialist.

To change the value of a configurable parameter, complete the following steps:

Stop Eclipse services that rely on UniVerse (SYSTEM.ADMIN, JBoss):

Change the working directory to the UV account directory (make sure the UV account directory is in the current path).

cd /u2/uv

Make sure all users are logged out of UniVerse and stop all UV processes:

bin/uv

Press ESC
At the prompt, type:

MASTER OFF ALL
Q

Shut down UniVerse

bin/uv -admin -stop
Before making changes to a configuration file, always make a backup.

Edit the uvconfig file in the UV account directory using your preferred text editor (for example, vi):

vi uvconfig

When you’ve saved the changes, apply them by executing the UniVerse uvregen program:

bin/uvregen

Start up UniVerse:

bin/uv -admin -start

Start up any dependent services (SYSTEM.ADMIN, JBoss, etc.):

Resources:

How do I shrink a Linux filesystem?

WARNING: storage maintenance, especially reducing filesystems, can potentially result in errors or data loss. Plan and act accordingly. Always create backups and follow best practices.

For this example, we’ll be using the standard /dev/datavg/eclipse LV that’s mounted at /u2/eclipse. We’ll be shrinking the filesystem to 50GB.

Begin by unmounting the file system:

umount /u2/eclipse

Force a filesystem check:

e2fsck -f /dev/datavg/eclipse

Reduce the file system. The number specified here is the final, target size of the filesystem, not the amount by which it is reduced.

resize2fs /dev/datavg/eclipse 50G

The logical volume must also be reduced by the same amount:

lvreduce -L 50G /dev/datavg/eclipse

Mount the filesystem and run df to verify the change was made:

mount /u2/eclipse
df -h /u2/eclipse

Resources:

  • https://access.redhat.com/kb/docs/DOC-5531
  • http://blog.shadypixel.com/how-to-shrink-an-lvm-volume-safely/

How do I view or reset the attention indicator on my IBM AIX server?

The attention indicator (amber LED) is lit on an IBM AIX server to notify the administrator of potential problems. Once you have verified that no problems exist through running diagnostics or analysis of the errpt, you may reset this indicator.

To disable the attention indicator on your IBM AIX server:

  • Log into the server as root via Eterm (telnet), PuTTY (telnet, ssh), the HMC or the local console.
  • Launch diagnostics:
    diag
  • Press ENTER to continue
  • Select Task Selection
  • Select Identify and Attention Indicators
  • Select Set System Attention Indicator to NORMAL
  • Press ESC-7 or F7
  • Press ESC-0 to exit

For assistance with running diagnostics, or to answer any questions regarding your IBM server, you may contact IBM directly.

References:

How do I run diagnostics on my IBM AIX server?

To run diagnostics on your IBM AIX server:

  • Log into the server as root via Eterm (telnet), PuTTY (telnet, ssh), the HMC or the local console.
  • If you would like to display the previous diagnostic results, for instance, after noticing an amber attention indicator on the server:
/usr/lpp/diagnostics/bin/diagrpt -o
  • Note any on-screen messages regarding hardware problems to be reported to IBM
  • Press ENTER to continue
  • Use the arrow keys to select Diagnostic Routines and press ENTER
  • Use the arrow keys to select Problem Determination and press ENTER
  • If you are prompted to select resources, use the arrow keys to select All Resources and press ENTER
  • Press ESC-7 or F7 to begin the diagnostics
  • Follow the on-screen instructions to continue diagnostics
  • Note any on-screen messages regarding hardware problems
  • If you wish to cancel, press ESC-0 at any time

For assistance with running diagnostics, or to answer any questions regarding your IBM server, you may contact IBM directly.

References: