VMWare Server 2.0.2 实现 SUN Cluster 3.2.3 安装配置 篇三、SUN Cluster 3.2.3 x86 64bit 安装篇

两台主机安装好了以后,需要在两台主机上都安装 SUN Cluster 3.2.3 x86 64bit 软件,安装过程如下,先把 Suncluser 3.2.3 的iso放到虚拟主机的 光驱上。

 

启动虚拟主机后进入光驱,进入 X86 的目录,运行 ./runInstaller

 

 

按部就班的在两台机器上把 SUN Cluster 3.2.3 安装完毕。

 

现在给 SUN 主机添加共享硬盘。 步骤我就不详细说了,看我的配置文件。

主机 guosol10a1

.encoding = "GBK"
config.version = "8"
virtualHW.version = "7"
floppy0.present = "FALSE"
mks.enable3d = "TRUE"
pciBridge0.present = "TRUE"
pciBridge4.present = "TRUE"
pciBridge4.virtualDev = "pcieRootPort"
pciBridge4.functions = "8"
pciBridge5.present = "TRUE"
pciBridge5.virtualDev = "pcieRootPort"
pciBridge5.functions = "8"
pciBridge6.present = "TRUE"
pciBridge6.virtualDev = "pcieRootPort"
pciBridge6.functions = "8"
pciBridge7.present = "TRUE"
pciBridge7.virtualDev = "pcieRootPort"
pciBridge7.functions = "8"
vmci0.present = "TRUE"
nvram = "guosol10a1.nvram"
virtualHW.productCompatibility = "hosted"
ft.secondary0.enabled = "TRUE"
tools.upgrade.policy = "useGlobal"
powerType.powerOff = "soft"
powerType.powerOn = "hard"
powerType.suspend = "hard"
powerType.reset = "soft"

displayName = "guosol10a1"
extendedConfigFile = "guosol10a1.vmxf"

numvcpus = "2"
scsi0.present = "TRUE"
scsi0.sharedBus = "none"
scsi0.virtualDev = "lsilogic"
memsize = "2540"
scsi0:0.present = "TRUE"
scsi0:0.fileName = "guosol10a1-disk0.vmdk"
scsi0:0.writeThrough = "TRUE"
ide1:0.present = "TRUE"
ide1:0.fileName = ""
ide1:0.deviceType = "cdrom-image"
ide1:0.allowGuestConnectionControl = "FALSE"
ethernet0.present = "TRUE"
ethernet0.allowGuestConnectionControl = "FALSE"
ethernet0.virtualDev = "e1000"
ethernet0.features = "1"
ethernet0.wakeOnPcktRcv = "FALSE"
ethernet0.networkName = "Bridged"
ethernet0.addressType = "generated"
guestOS = "solaris10-64"
uuid.location = "56 4d 61 0f ae 6a 63 b8-42 c7 5f 71 53 9e a6 95"
uuid.bios = "56 4d 61 0f ae 6a 63 b8-42 c7 5f 71 53 9e a6 95"
vc.uuid = "52 cb e4 71 5a cb a3 97-49 77 0e 25 c8 24 71 af"

ethernet0.generatedAddress = "00:0c:29:9e:a6:95"
scsi0:0.redo = ""
vmotion.checkpointFBSize = "134217728"
pciBridge0.pciSlotNumber = "17"
pciBridge4.pciSlotNumber = "21"
pciBridge5.pciSlotNumber = "22"
pciBridge6.pciSlotNumber = "23"
pciBridge7.pciSlotNumber = "24"
scsi0.pciSlotNumber = "16"
ethernet0.pciSlotNumber = "32"
vmci0.pciSlotNumber = "33"
ethernet0.generatedAddressOffset = "0"
vmci0.id = "1402906261"
tools.remindInstall = "TRUE"

ethernet1.present = "TRUE"
ethernet1.allowGuestConnectionControl = "FALSE"
ethernet1.virtualDev = "e1000"
ethernet1.features = "1"
ethernet1.wakeOnPcktRcv = "FALSE"
ethernet1.networkName = "HostOnly"
ethernet1.addressType = "generated"

ethernet2.present = "TRUE"
ethernet2.allowGuestConnectionControl = "FALSE"
ethernet2.virtualDev = "e1000"
ethernet2.features = "1"
ethernet2.wakeOnPcktRcv = "FALSE"
ethernet2.networkName = "VMnet2"
ethernet2.addressType = "generated"


disk.locking="false"

scsi0:1.present = "TRUE"
scsi0:1.fileName = "guosol10a1-disk1.vmdk"
scsi0:1.writeThrough = "TRUE"



scsi1.present = "TRUE"
scsi1.sharedBus = "virtual"
scsi1.virtualDev = "lsilogic"

scsi1:0.present = "TRUE"
scsi1:0.fileName = "L:\Vmware3\sharesoldisks\sc1-disk0.vmdk"
scsi1:0.writeThrough = "TRUE"

scsi0:2.present = "FALSE"
scsi0:2.fileName = "L:\Vmware3\sharesoldisks\sc2-disk01.vmdk"
scsi0:2.writeThrough = "TRUE"

