Sun Cluster 3.0 Sun Microsystems, Inc. 901 San Antonio Road Palo Alto,, CA 94303-4900 U.S.A. 650-960-1300 : 806-6726 2000 11, Revision A
Copyright Copyright 2000 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California 94303-4900 U.S.A..,,. Sun ( )., Sun. Berkeley BSD. UNIX, X/Open Company, Ltd. Netscape Sun, Sun Microsystems, Sun, AnswerBook2, docs.sun.com, JumpStart, Solstice DiskSuite, Sun Enterprise SyMON, Sun Enterprise, Sun Management Center, OpenBoot Solaris Sun Microsystems, Inc.. SPARC SPARC International, Inc.. SPARC Sun Microsystems, Inc. OPEN LOOK Sun TM (Graphical User Interface) Sun Microsystems, Inc.. Sun Xerox. Sun Xerox Xerox. OPEN LOOK GUI Sun, Sun.,,.,. Copyright 2000 Sun Microsystems, Inc., 901 San Antonio Road, Palo Alto, Californie 94303 Etats-Unis. Tous droits réservés. Ce produit ou document est protégé par un copyright et distribué avec des licences qui en restreignent l utilisation, la copie, la distribution, et la décompilation. Aucune partie de ce produit ou document ne peut être reproduite sous aucune forme, par quelque moyen que ce soit, sans l autorisation préalable et écrite de Sun et de ses bailleurs de licence, s il y en a. Le logiciel détenu par des tiers, et qui comprend la technologie relative aux polices de caractères, est protégé par un copyright et licencié par des fournisseurs de Sun. Des parties de ce produit pourront être dérivées des systèmes Berkeley BSD licenciés par l Université de Californie. UNIX est une marque déposée aux Etats-Unis et dans d autres pays et licenciée exclusivement par X/Open Company, Ltd. Sun, Sun Microsystems, le logo Sun, AnswerBook2, docs.sun.com, JumpStart, Solstice DiskSuite, Sun Enterprise SyMON, Sun Enterprise, Sun Management Center, OpenBoot, et Solaris sont des marques de fabrique ou des marques déposées, ou marques de service, de Sun Microsystems, Inc. aux Etats-Unis et dans d autres pays. Toutes les marques SPARC sont utilisées sous licence et sont des marques de fabrique ou des marques déposées de SPARC International, Inc. aux Etats-Unis et dans d autres pays. Les produits portant les marques SPARC sont basés sur une architecture développée par Sun Microsystems, Inc. L interface d utilisation graphique OPEN LOOK et Sun TM a été développée par Sun Microsystems, Inc. pour ses utilisateurs et licenciés. Sun reconnaît les efforts de pionniers de Xerox pour la recherche et le développement du concept des interfaces d utilisation visuelle ou graphique pour l industrie de l informatique. Sun détient une licence non exclusive de Xerox sur l interface d utilisation graphique Xerox, cette licence couvrant également les licenciés de Sun qui mettent en place l interface d utilisation graphique OPEN LOOK et qui en outre se conforment aux licences écrites de Sun. CETTE PUBLICATION EST FOURNIE "EN L ETAT" ET AUCUNE GARANTIE, EXPRESSE OU IMPLICITE, N EST ACCORDEE, Y COMPRIS DES GARANTIES CONCERNANT LA VALEUR MARCHANDE, L APTITUDE DE LA PUBLICATION A REPONDRE A UNE UTILISATION PARTICULIERE, OU LE FAIT QU ELLE NE SOIT PAS CONTREFAISANTE DE PRODUIT DE TIERS. CE DENI DE GARANTIE NE S APPLIQUERAIT PAS, DANS LA MESURE OU IL SERAIT TENU JURIDIQUEMENT NUL ET NON AVENU.
7 1. Sun Cluster 11 Sun Cluster 11 Solaris 12 Solaris 13 13 Sun Cluster 17 17 17 IP 17 Sun Cluster 18 22 22 23 23 23 Solstice DiskSuite 24 VERITAS Volume Manager 25 3
26 27 2. Sun Cluster 29 30 31 Solaris 33 Sun Cluster 36 JumpStart Solaris 40 47 Solstice DiskSuite 48 VERITAS Volume Manager 49 51 51 53 54 56 57 60 PNM(Public Network Management) 62 63 NTP(Network Time Protocol) 63 Sun Management Center Sun Cluster 65 Sun Cluster Sun Management Center 65 Sun Management Center Sun Cluster 66 Sun Management Center 67 Sun Management Center 68 4 Sun Cluster 3.0 2000 11, Revision A
Sun Cluster 69 3. Sun Cluster 71 Sun Cluster 2.2 Sun Cluster 3.0 71 Sun Cluster 2.2 Sun Cluster 3.0 73 74 VERITAS Volume Manager 76 Solaris 77 80 83 83 85 88 A. Solstice DiskSuite 91 Sun Cluster Solstice DiskSuite 92 93 94 95 (/) 95 98 101 105 108 109 110 111 md.tab 112 114 5
115 116 117 117 Solstice DiskSuite 118 B. VERITAS Volume Manager 121 Sun Cluster VxVM 121 122 123 rootdg 124 125 rootdg 130 131 133 134 6 Sun Cluster 3.0 2000 11, Revision A
Sun Cluster 3.0 Sun TM Cluster 3.0, Sun Cluster,. Sun... Solaris TM. Sun Cluster. UNIX Sun Cluster., UNIX.. 4 AnswerBook2 TM online documentation for the Solaris software environment 4 4 Solaris man 7
AaBbCc123,,.login., ls -a. %.. AaBbCc123, % su Password: AaBbCc123,, User s Guide 6. class.... rm filename. C machine_name% C machine_name# Bourne Korn $ Bourne Korn # 8 Sun Cluster 3.0 2000 11, Revision A
Hardware Sun Cluster 3.0 Hardware Guide 806-1420 Data Services Sun Cluster 3.0 Data Services Installation and Configuration Guide 805-1421 API Development Sun Cluster 3.0 Data Services Developers Guide 805-1422 Sun Cluster 3.0 System Administration Guide 806-6732 Sun Cluster 3.0 Concepts 806-6720 Error Messages Sun Cluster 3.0 Error Messages Manual 806-1426 Release Notes Sun Cluster 3.0 Release Notes 805-1428 Sun docs.sun.com SM Sun. docs.sun.com. http://docs.sun.com Sun Fatbrain.com Sun Microsystems, Inc.. Fatbrain.com Sun Documentation Center. http://www1.fatbrain.com/documentation/sun 9
Sun Cluster, 4 ( ) 4, 4 4 ( : Solaris 8) 4 Sun Cluster ( : Sun Cluster 3.0). prtconf -v psrinfo -v showrev --p prtdiag -v /usr/cluster/bin/scinstall -pv.... Sun Cluster. /var/adm/messages. 10 Sun Cluster 3.0 2000 11, Revision A
1 Sun Cluster Sun Cluster.. 4 Sun Cluster (11 ) 4 Solaris (12 ) 4 Sun Cluster (17 ) 4 (22 ) 4 (23 ) Sun Cluster Sun Cluster. 11
1 1 Sun Cluster,. Sun Cluster 3.0 Hardware Guide 1 Sun Cluster 3.0 Release Notes, 2 2 A B, 3 A B,, API Sun Cluster 3.0 Data Services Installation and Configuration Guide Sun Cluster 3.0 Data Services Developers Guide Solaris Solaris. Solaris Solaris. 12 Sun Cluster 3.0 2000 11, Revision A
Solaris JumpStart TM CD-ROM Solaris., Sun Cluster JumpStart Solaris Sun Cluster.. JumpStart JumpStart Solaris (40 ). Solaris Solaris. Sun Cluster 3.0 Release Notes. Solaris, Sun Cluster,. 4 swap 750 MB. 4 /globaldevices scinstall(1m) 100MB. 4 Volume manager ( 7) 10MB. VERITAS Volume Manager(VxVM), VxVM., Solaris.. (/) Solaris, (/), /var, /usr /opt (/). Sun Cluster (/), /var, /usr /opt.. 4 root (/) Sun Cluster (/) 40MB. Solstice DiskSuite TM 5MB, VxVM 15MB., Solstice DiskSuite VxVM Sun Cluster 13
i., (/) 100. 4 /var Sun Cluster /var... /var 100MB. 4 /usr Sun Cluster /usr 25MB. Solstice DiskSuite VxVM 15MB. 4 /opt Sun Cluster /opt 2MB, Sun Cluster 1MB 5MB. Solstice DiskSuite /opt. VxVM 40MB. / opt. Sun TM Management Center ( Sun Enterprise SyMON TM ), Sun Management Center Sun Cluster 25MB. 750MB..,. /globaldevices Sun Cluster.. / globaldevices. scinstall(1m). scinstall(1m) /global/.devices/node@nodeid. nodeid, /globaldevices. / globaldevices,. 100MB. 14 Sun Cluster 3.0 2000 11, Revision A
Solstice DiskSuite,.,., Solstice DiskSuite. Solstice DiskSuite. VxVM, VxVM,. VxVM. 1 2 750 MB. Solaris, Sun Cluster Sun Cluster HA for NFS. ( 7). Solstice DiskSuite VxVM. Solstice DiskSuite, 7. VxVM, 0 7. 4 7,. Sun Cluster 15
1 2 (MB) 0 / 1168 Solaris 441MB. (/) 100MB. /var 100MB. Sun Cluster 25MB. 55MB. Sun Cluster HA for NFS 1MB. Sun Management Center Sun Cluster 25MB. 421MB( ). 1 swap 750 750MB. 2 overlap 2028. 3 /globaldevices 100 Sun Cluster. 4 unused - VxVM. 5 unused - 6 unused - 7 10 Solstice DiskSuite. VxVM,. 16 Sun Cluster 3.0 2000 11, Revision A
Sun Cluster Sun Cluster. Sun Cluster Sun Cluster 3.0 Concepts.. Sun Cluster Sun Cluster Sun Cluster.,.,., Sun Cluster 3.0 Release Notes. Sun Cluster 3.0 System Administration Guide. IP Sun Cluster IP.. IP. IP. Sun Cluster IP /etc/inet/hosts. 1 3 IP Sun Cluster IP 1, 1 Sun Cluster 17
1 3 IP Sun Cluster IP 1, 1. Sun Enterprise TM E10000 SSP(System Service Processor). Sun Cluster 3.0 Concepts.. Sun Cluster 3.0 Data Services Installation and Configuration Guide. Sun Cluster 3.0 Concepts. Sun Cluster Sun Cluster. Sun Cluster 3.0 Release Notes. Sun Cluster.. Sun Cluster 3.0 Release Notes.. 18 Sun Cluster 3.0 2000 11, Revision A
Solaris. Sun Cluster,. Sun Cluster 3.0 Release Notes. Sun Cluster. Sun Cluster. Sun Cluster. (172.16.0.0) (255.255.0.0). :,.,. 4 8 0. 4 RFC 1597. RFC TCP/IP and Data Communications Administration Guide.,. 4. 4. Sun Cluster 3.0 Release Notes..,. Sun Cluster,. 4 Transport adapters,. 2-, ( ). 4 Transport junctions,. switchn. N Sun Cluster 19
.. ID. SCI. :. 2-. scsetup(1m). Sun Cluster 3.0 Concepts. Sun Cluster 3.0 Release Notes.. Sun Cluster clusternodenodeid-priv. nodeid ID. ID Sun Cluster. scsetup(1m). Sun Cluster 3.0 Release Notes... 4 ( ). 4. 4. (21 ) NAFO. Sun Cluster 3.0 Concepts. 20 Sun Cluster 3.0 2000 11, Revision A
Sun Cluster 3.0 Release Notes. Sun Cluster. 1, 2.. 4 Failover.., CD-ROM. 4 Mirroring.. Sun Cluster 3.0 Concepts. NAFO Sun Cluster 3.0 Release Notes. NAFO(Network Adapter Failover). NAFO, NAFO., NAFO NAFO. NAFO. 4 NAFO. 4 NAFO. 4 NAFO /etc/hostname.adapter. 4 NAFO nafon. N NAFO. Sun Cluster 3.0 Concepts. Sun Cluster 21
Sun Cluster.,. scsetup(1m).. 4 Minimum 2-.,. 4 Odd number rule 2-,. 4 Connection. Sun Cluster 3.0 Concepts.. Sun Cluster 3.0 Concepts Sun Cluster.. 4 Mirroring. 4 Disks,. 4 Availability..,. 22 Sun Cluster 3.0 2000 11, Revision A
. 4 Mount point location, /global. /global. 4 Nesting mount points,., /global/a /global/a/b.., (, ).. Sun Cluster,. Sun Cluster Solstice DiskSuite VERITAS Volume Manager(VxVM).., A B. Sun Cluster 3.0 Concepts. Sun Cluster 3.0 Release Notes, Sun Cluster 3.0 Release Notes (Solstice DiskSuite).. 4 Mirrored multihost disks. (27 ). 4 Mirrored root. (27 ). Sun Cluster 23
4 Unique naming, Solstice DiskSuite VxVM /global/.devices/node@nodeid,. 4 Node lists,.,. Sun Cluster 3.0 Data Services Installation and Configuration Guide. 4 Multiported disks. Solstice DiskSuite. VxVM.,, Solstice DiskSuite, VxVM,. 4 Hot spare disks,.. Solstice DiskSuite Solstice DiskSuite. 4 Mediators Solstice DiskSuite. disk string,,.,.. 2-2-. mediator(7) man. 4 /kernel/drv/md.conf settings /kernel/drv/md.conf. md.conf Solstice DiskSuite. Sun Cluster nmd md_nsets. nmd The nmd. nmd., 24 Sun Cluster 3.0 2000 11, Revision A
15 10, 16 1000, nmd 1000. 8192. md_nsets The md_nsets. md_nsets, Solstice DiskSuite (, ) 1. 32... (/). :, /kernel/drv/md.conf. Solstice DiskSuite. VERITAS Volume Manager VERITAS Volume Manager(VxVM). 4 Root disk group (rootdg). rootdg. 4,. 4,. 4 rootdg. 4 Encapsulation. 4 Number of volumes. 4 1000,. 4 1000,.. Sun Cluster 25
4 Dirty Region Logging DRL. DRL. DRL I/O.. Sun Cluster. 4 Solstice DiskSuite trans UNIX (UFS) 4 Solaris UFS logging Solstice DiskSuite trans-metadevice UFS logging Solstice DiskSuite. Solaris UFS logging mount_ufs(1m) man Solaris Transition Guide.. 1 4 Solstice DiskSuite VERITAS Volume Manager Solstice DiskSuite trans-metadevice UFS logging, Solaris UFS logging Solaris UFS logging Solstice DiskSuite Solaris UFS logging Solstice DiskSuite trans-metadevice UFS logging. 4 Solaris UFS log size Solaris UFS logging UFS,. 4 1GB 1MB. 4 1GB GB 1MB, 64MB. 4 Log metadevice Solstice DiskSuite trans-metadevice UFS logging, trans.. Solstice DiskSuite 1TB. 26 Sun Cluster 3.0 2000 11, Revision A
. Sun Cluster. Sun Cluster.. 4 Separate disk expansion units. 4 Disk space. 4 Three-way mirroring Solstice DiskSuite VERITAS Volume Manager(VxVM). Sun Cluster. 4 Number of metadevices Solstice DiskSuite,.., HFS 7. 4 Differing disk sizes,. Sun Cluster 3.0 Concepts. (/), /usr, /var, /opt swap. VxVM,. Sun Cluster.,,,..., A B.. 4 Complexity. Sun Cluster 27
4 Backups,... 4 Quorum Solstice DiskSuite,,. Solstice DiskSuite. 4 Separate controllers. 4 Boot disk 1,. 4 Secondary root disk, 1 2 ( )., 1 (, I/O ) OpenBoot TM PROM boot-device 1.,. Solstice DiskSuite.. 2 ( ), 1,., /etc/system. Solstice DiskSuite 1 /etc/system, ( ).,. 28 Sun Cluster 3.0 2000 11, Revision A
2 Sun Cluster.. 4 (31 ) 4 Solaris (33 ) 4 Sun Cluster (36 ) 4 JumpStart Solaris (40 ) 4 (47 ) 4 Solstice DiskSuite (48 ) 4 VERITAS Volume Manager (49 ) 4 (51 ) 4 (51 ) 4 (54 ) 4 (56 ) 4 (57 ) 4 (60 ) 4 PNM(Public Network Management) (62 ) 4 (63 ) 4 NTP(Network Time Protocol) (63 ) 4 Sun Management Center Sun Cluster (66 ) 4 Sun Management Center (67 ) 4 Sun Management Center (68 ) 29
4 Sun Cluster (69 ),. 4 Sun Cluster 3.0 Concepts overview of the Sun Cluster 3.0 product 4 Sun Cluster 3.0 Release Notes late-breaking information 4. 2 1 :. (optional) CCP(Cluster Control Panel).,. Sun Cluster 3.0 Release Notes 1 (31 ) Solaris Sun Cluster Method 1 Solaris, scinstall Sun Cluster. Solaris (33 ) Sun Cluster (36 ) Method 2 Solaris Sun Cluster scinstall JumpStart. JumpStart Solaris (40 ). (47 ) 30 Sun Cluster 3.0 2000 11, Revision A
2 1 :,.. Solstice DiskSuite VERITAS Volume Manager.. Solstice DiskSuite (48 ) Solstice DiskSuite VERITAS Volume Manager (49 ) VERITAS Volume Manager (51 ). (51 ). (53 ) CCP(Cluster Control Panel). CCP cconsole(1m), ctelnet(1m) crlogin(1m).. Solaris 8. Sun Management Center /, AnswerBook. Sun Management Center, Sun Management Center. AnswerBook Sun Cluster 3.0 Release Notes. :.,. 1. Solaris 8 Solaris. Solaris 8. Sun Cluster 31
2. CD-ROM, Sun Cluster 3.0 CD-ROM CD-ROM. vold(1m) CD-ROM, CD-ROM /cdrom/suncluster_3_0. 3. /cdrom_image/suncluster_3_0/suncluster_3.0/packages. # cd /cdrom_image/suncluster_3_0/suncluster_3.0/packages 4. SUNWccon. # pkgadd -d. SUNWccon 5. SUNWscman. # pkgadd -d. SUNWscman SUNWscman, Sun Cluster Sun Cluster man. 6. CD-ROM, CD-ROM. 7. /etc/clusters.. # vi /etc/clusters clustername node1 node2 /opt/sunwcluster/bin/clusters(4) man. 8. /etc/serialports., (TC) (SSP). 32 Sun Cluster 3.0 2000 11, Revision A
: /etc/serialports,, telnet(1). 5000., 6, 5006. # vi /etc/serialports node1 TC_hostname 500n node2 TC_hostname 500n Sun Enterprise E10000 server /opt/ SUNWcluster/bin/serialports(4)man. 9., /opt/sunwcluster/bin PATH / opt/sunwcluster/man MANPATH. SUNWscman,/usr/cluster/man MANPATH. 10. CCP. # /opt/sunwcluster/bin/ccp clustername CCP, Sun Cluster 3.0 System Administration Guide Sun Cluster /opt/sunwcluster/bin/ccp(1m) man. Solaris, Solaris (33 ). scinstall JumpStart Solaris Sun Cluster, JumpStart Solaris (40 ). Solaris scinstall(1m) JumpStart,. 1. solaris. Sun Cluster 33
Sun Cluster 3.0 Hardware Guide. 2., local-mac-address false. # /usr/sbin/eeprom local-mac-address? 4 local-mac-address=false,. (41 ) 3. 4 local-mac-address=true, false. # /usr/sbin/eeprom local-mac-address?=false. 3. Sun Cluster 3.0 Release Notes. 4.. (NIS, NIS+ DNS ). IP (17 ). (47 ) /etc/inet/hosts. 5.,., cconsole(1m).,., Solaris. cconsole. 6.? 4, (35 ) 7. 4,. a.,. % mount grep global egrep -v node@ awk {print $1} 34 Sun Cluster 3.0 2000 11, Revision A
b.,. % mkdir -p mountpoint, /global/ dg-schost-1, mkdir -p /global/ dg-schost-1. 7. Solaris Solaris. : Solaris. Solaris. Solaris, Solaris JumpStart Solaris Web Start.,. 4. Apache HTTP Server,, Solaris. Oracle Solaris. Solaris. : Sun Enterprise E10000 server Entire Distribution + OEM. 4 /globaldevices 100MB. Sun Cluster (13 ). : /globaldevices Sun Cluster. 4 no. Sun Cluster. pmconfig(1m) power.conf(4) man. Sun Cluster 35
4,. : Solaris Solaris. Sun Cluster Solaris ifconfig(1m) man. 8. Solaris. Sun Cluster 3.0 Release Notes. 9.. Sun Cluster 3.0 Release Notes. Sun Cluster, Sun Cluster (36 ). Sun Cluster Solaris,. : scinstall(1m) JumpStart, Sun Cluster. (47 ). 1. Sun Cluster 3.0 Release Notes. 4 4 1. 2.. 3. CD-ROM, Sun Cluster 3.0 CD-ROM CD-ROM. 36 Sun Cluster 3.0 2000 11, Revision A
vold(1m) CD-ROM, CD-ROM /cdrom/suncluster_3_0. 4. /cdrom_image/suncluster_3_0/suncluster_3.0/tools. # cd /cdrom_image/suncluster_3_0/suncluster_3.0/tools 5. scinstall(1m). #./scinstall scinstall. 4 scinstall. Return. 4, Control-D. 4. 4, scinstall.,., scsetup(1m),. 6., 1( ). Sun Cluster.. 4 4 4 4. 4 ( ) scinstall, scsetup. 4 Sun Cluster 37
4 Sun Cluster., scinstall., scinstall. 1.. : /etc/inet/ntp.conf, scinstall ntp.conf. 8, xntpd(1m).., NTP(Network Time Protocol) (63 ). 7., 2( ).. Sun Cluster.. 4 sponsor node. 4 4 ( ) 4 4 Sun Cluster., scinstall., scinstall. 2.., scinstall. 8. (38 ) 7.. 9. Sun Cluster. Sun Cluster 3.0 Release Notes. 38 Sun Cluster 3.0 2000 11, Revision A
10. Sun Cluster,,., scshutdown., ( ).,,. (54 ) scsetup(1m). Sun Cluster phys-schost-1 scinstall. ** Installing SunCluster 3.0 ** SUNWscr...done. SUNWscdev...done. SUNWscu...done. SUNWscman...done. SUNWscsal...done. SUNWscsam...done. SUNWscrsmop.done. SUNWsci...done. SUNWscid...done. SUNWscidx...done. SUNWscvm...done. SUNWmdm...done. Initializing cluster name to "sccluster"... done Initializing authentication options... done Initializing configuration for adapter "hme2"... done Initializing configuration for adapter "hme4"... done Initializing configuration for junction "switch1"... done Initializing configuration for junction "switch2"... done Initializing configuration for cable... done Initializing configuration for cable... done Setting the node ID for "phys-schost-1"... done (id=1) Checking for global devices global file system... done Checking device to use for global devices file system... done Updating vfstab... done Verifying that NTP is configured... done Installing a default NTP configuration... done Please complete the NTP configuration after scinstall has finished. Verifying that "cluster" is set for "hosts" in nsswitch.conf... done Adding the "cluster" switch to "hosts" in nsswitch.conf... done Verifying that "cluster" is set for "netmasks" in nsswitch.conf... done ( ) Sun Cluster 39
( ) Adding the "cluster" switch to "netmasks" in nsswitch.conf... done Verifying that power management is NOT configured... done Unconfiguring power management... done /etc/power.conf has been renamed to /etc/power.conf.060199105132 Power management is incompatible with the HA goals of the cluster. Please do not attempt to re-configure power management. Ensure routing is disabled... done Network routing has been disabled on this node by creating /etc/notrouter. Having a cluster node act as a router is not supported by Sun Cluster. Please do not re-enable network routing. Log file - /var/cluster/logs/install/scinstall.log.276 Rebooting..., (47 ). JumpStart Solaris JumpStart. Solaris Sun Cluster. 1. solaris. Sun Cluster 3.0 Hardware Guide,. 2., local-mac-address false. # /usr/sbin/eeprom local-mac-address? 4 local-mac-address=false,. (41 ) 3. 4 local-mac-address=true, false. 40 Sun Cluster 3.0 2000 11, Revision A
# /usr/sbin/eeprom local-mac-address?=false. 3.. 4 4 Sun Cluster 3.0 Release Notes. 4 4 4 1. 4.. JumpStart IP (NIS, NIS+ DNS ). IP (17 ). (47 ) /etc/inet/ hosts. :, jumpstart-dir/autoscinstall.d/ nodes/nodename/archive/etc/inet/hosts JumpStart,. nodename.. 5. Solaris JumpStart. JumpStart setup_install_server(1m) add_install_client(1m) man Solaris Advanced Installation Guide.,. 4. 4 Sun Cluster Solaris. 4 JumpStart Sun Cluster JumpStart. jumpstart-dir check(1m) JumpStart NFS. Sun Cluster 41
4 Sun Cluster JumpStart JumpStart. 6. Sun Cluster Sun Cluster CD-ROM JumpStart., /export/suncluster. # mkdir -m 755 /export/suncluster 7. Sun Cluster CD-ROM JumpStart. a. Sun Cluster 3.0 CD-ROM JumpStart CD-ROM. vold(1m) CD-ROM, CD-ROM /cdrom/suncluster_3_0. b. /cdrom_image/suncluster_3_0/suncluster_3.0/tools. # cd /cdrom_image/suncluster_3_0/suncluster_3.0/tools c. CD-ROM JumpStart. scinstall CD-ROM. /export/suncluster/sc30. #./scinstall -a /export/suncluster/sc30 d. CD-ROM. # cd / # eject cdrom e. JumpStart Sun Cluster 3.0 CD-ROM JumpStart NFS. NFS Administration Guide share(1m) dfstab(4) man. 42 Sun Cluster 3.0 2000 11, Revision A
8. JumpStart scinstall(1m). /export/suncluster/sc30. # cd /export/suncluster/sc30/suncluster_3.0/tools #./scinstall scinstall. 4 scinstall. Return. 4, Control-D. 4. 9. JumpStart, 3 ( JumpStart ). : 3 (*), JumpStart. scinstall, JumpStart scinstall. Sun Cluster. 4 JumpStart 4 4 4 4. 4 ( ) scinstall, scsetup. 4 4 Sun Cluster., scinstall., scinstall Sun Cluster 43
. 3.. 10., scinstall class. scinstall autoscinstall.class jumpstart-dir/autoscinstall.d/3.0. install_type initial_install system_type standalone partitioning explicit filesys rootdisk.s0 free / filesys rootdisk.s1 750 swap filesys rootdisk.s3 100 /globaldevices filesys rootdisk.s7 10 cluster SUNWCuser add package SUNWman add : class Solaris (SUNWCuser). Sun Enterprise E10000 server, Entire Distribution + OEM. Oracle Solaris. Solaris.. 4 autoscinstall.class. JumpStart. 4 rules check rules., Solaris. Sun Cluster 3.0 (13 ). 11.? 4, (45 ) 12. 4,. a.,. % mount grep global egrep -v node@ awk {print $1} 44 Sun Cluster 3.0 2000 11, Revision A
b.,. % mkdir -p mountpoint, /global/ dg-schost-1, mkdir -p /global/ dg-schost-1. 12. Solaris. a. JumpStart jumpstart-dir/autoscinstall.d/nodes/nodename/patches ( ). nodename. # mkdir jumpstart-dir/autoscinstall.d/nodes/nodename/patches b. Solaris. Solaris. 13.,. a. JumpStart, jumpstart-dir/autoscinstall.d/nodes/ nodename/archive/etc/inet/hosts.. nodename. b.. 4 Sun Cluster CD-ROM NFS IP. JumpStart. 4 IP. 14.., scinstall. a. finish. Sun Cluster 45
b. jumpstart-dir/ autoscinstall.d/nodes/nodename. 15.,. cconsole(1m),.,. 16. ok PROM, boot net - install JumpStart. : (-). ok boot net - install : /etc/inet ntp.conf, scinstall ntp.conf. 8, xntpd(1m).., NTP(Network Time Protocol) (63 ).,. : Solaris Solaris. Sun Cluster. Solaris ifconfig(1m) man. 17. Sun Cluster. Sun Cluster 3.0 Release Notes. 18. Sun Cluster,,., scshutdown., ( ). 46 Sun Cluster 3.0 2000 11, Revision A
,,. (54 ) scsetup(1m)., (47 ).. 1.. 2. /etc/nsswitch.conf. a. cluster hosts netmasks. Sun Cluster. scinstall(1m) cluster. b. hosts netmasks, cluster. c., files. : 2(47 ) 2(47 ),. /etc/nsswitch.conf. hosts netmasks cluster, files. files. # vi /etc/nsswitch.conf... passwd: files nis group: files nis... hosts: cluster files nis ( ) Sun Cluster 47
( )... netmasks:... cluster files nis 3. /etc/inet/hosts. Solstice DiskSuite, Solstice DiskSuite (48 ). VERITAS Volume Manager, VERITAS Volume Manager (49 ) Solstice DiskSuite. 1.. 2. CD-ROM, 2 CD-ROM Solaris 8 Software 2 CD-ROM. : Solstice DiskSuite Solaris 8 CD-ROM. vold(1m) CD-ROM. 3. Solstice DiskSuite. : Solstice DiskSuite, Solstice DiskSuite.. 48 Sun Cluster 3.0 2000 11, Revision A
# cd /cdrom_image/sol_8_sparc_2/solaris_8/ea/products/disksuite_4.2.1/sparc/packages # pkgadd -d. SUNWmdr SUNWmdu [SUNWmdx] optional-pkgs SUNWmdr and SUNWmdu Solstice DiskSuite. SUNWmdx 64 Solstice DiskSuite. Solstice DiskSuite. 4. CD-ROM, CD-ROM. 5. Solstice DiskSuite. Sun Cluster 3.0 Release Notes. 6. /usr/cluster/bin/scgdevs, Solstice DiskSuite. 7. Solstice DiskSuite,,., scshutdown., ( ).,,. (54 ) scsetup(1m). Solstice DiskSuite Solstice DiskSuite., (51 ). VERITAS Volume Manager. 1.. Sun Cluster 49
2. DMP(Dynamic Multipathing). # mkdir /dev/vx # ln -s /dev/dsk /dev/vx/dmp # ln -s /dev/rdsk /dev/vx/rdmp 3. VxVM CD-ROM CD-ROM. 4. VxVM. : VxVM, VxVM. # cd /cdrom_image/volume_manager_3_0_4_solaris/pkgs # pkgadd -d. VRTSvxvm VRTSvmdev VRTSvmman pkgadd(1m) VRTSvxvm, VRTSvmdev. VxVM VxVM. : VRTSvxvm VRTSvmdev VxVM. 5. CD-ROM. 6. VxVM. Sun Cluster 3.0 Release Notes. 7. VxVM,,., scshutdown., ( )., 50 Sun Cluster 3.0 2000 11, Revision A
,. (54 ) scsetup(1m). VxVM VxVM., (51 ).. 1.. 2. /usr/sbin /usr/cluster/bin PATH. VERITAS Volume Manager, /etc/vx/bin PATH. VRTSvmsa, /opt/vrtsvmsa/bin PATH. 3. /usr/cluster/man MANPATH.. 4 Solstice DiskSuite, /usr/share/man MANPATH. 4 VERITAS Volume Manager, /opt/vrtsvxvm/man MANPATH. VRTSvmsa, /opt/vrtsvmsa/ man MANPATH. 4., ( )., (51 ).. Sun Cluster 51
:,. 1.. 2. CD-ROM, Data Services CD-ROM CD-ROM. 3. scinstall(1m). # scinstall scinstall. 4 scinstall. Return. 4, Control-D. 4., 4( ).. 5. CD-ROM, CD-ROM. 6. Sun Cluster. Sun Cluster 3.0 Release Notes. :, Sun Cluster., scshutdown., ( ).,,. (54 ) scsetup(1m). 52 Sun Cluster 3.0 2000 11, Revision A
, (53 ).. 2 2 :,. (54 ) Solstice DiskSuite VERITAS Volume Manager. (56 ). (57 ) (optional). (60 ) PNM(Public Network Management) NAFO. PNM(Public Network Management) (62 ) (optional). (63 ) /etc/inet/ntp.conf. NTP(Network Time Protocol) (63 ) Sun Cluster 53
2 2 :,. (optional) Sun Cluster Sun Management Center.,. Sun Cluster Sun Management Center (65 ) Sun Management Center Sun Cluster 3.0 Data Services Installation and Configuration Guide,. 1.. a.,.. % scstat -n. -- Cluster Nodes -- Node name Status --------- ------ Cluster node: phys-schost-1 Online Cluster node: phys-schost-2 Online b.,.. % scdidadm -L.. 54 Sun Cluster 3.0 2000 11, Revision A
1 phys-schost-1:/dev/rdsk/c0t0d0 /dev/did/rdsk/d1 2 phys-schost-1:/dev/rdsk/c1t1d0 /dev/did/rdsk/d2 2 phys-schost-2:/dev/rdsk/c1t1d0 /dev/did/rdsk/d2 3 phys-schost-1:/dev/rdsk/c1t2d0 /dev/did/rdsk/d3 3 phys-schost-2:/dev/rdsk/c1t2d0 /dev/did/rdsk/d3... c. scdidadm ID(DID)., d2 phys-schost-1 phys-schost-2. (55 ) 4. (22 ). 2.. 3. scsetup(1m). # scsetup. :,. 4.. a. Do you want to add any quorum disks?, 2-. 2-. scsetup, Commandcompleted successfully.,. b. Is it okay to reset "installmode"?, Yes. scsetup, Cluster initialization is complete. Sun Cluster 55
:, (55 ) 3 (55 ) 4. 5.,. # scconf -p grep "Cluster install mode:" Cluster install mode: disabled, (56 ). 1.. 4 4 Sun Cluster 3.0 Release Notes. 4 4 4 4 (Solstice DiskSuite) 1. 2.. Solstice DiskSuite A Solstice DiskSuite VERITAS Volume Manager B VERITAS Volume Manager 56 Sun Cluster 3.0 2000 11, Revision A
, (57 ).. :..,. 1.. :, 1. 2. newfs(1m). # newfs raw-disk-device raw-disk-device.. 2 3 Solstice DiskSuite /dev/md/oracle/rdsk/d1 oracle d1 VERITAS Volume Manager /dev/vx/rdsk/oradg/vol01 oradg vo101 /dev/global/rdsk/d1s3 d1s3 Sun Cluster 57
3.,.. # mkdir -p /global/device-group/mount-point device-group mount-point :, /global/device-group.,. 4., /etc/vfstab. : syncdir. syncdir, POSIX., UFS. syncdir,. syncdir,. syncdir,. syncdir( POSIX ),. a., mount at boot yes. b.. 4 Solaris UFS logging, global,logging. 4 Solstice DiskSuite trans, global (logging ). trans Solstice DiskSuite :. 58 Sun Cluster 3.0 2000 11, Revision A
c., /etc/vfstab. d.., phys-schost-1 d0 /global/oracle, phys-schost-2 d1 /global/oracle/ logs., phys-schost-1 /global/oracle phys-schost-2 / global/oracle/logs. e. /etc/vfstab. vfstab(4) man. 5., /etc/vfstab. # sccheck,. 6.,. # mount /global/device-group/mount-point 7.,. df(1m) mount(1m). Solstice DiskSuite /dev/md/oracle/rdsk/d1 UFS. # newfs /dev/md/oracle/rdsk/d1... (on each node:) # mkdir -p /global/oracle/d1 # vi /etc/vfstab #device device mount FS fsck mount mount #to mount to fsck point type pass at boot options # ( ) Sun Cluster 59
( ) /dev/md/oracle/dsk/d1 /dev/md/oracle/rdsk/d1 /global/oracle/d1 ufs 2 yes global,logging (save and exit) (on one node:) # sccheck # mount /global/oracle/d1 # mount... /global/oracle/d1 on /dev/md/oracle/dsk/d1 read/write/setuid/global/logging/ largefiles on Sun Oct 3 08:56:16 1999, (60 )., PNM NAFO, PNM(Public Network Management) (62 )., 2. 2. :,. 1. Sun Cluster 3.0 Release Notes. 2.. 3. /etc/hostname.adapter. adapter. : NAFO, /etc/hostname.adapter. 4. /etc/hostname.adapter IP., hme3 /etc/hostname.hme3, phys-schost-1. 60 Sun Cluster 3.0 2000 11, Revision A
# vi /etc/hostname.hme3 phys-schost-1 5., /etc/inet/hosts, IP., phys-schost-1. # vi /etc/inet/hosts... 192.29.75.101 phys-schost-1... :,. 6.,. # ifconfig adapter plumb # ifconfig adapter hostname netmask + broadcast + -trailers up 7.. # ifconfig adapter IP. (RGM) NAFO. PNM NAFO, PNM(Public Network Management) (62 ). Sun Cluster 61
PNM(Public Network Management). : NAFO(Network Adapter Failover). NAFO. 1. Sun Cluster 3.0 Release Notes. 2. NAFO. 3. NAFO. # pnmset -c nafo_group -o create adapter [adapter...] -c nafo_group NAFO nafo_group -o create adapter NAFO. pnmset(1m) man. 4. NAFO. # pnmstat -l pnmstat(1m) man. PNM NAFO nafo0. qfe1 qfe5. # pnmset -c nafo0 -o create qfe1 qfe5 # pnmstat -l group adapters status fo_time act_adp nafo0 qfe1:qfe5 OK NEVER qfe5 nafo1 qfe6 OK NEVER qfe6, (63 )., /etc/inet/ntp.conf, NTP(Network Time Protocol) (63 ). 62 Sun Cluster 3.0 2000 11, Revision A
Sun Cluster (clusternodenodeid-priv). :.,.,. 1.. 2. scsetup(1m). # scsetup 3., 4( ). 4., 1( )... 5.. # scconf -pv grep "private hostname" (phys-schost-1) Node private hostname: (phys-schost-3) Node private hostname: (phys-schost-2) Node private hostname: phys-schost-1-priv phys-schost-3-priv phys-schost-2-priv /etc/inet/ntp.conf, NTP(Network Time Protocol) (63 ). NTP(Network Time Protocol). 1.. Sun Cluster 63
2. /etc/inet/ntp.conf. scinstall(1m) ntp.cluster /etc/inet/ntp.conf. Sun Cluster ntp.conf,. (pkgadd(1m) ), NTP. a.. ntp.conf,,. b. Sun Cluster,. c., NTP. NTP.. NTP. Sun Cluster 3.0 Concepts, Sun Cluster NTP ntp.cluster. 3. NTP. # /etc/init.d/xntpd stop # /etc/init.d/xntpd start Sun Management Center, Sun Cluster Sun Management Center (65 )., Sun Cluster 3.0 Data Services Installation and Configuration Guide., 64 Sun Cluster 3.0 2000 11, Revision A
Sun Cluster 3.0 Data Services Installation and Configuration Guide. Sun Management Center Sun Cluster Sun Management Center Sun Cluster. 2 4 : Sun Management Center Sun Cluster,. Sun Management Center,,. Sun Management Center Sun Cluster Sun Management Center (65 ) Sun Cluster. Sun Management Center Sun Cluster (66 ) Sun Management Center,. Sun Management Center (67 ) Sun Management Center. Sun Management Center (68 ) Sun Cluster. Sun Cluster (69 ) Sun Cluster Sun Management Center Sun Management Center Sun Cluster ( Sun Enterprise SyMON). Sun Cluster. Sun Cluster 65
4 Space requirements Sun Cluster 25 MB. 4 Sun Management Center packages Sun Management Center,.,. Sun Management Center Sun Management Center Sun Management Center. 4 Simple Network Management Protocol (SNMP) port Sun Management Center, (SNMP) 161... Sun Management Center Sun Cluster Sun Cluster,. : Sun Cluster (SUNWscsal SUNWscsam) Sun Cluster. 1. Sun Management Center. Sun Management Center. Sun Management Center. 2. Sun Cluster. a.. b. CD-ROM, Sun Cluster CD-ROM CD-ROM. c. /cdrom_image/suncluster_3.0/packages. d. Sun Cluster. # pkgadd -d. SUNWscscn 66 Sun Cluster 3.0 2000 11, Revision A
e. CD-ROM, CD-ROM. 3., Sun Cluster SUNWscssv. (66 ) 2. 4., Sun Cluster SUNWscshl. (66 ) 2. 5. Sun Cluster. Sun Cluster 3.0 Release Notes. Sun Management Center, Sun Management Center (67 ). Sun Management Center Sun Management Center,. 1., Sun Management Center Sun Management Center. # /opt/sunwsymon/sbin/es-start -S 2., Sun Management Center ( ) Sun Management Center. # /opt/sunwsymon/sbin/es-start -a 3. Sun Management Center ( ) Sun Management Center.. % /opt/sunwsymon/sbin/es-start -c Sun Cluster 67
4.,., Sun Management Center (68 ). Sun Management Center Sun Management Center. : Sun Cluster.,.,. 1. Sun Management Center, Sun Management Center. Sun Management Center. Sun Management Center,.. Sun Management Center Sun Management Center. 2. >. 3.. 4., Sun Management Center Agent - Host. 5. ( : phys-schost-1). IP.. 6., Sun Management Center. 68 Sun Cluster 3.0 2000 11, Revision A
7.. Sun Management Center. Sun Cluster Sun Cluster (69 ). Sun Cluster. 1. Sun Management Center,.... 2. ( ).. 3. >. Sun Management Center. 4. Sun Cluster: ( ).. 5. OK. Sun Cluster. 6. Sun Cluster. 4, Sun Cluster. 4, Sun Cluster. Sun Cluster Sun Cluster. 4 Sun Cluster,. Sun Cluster 69
4 Sun Cluster. 4 Sun Cluster, Sun Management Center, URL file:/opt/sunwsymon/lib/locale/c/help/main.top.html. : Sun Management Center Sun Cluster Sun Management Center. Sun Management Center Sun Management Center Sun Management Center., Sun Cluster 3.0 Data Services Installation and Configuration Guide., Sun Cluster 3.0 Data Services Installation and Configuration Guide. 70 Sun Cluster 3.0 2000 11, Revision A
3 Sun Cluster 2- Sun Cluster 2.2 Sun Cluster 3.0.. 4 (74 ) 4 VERITAS Volume Manager (76 ) 4 Solaris (77 ) 4 (80 ) 4 (83 ) 4 (83 ) 4 (85 ) 4 (88 ) Sun Cluster 1. Sun Cluster 2.2 Sun Cluster 3.0 (71 ). Sun Cluster 2.2 Sun Cluster 3.0 2- Sun Cluster 2.2 Sun Cluster 3.0. 71
3 1 : Sun Cluster 2.2 Sun Cluster 3.0,., Sun Cluster 3.0. Sun Cluster 2.2 Sun Cluster 3.0 (73 ). (74 ) VERITAS Volume Manager(VxVM), VxVM. VERITAS Volume Manager (76 ) Solaris 8, /globaldevices, Sun Cluster 3.0. Solstice DiskSuite, Solstice DiskSuite. Solaris (77 ) Sun Cluster 3.0. Solstice DiskSuite,. (80 ) PATH MANPATH. (83 ) Sun Cluster 3.0.,. (83 ),,. VERITAS Volume Manager(VxVM), VxVM. Solstice DiskSuite,. (85 ). (88 ) 72 Sun Cluster 3.0 2000 11, Revision A
Sun Cluster 2.2 Sun Cluster 3.0 Sun Cluster 2.2 Sun Cluster 3.0,. Sun Cluster 2.2 Sun Cluster 3.0. 4 Sun Cluster 3.0.. 4. 100 MB/. 4. 4. 4 Solaris 8. 4 Sun Cluster,. 4 Sun Cluster 3.0 Solstice HA 1.3, Sun Cluster 2.0 Sun Cluster 2.1 Sun Cluster 3.0. 4 Sun Cluster 3.0. 4 Sun Cluster 2.2 Sun Cluster 3.0 scinstall(1m)., Sun Cluster 2.2. Sun Cluster 3.0,.. 4 Global devices namespace, 100MB /globaldevices..,. Sun Cluster 73
4 Mirrored root,.,.. 4 Root (/) file system allocation Solaris 8, Sun Cluster (/). Sun Cluster 3.0 (13 ).. 1. CD-ROM,,. 4 Solaris 8 4 Solstice DiskSuite VERITAS Volume Manager 4 Sun Cluster 3.0 4 Sun Cluster 3.0 4 Solstice DiskSuite Solaris 8. : CD-ROM., CD-ROM. Sun Cluster 3.0 Release Notes. 2.. 3.. 4. /var/adm/messages.. 5.. a.. b. hastat(1m). 74 Sun Cluster 3.0 2000 11, Revision A
# hastat HIGH AVAILABILITY CONFIGURATION AND STATUS -------------------------------------------... LOGICAL HOSTS IN MAINTENANCE STATE NONE,. (75 ) 6. c., haswitch(1m). # haswitch hostname logicalhostname hostname logicalhostname.. d. hastat. 6. 10 MB. # df -k /logicalhostname 10 MB Sun Cluster 3.0. 10 MB,. 7... 8. Sun Cluster 2.2. # scadmin stopnode 9. hastat. Sun Cluster 75
VERITAS Volume Manager, VERITAS Volume Manager (76 ). Solstice DiskSuite, Sun Cluster 3.0 Solaris, Solaris (77 ). VERITAS Volume Manager VERITAS Volume Manager(VxVM), VxVM.. : Sun Cluster 3.0, VxVM VxVM. 1.. 2. VxVM. VxVM. :. 3.. VxVM. 4. VxVM. VxVM. 5. VxVM. VxVM. 6. VxVM. # rm -rf /dev/vx 76 Sun Cluster 3.0 2000 11, Revision A
Sun Cluster 3.0 Solaris, Solaris (77 ). Solaris Sun Cluster 3.0 Solaris. 1.. 2. Solstice DiskSuite,. a.. # medstat -s setname -s setname. Bad, (117 ). medstat(1m) man. b..,. # metaset -s setname (80 ). c.,. # metaset -s setname -t -t. d.. # metaset -s setname -d -m mediator_host_list -s setname. -d. Sun Cluster 77
-m mediator_host_list. metaset mediator(7) man. e.. # pkgrm SUNWmdm 3. Solaris 8? 4, (78 ) 4. 4, a. 100 MB /globaldevices. : /globaldevices Sun Cluster 3.0. b. Sun Cluster 3.0. (13 ). c. (79 ) 6. 4. Solaris 8.,. Solstice DiskSuite Solaris Solstice DiskSuite Solstice DiskSuite VxVM Solaris Solaris 8 5. (78 ) 4 Solaris 8.. 78 Sun Cluster 3.0 2000 11, Revision A
4 100 MB /globaldevices. /globaldevices Sun Cluster 3.0. 4 Sun Cluster 3.0. (13 ). : Solaris Solaris. Sun Cluster. Solaris ifconfig(1m) man. 6. Solaris. Sun Cluster 3.0 Release Notes. 7.. Sun Cluster 3.0 Release Notes. 8. Solstice DiskSuite, Solstice DiskSuite. Sun Cluster 3.0 Release Notes. Solaris 8 Solstice DiskSuite schost-1 phys-schost-1. (Check mediator status:) # medstat -s schost-1 (List all mediators:) # metaset -s schost-1 (Unconfigure the mediator:) # metaset -s schost-1 -d -m phys-schost-1 (Remove mediator software:) # pkgrm SUNWmdm (Begin software upgrade) ( ) Sun Cluster 79
( ) Sun Cluster 3.0, (80 ).. Sun Cluster 3.0 CD-ROM. : scinstall(1m) 2 (-u begin -u finish ). begin. finish (85 ). 1.. 2. Solstice DiskSuite, Solstice DiskSuite (SUNWmdm). a. CD-ROM, Sun Cluster 3.0 CD-ROM CD-ROM. vold(1m) CD-ROM, CD-ROM /cdrom/suncluster_3_0. b. /cdrom_image/suncluster_3_0/suncluster_3.0/packages. # cd /cdrom_image/suncluster_3_0/suncluster_3.0/packages c. SUNWmdm. # pkgadd -d. SUNWmdm d.. # shutdown -g 0 -y -i 6 e.. 80 Sun Cluster 3.0 2000 11, Revision A
3.. a.. # metaset -s setname -s setname. b.,. # metaset -s setname -t -t. c.. # metaset -s setname -a -m mediator_host_list -a. -m mediator_host_list. d.. 4. Sun Cluster 3.0. a., /cdrom_image/suncluster_3_0/suncluster_3.0/tools. # cd /cdrom_image/suncluster_3_0/suncluster_3.0/tools b..../scinstall -u begin -F./scinstall -u begin -N clusternode1 -F. Sun Cluster 81
-N clusternode1,. scinstall(1m) man. c.. # shutdown -g 0 -y -i 6,.. d.. 5., Sun Cluster Sun Cluster 3.0 Release Notes. Sun Cluster 2.2 Sun Cluster 3.0 Sun Cluster 2.2 Sun Cluster 3.0 2-. phys-schost-1, phys-schost-2, phys-schost-1. Solstice DiskSuite, schost-1. (Install the latest Solstice DiskSuite mediator package on each node:) # cd /cdrom/suncluster_3_0/suncluster_3.0/packages # pkgadd -d. SUNWmdm (Restore the mediator:) # metaset -s schost-1 -t # metaset -s schost-1 -a -m phys-schost-1 phys-schost-2 (Begin upgrade on the first node:) phys-schost-1# cd /cdrom/suncluster_3_0/suncluster_3.0/tools phys-schost-1#./scinstall -u begin -F (Begin upgrade on the second node:) phys-schost-2# cd /cdrom/suncluster_3_0/suncluster_3.0/tools phys-schost-2#./scinstall -u begin -N phys-schost-1 ( ) 82 Sun Cluster 3.0 2000 11, Revision A
( ) (Reboot each node:) # shutdown -g 0 -y -i 6, (83 ).. 1. /usr/sbin /usr/cluster/bin PATH. VERITAS Volume Manager, /etc/vx/bin PATH. VRTSvmsa, /opt/vrtsvmsa/bin PATH. 2. /usr/cluster/man MANPATH.. 4 Solstice DiskSuite, /usr/share/man MANPATH. 4 VERITAS Volume Manager, /opt/vrtsvxvm/man MANPATH. VRTSvmsa, /opt/vrtsvmsa/ man MANPATH. 3.,. 4.. Sun Cluster 3.0, (83 ).. 1.. Sun Cluster 83
2... :,. 3.. a. Sun Cluster 3.0 CD-ROM CD-ROM. b. scinstall(1m). # scinstall scinstall. 4 scinstall. Return. 4, Control-D. c., 4 ( ).. d. CD-ROM. 4. Sun Cluster. Sun Cluster 3.0 Release Notes. 5. (83 ) 1 (84 ) 4. 6. Sun Cluster 3.0.. phys-schost-2# shutdown -g 0 -y -i 0 7.,. 84 Sun Cluster 3.0 2000 11, Revision A
.,,. phys-schost-1# shutdown -g 0 -y -i 6 8.,. phys-schost-2# boot 9.,. # scstat -n Node Node Name: Status: Node Name: Status: phys-schost-1 Online phys-schost-2 Online scstat(1m) man., (85 ). (80 ) scinstall(1m).. 1.. 2... scdidadm(1m) Sun Cluster 85
ID(DID). (86 ) 5, -q globaldev=devicename scinstall. # scdidadm -L 3. VxVM, VxVM. :.,.,,. a. VxVM. VERITAS Volume Manager (49 ). b. VxVM. Sun Cluster VxVM (121 ). 4. Sun Cluster 3.0 CD-ROM CD-ROM. vold(1m) CD-ROM. 5.. # scinstall -u finish -q globaldev=devicename \ -d /cdrom_image/scdataservices_3_0 -s srvc[,srvc] -q globaldev=devicename. -d /cdrom_image/scdataservices_3_0 CD-ROM. -s srvc. :.. 86 Sun Cluster 3.0 2000 11, Revision A
** Installing Sun Cluster - Highly Available NFS Server ** Skipping "SUNWscnfs" - already installed 6. CD-ROM. 7. (86 ) 4 (87 ) 6.,. 8. Solstice DiskSuite,. # scswitch -z -D disk-device-group -h node -z. -D disk-device-group Solstice DiskSuite. -h node 1. 9.,., Sun Cluster 2.2 Sun Cluster 3.0, -lh., lhost-1 lhost-1-lh.. # scswitch -z -g resource-group -h node -g resource-group. scrgadm -p. scrgadm -pv. 10. Sun Management Center Sun Cluster, Sun Management Center Sun Cluster. a. Sun Management Center ( Sun Enterprise SyMON). Sun Cluster 87
Sun Management Center. b. Sun Cluster Sun Cluster Sun Management Center (65 ). Sun Cluster 2.2 to Sun Cluster 3.0 Sun Cluster 2.2 Sun Cluster 3.0 2-. phys-schost-1 phys-schost-2, dg-schost-1 dg-schost-2 lh-schost-1 lh-schost-2. (Determine the DID of the shared quorum device:) phys-schost-1# scdidadm -L (Finish upgrade on each node:) phys-schost-1# scinstall -u finish -q globaldev=d1 \ -d /cdrom/suncluster_3_0 -s nfs phys-schost-2# scinstall -u finish -q globaldev=d1 \ -d /cdrom/suncluster_3_0 -s nfs (Bring device groups and data service resource groups on each node online:) phys-schost-1# scswitch -z -D dg-schost-1 -h phys-schost-1 phys-schost-1# scswitch -z -g lh-schost-1 -h phys-schost-1 phys-schost-1# scswitch -z -D dg-schost-2 -h phys-schost-2 phys-schost-1# scswitch -z -g lh-schost-2 -h phys-schost-2, (88 ).,. 1.. 2..,,. 88 Sun Cluster 3.0 2000 11, Revision A
# scstat scstat(1m) man. 3.,.. # scdidadm -L.,. Sun Cluster 89
90 Sun Cluster 3.0 2000 11, Revision A
A Solstice DiskSuite 1 Solstice DiskSuite. Solstice DiskSuite.. 4 (93 ) 4 (94 ) 4 (/) (95 ) 4 (98 ) 4 (101 ) 4 (105 ) 4 (108 ) 4 (110 ), 4 (111 ) 4 md.tab (112 ) 4 (114 ) 4 (116 ), 4 (117 ) 4 (117 ) 91
Sun Cluster Solstice DiskSuite Sun Cluster Solstice DiskSuite. A 1 :Sun Cluster Solstice DiskSuite,. Solstice DiskSuite. (23 ) Solstice DiskSuite (118 ) /kernel/drv/ md.conf. (93 ). (94 ) Optional.. (95 ) metaset. (108 ). (110 ), 1-6. (111 ) ID /etc/lvm/md.tab. md.tab (112 ) md.tab. (114 ) 92 Sun Cluster 3.0 2000 11, Revision A
A 1 :Sun Cluster Solstice DiskSuite,.,,. (116 ), (117 ) (117 ). (57 ) / kernel/drv/md.conf. : 128... 1.. actual quantity value., d950 - d1000, Solstice DiskSuite 50 1000. 8192. 2.,. 32. 3. /kernel/drv/md.conf. : ( ) /kernel/drv/ md.conf. Solstice DiskSuite. Solstice DiskSuite 93
a. 128, nmd. b. md_nsets (93 ) 2. /kernel/drv/md.conf,., (94 ).. 1.. 2. metadb(1m). metadb(1m) man Solstice DiskSuite. : ( Solstice DiskSuite ),.. 3.. # metadb. # metadb -af c0t0d0s7 c0t1d0s7 c1t0d0s7 # metadb flags first blk block count ( ) 94 Sun Cluster 3.0 2000 11, Revision A
( ) a u 16 1034 /dev/dsk/c0t0d0s7 a u 1050 1034 /dev/dsk/c0t1d0s7 a u 2084 1034 /dev/dsk/c1t0d0s7, (95 )., Solstice DiskSuite (108 )..... 4 (/) (95 ) 4 (98 ) 4 (101 ) 4 (105 ) :.. metainit: dg-schost-1: d1s0: not a metadevice :, /dev/global.. (/) (/). 1.. Solstice DiskSuite 95
2. metainit(1m), ( ). # metainit -f submirror1 1 1 root-disk-slice 3.. # metainit -f submirror2 1 1 submirror-disk-slice 4.. :. # metainit mirror -m submirror1 5. metaroot(1m). /etc/vfstab /etc/system (/). # metaroot mirror 6. lockfs(1m). UFS. # lockfs -fa 7.. # scswitch -S -h node -S. -h node. 8.. # shutdown -g 0 -y -i 6 96 Sun Cluster 3.0 2000 11, Revision A
9. metattach(1m). # metattach mirror submirror2 10. ( ), localonly. localonly. a., scdidadm -L ID(DID)., dsk/d2, DID. # scdidadm -L... 1 phys-schost-3:/dev/rdsk/c1t1d0 /dev/did/rdsk/d2 # scconf -c -D name=dsk/d2,localonly=true localonly scconf_dg_rawdisk(1m) man. b. scconf(1m) localonly. # scconf -c -D name=rawdisk_groupname,localonly=true -D name=rawdisk_groupname. 11.. # ls -l /dev/rdsk/root-disk-slice 12. (95 ) 1 - (97 ) 11.. Solstice DiskSuite 97
(/) phys-schost-1 d0, c0t0d0s0 d10, c2t2d0s0 d20. c2t2d0, localonly. (Create the mirror:) # metainit -f d10 1 1 c0t0d0s0 d11: Concat/Stripe is setup # metainit -f d20 1 1 c2t2d0s0 d12: Concat/Stripe is setup # metainit d0 -m d10 d10: Mirror is setup # metaroot d0 # lockfs -fa (Reboot the node:) # scswitch -S -h phys-schost-1 # shutdown -g 0 -y -i 6 (Attach the second submirror:) # metattach d0 d20 d0: Submirror d20 is attached (Enable the localonly property of the mirrored disk s raw disk device group:) # scconf -c -D name=dsk/d2,localonly=true (Record the alternate boot path:) # ls -l /dev/rdsk/c2t2d0s0 lrwxrwxrwx 1root root 57 Apr 25 20:11 /dev/rdsk/c2t2d0s0 ->../../devices/node@1/pci@1f,0/pci@1/scsi@3,1/disk@2,0:a,raw /global/.devices/node@nodeid, (98 ). /global/.devices/node@nodeid,. 1.. 2. ( ). # metainit -f submirror1 1 1 disk-slice 98 Sun Cluster 3.0 2000 11, Revision A
3.. # metainit -f submirror2 1 1 submirror-disk-slice 4.. :. # metainit mirror -m submirror1 5... # metattach mirror submirror2 6. /global/.devices/node@nodeid /etc/vfstab. device to mount device to fsck. # vi /etc/vfstab #device device mount FS fsck mount mount #to mount to fsck point type pass at boot options # /dev/md/dsk/mirror /dev/md/rdsk/mirror /global/.devices/node@nodeid ufs 2 no global 7. (98 ) 1 (99 ) 6.. 8. (99 ) 5. metastat(1m). # metastat mirror Solstice DiskSuite 99
9. ( ), localonly., localonly. a., scdidadm -L ID(DID)., dsk/d2, DID. # scdidadm -L... 1 phys-schost-3:/dev/rdsk/c1t1d0 /dev/did/rdsk/d2 # scconf -c -D name=dsk/d2,localonly=true localonly scconf_dg_rawdisk(1m) man. b. scconf(1m) localonly. # scconf -c -D name=rawdisk_groupname,localonly=true -D name=rawdisk_groupname. d101 c0t0d0s3 d111 c2t2d0s3 d121. /global/.devices/ node@1 /etc/vfstab d101. c2t2d0 localonly. (Create the mirror:) # metainit -f d111 1 1 c0t0d0s3 d111: Concat/Stripe is setup # metainit -f d121 1 1 c2t2d0s3 d121: Concat/Stripe is setup # metainit d101 -m d111 d101: Mirror is setup # metattach d101 d121 ( ) 100 Sun Cluster 3.0 2000 11, Revision A
( ) d101: Submirror d121 is attached (Edit the /etc/vfstab file:) # vi /etc/vfstab #device device mount FS fsck mount mount #to mount to fsck point type pass at boot options # /dev/md/dsk/d101 /dev/md/rdsk/d101 /global/.devices/node@1 ufs 2 no global (View the sync status:) # metastat d101 d101: Mirror Submirror 0: d111 State: Okay Submirror 1: d121 State: Resyncing Resync in progress: 15 % done... (Identify the DID name of the mirrored disk s raw disk device group:) # scdidadm -L... 1 phys-schost-3:/dev/rdsk/c2t2d0 /dev/did/rdsk/d2 (Enable the localonly property of the mirrored disk s raw disk device group:) # scconf -c -D name=dsk/d2,localonly=true /usr, /opt swap, (101 )., (105 )., (108 ). /usr, /opt, orswap,. 1.. Solstice DiskSuite 101
2. ( ). # metainit -f submirror1 1 1 disk-slice 3.. # metainit -f submirror2 1 1 submirror-disk-slice 4.. :. # metainit mirror -m submirror1 5. (101 ) 1 (102 ) 4. 6., /etc/vfstab. device to mount device to fsck. # vi /etc/vfstab #device device mount FS fsck mount mount #to mount to fsck point type pass at boot options # /dev/md/dsk/mirror /dev/md/rdsk/mirror /file-system ufs 2 no global 7.. # scswitch -S -h node -S. -h node. 102 Sun Cluster 3.0 2000 11, Revision A
8.. # shutdown -g 0 -y -i 6 9... # metattach mirror submirror2 10. (103 ) 9. metastat(1m). # metastat mirror 11. ( ), localonly., localonly. a., scdidadm -L ID(DID)., dsk/d2, DID. # scdidadm -L... 1 phys-schost-3:/dev/rdsk/c1t1d0 /dev/did/rdsk/d2 # scconf -c -D name=dsk/d2,localonly=true localonly scconf_dg_rawdisk(1m) man. b. scconf(1m) localonly. # scconf -c -D name=rawdisk_groupname,localonly=true -D name=rawdisk_groupname. Solstice DiskSuite 103
c0t0d0s1 /usr phys-schost-1 d1. d1 c0t0d0s1 d11 c2t2d0s1 d21. /usr /etc/vfstab d1. c2t2d0 localonly. (Create the mirror:) # metainit -f d11 1 1 c0t0d0s1 d11: Concat/Stripe is setup # metainit -f d21 1 1 c2t2d0s1 d21: Concat/Stripe is setup # metainit d1 -m d11 d1: Mirror is setup (Edit the /etc/vfstab file:) # vi /etc/vfstab #device device mount FS fsck mount mount #to mount to fsck point type pass at boot options # /dev/md/dsk/d1 /dev/md/rdsk/d1 /usr ufs 2 no global (Reboot the node:) # scswitch -S -h phys-schost-1 # shutdown -g 0 -y -i 6 (Attach the second submirror:) # metattach d1 d21 d1: Submirror d21 is attached (View the sync status:) # metastat d1 d1: Mirror Submirror 0: d11 State: Okay Submirror 1: d21 State: Resyncing Resync in progress: 15 % done... (Identify the DID name of the mirrored disk s raw disk device group:) # scdidadm -L... 1 phys-schost-3:/dev/rdsk/c2t2d0 /dev/did/rdsk/d2 (Enable the localonly property of the mirrored disk s raw disk device group:) # scconf -c -D name=dsk/d2,localonly=true 104 Sun Cluster 3.0 2000 11, Revision A
, (105 )., (108 )..,. 1.. 2. ( ). # metainit -f submirror1 1 1 disk-slice 3.. # metainit -f submirror2 1 1 submirror-disk-slice 4.. :. # metainit mirror -m submirror1 5., (105 ) 1 (105 ) 4. 6., /etc/vfstab. device to mount device to fsck. # vi /etc/vfstab #device device mount FS fsck mount mount #to mount to fsck point type pass at boot options ( ) Solstice DiskSuite 105
( ) # /dev/md/dsk/mirror /dev/md/rdsk/mirror /file-system ufs 2 no global 7... # metattach mirror submirror2 8. (106 ) 7. metastat(1m). # metastat mirror 9. ( ), localonly., localonly. a., scdidadm -L ID(DID)., dsk/d4, DID. # scdidadm -L... 1 phys-schost-3:/dev/rdsk/c1t1d0 /dev/did/rdsk/d2 # scconf -c -D name=dsk/d2,localonly=true localonly scconf_dg_rawdisk(1m) man. b. scconf(1m) localonly. 106 Sun Cluster 3.0 2000 11, Revision A
# scconf -c -D name=rawdisk_groupname,localonly=true -D name=rawdisk_groupname. c0t0d0s4 /home d4. d4 c0t0d0s4 d14 c2t2d0s4 d24. /home /etc/vfstab d4. c2t2d0 localonly. (Create the mirror:) # metainit -f d14 1 1 c0t0d0s4 d14: Concat/Stripe is setup # metainit -f d24 1 1 c2t2d0s4 d24: Concat/Stripe is setup # metainit d4 -m d14 d4: Mirror is setup (Edit the /etc/vfstab file:) # vi /etc/vfstab #device device mount FS fsck mount mount #to mount to fsck point type pass at boot options # /dev/md/dsk/d4 /dev/md/rdsk/d4 /home ufs 2 no global (Attach the second submirror:) # metattach d4 d24 d4: Submirror d24 is attached (View the sync status:) # metastat d4 d4: Mirror Submirror 0: d14 State: Okay Submirror 1: d24 State: Resyncing Resync in progress: 15 % done... (Identify the DID name of the mirrored disk s raw disk device group:) # scdidadm -L... 1 phys-schost-3:/dev/rdsk/c2t2d0 /dev/did/rdsk/d2 (Enable the localonly property of the mirrored disk s raw disk device group:) # scconf -c -D name=dsk/d2,localonly=true Solstice DiskSuite 107
, (108 ).. 4,. (115 ). 4, S1 S2 S3., (S1) + (S2) > (S3). 1. /.rhosts, root 14. # vi /etc/group... sysadmin::14:root... 2.., (94 ). 3.. 4.. Sun Cluster. # metaset -s setname -a -h nodename1 nodename2 -s setname. -a ( ). -h nodename1 1. 108 Sun Cluster 3.0 2000 11, Revision A
nodename2 2. 5.. # metaset -s setname dg-schost-1 dg-schost-2, phys-schost-1 phys-schost-2 1. # metaset -s dg-schost-1 -a -h phys-schost-1 phys-schost-2 # metaset -s dg-schost-2 -a -h phys-schost-1 phys-schost-2 (110 ),., Solstice DiskSuite. 4 Solstice DiskSuite 7. 0. 4 7. 4. 4 7 0,,. Solstice DiskSuite 109
1.. 2.., (108 ). 3. ID(DID). # scdidadm -L 4. 4 DID. DID, ( ), DID ( ). DID., DID 2 phys-schost-1 phys-schost-2, DID /dev/ did/rdsk/d2. 1 phys-schost-1:/dev/rdsk/c0t0d0 /dev/did/rdsk/d1 2 phys-schost-1:/dev/rdsk/c1t1d0 /dev/did/rdsk/d2 2 phys-schost-2:/dev/rdsk/c1t1d0 /dev/did/rdsk/d2 3 phys-schost-1:/dev/rdsk/c1t2d0 /dev/did/rdsk/d3 3 phys-schost-2:/dev/rdsk/c1t2d0 /dev/did/rdsk/d3... 4.. # metaset -s setname-t -s setname. -t. 5.. DID. 110 Sun Cluster 3.0 2000 11, Revision A
: (cntxdy).,. # metaset -s setname -a DIDname -a DIDname. 6.. # metaset -ssetname metaset /dev/did/dsk/d1 /dev/did/dsk/d2 dg-schost-1. # metaset -s dg-schost-1 -a /dev/did/dsk/d1 /dev/did/dsk/d2, (111 ). metaset(1m) Solstice DiskSuite 7. 0.. 1-6. 1.. 2. format(1m). Solstice DiskSuite 111
, metaset(1m). 4 ( 2MB) 0 7. 4 7 Flag V_UNMT( ),. 4 7. format(1m) man. md.tab, md.tab (112 ). md.tab /etc/lvm/md.tab. : Solstice DiskSuite, ID(DID)., /dev/did/dsk/d3 DID, /dev/md/dsk/d3. 1.. 2. md.tab DID. (cntxdy) md.tab DID. # scdidadm -L, DID, ( ), DID ( ). 1 phys-schost-1:/dev/rdsk/c0t0d0 /dev/did/rdsk/d1 2 phys-schost-1:/dev/rdsk/c1t1d0 /dev/did/rdsk/d2 2 phys-schost-2:/dev/rdsk/c1t1d0 /dev/did/rdsk/d2 3 phys-schost-1:/dev/rdsk/c1t2d0 /dev/did/rdsk/d3 3 phys-schost-2:/dev/rdsk/c1t2d0 /dev/did/rdsk/d3... ( ) 112 Sun Cluster 3.0 2000 11, Revision A