Sun Cluster Handbuch Systemverwaltung für Solaris OS

Kapitel 3 Herunterfahren und Booten eines Clusters

Dieses Kapitel beschreibt die Verfahren zum Herunterfahren und Booten eines Clusters und einzelner Cluster-Knoten.

In Tabelle 3–1 und Tabelle 3–2 finden Sie eine Beschreibung der verwandten Verfahren in diesem Kapitel auf höchster Ebene.

Überblick über das Herunterfahren und Booten eines Clusters

Der Sun Cluster-scshutdown(1M)-Befehl stoppt die Cluster-Dienste auf geordnete Weise und fährt den gesamten Cluster sauber herunter. Sie können den scshutdown-Befehl für einen Standordwechsel des Clusters verwenden. Sie können den Befehl auch zum Herunterfahren des Clusters einsetzen, wenn aufgrund eines Anwendungsfehlers Schäden an den Daten aufgetreten sind.


Hinweis –

Mit dem scshutdown-Befehl anstelle des shutdown- oder des halt-Befehls stellen Sie ein einwandfreies Herunterfahren des ganzen Clusters sicher. Der Solaris-shutdown-Befehl wird mit dem scswitch(1M)-Befehl zum Herunterfahren einzelner Knoten verwendet. Weitere Informationen finden Sie unter So fahren Sie einen Cluster herunter oder Herunterfahren und Booten eines einzelnen Cluster-Knotens.


Der scshutdown-Befehl stoppt alle Knoten in einem Cluster durch folgende Aktionen:

  1. Offline-nehmen aller laufenden Ressourcengruppen,

  2. Aushängen aller Cluster-Dateisysteme,

  3. Schließen der aktiven Gerätedienste,

  4. Ausführen von init 0 und Zurückführen aller Knoten zur OpenBootTM PROM ok-Eingabeaufforderung in einem SPARC-basierten System, oder in ein Boot-Subsystem bei einem x86-basierten System. Boot-Subsysteme werden ausführlicher unter “Boot Subsystems” in System Administration Guide: Basic Administration beschrieben.


Hinweis –

Bei Bedarf können Sie einen Knoten im Nicht-Cluster-Modus booten, so dass der Knoten nicht an der Cluster-Mitgliedschaft teilnimmt. Der Nicht-Cluster-Modus ist beim Installieren von Cluster-Software oder dem Ausführen bestimmter Verwaltungsverfahren nützlich. Weitere Informationen finden Sie unter So booten Sie einen Cluster-Knoten im Nicht-Cluster-Modus.


Tabelle 3–1 Aufgabenliste: Herunterfahren und Booten eines Clusters

Schritt  

Anweisungen siehe  

Stoppen des Clusters 

    - Verwenden Sie scshutdown(1M)

Siehe So fahren Sie einen Cluster herunter

Starten des Clusters durch Booten aller Knoten  

Die Knoten müssen eine funktionierende Verbindung zum Cluster-Interconnect haben, um die Cluster-Mitgliedschaft zu erlangen.  

Siehe So booten Sie einen Cluster

Neubooten des Clusters 

    - Verwenden Sie scshutdown

An der ok-Eingabeaufforderung oder der Select (b)oot or (i)nterpreter-Eingabeaufforderung im aktuellen Boot-Parameter-Bildschirm booten Sie jeden Knoten einzeln mit dem boot(1M)- oder dem b-Befehl.

Die Knoten müssen eine funktionierende Verbindung zum Cluster-Interconnect haben, um die Cluster-Mitgliedschaft zu erlangen.  

Siehe So booten Sie einen Cluster neu

So fahren Sie einen Cluster herunter


Achtung – Achtung –

Arbeiten Sie auf einer Cluster-Konsole nicht mit dem send brk-Befehl, um einen Cluster-Knoten herunterzufahren. Dieser Befehl wird in einem Cluster nicht unterstützt.


  1. SPARC: Werden Oracle Parallel Server oder Real Application Clusters auf dem Cluster ausgeführt, beenden Sie alle Datenbankinstanzen.

    Verfahren zum Herunterfahren finden Sie in der Oracle Parallel Server/Real Application Clusters-Produktdokumentation.

  2. Melden Sie sich bei einem Cluster-Knoten als Superbenutzer an.

  3. Fahren Sie den Cluster sofort herunter.

    Geben Sie an einem einzelnen Knoten im Cluster folgenden Befehl ein:


    # scshutdown -g0 -y
    

  4. Prüfen Sie, ob alle Knoten in einem SPARC-basierten System an der ok-Eingabeaufforderung stehen bzw. sich in einem x86-basierten System in einem Boot-Subsystem befinden.

    Schalten Sie keinen Knoten ab, solange nicht alle Cluster-Knoten an der ok-Eingabeaufforderung (in einem SPARC-basierten System) stehen bzw. sich in einem Boot-Subsystem (in einem x86-basierten System) befinden.

  5. Schalten Sie die Knoten bei Bedarf ab.

SPARC: Beispiel — Herunterfahren eines Clusters

Das nachstehende Beispiel zeigt die Konsolenausgabe an, wenn der normale Cluster-Betrieb gestoppt und alle Knoten heruntergefahren werden, so dass die ok-Eingabeaufforderung angezeigt wird. Die Option -g 0 stellt die Toleranzzeit beim Herunterfahren auf Null ein, und -y sorgt für eine automatische yes-Antwort auf die Bestätigungsabfrage. Die Meldungen zum Herunterfahren werden auch auf den Konsolen der restlichen Knoten im Cluster angezeigt.


# scshutdown -g0 -y
Wed Mar 10 13:47:32 phys-schost-1 cl_runtime:
WARNING: CMM monitoring disabled.
phys-schost-1#
INIT: New run level: 0
The system is coming down.  Please wait.
System services are now being stopped.
/etc/rc0.d/K05initrgm: Calling scswitch -S (evacuate)
The system is down.
syncing file systems... done
Program terminated
ok 

x86: Beispiel — Herunterfahren eines Clusters

Das nachstehende Beispiel zeigt die Konsolenausgabe an, wenn der normale Clusterbetrieb gestoppt und alle Knoten heruntergefahren werden. Die Option -g 0 stellt die Toleranzzeit beim Herunterfahren auf Null ein, und -y sorgt für eine automatische yes-Antwort auf die Bestätigungsabfrage. Die Meldungen zum Herunterfahren werden auch auf den Konsolen der restlichen Knoten im Cluster angezeigt.


# scshutdown -g0 -y
May  2 10:32:57 phys-schost-1 cl_runtime:
WARNING: CMM: Monitoring disabled.
root@phys-schost-1#
INIT: New run level: 0
The system is coming down.  Please wait.
System services are now being stopped.
/etc/rc0.d/K05initrgm: Calling scswitch -S (evacuate)
failfasts already disabled on node 1
Print services already stopped.
May  2 10:33:13 phys-schost-1 syslogd: going down on signal 15
The system is down.
syncing file systems... done
Type any key to continue 

Weiterführende Informationen

Informationen zum Neustarten eines heruntergefahrenen Clusters finden Sie unter So booten Sie einen Cluster.

