Previous Topic: Create a Logical Volume

Next Topic: Recycle the CA Enterprise Log Manager Server

Prepare the Logical Volume for CA Enterprise Log Manager

After you create a logical volume, you populate it with the expected directory structure and assign the ownership and group associations required by CA Enterprise Log Manager. You use vi to modify the fstab file to point to the logical volume you created and then you mount the new data directory.

To prepare the logical volume for CA Enterprise Log Manager

  1. Create a temporary directory, /data1, change the ownership of the /data1 directory to caelmservice, and change the group associated with this directory to caelmservice:
    mkdir /data1 
    chown caelmservice /data1
    chgrp caelmservice /data1
    
  2. Stop the CA Enterprise Log Manager server iGateway processes:
    /opt/CA/SharedComponents/iTechnology/S99igateway stop
    
  3. Change directories to the directory where the CA Enterprise Log Manager agent is running, stop the agent, and verify that the services are stopped:
    cd /opt/CA/ELMAgent/bin/
    ./caelmagent -s
    ps -ef | grep /opt/CA
    
  4. Change directory to /directory.
  5. Mount the new file system on /data1, copy the contents of the /data directory into the /data1 directory, and verify that the two directories are the same:
    mount -t ext3 /dev/VolGroup01/LogVol00 /data1
    cp -pR /data/* /data1
    diff -qr /data /data1
    
  6. Unmount the existing data mount point and then unmount the data1 mount point:
    umount /data
    umount /data1
    
  7. Delete the /data directory and rename the /data1 directory to /data.
    rm -rf /data
    mv /data1 data
    
  8. Modify the line in /etc/fstab that references the /data directory and point it to the new Logical Volume. That is, change /dev/VolGroup00/LogVol02 to /dev/VolGroup01/LogVol00. The changed data is shown in boldface type in the following rendering of a sample fstab file.

device name

mount point

fs-type

options

dump-freq pass-num

none

/dev/VolGroup00/LogVol00/

ext3

defaults

1 1

none

/dev/VolGroup01/LogVol00/data

ext3

defaults

1 2

LABEL=/boot

/boot

ext3

defaults

1 2

tmpfs

/dev/shm

tmpfs

defaults

0 0

devpts

/dev/pts

devpts

gid=5,mode=620

0 0

sysfs

/sys

sysfs

defaults

0 0

proc

/proc

proc

defaults

0 0

none

/dev/VolGroup00/LogVol01

swap

defaults

0 0

  1. Mount the new data directory and verify all the partitions in /etc/fstab are mounted:
    mount -a
    
    mount