Обновление Lotus Domino 6.5 с Win2k3 до 8.5.1 на OpenSuSE

Материал из Xgu.ru

Перейти к: навигация, поиск
stub.png
Данная страница находится в разработке.
Эта страница ещё не закончена. Информация, представленная здесь, может оказаться неполной или неверной.

Если вы считаете, что её стоило бы доработать как можно быстрее, пожалуйста, скажите об этом.


Автор: Chemtech

Содержание

[править] Подготовка сервера

[править] Проверка прямой DNS записи

Хорошим тоном считается, что сервер пингуется по DNS имени. При этом неважно DNS настроен или имя хоста прописано в файле hosts. Пусть сервер Lotus Domino будет иметь запись debian1 с IP 172.16.16.63 в файл hosts:

172.16.16.63 debian1

[править] Создание пользователя notes

groupadd notes
useradd -d /srv/notesdata -G notes notes
mkdir /srv/notesdata
chown notes:notes /srv/notesdata

[править] Установка сервера

tar xvf lotus_domino851_xlinux_CZ5RWEN.tar
cd linux/domino/
./install -console

Если при запуске от sudo Вы получаете ошибку "/domino/tools/-E: unexpected operator" перейдите в sudo -i

[править] Добро пожаловать в мастер установки программного обеспечения Lotus Domino

Continuing in console mode
InstallShield Wizard

Initializing InstallShield Wizard...

Preparing Java(tm) Virtual Machine...
...................................
...................................
...................................
...................................
...........................
-------------------------------------------------------------------------------
Welcome to the InstallShield Wizard for Lotus Domino

The InstallShield Wizard will install Lotus Domino on your computer.
To continue, choose Next.


Lotus Domino

IBM

http://www.lotus.com



Press 1 for Next, 3 to Cancel or 4 to Redisplay [1]

Нажимаем Enter

-------------------------------------------------------------------------------
Software Licensing Agreement
Press Enter to display the license agreement on your screen. Please
read the agreement carefully before installing the Program. After
reading the agreement, you will be given the opportunity to accept it
or decline it. If you choose to decline the agreement, installation
will not be completed and you will not be able to use the Program.

[править] Лицензия соглашение

International Program License Agreement

     Part 1 - General Terms

     BY DOWNLOADING, INSTALLING, COPYING, ACCESSING, OR USING
     THE PROGRAM YOU AGREE TO THE TERMS OF THIS AGREEMENT. IF YOU
      ARE ACCEPTING THESE TERMS ON BEHALF OF ANOTHER PERSON OR A
      COMPANY OR OTHER LEGAL ENTITY, YOU REPRESENT AND WARRANT
      THAT YOU HAVE FULL AUTHORITY TO BIND THAT PERSON, COMPANY,
      OR LEGAL ENTITY TO THESE TERMS. IF YOU DO NOT AGREE TO
      THESE TERMS,



- DO NOT DOWNLOAD, INSTALL, COPY, ACCESS, OR USE THE
      PROGRAM; AND

Press Enter to continue viewing the license agreement, or, Enter 1 to
accept the agreement, 2 to decline it or 99 to go back to the previous
 screen.

Читаем, нажимая «Enter»; если согласны, то нажимаем «1», если нет, то «2».

Press 1 for Next, 2 for Previous, 3 to Cancel or 4 to Redisplay [1]

Нажимаем Enter

[править] Data Directories Only for Partitioned Domino Server

-------------------------------------------------------------------------------
Selecting the option below allows you to install additional or upgrade existing
Server Partitions. The existing Program directory must be specified in order
for new Server Partitions to be created, but it will not be upgraded. Existing
Data directories do not need to be listed. Only those Data directories
specified will be upgraded or added. If you wish to add more than one Partition
to your existing Domino server, check the box when asked if you want to install
a Partitioned server. Otherwise you will only be able to upgrade or install one
Data directory. Warning: If you do not have an existing Domino Server on your
system, please do not check the box below for the option to add data
directories only.

[ ] 1 - Install Data  Directories Only for Partitioned Domino Server

To select an item enter its number, or 0 when you are finished: [0]

Нажимаем Enter

Press 1 for Next, 2 for Previous, 3 to Cancel or 4 to Redisplay [1]

Enter

[править] Путь установки программных файлов Lotus Domino

-------------------------------------------------------------------------------
Lotus Domino Install Location

Please specify a directory or press Enter to accept the default directory.

Program Files Directory Name [/opt/ibm/lotus]

Нажимаем Enter

[править] Server with more than one partition