So booten Sie einen Cluster

  1. Zum Starten eines Clusters, dessen Knoten heruntergefahren wurden und an der ok-Eingabeaufforderung oder an der Select (b)oot or (i)nterpreter-Eingabeaufforderung des Bildschirms mit den aktuellen Boot-Parametern stehen, führen Sie auf jedem Knoten boot(1M) aus.

    Wenn Sie Konfigurationsänderungen zwischen den einzelnen Vorgängen zum Herunterfahren durchführen, starten Sie zuerst den Knoten mit der aktuellsten Konfiguration. Mit Ausnahme dieses Falls hat die Boot-Reihenfolge der Knoten keine Bedeutung.

    • SPARC:


      ok boot
      

    • x86:


                            <<< Current Boot Parameters >>>
      Boot path: /pci@0,0/pci8086,2545@3/pci8086,1460@1d/pci8086,341a@7,1/
      sd@0,0:a
      Boot args:
      
      Type    b [file-name] [boot-flags] <ENTER>  to boot with options
      or      i <ENTER>                           to enter boot interpreter
      or      <ENTER>                             to boot with defaults
      
                        <<< timeout in 5 seconds >>>
      Select (b)oot or (i)nterpreter: b
      

    Auf den Konsolen der gebooteten Knoten werden beim Aktivieren der Cluster-Komponenten Meldungen angezeigt.


    Hinweis –

    Cluster-Knoten müssen eine funktionierende Verbindung zum Cluster-Interconnect haben, um die Cluster-Mitgliedschaft zu erlangen.


  2. Überprüfen Sie, ob alle Knoten fehlerfrei gebootet wurden und online sind.

    Der scstat(1M)-Befehl gibt den Status der Knoten zurück.


     # scstat -n
    


    Hinweis –

    Wenn das /var-Dateisystem eines Cluster-Knotens voll wird, kann Sun Cluster auf dem Knoten möglicherweise nicht neu gestartet werden. Wenn dieses Problem auftritt, gehen Sie zum Abschnitt So reparieren Sie ein volles /var-Dateisystem.


SPARC: Beispiel — Booten eines Clusters

Das nachstehende Beispiel zeigt die Konsolenausgabe beim Start des Knotens phys-schost-1 in einem Cluster. Ähnliche Meldungen werden auf den Konsolen der restlichen Knoten im Cluster angezeigt.