scsi1:1.present = "TRUE"
scsi1:1.fileName = "L:\Vmware3\sharesoldisks\sc1-disk1.vmdk"
scsi1:1.writeThrough = "TRUE"

scsi1:2.present = "TRUE"
scsi1:2.fileName = "L:\Vmware3\sharesoldisks\sc1-disk2.vmdk"
scsi1:2.writeThrough = "TRUE"

scsi1:3.present = "TRUE"
scsi1:3.fileName = "L:\Vmware3\sharesoldisks\sc1-disk3.vmdk"
scsi1:3.writeThrough = "TRUE"

scsi1:4.present = "TRUE"
scsi1:4.fileName = "L:\Vmware3\sharesoldisks\sc1-disk4.vmdk"
scsi1:4.writeThrough = "TRUE"

scsi1:5.present = "TRUE"
scsi1:5.fileName = "L:\Vmware3\sharesoldisks\sc1-disk5.vmdk"
scsi1:5.writeThrough = "TRUE"

scsi1:6.present = "TRUE"
scsi1:6.fileName = "L:\Vmware3\sharesoldisks\sc1-disk6.vmdk"
scsi1:6.writeThrough = "TRUE"

scsi1:8.present = "TRUE"
scsi1:8.fileName = "L:\Vmware3\sharesoldisks\sc1-disk8.vmdk"
scsi1:8.writeThrough = "TRUE"

scsi1:9.present = "TRUE"
scsi1:9.fileName = "L:\Vmware3\sharesoldisks\sc1-disk9.vmdk"
scsi1:9.writeThrough = "TRUE"

scsi1:10.present = "TRUE"
scsi1:10.fileName = "L:\Vmware3\sharesoldisks\sc1-disk10.vmdk"
scsi1:10.writeThrough = "TRUE"

scsi1:11.present = "TRUE"
scsi1:11.fileName = "L:\Vmware3\sharesoldisks\sc1-disk11.vmdk"
scsi1:11.writeThrough = "TRUE"

scsi1:12.present = "TRUE"
scsi1:12.fileName = "L:\Vmware3\sharesoldisks\sc1-disk12.vmdk"
scsi1:12.writeThrough = "TRUE"

scsi1:13.present = "TRUE"
scsi1:13.fileName = "L:\Vmware3\sharesoldisks\sc1-disk13.vmdk"
scsi1:13.writeThrough = "TRUE"

scsi1:14.present = "TRUE"
scsi1:14.fileName = "L:\Vmware3\sharesoldisks\sc1-disk14.vmdk"
scsi1:14.writeThrough = "TRUE"

scsi1:15.present = "TRUE"
scsi1:15.fileName = "L:\Vmware3\sharesoldisks\sc1-disk15.vmdk"
scsi1:15.writeThrough = "TRUE"

ethernet1.generatedAddress = "00:0c:29:9e:a6:9f"
ethernet2.generatedAddress = "00:0c:29:9e:a6:a9"
scsi0:1.redo = ""
scsi1:0.redo = ""
scsi1:1.redo = ""
scsi1:2.redo = ""
scsi1:3.redo = ""
scsi1:4.redo = ""
scsi1:5.redo = ""
scsi1:6.redo = ""
scsi1:8.redo = ""
scsi1:9.redo = ""
scsi1:10.redo = ""
scsi1:11.redo = ""
scsi1:12.redo = ""
scsi1:13.redo = ""
scsi1:14.redo = ""
scsi1:15.redo = ""
scsi1.pciSlotNumber = "34"
ethernet1.pciSlotNumber = "35"
ethernet2.pciSlotNumber = "36"
ethernet1.generatedAddressOffset = "10"
ethernet2.generatedAddressOffset = "20"

scsi2.present = "TRUE"
scsi2.sharedBus = "virtual"
scsi2.virtualDev = "lsilogic"
scsi2:0.present = "TRUE"
scsi2:0.fileName = "L:\Vmware3\sharesoldisks\sc2-disk00.vmdk"
scsi2:0.writeThrough = "TRUE"

scsi2:1.present = "TRUE"
scsi2:1.fileName = "L:\Vmware3\sharesoldisks\sc2-disk01.vmdk"
scsi2:1.writeThrough = "TRUE"

scsi2:2.present = "TRUE"
scsi2:2.fileName = "L:\Vmware3\sharesoldisks\sc-disk02.vmdk"
scsi2:2.writeThrough = "TRUE"

scsi2:3.present = "TRUE"
scsi2:3.fileName = "L:\Vmware3\sharesoldisks\sc2-disk03.vmdk"
scsi2:3.writeThrough = "TRUE"

scsi2:4.present = "TRUE"
scsi2:4.fileName = "L:\Vmware3\sharesoldisks\sc2-disk04.vmdk"
scsi2:4.writeThrough = "TRUE"

scsi2:5.present = "TRUE"
scsi2:5.fileName = "L:\Vmware3\sharesoldisks\sc2-disk05.vmdk"
scsi2:5.writeThrough = "TRUE"

scsi2:6.present = "TRUE"
scsi2:6.fileName = "L:\Vmware3\sharesoldisks\sc2-disk06.vmdk"
scsi2:6.writeThrough = "TRUE"

