Showing posts with label Solaris Volume Manager. Show all posts
Showing posts with label Solaris Volume Manager. Show all posts

Thursday, September 24, 2009

Sun Cluster Data Service for ClearCase. Sun Cluster Software


"Νενικήκαμεν" (Nenikékamen, 'We have won.')
“Rejoice! We conquer!”
Probably Eukles (but officially Pheidippides)


I did not die. But I am also not allow to announce "Nenikékamen" because I run only the half of Marathon this Sunday.
Installation:
root@karblade:/ # mount kars:sol/cluster/inst /mnt
root@karblade:/ # cd /mnt/Solaris_sparc/
root@karblade:/mnt/Solaris_sparc # ./installer

Install
Sun Cluster 3.2 1/09
Sun Cluster Agents 3.2 1/09
     Sun Cluster HA for NFS
All Shared Components
Monitoring Console 1.0 Update 1
Check 'Configure later'

root@karblade:/mnt/Solaris_sparc # cd
root@karblade:/ # umount /mnt
Configuration:
root@karblade:/ # scinstall

1) Create a new cluster or add a cluster node

1) Create a new cluster

Do you want to continue (yes/no) [yes]?  

1) Typical

What is the name of the cluster you want to establish?  karc

Node name (Control-D to finish):  karu60
Node name (Control-D to finish):  ^D

This is the complete list of nodes:
karblade
karu60

Is it correct (yes/no) [yes]?  

Select the first cluster transport adapter for "karblade":

1) ce0
2) ce1
3) hme0
4) Other

Option:  1

Will this be a dedicated cluster transport adapter (yes/no) [yes]?  

Searching for any unexpected network traffic on "ce0" ... 

Verification completed. No traffic was detected over a 10 second 
sample period.

Select the second cluster transport adapter for "karblade":

1) ce0
2) ce1
3) hme0
4) Other

Option:  2

Will this be a dedicated cluster transport adapter (yes/no) [yes]?  

Searching for any unexpected network traffic on "ce1" ... done
Verification completed. No traffic was detected over a 10 second 
sample period.

Do you want to disable automatic quorum device selection (yes/no) [no]?  

Is it okay to create the new cluster (yes/no) [yes]?  

Interrupt cluster creation for cluster check errors (yes/no) [no]?  
After reboot, check quorum and device configuration:
root@karblade:/ # clq status

=== Cluster Quorum ===

--- Quorum Votes Summary ---

Needed   Present   Possible
------   -------   --------
2        3         3


--- Quorum Votes by Node ---

Node Name       Present       Possible       Status
---------       -------       --------       ------
karu60          1             1              Online
karblade        1             1              Online


--- Quorum Votes by Device ---

Device Name       Present      Possible      Status
-----------       -------      --------      ------
d4                1            1             Online

root@karblade:/ # cldev show

=== DID Device Instances ===                   

DID Device Name:                                /dev/did/rdsk/d1
Full Device Path:                                karu60:/dev/rdsk/c0t0d0
Replication:                                     none
default_fencing:                                 global

DID Device Name:                                /dev/did/rdsk/d2
Full Device Path:                                karu60:/dev/rdsk/c0t1d0
Replication:                                     none
default_fencing:                                 global

DID Device Name:                                /dev/did/rdsk/d3
Full Device Path:                                karu60:/dev/rdsk/c0t6d0
Replication:                                     none
default_fencing:                                 global

DID Device Name:                                /dev/did/rdsk/d4
Full Device Path:                                karblade:/dev/rdsk/c3t1d0
Full Device Path:                                karu60:/dev/rdsk/c1t1d0
Replication:                                     none
default_fencing:                                 global

DID Device Name:                                /dev/did/rdsk/d5
Full Device Path:                                karblade:/dev/rdsk/c3t4d0
Full Device Path:                                karu60:/dev/rdsk/c1t4d0
Replication:                                     none
default_fencing:                                 global

