stub (Private Switch) Solaris 11 Operating Environment In the Solaris 11 Operating Environment, four zones are created namely:



Similar documents
Identity as a Service Powered by NetIQ Services Director Installation Guide

An Oracle White Paper December Setting Up a Virtual Network Automatically Using Oracle Solaris 11 Express Project Crossbow

Apache Hadoop 2.0 Installation and Single Node Cluster Configuration on Ubuntu A guide to install and setup Single-Node Apache Hadoop 2.

Hadoop Lab - Setting a 3 node Cluster. Java -

Cacti The ULTIMATE Management Solution

HADOOP - MULTI NODE CLUSTER

LAMP Quickstart for Red Hat Enterprise Linux 4

Installation & Configuration Guide for Solaris 8

How to Install Multicraft on a VPS or Dedicated Server (Ubuntu bit)

Installation Guide for FTMS and Node Manager 1.6.0

SOA Software API Gateway Appliance 7.1.x Administration Guide

Installing and Configuring MySQL as StoreGrid Backend Database on Linux

Redmine Installation on Debian. v1.1

Setting Up Specify to use a Shared Workstation as a Database Server

Installation Guide for WebSphere Application Server (WAS) and its Fix Packs on AIX V5.3L

Moving Drupal to the Cloud: A step-by-step guide and reference document for hosting a Drupal web site on Amazon Web Services