scsi2:8.present = "TRUE"
scsi2:8.fileName = "L:\Vmware3\sharesoldisks\sc2-disk08.vmdk"
scsi2:8.writeThrough = "TRUE"

scsi2:9.present = "TRUE"
scsi2:9.fileName = "L:\Vmware3\sharesoldisks\sc2-disk09.vmdk"
scsi2:9.writeThrough = "TRUE"

scsi2:10.present = "TRUE"
scsi2:10.fileName = "L:\Vmware3\sharesoldisks\sc2-disk10.vmdk"
scsi2:10.writeThrough = "TRUE"

scsi2:11.present = "TRUE"
scsi2:11.fileName = "L:\Vmware3\sharesoldisks\sc2-disk11.vmdk"
scsi2:11.writeThrough = "TRUE"

scsi2:12.present = "TRUE"
scsi2:12.fileName = "L:\Vmware3\sharesoldisks\sc2-disk12.vmdk"
scsi2:12.writeThrough = "TRUE"

scsi2:13.present = "TRUE"
scsi2:13.fileName = "L:\Vmware3\sharesoldisks\sc2-disk13.vmdk"
scsi2:13.writeThrough = "TRUE"

scsi2:14.present = "TRUE"
scsi2:14.fileName = "L:\Vmware3\sharesoldisks\sc2-disk14.vmdk"
scsi2:14.writeThrough = "TRUE"

scsi2:15.present = "TRUE"
scsi2:15.fileName = "L:\Vmware3\sharesoldisks\sc2-disk15.vmdk"
scsi2:15.writeThrough = "TRUE"

scsi2:0.redo = ""
scsi2:1.redo = ""
scsi2:2.redo = ""
scsi2:3.redo = ""
scsi2:4.redo = ""
scsi2:5.redo = ""
scsi2:6.redo = ""
scsi2:8.redo = ""
scsi2:9.redo = ""
scsi2:10.redo = ""
scsi2:11.redo = ""
scsi2:12.redo = ""
scsi2:13.redo = ""
scsi2:14.redo = ""
scsi2:15.redo = ""
scsi2.pciSlotNumber = "37"

 

注意:

disk.locking="false"

共享磁盘的控制器设置成 virtual

scsi1.sharedBus = "virtual"

下面是 guosol10a2 的文件

.encoding = "GBK"
config.version = "8"
virtualHW.version = "7"
floppy0.present = "FALSE"
mks.enable3d = "TRUE"
pciBridge0.present = "TRUE"
pciBridge4.present = "TRUE"
pciBridge4.virtualDev = "pcieRootPort"
pciBridge4.functions = "8"
pciBridge5.present = "TRUE"
pciBridge5.virtualDev = "pcieRootPort"
pciBridge5.functions = "8"
pciBridge6.present = "TRUE"
pciBridge6.virtualDev = "pcieRootPort"
pciBridge6.functions = "8"
pciBridge7.present = "TRUE"
pciBridge7.virtualDev = "pcieRootPort"
pciBridge7.functions = "8"
vmci0.present = "TRUE"
nvram = "guosol10a2.nvram"
virtualHW.productCompatibility = "hosted"
ft.secondary0.enabled = "TRUE"
tools.upgrade.policy = "useGlobal"
powerType.powerOff = "soft"
powerType.powerOn = "hard"
powerType.suspend = "hard"
powerType.reset = "soft"

displayName = "guosol10a2"
extendedConfigFile = "guosol10a2.vmxf"

numvcpus = "2"
scsi0.present = "TRUE"
scsi0.sharedBus = "none"
scsi0.virtualDev = "lsilogic"
memsize = "2540"
scsi0:0.present = "TRUE"
scsi0:0.fileName = "guosol10a2-disk0.vmdk"
scsi0:0.writeThrough = "TRUE"
ide1:0.present = "TRUE"
ide1:0.fileName = ""
ide1:0.deviceType = "cdrom-image"
ide1:0.allowGuestConnectionControl = "FALSE"
ethernet0.present = "TRUE"
ethernet0.allowGuestConnectionControl = "FALSE"
ethernet0.virtualDev = "e1000"
ethernet0.features = "1"
ethernet0.wakeOnPcktRcv = "FALSE"
ethernet0.networkName = "Bridged"
ethernet0.addressType = "generated"
guestOS = "solaris10-64"
uuid.location = "56 4d 15 25 3a 18 84 25-2e 7a e8 da fa fa 30 82"
uuid.bios = "56 4d 15 25 3a 18 84 25-2e 7a e8 da fa fa 30 82"
vc.uuid = "52 2a 56 17 1e 0b 75 88-30 df dc f1 f4 6c 4e 64"

scsi0:1.present = "TRUE"
scsi0:1.fileName = "guosol10a2-disk1.vmdk"
scsi0:1.writeThrough = "TRUE"