Server with more than one partition
Answer Yes to install partitioned server
Answer No  to install non-partitioned server
Partitioned Server: [No]

Нажимаем Enter

Press 1 for Next, 2 for Previous, 3 to Cancel or 4 to Redisplay [1]

Нажимаем Enter

[править] Путь установки базы Lotus Domino

-------------------------------------------------------------------------------
Lotus Domino Install Location
Please specify a directory or press Enter to accept the default directory.
Data Files Directory Name [/local/notesdata]

Вводим /srv/notesdata. Нажимаем Enter.

Press 1 for Next, 2 for Previous, 3 to Cancel or 4 to Redisplay [1]

Нажимаем Enter

[править] Имя пользователя и имя группы Unix/Linux

-------------------------------------------------------------------------------
Input Unix/Linux user name and group name panel

User Name [notes]

Нажимаем Enter

Group Name [notes]

Нажимаем Enter

Press 1 for Next, 2 for Previous, 3 to Cancel or 4 to Redisplay [1]

Нажимаем Enter

[править] Выберите способ настройки сервера

-------------------------------------------------------------------------------
Select Server Setup

After the installation completes, for new installation server setup will be
launched and for upgrade the server will be restarted automatically.

The default value is "Manual Server Setup" which does not launch server setup
or restart the server after installation.

Select "Local Server Setup" to launch server setup after a new server
installation or to restart the server after a server upgrade.

Select "Remote Server Setup" to launch server setup in listen mode for new
server installations. You will then be able to connect to the server with the
Remote Server Setup tool.

[ ] 1 - Local
[ ] 2 - Remote
[X] 3 - Manual

To select an item enter its number, or 0 when you are finished: [0]

Нажимаем 2.

-------------------------------------------------------------------------------
Select Server Setup

After the installation completes, for new installation server setup will be
launched and for upgrade the server will be restarted automatically.

The default value is "Manual Server Setup" which does not launch server setup
or restart the server after installation.

Select "Local Server Setup" to launch server setup after a new server
installation or to restart the server after a server upgrade.

Select "Remote Server Setup" to launch server setup in listen mode for new
server installations. You will then be able to connect to the server with the
Remote Server Setup tool.

[ ] 1 - Local
[X] 2 - Remote
[ ] 3 - Manual

To select an item enter its number, or 0 when you are finished: [0]

Нажимаем Enter

Press 1 for Next, 2 for Previous, 3 to Cancel or 4 to Redisplay [1]

Enter

[править] Выберите тип установки, которые наилучшим образом соответствует вашим потребностям

 -------------------------------------------------------------------------------
Choose the setup type that best suits your needs.

[ ] 1 - Domino Utility Server
        Installs a Domino server that provides application services only. Note
        that it does not include support for messaging services. See full
        licensing text for details.
                                                                                
[ ] 2 - Domino Messaging Server
        Installs a Domino server that provides messaging services. Note that it
        does not include support for application services or Domino clusters.
                                                                                
[X] 3 - Domino Enterprise Server
        Installs a Domino server that provides both messaging and application
        services.
                                                                                
[ ] 4 - Customize Domino Server
        Allows you to select the features you want to install.

To select an item enter its number, or 0 when you are finished: [0]

Нажимаем Enter

Press 1 for Next, 2 for Previous, 3 to Cancel or 4 to Redisplay [1]

Нажимаем Enter

-------------------------------------------------------------------------------
Lotus Domino will be installed in the following location:

       Program Files:        /opt/ibm/lotus
       Data Files:           /srv/notesdata
       Domino Kit Type:      EnterpriseServer

       Unix Install Options:
               User Name: notes
               Group Name: notes
               Install Data Only: No
               Start Server Setup: Yes (Remote)

with the following features:

Program Files
  Billing Support
  Clustering Support
Data Files
  Required Templates
  Administration Templates

Press ENTER to read the text [Type q to quit]

Enter

  Optional Templates
  Certificate Management
  Web Services Data Files
  Readme - NSF File
  Dojo
  XPages
Domino Enterprise Connection Services
Domino Offline Services
Lotus iNotes
   Sametime Integration
Resource Modeling Engine
Help

for a total size:

988,6 MB

Press 1 for Next, 2 for Previous, 3 to Cancel or 4 to Redisplay [1]

Нажимаем Enter

Installing Lotus Domino. Please wait...


|-----------|-----------|-----------|------------|
0%         25%         50%         75%        100%
||||||||||||||||||||||||||||||||||||||||||||||||||