How To Install Storegrid Server On Linux On A Microsoft Ubuntu 7.5 (Amd64) Or Ubuntu (Amd86) (Amd77) (Orchestra) (For Ubuntu) (Permanent) (Powerpoint

ULTEO OPEN VIRTUAL DESKTOP V4.0

Amon Agent. User Guide

Providing High Availability to the OpenStack Cloud Controller on Oracle Solaris with Oracle Solaris Cluster

Installing a Symantec Backup Exec Agent on a SnapScale Cluster X2 Node or SnapServer DX1 or DX2. Summary

Wavelink Avalanche Mobility Center Linux Reference Guide

Newton Linux User Group Graphing SNMP with Cacti and RRDtool

Easy Setup Guide 1&1 CLOUD SERVER. Creating Backups. for Linux

Cloud Homework instructions for AWS default instance (Red Hat based)

GeBro-BACKUP. Die Online-Datensicherung. Manual Pro Backup Client on a NAS

CycleServer Grid Engine Support Install Guide. version 1.25

Installing and Running MOVES on Linux

White Paper. Fabasoft on Linux Cluster Support. Fabasoft Folio 2015 Update Rollup 2

Solr Bridge Search Installation Guide

HSearch Installation

How To Configure the Oracle ZFS Storage Appliance for Quest Authentication for Oracle Solaris

Running Kmeans Mapreduce code on Amazon AWS

TransNav Management System Documentation. Management Server Guide

Using Symantec NetBackup with Symantec Security Information Manager 4.5

OpenGeo Suite for Linux Release 3.0

Do it Yourself System Administration

Remote Unix Lab Environment (RULE)

Enterprise Reporting Server v3.5

StoreGrid Backup Server With MySQL As Backend Database:

Moxa Device Manager 2.0 User s Guide

Installing and Configuring DB2 10, WebSphere Application Server v8 & Maximo Asset Management

Cassandra Installation over Ubuntu 1. Installing VMware player:

MySQL Backups: From strategy to Implementation

INF-110. GPFS Installation

How to Configure an Initial Installation of the VMware ESXi Hypervisor

NATIONAL POPULATION REGISTER (NPR)

Implementing a Weblogic Architecture with High Availability

NexentaConnect for VMware Virtual SAN

Using Secure4Audit in an IRIX 6.5 Environment

Secure File Transfer Installation. Sender Recipient Attached FIles Pages Date. Development Internal/External None 11 6/23/08

Cloud.com CloudStack Community Edition 2.1 Beta Installation Guide

Single Node Hadoop Cluster Setup

LAE Enterprise Server Installation Guide

Reflection DBR USER GUIDE. Reflection DBR User Guide. 995 Old Eagle School Road Suite 315 Wayne, PA USA

TSM for Windows Installation Instructions: Download the latest TSM Client Using the following link:

An Oracle White Paper June How to Install and Configure a Two-Node Cluster

Veritas Cluster Server

How to Restore a Linux Server Using Bare Metal Restore

F-Secure Messaging Security Gateway. Deployment Guide

WEB2CS INSTALLATION GUIDE

VERSION 9.02 INSTALLATION GUIDE.

SNPsyn documentation. Release 1.1b. Tomaž Curk Gregor Rot Davor Sluga Uroš Lotrič Blaž Zupan

F-SECURE MESSAGING SECURITY GATEWAY

StreamServe Persuasion SP4

SSL VPN. Virtual Appliance Installation Guide. Virtual Private Networks

Wolfr am Lightweight Grid M TM anager USER GUIDE

SOCET GXP V4.1 LICENSE MANAGER QUICK-START GUIDE

CommandCenter Secure Gateway

The SkySQL Administration Console

LOCKSS on LINUX. CentOS6 Installation Manual 08/22/2013

AWS Schema Conversion Tool. User Guide Version 1.0

Polycom CMA System Upgrade Guide

Plexxi Control Installation Guide Release 2.1.0

Host your websites. The process to host a single website is different from having multiple sites.

Using a login script for deployment of Kaspersky Network Agent to Mac OS X clients

This appendix describes the following procedures: Cisco ANA Registry Backup and Restore Oracle Database Backup and Restore

Tivoli Access Manager Agent for Windows Installation Guide

Contents Set up Cassandra Cluster using Datastax Community Edition on Amazon EC2 Installing OpsCenter on Amazon AMI References Contact

Running Knn Spark on EC2 Documentation

BF2CC Daemon Linux Installation Guide

EMC Data Domain Management Center

How to install PowerChute Network Shutdown on VMware ESXi 3.5, 4.0 and 4.1

Building a Private Cloud Cloud Infrastructure Using Opensource

Hadoop Basics with InfoSphere BigInsights

Backup of ESXi Virtual Machines using Affa

Equalizer VLB Beta I. Copyright 2008 Equalizer VLB Beta I 1 Coyote Point Systems Inc.

JobScheduler - Amazon AMI Installation

SendMIME Pro Installation & Users Guide

linux20 (R12 Server) R Single Node SID - TEST linux1 (10gAS Server) Oracle 10gAS ( ) with OID SID - asinf server name

Click Studios. Passwordstate. Password Discovery, Reset and Validation. Requirements

4PSA Total Backup User's Guide. for Plesk and newer versions

Installation Guide for AmiRNA and WMD3 Release 3.1

LBNC and IBM Corporation Document: LBNC-Install.doc Date: Path: D:\Doc\EPFL\LNBC\LBNC-Install.doc Version: V1.0

Ahsay Offsite Backup Server and Ahsay Replication Server

Installing Virtual Coordinator (VC) in Linux Systems that use RPM (Red Hat, Fedora, CentOS) Document # 15807A1-103 Date: Aug 06, 2012

1. Product Information

SNMP Upgrade Procedure for NV Transmitters

Transcription:

Building MySQL Cluster in a Box Using Solaris 11 Zones datanode1 datanode2 mgmnode stub (Private Switch) sqlnode Solaris 11 Operating Environment In the Solaris 11 Operating Environment, four zones are created namely: mgmnode datanode1 datanode2 sqlnode All of the four zones are connected via a private switch (stub) in Solaris 11. stub has four virtual network interface card (VNIC) each of them assigned to individual zones mgmnode => vnic0 datanode1 => vnic1 datanode2 => vnic2 sqlnode => vnic3 1

Each of the zone is assigned an IP address on the vnic so that all of them can communicate with each other: mgmnode => vnic0 => 192.168.0.100 datanode1 => vnic1 => 192.168.0.101 datanode2 => vnic2 => 192.168.0.102 sqlnode => vnic3 => 192.168.0.103 Details on download location of Solaris 11 and the zone configuration are mentioned as an addendum to this note. MySQL Cluster in a box A Walk Through: The following is to setup on individual zones to bring up the Management Node, the data nodes and the SQL nodes: [On Management Node 'mgmnode'] 1. Prepare a directory for MySQL installation mkdir -p /usr/local 2. Copy the MySQL Cluster binary to the installation directory cp /softwares/mysql-cluster-gpl-7.2.10-solaris11-x86_64.tar.gz /usr/local/ 3. Navigate to the installation directory of MySQL, unzip the file and extract the tar cd /usr/local/ gunzip mysql-cluster-gpl-7.2.10-solaris11-x86_64.tar.gz tar xvf /sqlnode2/root/usr/local/mysql-cluster-gpl-7.2.10-solaris11-x86_64.tar.gz 4. Rename the installation directory to a convenient name preferably 'mysql' mv mysql-cluster-gpl-7.2.10-solaris11-x86_64 mysql 5. Remove the binary to save space rm /usr/local/mysql-cluster-gpl-7.2.10-solaris11-x86_64.tar.gz 6. Navigate to the mysql installation directory (if required) and initialize the 'mysql' database cd usr/local/mysql scripts/mysql_install_db 7. Change the ownership of the data directory of mysql installation chown -R mysql:mysql /sqlnode2/root/usr/local/mysql 2

8. Copy the startup script from the default location to the standard location (/etc/init.d) cp support-files/mysql.server /etc/init.d/mysql 9. Create the Data Directory for the nodes in the cluster mkdir -p /var/lib/mysql-cluster 10. Create the config.ini file under the /etc directory vi /etc/config.ini [NDBD DEFAULT] NoOfReplicas=2 DataDir=/var/lib/mysql-cluster [NDBD_MGMD] Hostname=192.168.0.100 DataDir=/var/lib/mysql-cluster [NDBD] Hostname=192.168.0.101 DataDir=/var/lib/mysql-cluster [NDBD] Hostname=192.168.0.102 DataDir=/var/lib/mysql-cluster [MYSQLD] Hostname=192.168.0.103 11. Start the management daemon ndb_mgmd -f /etc/config.ini 12. Connect to the management console ndb_mgm ndb_mgm> show ndb_mgm> exit 3

[On Data Node(s)] 1. Repeat step 1 to step 9 as mentioned above in the mgmnode configuration 2. Create the my.cnf file under /etc/ directory vi my.cnf [mysqld] ndbcluster ndb-connectstring=192.168.0.100 [mysql_cluster] ndb-connectstring=192.168.0.100 [ndbd] ndb-connectstring=192.168.0.100 3. Start the mysqld daemon (in case if the datanode also acts as the SQL node) /etc/init.d/mysql start 4. Start the ndbd daemon ndbd -n --initial [On SQL Node] Repeat the steps 1-3 from the Data Node configuration Finally, connect to the mgmnode and start the cluster ndb_mgm ndb_mgm> ALL START ndb_mgm> SHOW 4

Addendum: Take your first steps with Solaris 11 here (download location, installation on VBOX etc.): http://www.oracle.com/technetwork/articles/servers-storage-admin/o11-112-s11-first-steps- 524819.html Also read, Getting Started with Solaris Zones: http://www.oracle.com/technetwork/articles/servers-storage-admin/o11-092-s11-zones-intro- 524494.html Configuring Private Switch (stub) in Solaris 11 and creating & configuring zones: Create a private switch (stub0) / Create vnics on the stub: 1. Get back to the server by exiting out of the zone1 and confgure an etherstub: root@mys11:~# dladm create-etherstub stub0 root@mys11:~# dladm show-etherstub LINK stub0 root@mys11:~# dladm show-link LINK CLASS MTU STATE OVER net0 phys 1500 up -- ---output omitted for brevity-- stub0 etherstub 9000 unknown -- 2. Create vnics on stub root@mys11:~# dladm create-vnic -l stub0 vnic0 root@mys11:~# dladm create-vnic -l stub0 vnic1 root@mys11:~# dladm create-vnic -l stub0 vnic2 root@mys11:~# dladm create-vnic -l stub0 vnic3 root@mys11:~# dladm show-link LINK CLASS MTU STATE OVER net0 phys 1500 up -- ---output omitted for brevity-- ---output omitted for brevity-- stub0 etherstub 9000 unknown -- 5

vnic0 vnic 9000 up stub0 vnic1 vnic 9000 up stub0 vnic2 vnic 9000 up stub0 vnic3 vnic 9000 up stub0 zone1 vnic0 stub0 vnic1 vnic2 vnic3 Global Zone Configure mgmzone 1. Configure mgmzone and assigning the vnic0 to it: root@mys11:~# zonecfg -z mgmgzone Use 'create' to begin configuring a new zone. zonecfg: zone1> create create: Using system default template 'SYSdefault' zonecfg:zone2> set zonepath=/mgmzone zonecfg:zone2> add net zonecfg:zone2:net> set physical=vnic0 zonecfg:zone2:net> end zonecfg:zone2> exit root@mys11:~# zoneadm list -cv ID NAME STATUS PATH BRAND IP 0 global running / solaris shared - mgmzone configured /mgmzone solaris excl 2. Install the mgmzone root@mys11:~# zoneadm -z mgmzone install root@mys11:~# zoneadm list -cv ID NAME STATUS PATH BRAND IP 6

0 global running / solaris shared - mgmzone installed /mgmzone solaris excl root@mys11:~# zoneadm -z mgmzone boot root@mys11:~# zoneadm list -cv ID NAME STATUS PATH BRAND IP 0 global running / solaris shared 1 mgmzone running /mgmzone solaris excl 3. Login to mgmzone and complete the system identification: root@mys11:~# zlogin -C mgmzone Hit 'Enter' if it takes too much of time to show the configuration screens Hit 'Esc' + 2 to navigate the screens and provide the following values: Computer Name: mgmzone Network Configuration: Manually Network Card: vnic0 IP address: 192.168.0.100 DNS: Do Not Configure DNS Name Service: None Region: Choose appropriately Time Zone: Choose appropriately Root password: oracle1 Let the system (mgmzone) reboot Logout of zone console by using the keys ~. (Note: this may take you out of the Solaris 11 Server itself. Do SSH again to the Solaris 11 server if that happens) In similar fashion install and configure the datanode1, datanode2 and sqlnode1 using the appropriate vnics and ip addresses. 7

Note: For the other nodes using the following zonepath: datanode1 => /datanode1 datanode2 => /datanode2 datanode3 => /datanode3 Please note that the zonepaths that you use like mgmnode, datanode1, datanode2, sqlnode1 MUST be a ZFS file system in Solaris 11. Create ZFS filesystems using the following command(s). Please bear in mind the configuration below is a non-redundant one, for a serious setup, please consider using Mirror Pools / RAID Z pools. # zpool create mcluster c1t1d1 The above command creates a pool by name mcluster using the disk c1t1d1 Then run the following commands to create individual file systems on the pool # zfs create mcluster/mgmpool # zfs create set mountpoint=/mgmpool mcluster/mgmpool # zfs create mcluster/datanode1 # zfs create set mountpoint=/datanode1 mcluster/datanode1 # zfs create mcluster/datanode2 # zfs create set mountpoint=/datanode2 mcluster/datanode2 # zfs create mcluster/sqlnode1 # zfs create set mountpoint=/sqlnode1 mcluster/sqlnode1 ZFS File System: http://docs.oracle.com/cd/e19253-01/819-5461/zfsover-2/index.html 8 Rajesh R