ethernet1.present = "TRUE"
ethernet1.allowGuestConnectionControl = "FALSE"
ethernet1.virtualDev = "e1000"
ethernet1.features = "1"
ethernet1.wakeOnPcktRcv = "FALSE"
ethernet1.networkName = "HostOnly"
ethernet1.addressType = "generated"
ethernet2.present = "TRUE"
ethernet2.allowGuestConnectionControl = "FALSE"
ethernet2.virtualDev = "e1000"
ethernet2.features = "1"
ethernet2.wakeOnPcktRcv = "FALSE"
ethernet2.networkName = "VMnet2"
ethernet2.addressType = "generated"

ethernet0.generatedAddress = "00:0c:29:fa:30:82"
ethernet1.generatedAddress = "00:0c:29:fa:30:8c"
ethernet2.generatedAddress = "00:0c:29:fa:30:96"
debugStub.linuxOffsets = "0x0,0xffffffff,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0"
scsi0:0.redo = ""
scsi0:1.redo = ""
vmotion.checkpointFBSize = "134217728"
pciBridge0.pciSlotNumber = "17"
pciBridge4.pciSlotNumber = "21"
pciBridge5.pciSlotNumber = "22"
pciBridge6.pciSlotNumber = "23"
pciBridge7.pciSlotNumber = "24"
scsi0.pciSlotNumber = "16"
ethernet0.pciSlotNumber = "32"
ethernet1.pciSlotNumber = "33"
ethernet2.pciSlotNumber = "34"
vmci0.pciSlotNumber = "35"
ethernet0.generatedAddressOffset = "0"
ethernet1.generatedAddressOffset = "10"
ethernet2.generatedAddressOffset = "20"
vmci0.id = "-84266878"
tools.remindInstall = "TRUE"

disk.locking="false"


scsi1.present = "TRUE"
scsi1.sharedBus = "virtual"
scsi1.virtualDev = "lsilogic"
scsi1:0.present = "TRUE"
scsi1:0.fileName = "L:\Vmware3\sharesoldisks\sc1-disk0.vmdk"
scsi1:0.writeThrough = "TRUE"

scsi1:1.present = "TRUE"
scsi1:1.fileName = "L:\Vmware3\sharesoldisks\sc1-disk1.vmdk"
scsi1:1.writeThrough = "TRUE"

scsi1:2.present = "TRUE"
scsi1:2.fileName = "L:\Vmware3\sharesoldisks\sc1-disk2.vmdk"
scsi1:2.writeThrough = "TRUE"

scsi1:3.present = "TRUE"
scsi1:3.fileName = "L:\Vmware3\sharesoldisks\sc1-disk3.vmdk"
scsi1:3.writeThrough = "TRUE"

scsi1:4.present = "TRUE"
scsi1:4.fileName = "L:\Vmware3\sharesoldisks\sc1-disk4.vmdk"
scsi1:4.writeThrough = "TRUE"

scsi1:5.present = "TRUE"
scsi1:5.fileName = "L:\Vmware3\sharesoldisks\sc1-disk5.vmdk"
scsi1:5.writeThrough = "TRUE"

scsi1:6.present = "TRUE"
scsi1:6.fileName = "L:\Vmware3\sharesoldisks\sc1-disk6.vmdk"
scsi1:6.writeThrough = "TRUE"

scsi1:8.present = "TRUE"
scsi1:8.fileName = "L:\Vmware3\sharesoldisks\sc1-disk8.vmdk"
scsi1:8.writeThrough = "TRUE"

scsi1:9.present = "TRUE"
scsi1:9.fileName = "L:\Vmware3\sharesoldisks\sc1-disk9.vmdk"
scsi1:9.writeThrough = "TRUE"

scsi1:10.present = "TRUE"
scsi1:10.fileName = "L:\Vmware3\sharesoldisks\sc1-disk10.vmdk"
scsi1:10.writeThrough = "TRUE"

scsi1:11.present = "TRUE"
scsi1:11.fileName = "L:\Vmware3\sharesoldisks\sc1-disk11.vmdk"
scsi1:11.writeThrough = "TRUE"

scsi1:12.present = "TRUE"
scsi1:12.fileName = "L:\Vmware3\sharesoldisks\sc1-disk12.vmdk"
scsi1:12.writeThrough = "TRUE"

scsi1:13.present = "TRUE"
scsi1:13.fileName = "L:\Vmware3\sharesoldisks\sc1-disk13.vmdk"
scsi1:13.writeThrough = "TRUE"

scsi1:14.present = "TRUE"
scsi1:14.fileName = "L:\Vmware3\sharesoldisks\sc1-disk14.vmdk"
scsi1:14.writeThrough = "TRUE"

scsi1:15.present = "TRUE"
scsi1:15.fileName = "L:\Vmware3\sharesoldisks\sc1-disk15.vmdk"
scsi1:15.writeThrough = "TRUE"

scsi1:0.redo = ""
scsi1:1.redo = ""
scsi1:2.redo = ""
scsi1:3.redo = ""
scsi1:4.redo = ""
scsi1:5.redo = ""
scsi1:6.redo = ""
scsi1:8.redo = ""
scsi1:9.redo = ""
scsi1:10.redo = ""
scsi1:11.redo = ""
scsi1:12.redo = ""
scsi1:13.redo = ""
scsi1:14.redo = ""
scsi1:15.redo = ""
scsi1.pciSlotNumber = "36"