Creating uninstaller...
Configuring Domino Server from
Unix user name : notes
Unix group name : notes
Domino program directory: /opt/ibm/lotus
Domino data directory: /srv/notesdata
You will be printed for the password of the notesdata owner.

---------------------------------------------
The InstallShield Wizard has successfully installed Lotus Domino. Choose Finish to exit the wizard.

Нажимаем Enter

./java -ss512k -Xoss5M -cp jhall.jar:cfgdomserver.jar:Notes.jar 
lotus.domino.setup.WizardManagerDomino -data /local/notesdata -listen
Remote server setup enabled on port 8585.

The Domino setup server is now in listening mode.
A remote client can now connect to this server and configure Domino.

To connect to this server, launch the Remote Domino Setup program from a command-prompt as follows:
From a Domino administrator client: serversetup -remote
From a Domino server: server -remote

To end this server, launch the Remote Domino Setup program from a command-prompt as follows:
From a Domino administrator client: serversetup -q myhostname
From a Domino server: server -q myhostname

For more information, see the printed guide Setting Up Domino Networks and Servers.

Удобнее настраивать Lotus Domino из графического интерфейса. Поэтому, находим машину с установленным Lotus. Должна быть установлена программа "Remote Server Setup". Выбираем ее.


[править] Копируем рабочую папку Lotus Domino на новый сервер

Итак, есть Lotus Domino 6.5 на Windows Server в папке D:\Lotus\Domino\Data. Предварительно бекапим содержимое папки /srv/notesdata в /root/backup_install. Копируем содержание D:\Lotus\Domino\Data в /srv/notesdata с правами и группы notes:notes.

[править] Скрипт запуска Lotus Domino

Вот модифицированный скрипт запуска Lotus Domino: Создаем скрипт запуска Lotus Domino c таким содержанием:

touch /etc/init.d/domino
chmod +x /etc/init.d/domino
#!/bin/sh
#
# /etc/init.d/domino
#
### BEGIN INIT INFO
# Provides:          domino
# Required-Start:    $local_fs $network $remote_fs
# Should-Start:
# Required-Stop:     $local_fs $network $remote_fs
# Should-Stop:
# Default-Start:     2 3 5
# Default-Stop:
# Short-Description: Start/stop the Lotus Domino server
# description:<> This script is used to start and stop the domino \
#<-----> server as a background process. It will send \
#<-----> the serverID password from a file to the server.\
#<-----> Communication with the server has to be done through \
#<-----> console, Notes Administrator or webadmin.\
### END INIT INFO

# Change the USER, GROUP, DATA_DIR and BIN_DIR for your server
DOMINO_USER="notes"
DOMINO_GROUP="notes"
DOMINO_DATA_DIR="/srv/notesdata"
DOMINO_BIN_DIR="/opt/ibm/lotus/bin"
LOCKFILE="/var/lock/subsys/domino"

#export ODBCINI="/etc/odbc.ini"

# We need a file to put the serverID password in.
# Make sure the owner is the Domino owner and the file
# permissions are set to 400

SERVER_PASSWD_FILE="/srv/notesdata/.domino.pwd"

# See if the user that runs this script is root

if [ `id -u` != 0 ]; then 
echo "This script must be run by root only"
exit 1
fi

start() {
# First, check if the password file exists,
# and if not, exit with an errorcode
if [ ! -f $SERVER_PASSWD_FILE ] ; then
echo "Error: no password file."
exit 1
fi

# Set permission to 400 (read-only-owner)
# and ownership to $DOMINO_USER. These next lines are
# not necessary if the ownership was set correctly the first time.

chmod 400 $SERVER_PASSWD_FILE
chown $DOMINO_USER.$DOMINO_GROUP $SERVER_PASSWD_FILE

# Check we're not already running

if [ -f $LOCKFILE ] ; then
echo "Domino server apparently already running."
exit 1
fi

# Two ways to run the server (comment one of them out)
# 1. With the output of the console redirected to /var/log/domino.log
#	 Be sure to change the logrotate daemon.
# 2. With the output of the console redirected to /dev/null

echo -n "Starting domino server..."

# Version with logfile
su - ${DOMINO_USER} -c "cd ${DOMINO_DATA_DIR};\
cat ${SERVER_PASSWD_FILE} | ${DOMINO_BIN_DIR}/server" \
>> /var/log/domino 2>&1 &
RETVAL=$?
if [ "$RETVAL" = "0" ] ; then
touch $LOCKFILE > /dev/null 2>&1
fi
# Version without logfile
# su - ${DOMINO_USER} -c "cd ${DOMINO_DATA_DIR};\
# cat ${SERVER_PASSWD_FILE} |\
# ${DOMINO_BIN_DIR}/server" > /dev/null 2>&1 &

echo "done."
}

