Scalable Database Server, HiRDB Version 8 System Operation Guide
Once the shared disk and network have been set up, create a logical host. The following configuration is assumed here:
When a DNS server is not used, register the host name of the logical host in the hosts file. This must be set up in both nodes in the cluster.
172.16.170.100 sc-lnode0 # Sun Cluster logical host 0 |
After confirming that the cluster has been started, create a logical host. This is performed in one node within the cluster.
[sc-node0] # hastat <-- Cluster status check [sc-node0] # scconf sun_cluster -L sc-lnode0 \ <-- Logical host name > -n sc-node0, sc-node1 \ <-- Node > -g dg0 \ <-- Disk group > -i qfe1, qfe1, sc-lnode0 \ <-- Network > -m <-- Automatic changeback disabled /etc/opt/SUNWcluster/conf/sun_cluster.cdb Checking node status... [sc-node0] # |
Use scconf -F to create a management file system for storing the configuration information of the logical host. A management file system must be created for all nodes that use the logical host.
[sc-node0] # scconf sun_cluster -F sc-lnode0 /etc/opt/SUNWcluster/conf/sun_cluster.cdb Checking node status... [sc-node0] # |
When scconf -F terminates normally, the logical host starts in the master node (the first node specified in -n), and the shared disk and logical IP addresses are allocated.
Use vxprint to confirm that a management file system has been created. The logical volume indicated by disk-group-name-stat is the management file system.
[sc-node0] # vxprint Disk group: dg0 Y NAME ASSOC KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0 dg dg0 dg0 - - - - - - dm dg001 c2t0d0s2 - 17678493 - - - - v dg0-stat fsgen ENABLED 4096 - ACTIVE - - pl dg0-stat-01 dg0-stat ENABLED 7182 - ACTIVE - - sd dg001-01 dg0-stat-01 ENABLED 7182 0 - - - |
The steps taken so far should enable the logical host to start. Start the logical host at each node and confirm its operation.
[sc-node0] # haswitch -m sc-lnode0 <-- Stops once. [sc-node0] # haswitch sc-node0 sc-lnode0 <-- Starts the logical host. [sc-node0] # netstat -in <-- Verifies logical IP address. Name Mtu Net/Dest Address Ipkts Ierrs Opkts Oerrs Collis Queue Qfe1:1 1500 172.16.170.0 172.16.170.100 0 0 0 0 0 0 |
Check these items at all nodes.
[sc-node1] # haswitch sc-node1 sc-lnode0 <-- Starts the logical host. [sc-node1] # netstat -in <-- Verifies logical IP address. |
If the shared disk and logical IP addresses have been assigned correctly, the logical host has been constructed normally.
All Rights Reserved. Copyright (C) 2007, Hitachi, Ltd.