scsi2.present = "TRUE"
scsi2.sharedBus = "virtual"
scsi2.virtualDev = "lsilogic"
scsi2:0.present = "TRUE"
scsi2:0.fileName = "L:\Vmware3\sharesoldisks\sc2-disk00.vmdk"
scsi2:0.writeThrough = "TRUE"

scsi2:1.present = "TRUE"
scsi2:1.fileName = "L:\Vmware3\sharesoldisks\sc2-disk01.vmdk"
scsi2:1.writeThrough = "TRUE"

scsi2:2.present = "TRUE"
scsi2:2.fileName = "L:\Vmware3\sharesoldisks\sc-disk02.vmdk"
scsi2:2.writeThrough = "TRUE"

scsi2:3.present = "TRUE"
scsi2:3.fileName = "L:\Vmware3\sharesoldisks\sc2-disk03.vmdk"
scsi2:3.writeThrough = "TRUE"

scsi2:4.present = "TRUE"
scsi2:4.fileName = "L:\Vmware3\sharesoldisks\sc2-disk04.vmdk"
scsi2:4.writeThrough = "TRUE"

scsi2:5.present = "TRUE"
scsi2:5.fileName = "L:\Vmware3\sharesoldisks\sc2-disk05.vmdk"
scsi2:5.writeThrough = "TRUE"

scsi2:6.present = "TRUE"
scsi2:6.fileName = "L:\Vmware3\sharesoldisks\sc2-disk06.vmdk"
scsi2:6.writeThrough = "TRUE"

scsi2:8.present = "TRUE"
scsi2:8.fileName = "L:\Vmware3\sharesoldisks\sc2-disk08.vmdk"
scsi2:8.writeThrough = "TRUE"

scsi2:9.present = "TRUE"
scsi2:9.fileName = "L:\Vmware3\sharesoldisks\sc2-disk09.vmdk"
scsi2:9.writeThrough = "TRUE"

scsi2:10.present = "TRUE"
scsi2:10.fileName = "L:\Vmware3\sharesoldisks\sc2-disk10.vmdk"
scsi2:10.writeThrough = "TRUE"

scsi2:11.present = "TRUE"
scsi2:11.fileName = "L:\Vmware3\sharesoldisks\sc2-disk11.vmdk"
scsi2:11.writeThrough = "TRUE"

scsi2:12.present = "TRUE"
scsi2:12.fileName = "L:\Vmware3\sharesoldisks\sc2-disk12.vmdk"
scsi2:12.writeThrough = "TRUE"

scsi2:13.present = "TRUE"
scsi2:13.fileName = "L:\Vmware3\sharesoldisks\sc2-disk13.vmdk"
scsi2:13.writeThrough = "TRUE"

scsi2:14.present = "TRUE"
scsi2:14.fileName = "L:\Vmware3\sharesoldisks\sc2-disk14.vmdk"
scsi2:14.writeThrough = "TRUE"

scsi2:15.present = "TRUE"
scsi2:15.fileName = "L:\Vmware3\sharesoldisks\sc2-disk15.vmdk"
scsi2:15.writeThrough = "TRUE"

scsi2:0.redo = ""
scsi2:1.redo = ""
scsi2:2.redo = ""
scsi2:3.redo = ""
scsi2:4.redo = ""
scsi2:5.redo = ""
scsi2:6.redo = ""
scsi2:8.redo = ""
scsi2:9.redo = ""
scsi2:10.redo = ""
scsi2:11.redo = ""
scsi2:12.redo = ""
scsi2:13.redo = ""
scsi2:14.redo = ""
scsi2:15.redo = ""
scsi2.pciSlotNumber = "37"

 scsi1:0 - 15 都是共享磁盘。

定义完共享磁盘后开始配置 sun cluster

以下工作在两台机器上完成

1、配置 /etc/profile.

用root用户建 /etc/profile

#ident	"@(#)profile	1.19	01/03/13 SMI"	/* SVr4.0 1.3	*/

# The profile that all logins get before using their own .profile.

trap ""  2 3
PATH=$PATH:/usr/cluster/bin
MANPATH=$MANPATH:/usr/cluster/man:/usr/share/man
export LOGNAME PATH MANPATH
PS1="${LOGNAME}@`hostname`#" export PS1

if [ "$TERM" = "" ]
then
	if /bin/i386
	then
		TERM=sun-color
	else
		TERM=sun
	fi
	export TERM
fi

#	Login and -su shells get /etc/profile services.
#	-rsh is given its environment in its .profile.

case "$0" in
-sh | -ksh | -jsh | -bash)

	if [ ! -f .hushlogin ]
	then
		/usr/sbin/quota
		#	Allow the user to break the Message-Of-The-Day only.
		trap "trap '' 2"  2
		/bin/cat -s /etc/motd
		trap "" 2

		/bin/mail -E
		case $? in
		0) 
			echo "You have new mail."
		  	;;
		2) 
			echo "You have mail."
		   	;;
		esac
	fi
esac

umask 022
trap  2 3

 

2、配置 /etc/hosts