ok boot
Rebooting with command: boot
...
Hostname: phys-schost-1
Booting as part of a cluster
NOTICE: Node phys-schost-1 with votecount = 1 added.
NOTICE: Node phys-schost-2 with votecount = 1 added.
NOTICE: Node phys-schost-3 with votecount = 1 added.
...
NOTICE: Node phys-schost-1: attempting to join cluster
...
NOTICE: Node phys-schost-2 (incarnation # 937690106) has become reachable.
NOTICE: Node phys-schost-3 (incarnation # 937690290) has become reachable.
NOTICE: cluster has reached quorum.
NOTICE: node phys-schost-1 is up; new incarnation number = 937846227.
NOTICE: node phys-schost-2 is up; new incarnation number = 937690106.
NOTICE: node phys-schost-3 is up; new incarnation number = 937690290.
NOTICE: Cluster members: phys-schost-1 phys-schost-2 phys-schost-3.
...

x86: Beispiel — Booten eines Clusters

Das nachstehende Beispiel zeigt die Konsolenausgabe beim Start des Knotens phys-schost-1 in einem Cluster. Ähnliche Meldungen werden auf den Konsolen der restlichen Knoten im Cluster angezeigt.


ATI RAGE SDRAM BIOS P/N GR-xlint.007-4.330
*                                        BIOS Lan-Console 2.0
Copyright (C) 1999-2001  Intel Corporation
MAC ADDR: 00 02 47 31 38 3C
AMIBIOS (C)1985-2002 American Megatrends Inc.,
Copyright 1996-2002 Intel Corporation
SCB20.86B.1064.P18.0208191106
SCB2 Production BIOS Version 2.08
BIOS Build 1064
2 X Intel(R) Pentium(R) III CPU family      1400MHz
Testing system memory, memory size=2048MB
2048MB Extended Memory Passed
512K L2 Cache SRAM Passed
ATAPI CD-ROM SAMSUNG CD-ROM SN-124

Press <F2> to enter SETUP, <F12> Network

Adaptec AIC-7899 SCSI BIOS v2.57S4
(c) 2000 Adaptec, Inc. All Rights Reserved.
    Press <Ctrl><A> for SCSISelect(TM) Utility!

Ch B,  SCSI ID: 0 SEAGATE  ST336605LC        160
       SCSI ID: 1 SEAGATE  ST336605LC        160
       SCSI ID: 6 ESG-SHV  SCA HSBP M18      ASYN
Ch A,  SCSI ID: 2 SUN      StorEdge 3310     160
       SCSI ID: 3 SUN      StorEdge 3310     160

AMIBIOS (C)1985-2002 American Megatrends Inc.,
Copyright 1996-2002 Intel Corporation
SCB20.86B.1064.P18.0208191106
SCB2 Production BIOS Version 2.08
BIOS Build 1064

2 X Intel(R) Pentium(R) III CPU family      1400MHz
Testing system memory, memory size=2048MB
2048MB Extended Memory Passed
512K L2 Cache SRAM Passed
ATAPI CD-ROM SAMSUNG CD-ROM SN-124

SunOS - Intel Platform Edition             Primary Boot Subsystem, vsn 2.0

                        Current Disk Partition Information

                 Part#   Status    Type      Start       Length
                ================================================
                   1     Active   X86 BOOT     2428       21852
                   2              SOLARIS     24280     71662420
                   3              <unused> 
                   4              <unused>
              Please select the partition you wish to boot: *       *

Solaris DCB

			       loading /solaris/boot.bin

SunOS Secondary Boot version 3.00

                  Solaris Intel Platform Edition Booting System

Autobooting from bootpath: /pci@0,0/pci8086,2545@3/pci8086,1460@1d/
pci8086,341a@7,1/sd@0,0:a

If the system hardware has changed, or to boot from a different
device, interrupt the autoboot process by pressing ESC.
Press ESCape to interrupt autoboot in 2 seconds.
Initializing system
Please wait...
Warning: Resource Conflict - both devices are added

NON-ACPI device: ISY0050
     Port: 3F0-3F5, 3F7; IRQ: 6; DMA: 2
ACPI device: ISY0050
     Port: 3F2-3F3, 3F4-3F5, 3F7; IRQ: 6; DMA: 2

                     <<< Current Boot Parameters >>>
Boot path: /pci@0,0/pci8086,2545@3/pci8086,1460@1d/pci8086,341a@7,1/
sd@0,0:a
Boot args:

Type    b [file-name] [boot-flags] <ENTER>  to boot with options
or      i <ENTER>                           to enter boot interpreter
or      <ENTER>                             to boot with defaults

                  <<< timeout in 5 seconds >>>

Select (b)oot or (i)nterpreter:
Size: 275683 + 22092 + 150244 Bytes
/platform/i86pc/kernel/unix loaded - 0xac000 bytes used
SunOS Release 5.9 Version Generic_112234-07 32-bit
Copyright 1983-2003 Sun Microsystems, Inc.  All rights reserved.
Use is subject to license terms.
configuring IPv4 interfaces: e1000g2.
Hostname: phys-schost-1
Booting as part of a cluster
NOTICE: CMM: Node phys-schost-1 (nodeid = 1) with votecount = 1 added.
NOTICE: CMM: Node phys-schost-2 (nodeid = 2) with votecount = 1 added.
NOTICE: CMM: Quorum device 1 (/dev/did/rdsk/d1s2) added; votecount = 1, bitmask
of nodes with configured paths = 0x3.
NOTICE: clcomm: Adapter e1000g3 constructed
NOTICE: clcomm: Path phys-schost-1:e1000g3 - phys-schost-2:e1000g3 being constructed
NOTICE: clcomm: Path phys-schost-1:e1000g3 - phys-schost-2:e1000g3 being initiated
NOTICE: clcomm: Path phys-schost-1:e1000g3 - phys-schost-2:e1000g3 online
NOTICE: clcomm: Adapter e1000g0 constructed
NOTICE: clcomm: Path phys-schost-1:e1000g0 - phys-schost-2:e1000g0 being constructed
NOTICE: CMM: Node phys-schost-1: attempting to join cluster.
NOTICE: clcomm: Path phys-schost-1:e1000g0 - phys-schost-2:e1000g0 being initiated
NOTICE: CMM: Quorum device /dev/did/rdsk/d1s2: owner set to node 1.
NOTICE: CMM: Cluster has reached quorum.
NOTICE: CMM: Node phys-schost-1 (nodeid = 1) is up; new incarnation number = 1068496374.
NOTICE: CMM: Node phys-schost-2 (nodeid = 2) is up; new incarnation number = 1068496374.
NOTICE: CMM: Cluster members: phys-schost-1 phys-schost-2.
NOTICE: CMM: node reconfiguration #1 completed.
NOTICE: CMM: Node phys-schost-1: joined cluster.

So booten Sie einen Cluster neu

Führen Sie den scshutdown( 1M)-Befehl aus, um den Cluster herunterzufahren. Booten Sie dann den Cluster mit dem boot( 1M)-Befehl auf jedem Knoten.

  1. SPARC: Wird Oracle Parallel Server/Real Application Clusters auf dem Cluster ausgeführt, beenden Sie alle Datenbankinstanzen.

    Verfahren zum Herunterfahren finden Sie in der Oracle Parallel Server/Real Application Clusters-Produktdokumentation.

  2. Melden Sie sich bei einem Cluster-Knoten als Superbenutzer an.

  3. Fahren Sie den Cluster herunter.

    Geben Sie an einem einzelnen Knoten im Cluster folgenden Befehl ein:


    # scshutdown -g0 -y 
    

    Jeder Knoten wird heruntergefahren.


    Hinweis –

    Cluster-Knoten müssen eine funktionierende Verbindung zum Cluster-Interconnect haben, um die Cluster-Mitgliedschaft zu erlangen.


  4. Booten Sie jeden Knoten.

    Die Boot-Reihenfolge der Knoten spielt keine Rolle, es sei denn, Sie führen zwischen den einzelnen Vorgängen zum Herunterfahren Konfigurationsänderungen durch. Wenn Sie Konfigurationsänderungen zwischen den einzelnen Vorgängen zum Herunterfahren durchführen, starten Sie zuerst den Knoten mit der aktuellsten Konfiguration.

    • SPARC:


      ok boot
      

    • x86:


                            <<< Current Boot Parameters >>>
      Boot path: /pci@0,0/pci8086,2545@3/pci8086,1460@1d/pci8086,341a@7,1/
      sd@0,0:a
      Boot args:
      
      Type    b [file-name] [boot-flags] <ENTER>  to boot with options
      or      i <ENTER>                           to enter boot interpreter
      or      <ENTER>                             to boot with defaults
      
                        <<< timeout in 5 seconds >>>
      Select (b)oot or (i)nterpreter: b
      

    Auf den Konsolen der gebooteten Knoten werden beim Aktivieren der Cluster-Komponenten Meldungen angezeigt.

  5. Überprüfen Sie, ob alle Knoten fehlerfrei gebootet wurden und online sind.

    Der scstat-Befehl gibt den Status des Knotens zurück.


    # scstat -n
    


    Hinweis –

    Wenn das /var-Dateisystem eines Cluster-Knotens voll wird, kann Sun Cluster auf dem Knoten möglicherweise nicht neu gestartet werden. Wenn dieses Problem auftritt, gehen Sie zum Abschnitt So reparieren Sie ein volles /var-Dateisystem.


SPARC: Beispiel — Neubooten eines Clusters

Das nachstehende Beispiel zeigt die Konsolenausgabe, wenn ein normaler Cluster-Betrieb gestoppt wird, alle Knoten zur ok-Eingabeaufforderung heruntergefahren werden und der Cluster dann neu gestartet wird. Die Option -g 0 stellt die Toleranzzeit auf Null ein, und -y sorgt für eine automatische yes-Antwort auf die Bestätigungsfrage. Die Meldungen zum Herunterfahren werden auch auf den Konsolen der restlichen Knoten im Cluster angezeigt.


# scshutdown -g0 -y
Wed Mar 10 13:47:32 phys-schost-1 cl_runtime:
WARNING: CMM monitoring disabled.
phys-schost-1#
INIT: New run level: 0
The system is coming down.  Please wait.
...
The system is down.
syncing file systems... done
Program terminated
ok boot
Rebooting with command: boot
...
Hostname: phys-schost-1
Booting as part of a cluster
...
NOTICE: Node phys-schost-1: attempting to join cluster
...
NOTICE: Node phys-schost-2 (incarnation # 937690106) has become reachable.
NOTICE: Node phys-schost-3 (incarnation # 937690290) has become reachable.
NOTICE: cluster has reached quorum.
...
NOTICE: Cluster members: phys-schost-1 phys-schost-2 phys-schost-3.
...
NOTICE: Node phys-schost-1: joined cluster
...
The system is coming up.  Please wait.
checking ufs filesystems
...
reservation program successfully exiting
Print services started.
volume management starting.
The system is ready.
phys-schost-1 console login:
NOTICE: Node phys-schost-1: joined cluster
...
The system is coming up.  Please wait.
checking ufs filesystems
...
reservation program successfully exiting
Print services started.
volume management starting.
The system is ready.
phys-schost-1 console login: 

x86: Beispiel — Neubooten eines Clusters

Das nachstehende Beispiel zeigt die Konsolenausgabe, wenn ein normaler Cluster-Betrieb gestoppt wird, alle Knoten heruntergefahren werden und der Cluster dann neu gestartet wird. Die Option -g 0 stellt die Toleranzzeit auf Null ein, und -y sorgt für eine automatische yes-Antwort auf die Bestätigungsabfrage. Die Meldungen zum Herunterfahren werden auch auf den Konsolen der restlichen Knoten im Cluster angezeigt.


# scshutdown -g0 -y
May  2 10:32:57 phys-schost-1 cl_runtime:
WARNING: CMM: Monitoring disabled.
root@phys-schost-1#
INIT: New run level: 0
The system is coming down.  Please wait.
System services are now being stopped.
/etc/rc0.d/K05initrgm: Calling scswitch -S (evacuate)
failfasts already disabled on node 1
Print services already stopped.
May  2 10:33:13 phys-schost-1 syslogd: going down on signal 15
The system is down.
syncing file systems... done
Type any key to continue

ATI RAGE SDRAM BIOS P/N GR-xlint.007-4.330
*                                        BIOS Lan-Console 2.0
Copyright (C) 1999-2001  Intel Corporation
MAC ADDR: 00 02 47 31 38 3C
AMIBIOS (C)1985-2002 American Megatrends Inc.,
Copyright 1996-2002 Intel Corporation
SCB20.86B.1064.P18.0208191106
SCB2 Production BIOS Version 2.08
BIOS Build 1064
2 X Intel(R) Pentium(R) III CPU family      1400MHz
Testing system memory, memory size=2048MB
2048MB Extended Memory Passed
512K L2 Cache SRAM Passed
ATAPI CD-ROM SAMSUNG CD-ROM SN-124

Press <F2> to enter SETUP, <F12> Network

Adaptec AIC-7899 SCSI BIOS v2.57S4
(c) 2000 Adaptec, Inc. All Rights Reserved.
    Press <Ctrl><A> for SCSISelect(TM) Utility!

Ch B,  SCSI ID: 0 SEAGATE  ST336605LC        160
       SCSI ID: 1 SEAGATE  ST336605LC        160
       SCSI ID: 6 ESG-SHV  SCA HSBP M18      ASYN
Ch A,  SCSI ID: 2 SUN      StorEdge 3310     160
       SCSI ID: 3 SUN      StorEdge 3310     160

AMIBIOS (C)1985-2002 American Megatrends Inc.,
Copyright 1996-2002 Intel Corporation
SCB20.86B.1064.P18.0208191106
SCB2 Production BIOS Version 2.08
BIOS Build 1064

2 X Intel(R) Pentium(R) III CPU family      1400MHz
Testing system memory, memory size=2048MB
2048MB Extended Memory Passed
512K L2 Cache SRAM Passed
ATAPI CD-ROM SAMSUNG CD-ROM SN-124

SunOS - Intel Platform Edition             Primary Boot Subsystem, vsn 2.0

                        Current Disk Partition Information

                 Part#   Status    Type      Start       Length
                ================================================
                   1     Active   X86 BOOT     2428       21852
                   2              SOLARIS     24280     71662420
                   3              <unused> 
                   4              <unused>
              Please select the partition you wish to boot: *       *

Solaris DCB

			       loading /solaris/boot.bin

SunOS Secondary Boot version 3.00

                  Solaris Intel Platform Edition Booting System

Autobooting from bootpath: /pci@0,0/pci8086,2545@3/pci8086,1460@1d/
pci8086,341a@7,1/sd@0,0:a

If the system hardware has changed, or to boot from a different
device, interrupt the autoboot process by pressing ESC.
Press ESCape to interrupt autoboot in 2 seconds.
Initializing system
Please wait...
Warning: Resource Conflict - both devices are added

NON-ACPI device: ISY0050
     Port: 3F0-3F5, 3F7; IRQ: 6; DMA: 2
ACPI device: ISY0050
     Port: 3F2-3F3, 3F4-3F5, 3F7; IRQ: 6; DMA: 2

                     <<< Current Boot Parameters >>>
Boot path: /pci@0,0/pci8086,2545@3/pci8086,1460@1d/pci8086,341a@7,1/
sd@0,0:a
Boot args:

Type    b [file-name] [boot-flags] <ENTER>  to boot with options
or      i <ENTER>                           to enter boot interpreter
or      <ENTER>                             to boot with defaults

                  <<< timeout in 5 seconds >>>

Select (b)oot or (i)nterpreter: b
Size: 275683 + 22092 + 150244 Bytes
/platform/i86pc/kernel/unix loaded - 0xac000 bytes used
SunOS Release 5.9 Version Generic_112234-07 32-bit
Copyright 1983-2003 Sun Microsystems, Inc.  All rights reserved.
Use is subject to license terms.
configuring IPv4 interfaces: e1000g2.
Hostname: phys-schost-1
Booting as part of a cluster
NOTICE: CMM: Node phys-schost-1 (nodeid = 1) with votecount = 1 added.
NOTICE: CMM: Node phys-schost-2 (nodeid = 2) with votecount = 1 added.
NOTICE: CMM: Quorum device 1 (/dev/did/rdsk/d1s2) added; votecount = 1, bitmask
of nodes with configured paths = 0x3.
NOTICE: clcomm: Adapter e1000g3 constructed
NOTICE: clcomm: Path phys-schost-1:e1000g3 - phys-schost-2:e1000g3 being constructed
NOTICE: clcomm: Path phys-schost-1:e1000g3 - phys-schost-2:e1000g3 being initiated
NOTICE: clcomm: Path phys-schost-1:e1000g3 - phys-schost-2:e1000g3 online
NOTICE: clcomm: Adapter e1000g0 constructed
NOTICE: clcomm: Path phys-schost-1:e1000g0 - phys-schost-2:e1000g0 being constructed
NOTICE: CMM: Node phys-schost-1: attempting to join cluster.
NOTICE: clcomm: Path phys-schost-1:e1000g0 - phys-schost-2:e1000g0 being initiated
NOTICE: CMM: Quorum device /dev/did/rdsk/d1s2: owner set to node 1.
NOTICE: CMM: Cluster has reached quorum.
NOTICE: CMM: Node phys-schost-1 (nodeid = 1) is up; new incarnation number = 1068496374.
NOTICE: CMM: Node phys-schost-2 (nodeid = 2) is up; new incarnation number = 1068496374.
NOTICE: CMM: Cluster members: phys-schost-1 phys-schost-2.
NOTICE: CMM: node reconfiguration #1 completed.
NOTICE: CMM: Node phys-schost-1: joined cluster.
WARNING: mod_installdrv: no major number for rsmrdt
ip: joining multicasts failed (18) on clprivnet0 - will use link layer
broadcasts for multicast
The system is coming up.  Please wait.
checking ufs filesystems
/dev/rdsk/c1t0d0s5: is clean.
NOTICE: clcomm: Path phys-schost-1:e1000g0 - phys-schost-2:e1000g0 online
NIS domain name is dev.eng.mycompany.com
starting rpc services: rpcbind keyserv ypbind done.
Setting netmask of e1000g2 to 255.255.255.0
Setting netmask of e1000g3 to 255.255.255.128
Setting netmask of e1000g0 to 255.255.255.128
Setting netmask of clprivnet0 to 255.255.255.0
Setting default IPv4 interface for multicast: add net 224.0/4: gateway phys-schost-1
syslog service starting.
obtaining access to all attached disks


*****************************************************************************
*
* The X-server can not be started on display :0...
*
*****************************************************************************
volume management starting.
Starting Fault Injection Server...
The system is ready.

phys-schost-1 console login: 

Herunterfahren und Booten eines einzelnen Cluster-Knotens


Hinweis –

Mit dem scswitch( 1M)-Befehl zusammen mit dem Solaris-shutdown(1M)-Befehl fahren Sie einen einzelnen Knoten herunter. Setzen Sie den scshutdown-Befehl nur ein, wenn Sie einen ganzen Cluster herunterfahren.


Tabelle 3–2 Task Map: Herunterfahren und Booten eines Cluster-Knotens

Schritt  

Anweisungen siehe  

Stoppen eines Cluster-Knotens  

    - Verwenden Sie scswitch(1M) und shutdown(1M)

So fahren Sie einen Cluster-Knoten herunter

Starten eines Knotens 

Der Knoten muss eine funktionierende Verbindung zum Cluster-Interconnect haben, um die Cluster-Mitgliedschaft zu erlangen. 

So booten Sie einen Cluster-Knoten

Stoppen und Neustarten (Neubooten) eines Cluster-Knotens 

    - Verwenden Sie scswitch und shutdown

Der Knoten muss eine funktionierende Verbindung zum Cluster-Interconnect haben, um die Cluster-Mitgliedschaft zu erlangen. 

So booten Sie einen Cluster-Knoten neu

Booten eines Knotens ohne Zugang zur Cluster-Mitgliedschaft  

    - Verwenden Sie scswitch und shutdown , dann boot -x oder b -x

So booten Sie einen Cluster-Knoten im Nicht-Cluster-Modus

So fahren Sie einen Cluster-Knoten herunter


Achtung – Achtung –

Arbeiten Sie auf einer Cluster-Konsole nicht mit dem send brk-Befehl, um einen Cluster-Knoten herunterzufahren. Dieser Befehl wird in einem Cluster nicht unterstützt.


  1. SPARC: Wird Oracle Parallel Server/Real Application Clusters auf dem Cluster ausgeführt, beenden Sie alle Datenbankinstanzen.

    Verfahren zum Herunterfahren finden Sie in der Oracle Parallel Server/Real Application Clusters-Produktdokumentation.

  2. Melden Sie sich beim herunterzufahrenden Cluster-Knoten als Superbenutzer an.

  3. Schalten Sie alle Ressourcengruppen, Ressourcen und Gerätegruppen von dem herunterzufahrenden Knoten auf andere Cluster-Mitglieder um.

    Geben Sie auf dem herunterzufahrenden Knoten folgenden Befehl ein:


    # scswitch -S -h Knoten
    

    -S

    Nimmt alle Gerätedienste und Ressourcengruppen vom angegebenen Knoten.

    -h Knoten

    Gibt den Knoten an, von dem Sie die Ressourcen- und Gerätegruppen umschalten.

  4. Fahren Sie den Cluster-Knoten herunter.

    Geben Sie auf dem herunterzufahrenden Knoten folgenden Befehl ein:


    # shutdown -g0 -y -i0
    

  5. Überprüfen Sie, ob der Cluster-Knoten an der ok-Eingabeaufforderung oder an der Select (b)oot or (i)nterpreter-Eingabeaufforderung des Bildschirms mit den aktuellen Boot-Parametern steht.

  6. Schalten Sie den Knoten bei Bedarf ab.

SPARC: Beispiel — Herunterfahren eines Cluster-Knotens

Das nachstehende Beispiel zeigt die Konsolenausgabe beim Herunterfahren des Knotens phys-schost-1 an. Die Option -g0 stellt die Toleranzzeit auf Null ein, -y sorgt für eine automatische yes-Antwort auf die Bestätigungsabfrage, und -i0 ruft die Laufebene 0 (Null) auf. Die Meldungen zum Herunterfahren dieses Knotens werden auf den Konsolen der restlichen Cluster-Knoten angezeigt.


# scswitch -S -h phys-schost-1
# shutdown -g0 -y -i0
Wed Mar 10 13:47:32 phys-schost-1 cl_runtime:
WARNING: CMM monitoring disabled.
phys-schost-1#
INIT: New run level: 0
The system is coming down.  Please wait.
Notice: rgmd is being stopped.
Notice: rpc.pmfd is being stopped.
Notice: rpc.fed is being stopped.
umount: /global/.devices/node@1 busy
umount: /global/phys-schost-1 busy
The system is down.
syncing file systems... done
Program terminated
ok 

x86: Beispiel — Herunterfahren eines Cluster-Knotens

Das nachstehende Beispiel zeigt die Konsolenausgabe beim Herunterfahren des Knotens phys-schost-1 an. Die Option -g0 stellt die Toleranzzeit auf Null ein, -y sorgt für eine automatische yes-Antwort auf die Bestätigungsabfrage, und -i0 ruft die Laufebene 0 (Null) auf. Die Meldungen zum Herunterfahren dieses Knotens werden auf den Konsolen der restlichen Cluster-Knoten angezeigt.


# scswitch -S -h phys-schost-1
# shutdown -g0 -y -i0
Shutdown started.    Wed Mar 10 13:47:32 PST 2004

Changing to init state 0 - please wait
Broadcast Message from root (console) on phys-schost-1 Wed Mar 10 13:47:32...
THE SYSTEM phys-schost-1 IS BEING SHUT DOWN NOW ! ! !
Log off now or risk your files being damaged

phys-schost-1#
INIT: New run level: 0
The system is coming down.  Please wait.
System services are now being stopped.
/etc/rc0.d/K05initrgm: Calling scswitch -S (evacuate)
failfasts disabled on node 1
Print services already stopped.
Mar 10 13:47:44 phys-schost-1 syslogd: going down on signal 15
umount: /global/.devices/node@2 busy
umount: /global/.devices/node@1 busy
The system is down.
syncing file systems... done
WARNING: CMM: Node being shut down.
Type any key to continue 

Weiterführende Informationen

Informationen zum Neustarten eines heruntergefahrenen Knotens finden Sie unter So booten Sie einen Cluster-Knoten.

So booten Sie einen Cluster-Knoten


Hinweis –

Das Starten eines Cluster-Knotens kann von der Quorum-Konfiguration beeinflusst werden. In einem Zwei-Knoten-Cluster müssen Sie das Quorum-Gerät so konfigurieren, dass der Quorum-Gesamtstimmenzähler für den Cluster Drei beträgt. Sie sollten einen Quorum-Zähler für jeden Knoten und einen für das Quorum-Gerät konfiguriert haben. Wenn der erste Knoten in diesem Fall heruntergefahren wird, hat der zweite Knoten weiterhin Quorum und läuft als einziges Cluster-Mitglied. Damit der erste Knoten dem Cluster wieder als Cluster-Knoten beitreten kann, muss der zweite Knoten aktiv sein und laufen. Der erforderliche Cluster-Quorum-Zählerwert (Zwei) muss erreicht werden.


  1. Zum Starten eines heruntergefahrenen Cluster-Knotens booten Sie den Knoten.

    • SPARC:


      ok boot
      

    • x86:


                            <<< Current Boot Parameters >>>
      Boot path: /pci@0,0/pci8086,2545@3/pci8086,1460@1d/pci8086,341a@7,1/
      sd@0,0:a
      Boot args:
      
      Type    b [file-name] [boot-flags] <ENTER>  to boot with options
      or      i <ENTER>                           to enter boot interpreter
      or      <ENTER>                             to boot with defaults
      
                        <<< timeout in 5 seconds >>>
      Select (b)oot or (i)nterpreter: b
      

    Auf den Konsolen der gebooteten Knoten werden beim Aktivieren der Cluster-Komponenten Meldungen angezeigt.


    Hinweis –

    Ein Cluster-Knoten muss eine funktionierende Verbindung zum Cluster-Interconnect haben, um die Cluster-Mitgliedschaft zu erlangen.


  2. Überprüfen Sie, ob der Knoten fehlerfrei gebootet wurde und online ist.

    Der scstat-Befehl gibt den Status eines Knotens zurück.


    # scstat -n
    


    Hinweis –

    Wenn das /var-Dateisystem eines Cluster-Knotens voll wird, kann Sun Cluster auf dem Knoten möglicherweise nicht neu gestartet werden. Wenn dieses Problem auftritt, gehen Sie zum Abschnitt So reparieren Sie ein volles /var-Dateisystem.


SPARC: Beispiel — Booten eines Cluster-Knotens

Das nachstehende Beispiel zeigt die Konsolenausgabe beim Start des Knotens phys-schost-1 in einem Cluster.


ok boot
Rebooting with command: boot
...
Hostname: phys-schost-1
Booting as part of a cluster
...
NOTICE: Node phys-schost-1: attempting to join cluster
...
NOTICE: Node phys-schost-1: joined cluster
...
The system is coming up.  Please wait.
checking ufs filesystems
...
reservation program successfully exiting
Print services started.
volume management starting.
The system is ready.
phys-schost-1 console login:

x86: Beispiel — Booten eines Cluster-Knotens

Das nachstehende Beispiel zeigt die Konsolenausgabe beim Start des Knotens phys-schost-1 in einem Cluster.


                     <<< Current Boot Parameters >>>
Boot path: /pci@0,0/pci8086,2545@3/pci8086,1460@1d/pci8086,341a@7,1/sd@0,0:a
Boot args:

Type    b [file-name] [boot-flags] <ENTER>   to boot with options
or      i <ENTER>                            to enter boot interpreter
or      <ENTER>                              to boot with defaults

                  <<< timeout in 5 seconds >>>

Select (b)oot or (i)nterpreter: Size: 276915 + 22156 + 150372 Bytes
/platform/i86pc/kernel/unix loaded - 0xac000 bytes used
SunOS Release 5.9 Version on81-feature-patch:08/30/2003 32-bit
Copyright 1983-2003 Sun Microsystems, Inc.  All rights reserved.
Use is subject to license terms.
configuring IPv4 interfaces: e1000g2.
Hostname: phys-schost-1
Booting as part of a cluster
NOTICE: CMM: Node phys-schost-1 (nodeid = 1) with votecount = 1 added.
NOTICE: CMM: Node phys-schost-2 (nodeid = 2) with votecount = 1 added.
NOTICE: CMM: Quorum device 1 (/dev/did/rdsk/d1s2) added; votecount = 1, bitmask
of nodes with configured paths = 0x3.
WARNING: CMM: Initialization for quorum device /dev/did/rdsk/d1s2 failed with
error EACCES. Will retry later.
NOTICE: clcomm: Adapter e1000g3 constructed
NOTICE: clcomm: Path phys-schost-1:e1000g3 - phys-schost-2:e1000g3 being constructed
NOTICE: clcomm: Path phys-schost-1:e1000g3 - phys-schost-2:e1000g3 being initiated
NOTICE: clcomm: Path phys-schost-1:e1000g3 - phys-schost-2:e1000g3 online
NOTICE: clcomm: Adapter e1000g0 constructed
NOTICE: clcomm: Path phys-schost-1:e1000g0 - phys-schost-2:e1000g0 being constructed
NOTICE: CMM: Node phys-schost-1: attempting to join cluster.
WARNING: CMM: Reading reservation keys from quorum device /dev/did/rdsk/d1s2
failed with error 2.
NOTICE: CMM: Cluster has reached quorum.
NOTICE: CMM: Node phys-schost-1 (nodeid = 1) is up; new incarnation number =
1068503958.
NOTICE: CMM: Node phys-schost-2 (nodeid = 2) is up; new incarnation number =
1068496374.
NOTICE: CMM: Cluster members: phys-schost-1 phys-schost-2.
NOTICE: CMM: node reconfiguration #3 completed.
NOTICE: CMM: Node phys-schost-1: joined cluster.
NOTICE: clcomm: Path phys-schost-1:e1000g0 - phys-schost-2:e1000g0 being initiated
NOTICE: clcomm: Path phys-schost-1:e1000g0 - phys-schost-2:e1000g0 online
NOTICE: CMM: Retry of initialization for quorum device /dev/did/rdsk/d1s2 was
successful.
WARNING: mod_installdrv: no major number for rsmrdt
ip: joining multicasts failed (18) on clprivnet0 - will use link layer
broadcasts for multicast
The system is coming up.  Please wait.
checking ufs filesystems
/dev/rdsk/c1t0d0s5: is clean.
NIS domain name is dev.eng.mycompany.com
starting rpc services: rpcbind keyserv ypbind done.
Setting netmask of e1000g2 to 255.255.255.0
Setting netmask of e1000g3 to 255.255.255.128
Setting netmask of e1000g0 to 255.255.255.128
Setting netmask of clprivnet0 to 255.255.255.0
Setting default IPv4 interface for multicast: add net 224.0/4: gateway phys-schost-1
syslog service starting.
obtaining access to all attached disks


*****************************************************************************
*
* The X-server can not be started on display :0...
*
*****************************************************************************
volume management starting.
Starting Fault Injection Server...
The system is ready.

phys-schost-1 console login: 

So booten Sie einen Cluster-Knoten neu

  1. SPARC: Wird Oracle Parallel Server/Real Application Clusters auf dem Cluster ausgeführt, beenden Sie alle Datenbankinstanzen.

    Verfahren zum Herunterfahren finden Sie in der Oracle Parallel Server/Real Application Clusters-Produktdokumentation.

  2. Melden Sie sich beim herunterzufahrenden Cluster-Knoten als Superbenutzer an.

  3. Fahren Sie den Cluster-Knoten mit den Befehlen scswitch und shutdown herunter.

    Geben Sie diese Befehle auf dem herunterzufahrenden Knoten ein. Die Option -i 6 mit dem shutdown-Befehl sorgt für das Neubooten des Knotens, nachdem dieser heruntergefahren wurde.


    # scswitch -S -h Knoten
    # shutdown -g0 -y -i6
    

    Hinweis –

    Cluster-Knoten müssen eine funktionierende Verbindung zum Cluster-Interconnect haben, um die Cluster-Mitgliedschaft zu erlangen.


  4. Überprüfen Sie, ob der Knoten fehlerfrei gebootet wurde und online ist.


    # scstat -n
    

SPARC: Beispiel — Neubooten eines Cluster-Knotens

Das nachstehende Beispiel zeigt die Konsolenausgabe beim Neubooten des Knotens phys-schost-1. Meldungen für diesen Knoten wie Benachrichtigungen über Herunterfahren und Starten werden auf den Konsolen anderer Knoten im Cluster angezeigt.


# scswitch -S -h phys-schost-1
# shutdown -g0 -y -i6
Shutdown started.    Wed Mar 10 13:47:32 phys-schost-1 cl_runtime:

WARNING: CMM monitoring disabled.
phys-schost-1#
INIT: New run level: 6
The system is coming down.  Please wait.
System services are now being stopped.
Notice: rgmd is being stopped.
Notice: rpc.pmfd is being stopped.
Notice: rpc.fed is being stopped.
umount: /global/.devices/node@1 busy
umount: /global/phys-schost-1 busy
The system is down.
syncing file systems... done
rebooting...
Resetting ...
,,,
Sun Ultra 1 SBus (UltraSPARC 143MHz), No Keyboard
OpenBoot 3.11, 128 MB memory installed, Serial #5932401.
Ethernet address 8:8:20:99:ab:77, Host ID: 8899ab77.
...
Rebooting with command: boot
...
Hostname: phys-schost-1
Booting as part of a cluster
...
NOTICE: Node phys-schost-1: attempting to join cluster
...
NOTICE: Node phys-schost-1: joined cluster
...
The system is coming up.  Please wait.
The system is ready.
phys-schost-1 console login: 

x86: Beispiel — Neubooten eines Cluster-Knotens

Das nachstehende Beispiel zeigt die Konsolenausgabe beim Neubooten des Knotens phys-schost-1. Meldungen für diesen Knoten wie Benachrichtigungen über Herunterfahren und Starten werden auf den Konsolen anderer Knoten im Cluster angezeigt.


# scswitch -S -h phys-schost-1
# shutdown -g0 -y -i6
Shutdown started.    Wed Mar 10 13:47:32 PST 2004

Changing to init state 6 - please wait
Broadcast Message from root (console) on phys-schost-1 Wed Mar 10 13:47:32...
THE SYSTEM phys-schost-1 IS BEING SHUT DOWN NOW ! ! !
Log off now or risk your files being damaged

phys-schost-1#
INIT: New run level: 6
The system is coming down.  Please wait.
System services are now being stopped.
/etc/rc0.d/K05initrgm: Calling scswitch -S (evacuate)
Print services already stopped.
Mar 10 13:47:44 phys-schost-1 syslogd: going down on signal 15

umount: /global/.devices/node@2 busy
umount: /global/.devices/node@1 busy
The system is down.
syncing file systems... done
WARNING: CMM: Node being shut down.
rebooting...

ATI RAGE SDRAM BIOS P/N GR-xlint.007-4.330
*                                        BIOS Lan-Console 2.0
Copyright (C) 1999-2001  Intel Corporation
MAC ADDR: 00 02 47 31 38 3C
AMIBIOS (C)1985-2002 American Megatrends Inc.,
Copyright 1996-2002 Intel Corporation
SCB20.86B.1064.P18.0208191106
SCB2 Production BIOS Version 2.08
BIOS Build 1064
2 X Intel(R) Pentium(R) III CPU family      1400MHz
Testing system memory, memory size=2048MB
2048MB Extended Memory Passed
512K L2 Cache SRAM Passed
ATAPI CD-ROM SAMSUNG CD-ROM SN-124

Press <F2> to enter SETUP, <F12> Network

Adaptec AIC-7899 SCSI BIOS v2.57S4
(c) 2000 Adaptec, Inc. All Rights Reserved.
    Press <Ctrl><A> for SCSISelect(TM) Utility!

Ch B,  SCSI ID: 0 SEAGATE  ST336605LC        160
       SCSI ID: 1 SEAGATE  ST336605LC        160
       SCSI ID: 6 ESG-SHV  SCA HSBP M18      ASYN
Ch A,  SCSI ID: 2 SUN      StorEdge 3310     160
       SCSI ID: 3 SUN      StorEdge 3310     160

AMIBIOS (C)1985-2002 American Megatrends Inc.,
Copyright 1996-2002 Intel Corporation
SCB20.86B.1064.P18.0208191106
SCB2 Production BIOS Version 2.08
BIOS Build 1064

2 X Intel(R) Pentium(R) III CPU family      1400MHz
Testing system memory, memory size=2048MB
2048MB Extended Memory Passed
512K L2 Cache SRAM Passed
ATAPI CD-ROM SAMSUNG CD-ROM SN-124

SunOS - Intel Platform Edition             Primary Boot Subsystem, vsn 2.0

                        Current Disk Partition Information

                 Part#   Status    Type      Start       Length
                ================================================
                   1     Active   X86 BOOT     2428       21852
                   2              SOLARIS     24280     71662420
                   3              <unused> 
                   4              <unused>
              Please select the partition you wish to boot: *       *

Solaris DCB

			       loading /solaris/boot.bin

SunOS Secondary Boot version 3.00

                  Solaris Intel Platform Edition Booting System

Autobooting from bootpath: /pci@0,0/pci8086,2545@3/pci8086,1460@1d/
pci8086,341a@7,1/sd@0,0:a

If the system hardware has changed, or to boot from a different
device, interrupt the autoboot process by pressing ESC.
Press ESCape to interrupt autoboot in 2 seconds.
Initializing system
Please wait...
Warning: Resource Conflict - both devices are added

NON-ACPI device: ISY0050
     Port: 3F0-3F5, 3F7; IRQ: 6; DMA: 2
ACPI device: ISY0050
     Port: 3F2-3F3, 3F4-3F5, 3F7; IRQ: 6; DMA: 2

                     <<< Current Boot Parameters >>>
Boot path: /pci@0,0/pci8086,2545@3/pci8086,1460@1d/pci8086,341a@7,1/
sd@0,0:a
Boot args:

Type    b [file-name] [boot-flags] <ENTER>   to boot with options
or      i <ENTER>                            to enter boot interpreter
or      <ENTER>                              to boot with defaults

                  <<< timeout in 5 seconds >>>

Select (b)oot or (i)nterpreter: Size: 276915 + 22156 + 150372 Bytes
/platform/i86pc/kernel/unix loaded - 0xac000 bytes used
SunOS Release 5.9 Version on81-feature-patch:08/30/2003 32-bit
Copyright 1983-2003 Sun Microsystems, Inc.  All rights reserved.
Use is subject to license terms.
configuring IPv4 interfaces: e1000g2.
Hostname: phys-schost-1
Booting as part of a cluster
NOTICE: CMM: Node phys-schost-1 (nodeid = 1) with votecount = 1 added.
NOTICE: CMM: Node phys-schost-2 (nodeid = 2) with votecount = 1 added.
NOTICE: CMM: Quorum device 1 (/dev/did/rdsk/d1s2) added; votecount = 1, bitmask
of nodes with configured paths = 0x3.
WARNING: CMM: Initialization for quorum device /dev/did/rdsk/d1s2 failed with
error EACCES. Will retry later.
NOTICE: clcomm: Adapter e1000g3 constructed
NOTICE: clcomm: Path phys-schost-1:e1000g3 - phys-schost-2:e1000g3 being constructed
NOTICE: clcomm: Path phys-schost-1:e1000g3 - phys-schost-2:e1000g3 being initiated
NOTICE: clcomm: Path phys-schost-1:e1000g3 - phys-schost-2:e1000g3 online
NOTICE: clcomm: Adapter e1000g0 constructed
NOTICE: clcomm: Path phys-schost-1:e1000g0 - phys-schost-2:e1000g0 being constructed
NOTICE: CMM: Node phys-schost-1: attempting to join cluster.
WARNING: CMM: Reading reservation keys from quorum device /dev/did/rdsk/d1s2
failed with error 2.
NOTICE: CMM: Cluster has reached quorum.
NOTICE: CMM: Node phys-schost-1 (nodeid = 1) is up; new incarnation number =
1068503958.
NOTICE: CMM: Node phys-schost-2 (nodeid = 2) is up; new incarnation number =
1068496374.
NOTICE: CMM: Cluster members: phys-schost-1 phys-schost-2.
NOTICE: CMM: node reconfiguration #3 completed.
NOTICE: CMM: Node phys-schost-1: joined cluster.
NOTICE: clcomm: Path phys-schost-1:e1000g0 - phys-schost-2:e1000g0 being initiated
NOTICE: clcomm: Path phys-schost-1:e1000g0 - phys-schost-2:e1000g0 online
NOTICE: CMM: Retry of initialization for quorum device /dev/did/rdsk/d1s2 was
successful.
WARNING: mod_installdrv: no major number for rsmrdt
ip: joining multicasts failed (18) on clprivnet0 - will use link layer
broadcasts for multicast
The system is coming up.  Please wait.
checking ufs filesystems
/dev/rdsk/c1t0d0s5: is clean.
NIS domain name is dev.eng.mycompany.com
starting rpc services: rpcbind keyserv ypbind done.
Setting netmask of e1000g2 to 255.255.255.0
Setting netmask of e1000g3 to 255.255.255.128
Setting netmask of e1000g0 to 255.255.255.128
Setting netmask of clprivnet0 to 255.255.255.0
Setting default IPv4 interface for multicast: add net 224.0/4: gateway phys-schost-1
syslog service starting.
obtaining access to all attached disks


*****************************************************************************
*
* The X-server can not be started on display :0...
*
*****************************************************************************
volume management starting.
Starting Fault Injection Server...
The system is ready.

phys-schost-1 console login: 

So booten Sie einen Cluster-Knoten im Nicht-Cluster-Modus

Sie können einen Knoten so booten, dass er kein Cluster-Mitglied ist, das heißt im Nicht-Cluster-Modus. Der Nicht-Cluster-Modus kann zum Installieren der Cluster-Software oder zum Durchführen bestimmter Verwaltungsverfahren, zum Beispiel beim Installieren einer Korrekturversion, eingesetzt werden.

  1. Melden Sie sich beim Cluster-Knoten, der im Nicht-Cluster-Modus gestartet werden soll, als Superbenutzer an.

  2. Fahren Sie den Knoten mit den Befehlen scswitch und shutdown herunter.


    # scswitch -S -h Knoten
    # shutdown -g0 -y -i0
    

  3. Überprüfen Sie, ob der Knoten an der ok-Eingabeaufforderung oder an der Select (b)oot or (i)nterpreter-Eingabeaufforderung im Bildschirm mit den aktuellen Boot-Parametern steht.

  4. Booten Sie den Knoten im Nicht-Cluster-Modus mit dem boot(1M)-Befehl oder dem b-Befehl mit der -x-Option.

    • SPARC:


      ok boot -x
      

    • x86:


                            <<< Current Boot Parameters >>>
      Boot path: /pci@0,0/pci8086,2545@3/pci8086,1460@1d/pci8086,341a@7,1/
      sd@0,0:a
      Boot args:
      
      Type    b [file-name] [boot-flags] <ENTER>  to boot with options
      or      i <ENTER>                           to enter boot interpreter
      or      <ENTER>                             to boot with defaults
      
                        <<< timeout in 5 seconds >>>
      Select (b)oot or (i)nterpreter: b -x
      

    Auf der Konsole des Knotens werden Meldungen mit dem Hinweis angezeigt, dass der Knoten nicht zum Cluster gehört.

SPARC: Beispiel — Booten eines Cluster-Knotens im Nicht-Cluster-Modus

Das nachstehende Beispiel zeigt die Konsolenausgabe beim Herunterfahren und Neustarten des Knotens phys-schost-1 im Nicht-Cluster-Modus. Die Option -g0 stellt die Toleranzzeit auf Null ein, -y sorgt für eine automatische yes-Antwort auf die Bestätigungsabfrage und -i0 ruft die Laufebene 0 (Null) auf. Die Meldungen zum Herunterfahren dieses Knotens werden auf den Konsolen der restlichen Cluster-Knoten angezeigt.


# scswitch -S -h phys-schost-1
# shutdown -g0 -y -i0
Shutdown started.    Wed Mar 10 13:47:32 phys-schost-1 cl_runtime:

WARNING: CMM monitoring disabled.
phys-schost-1#
...
rg_name = schost-sa-1 ...
offline node = phys-schost-2 ...
num of node = 0 ...
phys-schost-1#
INIT: New run level: 0
The system is coming down.  Please wait.
System services are now being stopped.
Print services stopped.
syslogd: going down on signal 15
...
The system is down.
syncing file systems... done
WARNING: node phys-schost-1 is being shut down.
Program terminated

ok boot -x
...
Not booting as part of cluster
...
The system is ready.
phys-schost-1 console login:

x86: Beispiel — Booten eines Cluster-Knotens im Nicht-Cluster-Modus

Das nachstehende Beispiel zeigt die Konsolenausgabe beim Herunterfahren und Neustarten des Knotens phys-schost-1 im Nicht-Cluster-Modus. Die Option -g0 stellt die Toleranzzeit auf Null ein, -y sorgt für eine automatische yes-Antwort auf die Bestätigungsabfrage und -i0 ruft die Laufebene 0 (Null) auf. Die Meldungen zum Herunterfahren dieses Knotens werden auf den Konsolen der restlichen Cluster-Knoten angezeigt.


# scswitch -S -h phys-schost-1
# shutdown -g0 -y -i0
Shutdown started.    Wed Mar 10 13:47:32 PST 2004

phys-schost-1#
INIT: New run level: 0
The system is coming down.  Please wait.
System services are now being stopped.
Print services already stopped.
Mar 10 13:47:44 phys-schost-1 syslogd: going down on signal 15
...
The system is down.
syncing file systems... done
WARNING: CMM: Node being shut down.
Type any key to continue

ATI RAGE SDRAM BIOS P/N GR-xlint.007-4.330
*                                        BIOS Lan-Console 2.0
Copyright (C) 1999-2001  Intel Corporation
MAC ADDR: 00 02 47 31 38 3C
AMIBIOS (C)1985-2002 American Megatrends Inc.,
Copyright 1996-2002 Intel Corporation
SCB20.86B.1064.P18.0208191106
SCB2 Production BIOS Version 2.08
BIOS Build 1064
2 X Intel(R) Pentium(R) III CPU family      1400MHz
Testing system memory, memory size=2048MB
2048MB Extended Memory Passed
512K L2 Cache SRAM Passed
ATAPI CD-ROM SAMSUNG CD-ROM SN-124

Press <F2> to enter SETUP, <F12> Network

Adaptec AIC-7899 SCSI BIOS v2.57S4
(c) 2000 Adaptec, Inc. All Rights Reserved.
    Press <Ctrl><A> for SCSISelect(TM) Utility!

Ch B,  SCSI ID: 0 SEAGATE  ST336605LC        160
       SCSI ID: 1 SEAGATE  ST336605LC        160
       SCSI ID: 6 ESG-SHV  SCA HSBP M18      ASYN
Ch A,  SCSI ID: 2 SUN      StorEdge 3310     160
       SCSI ID: 3 SUN      StorEdge 3310     160

AMIBIOS (C)1985-2002 American Megatrends Inc.,
Copyright 1996-2002 Intel Corporation
SCB20.86B.1064.P18.0208191106
SCB2 Production BIOS Version 2.08
BIOS Build 1064

2 X Intel(R) Pentium(R) III CPU family      1400MHz
Testing system memory, memory size=2048MB
2048MB Extended Memory Passed
512K L2 Cache SRAM Passed
ATAPI CD-ROM SAMSUNG CD-ROM SN-124

SunOS - Intel Platform Edition             Primary Boot Subsystem, vsn 2.0

                        Current Disk Partition Information

                 Part#   Status    Type      Start       Length
                ================================================
                   1     Active   X86 BOOT     2428       21852
                   2              SOLARIS     24280     71662420
                   3              <unused> 
                   4              <unused>
              Please select the partition you wish to boot: *       *

Solaris DCB

			       loading /solaris/boot.bin

SunOS Secondary Boot version 3.00

                  Solaris Intel Platform Edition Booting System

Autobooting from bootpath: /pci@0,0/pci8086,2545@3/pci8086,1460@1d/
pci8086,341a@7,1/sd@0,0:a

If the system hardware has changed, or to boot from a different
device, interrupt the autoboot process by pressing ESC.
Press ESCape to interrupt autoboot in 2 seconds.
Initializing system
Please wait...
Warning: Resource Conflict - both devices are added

NON-ACPI device: ISY0050
     Port: 3F0-3F5, 3F7; IRQ: 6; DMA: 2
ACPI device: ISY0050
     Port: 3F2-3F3, 3F4-3F5, 3F7; IRQ: 6; DMA: 2

                     <<< Current Boot Parameters >>>
Boot path: /pci@0,0/pci8086,2545@3/pci8086,1460@1d/pci8086,341a@7,1/
sd@0,0:a
Boot args:

Type    b [file-name] [boot-flags] <ENTER>  to boot with options
or      i <ENTER>                           to enter boot interpreter
or      <ENTER>                             to boot with defaults

                  <<< timeout in 5 seconds >>>

Select (b)oot or (i)nterpreter: b -x
...
Not booting as part of cluster
...
The system is ready.
phys-schost-1 console login:

Reparieren eines vollen /var-Dateisystems

Sowohl Solaris als auch die Sun Cluster-Software schreiben Fehlermeldungen in die /var/adm/messages-Datei. Das kann mit der Zeit zur Überfüllung des /var-Dateisystems führen. Wenn das /var-Dateisystem eines Cluster-Knotens voll wird, kann Sun Cluster auf dem Knoten möglicherweise nicht neu gestartet werden. Zudem können Sie sich vielleicht nicht mehr beim Knoten anmelden.

So reparieren Sie ein volles /var-Dateisystem

Wenn ein Knoten ein volles /var-Dateisystem meldet und weiter Sun Cluster-Dienste ausführt, leeren Sie das volle Dateisystem mithilfe dieses Verfahrens. Weitere Informationen finden Sie unter “Viewing System Messages” in System Administration Guide: Advanced Administration.

  1. Melden Sie sich beim Knoten mit dem vollen /var-Dateisystem als Superbenutzer an.

  2. Leeren Sie das volle Dateisystem.

    Löschen Sie beispielsweise nicht wesentliche Dateien, die im Dateisystem enthalten sind.