DID Device Name:                                /dev/did/rdsk/d6
Full Device Path:                                karblade:/dev/rdsk/c0t1d0
Replication:                                     none
default_fencing:                                 global

DID Device Name:                                /dev/did/rdsk/d7
Full Device Path:                                karblade:/dev/rdsk/c0t0d0
Replication:                                     none
default_fencing:                                 global
Solaris Volume Manager configuration:
root@karblade:/ # metaset -s ccset -a -h karblade karu60
root@karblade:/ # cldg switch -n karblade ccset
root@karblade:/ # metaset -s ccset -a /dev/did/rdsk/d4 /dev/did/rdsk/d5
root@karblade:/ # metaset -s ccset

Set name = ccset, Set number = 1

Host                Owner
  karblade           Yes
  karu60             

Driv Dbase

d4   Yes  

d5   Yes  
root@karblade:/ # cat <<EOTAB >/etc/lvm/md.tab
> ccset/d0 -m ccset/d10
>   ccset/d10 1 1 /dev/did/rdsk/d4s0
>   ccset/d20 1 1 /dev/did/rdsk/d5s0
> EOTAB
root@karblade:/ # metainit -s ccset -a
ccset/d10: Concat/Stripe is setup
ccset/d20: Concat/Stripe is setup
ccset/d0: Mirror is setup
root@karblade:/ # metattach -s ccset ccset/d0 ccset/d20
ccset/d0: submirror ccset/d20 is attached
root@karblade:/ # metastat -s ccset
ccset/d0: Mirror
    Submirror 0: ccset/d10
      State: Okay         
    Submirror 1: ccset/d20
      State: Resyncing    
    Resync in progress: 0 % done
    Pass: 1
    Read option: roundrobin (default)
    Write option: parallel (default)
    Size: 35323904 blocks (16 GB)

ccset/d10: Submirror of ccset/d0
    State: Okay         
    Size: 35323904 blocks (16 GB)
    Stripe 0:
        Device   Start Block  Dbase        State Reloc Hot Spare
        d4s0            0     No            Okay   No  


ccset/d20: Submirror of ccset/d0
    State: Resyncing    
    Size: 35358848 blocks (16 GB)
    Stripe 0:
        Device   Start Block  Dbase        State Reloc Hot Spare
        d5s0            0     No            Okay   No  

Device Relocation Information:
Device   Reloc  Device ID
d5   No         -
d4   No         -
root@karblade:/ # newfs /dev/md/ccset/rdsk/d0
/dev/md/ccset/rdsk/d0: Unable to find Media type. Proceeding with system determined parameters.
/dev/md/ccset/rdsk/d0: Unable to find Media type. Proceeding with system determined parameters.
newfs: construct a new file system /dev/md/ccset/rdsk/d0: (y/n)? y
/dev/md/ccset/rdsk/d0: Unable to find Media type. Proceeding with system determined parameters.
/dev/md/ccset/rdsk/d0: Unable to find Media type. Proceeding with system determined parameters.
Warning: 4096 sector(s) in last cylinder unallocated
/dev/md/ccset/rdsk/d0:  35323904 sectors in 5750 cylinders of 48 tracks, 128 sectors
        17248.0MB in 360 cyl groups (16 c/g, 48.00MB/g, 5824 i/g)
super-block backups (for fsck -F ufs -o b=#) at:
 32, 98464, 196896, 295328, 393760, 492192, 590624, 689056, 787488, 885920,
Initializing cylinder groups:
......
super-block backups for last 10 cylinder groups at:
 34410272, 34508704, 34607136, 34705568, 34804000, 34902432, 35000864,
 35099296, 35197728, 35296160

On both nodes:

root@[both]:/ # mkdir -p /local/cc
root@[both]:/ # cat <<ELOVF >>/etc/vfstab
> /dev/md/ccset/dsk/d0 /dev/md/ccset/rdsk/d0 /local/cc ufs 2 no logging
> ELOVF
Time to start with ClearCase installation.