guosol10a1 的

/etc/hosts

127.0.0.1       localhost
192.168.1.31    guosol10a1      loghost
192.168.1.32    guosol10a2

 

guosol10a2 的

/etc/hosts

127.0.0.1       localhost
192.168.1.32    guosol10a2      loghost
192.168.1.31    guosol10a1

 

3、配置 /.rhosts

两台机器一样

在/下建立.rhosts文件,添加两台主机的名称:guosol10a1 和guosol10a2 ,各占一行。

 

# vi /.rhosts
"/.rhosts" [New file] 
guosol10a1
guosol10a2

 

 

初始化配置 sun cluster

只在 guosol10a1 上做,它会自动同步到 guosoal10a2上去的。

root@guosol10a1#scinstall


  *** 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


  *** New Cluster and Cluster Node Menu ***

    Please select from any one of the following options:

        1) Create a new cluster
        2) Create just the first node of a new cluster on this machine
        3) Add this machine as a node in an existing cluster

        ?) Help with menu options
        q) Return to the Main Menu

    Option:  1

*** Create a New Cluster ***


    This option creates and configures a new cluster.

    You must use the Java Enterprise System (JES) installer to install the
    Sun Cluster framework software on each machine in the new cluster 
    before you select this option.

    If the "remote configuration" option is unselected from the JES 
    installer when you install the Sun Cluster framework on any of the new
    nodes, then you must configure either the remote shell (see rsh(1)) or
    the secure shell (see ssh(1)) before you select this option. If rsh or
    ssh is used, you must enable root access to all of the new member 
    nodes from this node.

    Press Control-d at any time to return to the Main Menu.


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

>>> Typical or Custom Mode <<<

    This tool supports two modes of operation, Typical mode and Custom. 
    For most clusters, you can use Typical mode. However, you might need 
    to select the Custom mode option if not all of the Typical defaults 
    can be applied to your cluster.

    For more information about the differences between Typical and Custom 
    modes, select the Help option from the menu.

    Please select from one of the following options:

        1) Typical
        2) Custom

        ?) Help
        q) Return to the Main Menu

    Option [1]:  1

>>> Cluster Name <<<

    Each cluster has a name assigned to it. The name can be made up of any
    characters other than whitespace. Each cluster name should be unique 
    within the namespace of your enterprise.

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

>>> Cluster Nodes <<<

    This Sun 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):  guosol10a1
    Node name (Control-D to finish):  guosol10a2
    Node name (Control-D to finish):  ^D


    This is the complete list of nodes:

        guosol10a1
        guosol10a2

    Is it correct (yes/no) [yes]?  
Attempting to contact "guosol10a2" ... done

    Searching for a remote configuration method ... done

    The Sun Cluster framework is able to complete the configuration 
    process without remote shell access
>>> Cluster Transport Adapters and Cables <<<

    You must identify the cluster transport adapters which attach this 
    node to the private cluster interconnect.

    Select the first cluster transport adapter for "guosol10a1":

        1) e1000g1
        2) e1000g2
        3) Other

    Option:  1

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

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

    Select the second cluster transport adapter for "guosol10a1":

        1) e1000g1
        2) e1000g2
        3) Other

    Option:  2

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

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

    Plumbing network address 172.16.0.0 on adapter e1000g1 >> NOT DUPLICATE ... done    Plumbing network address 172.16.0.0 on adapter e1000g2 >> NOT DUPLICATE ... done

>>> Quorum Configuration <<<

    Every two-node cluster requires at least one quorum device. By 
    default, scinstall selects and configures a shared disk quorum device 
    for you.

    This screen allows you to disable the automatic selection and 
    configuration of a quorum device.

    You have chosen to turn on the global fencing. If your shared storage 
    devices do not support SCSI, such as Serial Advanced Technology 
    Attachment (SATA) disks, or if your shared disks do not support 
    SCSI-2, you must disable this feature.

    If you disable automatic quorum device selection now, or if you intend
    to use a quorum device that is not a shared disk, you must instead use
    clsetup(1M) to manually configure quorum once both nodes have joined 
    the cluster for the first time.

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

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

    During the cluster creation process, cluster check is run on each of 
    the new cluster nodes. If cluster check detects problems, you can 
    either interrupt the process or check the log files after the cluster 
    has been established.
Cluster Creation

    Log file - /var/cluster/logs/install/scinstall.log.8584

    Testing for "/globaldevices" on "guosol10a1" ... done
    Testing for "/globaldevices" on "guosol10a2" ... done

    Starting discovery of the cluster transport configuration.

    The following connections were discovered:

        guosol10a1:e1000g1  switch1  guosol10a2:e1000g1
        guosol10a1:e1000g2  switch2  guosol10a2:e1000g2

    Completed discovery of the cluster transport configuration.

    Started cluster check on "guosol10a1".
    Started cluster check on "guosol10a2".

    cluster check completed with no errors or warnings for "guosol10a1".
    cluster check completed with no errors or warnings for "guosol10a2".


    Configuring "guosol10a2" ... done
    Rebooting "guosol10a2" ...

 配置完毕后,两台机器先后自动重启完毕后检查cluster