stop() {
echo -n "Stopping Domino server. "
su - ${DOMINO_USER} -c "cd ${DOMINO_DATA_DIR}; ${DOMINO_BIN_DIR}/server -q"
RETVAL=$?
# RETVAL is 38 on normal shutdown - what does *that* mean?
# Users should test this on their own systems . . .
if [ $RETVAL -lt 50 ] ; then
rm $LOCKFILE
fi
}

restart() {
stop
start
}

# See how we were called.

case $1 in
start)
start
;;
stop)
stop
;;
restart)
stop
start
;;
condrestart)
[ -f $LOCKFILE ] && restart
;;
*)
echo "Usage: domino {start|stop|restart|condrestart}"
exit 1
;;

esac

# End of the domino script
exit 0

[править] Обновление Lotus Domino

Обязательно проверяйте права на файлы и папки в рабочей директории Lotus Domino!

[править] Notes.ini

Копируем Notes.ini с Windows Server из папки C:\Lotus\Domino на Linux в папку /srv/notesdata

Изменяем пути на правильные.

Directory=/srv/notesdata
NotesProgram=/opt/ibm/lotus
KeyFilename=/srv/notesdata/server.id
CertifierIDFile=/srv/notesdata/cert.id

[править] FileDlgDirectory

С параметром FileDlgDirectory я не знаю пока что делать. Он у меня стоит по умолчанию.

FileDlgDirectory=C:\Documents and Settings\Administrator\My Documents

Изменил на

FileDlgDirectory=/tmp

Посмотрим что будет.

[править] An error occurred during license use management initialization. Ensure that you are running Domino with a valid license file

Необходимо скопировать nodelock, который создался при установке Lotus Domino, в папку с текущей базой данных. На всякий случай также скопировал Domino8.lic.

[править] Перенос данных с версии 6.5 на 8.5.1

В notes.ini необходимо дописать строчку

Server_Upgrade_No_Directory_Redesign=1

[править] Тюнинг Lotus Domino

В файле /etc/security/limits.conf необходимо дописать:

# Tuning for Domino
notes	soft	nofile	49152
notes	hard	nofile	49152
notes	soft	nproc	12500
notes	hard	nproc	12500

[править] /srv/notesdata/.domino.pwd

You need also to create a password file for Domino, if your Domino doesn't use a password just leave /srv/notesdata/.domino.pwd file empty

sudo touch /srv/notesdata/.domino.pwd
sudo chown notes:notes /srv/notesdata/.domino.pwd
sudo chmod 400 /srv/notesdata/.domino.pwd

[править] Скрипт запуска

Now, create symlinks to start the Domino server at runlevels 3 and 5 with the following commands:

ln -s /etc/init.d/domino /etc/init.d/rc3.d/S95domino
ln -s /etc/init.d/domino /etc/init.d/rc5.d/S95domino

And create symlinks to stop the server at runlevels 1 (single-user), 0 (halt) and 6 (reboot) with the following commands:

ln -s /etc/init.d/domino /etc/init.d/rc1.d/K01domino
ln -s /etc/init.d/domino /etc/init.d/rc0.d/K01domino
ln -s /etc/init.d/domino /etc/init.d/rc6.d/K01domino

[править] Сетевые настройки sysctl.conf

##### Lotus#####
net.ipv4.tcp_fin_timeout = 15
net.ipv4.tcp_max_syn_backlog = 16384
net.ipv4.tcp_tw_reuse = 1
net.ipv4.ip_local_port_range = 1024 65535

[править] Дополнительная информация

* The domino rc-script to start and stop your Domino-server
* Managing Lotus Domino on Linux
* BP 403 Best Practices IBM Lotus Domino for Linux
* Notes 8.5 - Required Linux packages and updates
* Обновление сервера 6.5.4 -> 8.5.2
* Steps for migrating to Notes/Domino 8 from versions 6.5 and 7
* Upgrading Lotus Domino 6.5.1 to Lotus Domino 8.5

[править] Первый запуск

Первый запуск делаем под пользователем notes

su - notes
/opt/ibm/lotus/bin/server

[править] Скорость открытия базы данных

Скорость открытия базы данных на 100 мбит сетевой карте составляет 5-8 секунд,а на 1Гб - 1 секунду (остальные параметры: CPU 4x 1,6 ГГц, 3 Гб ОЗУ)