Solaris установка Oracle cluster
Перед началом установки пропишем в профиль (.profile) root переменные окружения:
PATH=$PATH:/usr/cluster/bin
MANPATH=$MANPATH:/usr/cluster/man:/usr/share/man:/opt/cluster/man
export PATH MANPATH
В файле /etc/default/login закомментируем строку
CONSOLE=/dev/console
В файле /etc/nsswitch.conf необходимо добавить параметр ipnodes: files .
В файле /etc/hosts пропишем hostname и IP - адреса всех компьютеров входящих в кластер.
Установка.
После того как пакет был скачан распакуем его:
# unzip solaris-cluster-3_3u1-ga-x86.zip
Даем права на выполнение и запускаем программу установки:
# chmod +x installer
# ./installer -nodisplay
Соглашаемся с предложением об установке, можно также поставить мультиязычный пакет.
Installation Type
-----------------
Do you want to install the full set of Oracle Solaris Cluster Products and
Services? (Yes/No) [Yes] {"<" goes back, "!" exits}
После проверки системы нажимаем клавишу 1 для продолжения.
Checking System Status
Available disk space... : Checking .... OK
Memory installed... : Checking .... OK
Swap space installed... : Checking .... OK
Operating system patches... : Checking .... OK
Operating system resources... : Checking .... OK
System ready for installation
Enter 1 to continue [1] {"<" goes back, "!" exits}
Далее выбираем 2. Configure Later - Manually configure following installation
А на следующем шаге 1. Install
1. Install
2. Start Over
3. Exit Installation
What would you like to do [1] {"<" goes back, "!" exits}? 1
По завершению установки стоит посмотреть логи на предмет ошибок.
Для настройки запускаем утилиту scinstall :
# /usr/cluster/bin/scinstall
Создаем кластер (пункт 1)
*** Main Menu ***
Please select from one of the following (*) options:
* 1) Create a new cluster or add a cluster node
2) Configure a cluster to be JumpStarted from this install server
3) Manage a dual-partition upgrade
4) Upgrade this cluster node
* 5) Print release information for this cluster node
* ?) Help with menu options
* q) Quit
Option: 1
Далее создаем первую ноду на данной машине:
2) Create just the first node of a new cluster on this machine
Выбираем тип установки Custom
Please select from one of the following options:
1) Typical
2) Custom
?) Help
q) Return to the Main Menu
Option [1]: 2
После чего, указываем имя кластера и выполняем проверку:
Do you want to run cluster check (yes/no) [yes]? yes
После проверки стоит исправить ошибки если есть и переходить к пункту добавления узлов в кластер, в котором необходимо перечислить другие узлы:
This Oracle Solaris Cluster release supports a total of up to 16 nodes.
Please list the names of the other nodes planned for the initial
cluster configuration. List one node name per line. When finished,
type Control-D:
Node name (Control-D to finish):
Настроим использование loopback file . Alternatively, you can use a loopback file (lofi), with a new file system, and mount it on /global/.devices/node@<nodeid>.
Соответственно отвечаем:
The default is to use /globaldevices.
Is it okay to use this default (yes/no) [yes]? no
Is it okay to use the lofi method (yes/no) [yes]? yes
Следующим шагом оставим механизм Global Fencing включенным и перезагрузимся.