root@guosol10a2#scstat -p
------------------------------------------------------------------

-- Cluster Nodes --

                    Node name           Status
                    ---------           ------
  Cluster node:     guosol10a2          Online
  Cluster node:     guosol10a1          Online

------------------------------------------------------------------

-- Cluster Transport Paths --

                    Endpoint               Endpoint               Status
                    --------               --------               ------
  Transport path:   guosol10a2:e1000g2     guosol10a1:e1000g2     Path online
  Transport path:   guosol10a2:e1000g1     guosol10a1:e1000g1     Path online

------------------------------------------------------------------

-- Quorum Summary from latest node reconfiguration --

  Quorum votes possible:      1
  Quorum votes needed:        1
  Quorum votes present:       1


-- Quorum Votes by Node (current status) --

                    Node Name           Present Possible Status
                    ---------           ------- -------- ------
  Node votes:       guosol10a2          1        1       Online
  Node votes:       guosol10a1          0        0       Online


-- Quorum Votes by Device (current status) --

                    Device Name         Present Possible Status
                    -----------         ------- -------- ------

------------------------------------------------------------------

-- Device Group Servers --

                         Device Group        Primary             Secondary
                         ------------        -------             ---------


-- Device Group Status --

                              Device Group        Status              
                              ------------        ------              


-- Multi-owner Device Groups --

                              Device Group        Online Status
                              ------------        -------------

------------------------------------------------------------------
------------------------------------------------------------------

-- IPMP Groups --

              Node Name           Group   Status         Adapter   Status
              ---------           -----   ------         -------   ------
  IPMP Group: guosol10a2          sc_ipmp0 Online         e1000g0   Online

  IPMP Group: guosol10a1          sc_ipmp0 Online         e1000g0   Online


-- IPMP Groups in Zones --

              Zone Name           Group   Status         Adapter   Status
              ---------           -----   ------         -------   ------
------------------------------------------------------------------


root@guosol10a2#

root@guosol10a2#ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
        inet 127.0.0.1 netmask ff000000 
e1000g0: flags=9000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4,NOFAILOVER> mtu 1500 index 2
        inet 192.168.1.32 netmask ffffff00 broadcast 192.168.1.255
        groupname sc_ipmp0
        ether 0:c:29:fa:30:82 
e1000g1: flags=1008843<UP,BROADCAST,RUNNING,MULTICAST,PRIVATE,IPv4> mtu 1500 index 4
        inet 172.16.0.129 netmask ffffff80 broadcast 172.16.0.255
        ether 0:c:29:fa:30:8c 
e1000g2: flags=1008843<UP,BROADCAST,RUNNING,MULTICAST,PRIVATE,IPv4> mtu 1500 index 6
        inet 172.16.1.1 netmask ffffff80 broadcast 172.16.1.127
        ether 0:c:29:fa:30:96 
clprivnet0: flags=1009843<UP,BROADCAST,RUNNING,MULTICAST,MULTI_BCAST,PRIVATE,IPv4> mtu 1500 index 5
        inet 172.16.4.1 netmask fffffe00 broadcast 172.16.5.255
        ether 0:0:0:0:0:1 
root@guosol10a2#


root@guosol10a1#ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
        inet 127.0.0.1 netmask ff000000 
e1000g0: flags=9000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4,NOFAILOVER> mtu 1500 index 2
        inet 192.168.1.31 netmask ffffff00 broadcast 192.168.1.255
        groupname sc_ipmp0
        ether 0:c:29:9e:a6:95 
e1000g1: flags=1008843<UP,BROADCAST,RUNNING,MULTICAST,PRIVATE,IPv4> mtu 1500 index 4
        inet 172.16.0.130 netmask ffffff80 broadcast 172.16.0.255
        ether 0:c:29:9e:a6:9f 
e1000g2: flags=1008843<UP,BROADCAST,RUNNING,MULTICAST,PRIVATE,IPv4> mtu 1500 index 3
        inet 172.16.1.2 netmask ffffff80 broadcast 172.16.1.127
        ether 0:c:29:9e:a6:a9 
clprivnet0: flags=1009843<UP,BROADCAST,RUNNING,MULTICAST,MULTI_BCAST,PRIVATE,IPv4> mtu 1500 index 5
        inet 172.16.4.2 netmask fffffe00 broadcast 172.16.5.255
        ether 0:0:0:0:0:2

 配置仲裁磁盘,只在 guosol10a1 上做

