IBM Netezza Replication Services, Version 1.6

Mounting storage

On the replication log server, you must create the mount point for log storage.

About this task

You create the mount point as read only to ensure that files are not accidentally written there when the disk is not mounted. However, the disk is mounted as read/write, helping to ensure that there will be no issues with the software installation.

For a clustered implementation, repeat the following procedure on each node so that all nodes have the same mount points and permissions.

Procedure

  1. Log in to the replication log server host as the root user.
  2. Create a local mount point directory of /var/nzrepl by issuing the following command:
    mkdir /var/nzrepl
  3. Make the local mount point read only when the log storage is not mounted on the replication log server host by issuing the following command:
    chmod a-w /var/nzrepl
    The chmod command fails if the directory is already NFS mounted. If that happens, unmount the mounted file system and reexecute the command.
  4. Change the ownership of the mount point directory to nz by issuing the following command:
    chown nz:nz /var/nzrepl
  5. Stand-alone implementations only: To ensure that the replication volumes (PTS-Data and PTS-Software) are mounted on system reboot, issue the following commands to update the /etc/fstab file. If your storage supports a battery-backed write-back cache, add the nobarrier option for higher performance.
    echo -e "/dev/PTS-Software-Grp/PTS-Software /opt/ibm\text3\trw,nobarrier\t1 2" 
      >> /etc/fstab
    echo -e "/dev/PTS-Data-Grp/PTS-Data\t/var/nzrepl\text4\trw,nobarrier,user_xattr\t1 2" 
      >> /etc/fstab
    Attention: For a clustered log server, the volumes are mounted as a cluster resource, and you must not add them to the /etc/fstab file. Severe file system damage can occur if you add the previous lines to the /etc/fstab file in a clustered implementation.
  6. Test that the log software and log data volumes can be mounted on the local host by issuing the following commands:
    mount -t ext3 -o rw,nobarrier /dev/PTS-Software-Grp/PTS-Software /opt/ibm 
    mount -t ext4 -o rw,nobarrier,user_xattr /dev/PTS-Data-Grp/PTS-Data /var/nzrepl
    The mount commands should succeed.
  7. Set up the correct permissions on the mounted file system by issuing the following commands:
    chown nz:nz /var/nzrepl
    chmod 700 /var/nzrepl
  8. Clustered implementations only: Unmount the file systems to prevent concurrent mounts that lead to file system damage. Unmount the file systems by issuing the following commands:
    umount /opt/ibm
    umount /var/nzrepl


Feedback