root@guosol10a1#scdidadm -L                       
1        guosol10a2:/dev/rdsk/c0t0d0    /dev/did/rdsk/d1     
2        guosol10a2:/dev/rdsk/c1t0d0    /dev/did/rdsk/d2     
3        guosol10a2:/dev/rdsk/c1t1d0    /dev/did/rdsk/d3     
4        guosol10a2:/dev/rdsk/c2t0d0    /dev/did/rdsk/d4     
4        guosol10a1:/dev/rdsk/c2t0d0    /dev/did/rdsk/d4     
5        guosol10a2:/dev/rdsk/c2t1d0    /dev/did/rdsk/d5     
5        guosol10a1:/dev/rdsk/c2t1d0    /dev/did/rdsk/d5     
6        guosol10a2:/dev/rdsk/c2t2d0    /dev/did/rdsk/d6     
6        guosol10a1:/dev/rdsk/c2t2d0    /dev/did/rdsk/d6     
7        guosol10a2:/dev/rdsk/c2t3d0    /dev/did/rdsk/d7     
7        guosol10a1:/dev/rdsk/c2t3d0    /dev/did/rdsk/d7     
8        guosol10a2:/dev/rdsk/c2t4d0    /dev/did/rdsk/d8     
8        guosol10a1:/dev/rdsk/c2t4d0    /dev/did/rdsk/d8     
9        guosol10a2:/dev/rdsk/c2t5d0    /dev/did/rdsk/d9     
9        guosol10a1:/dev/rdsk/c2t5d0    /dev/did/rdsk/d9     
10       guosol10a2:/dev/rdsk/c2t6d0    /dev/did/rdsk/d10    
10       guosol10a1:/dev/rdsk/c2t6d0    /dev/did/rdsk/d10    
11       guosol10a2:/dev/rdsk/c2t8d0    /dev/did/rdsk/d11    
11       guosol10a1:/dev/rdsk/c2t8d0    /dev/did/rdsk/d11    
12       guosol10a2:/dev/rdsk/c2t9d0    /dev/did/rdsk/d12    
12       guosol10a1:/dev/rdsk/c2t9d0    /dev/did/rdsk/d12    
13       guosol10a2:/dev/rdsk/c2t10d0   /dev/did/rdsk/d13    
13       guosol10a1:/dev/rdsk/c2t10d0   /dev/did/rdsk/d13    
14       guosol10a2:/dev/rdsk/c2t11d0   /dev/did/rdsk/d14    
14       guosol10a1:/dev/rdsk/c2t11d0   /dev/did/rdsk/d14    
15       guosol10a2:/dev/rdsk/c2t12d0   /dev/did/rdsk/d15    
15       guosol10a1:/dev/rdsk/c2t12d0   /dev/did/rdsk/d15    
16       guosol10a2:/dev/rdsk/c2t13d0   /dev/did/rdsk/d16    
16       guosol10a1:/dev/rdsk/c2t13d0   /dev/did/rdsk/d16    
17       guosol10a2:/dev/rdsk/c2t14d0   /dev/did/rdsk/d17    
17       guosol10a1:/dev/rdsk/c2t14d0   /dev/did/rdsk/d17    
18       guosol10a2:/dev/rdsk/c2t15d0   /dev/did/rdsk/d18    
18       guosol10a1:/dev/rdsk/c2t15d0   /dev/did/rdsk/d18    
19       guosol10a1:/dev/rdsk/c0t0d0    /dev/did/rdsk/d19    
20       guosol10a1:/dev/rdsk/c1t0d0    /dev/did/rdsk/d20    
21       guosol10a1:/dev/rdsk/c1t1d0    /dev/did/rdsk/d21


root@guosol10a1#scsetup
>>> Initial Cluster Setup <<<

    This program has detected that the cluster "installmode" attribute is 
    still enabled. As such, certain initial cluster setup steps will be 
    performed at this time. This includes adding any necessary quorum 
    devices, then resetting both the quorum vote counts and the 
    "installmode" property.

    Please do not proceed if any additional nodes have yet to join the 
    cluster.

    Is it okay to continue (yes/no) [yes]?  yes

    Do you want to add any quorum devices (yes/no) [yes]?  yes

    Following are supported Quorum Devices types in Sun Cluster. Please 
    refer to Sun Cluster documentation for detailed information on these 
    supported quorum device topologies.

    What is the type of device you want to use?

        1) Directly attached shared disk
        2) Network Attached Storage (NAS) from Network Appliance
        3) Quorum Server

        q) Return to the quorum menu

    Option:  1
Which global device do you want to use (d<N>)?  d4

    Is it okay to proceed with the update (yes/no) [yes]?  yes

scconf -a -q globaldev=d4

    Command completed successfully.

Press Enter to continue:  

    Do you want to add another quorum device (yes/no) [yes]?  no

    Once the "installmode" property has been reset, this program will skip
    "Initial Cluster Setup" each time it is run again in the future. 
    However, quorum devices can always be added to the cluster using the 
    regular menu options. Resetting this property fully activates quorum 
    settings and is necessary for the normal and safe operation of the 
    cluster.

    Is it okay to reset "installmode" (yes/no) [yes]?  yes


scconf -c -q reset
scconf -a -T node=.

    Cluster initialization is complete.


    Type ENTER to proceed to the main menu:  



  *** Main Menu ***

    Please select from one of the following options:

        1) Quorum
        2) Resource groups
        3) Data Services
        4) Cluster interconnect
        5) Device groups and volumes
        6) Private hostnames
        7) New nodes
        8) Other cluster tasks

        ?) Help with menu options
        q) Quit

    Option:  q

 

 到此,初步完成sun cluster 配置。

posted @ 2012-03-07 12:48  疯狂的毛豆  阅读(68)  评论(0编辑  收藏  举报