1, view models: Sun's small machine model is written on the panel, such as Netra T 1125,
There is also like UTRA 5, UTRA 10, etc.
2, check the number of CPUs (incorrectly, incorrect, because the TOP command in Sun can not fully see all CPUs, and the HP usage is different) #top CPU States: 99.3% IDLE, 0.1% User, 0.6% Kernel 0.0% iowait, 0.0% SWAP means only one CPU
Correct method: DMESG | GREP CPU
You can see the correct CPU number.
3. View memory #dmesg | grep mem mem = 2097152k (0x80000000) Avail Mem = 2087739392
4, view the disk number #vxdisk list DEVICE TYPE DISK GROUP STATUS c0t0d0s2 sliced - - error c0t0d0s7 simple c0t0d0s7 rootdg online c1t0d0s2 sliced - - online c1t1d0s2 sliced smpdg2 smpdg online c1t2d0s2 sliced smpdbdg1 smpdbdg online c2t0d0s2 sliced - - online c2t1d0s2 sliced smpdg1 smpdg online C2T2D0S2 SLICED SMPDBDG2 SMPDBDG ONLINE
5, how to view file system #df -k filesystem KBYTES Used Avail Capacity Mounted ON / DEV / DSK / C0T0D0S0 4032142 1050675 2941146 27% / / proc 0 0 0 0% / proc FD 0 0 0% / DEV / FD / DEV / DSK / C0T0D0S6 7304977 29 7231899 1% / Home / DEV / DSK / C0T0D0S5 4032142 402929 3588892 11% / OPT SWAP 3418392 32 3418360 1% / TMP / VOL / DEV / DSK / C0T6D0 / Informix 201730 201730 0 100% / CDROM / Informix / DEV / VX / DSK / SMPDG / SMPDG-STAT 1055 9 941 1% / SMPWORK / DEV / VX / DSK / SMPDG / LV_SMP 17336570 128079 17035126 1% / SMS
6. View the location of the volume group, logical volume #CD / DEV / VX / DSK /, such as SMPDG, etc., you can see the logical volume below the volume group, then you can see the logical volume below for a volume group. .
7, how to create a volume group, logical volume, file system A, create a SMPDG logical volume group (assuming now is a SMCPDG logical volume group to create a SMCPDG logic group) vxdiskSetup -i C1T1D0 (format physical disk) VxDiskSetup I C2T1D0 VXDG INIT SMPDG SMPDG1 = C2T1D0 (add physical disk to logical volume group SMPDG) vxdg -g smpdg adddisk SMPDG2 = C1T1D0
Then come to create a logical volume, file system vxassist -g smpdg -u fsgen make lv_smp 17200m Layout = NOLOG SMPDG1 VXASSIST -G SMPDG MIRROR LV_SMP LAYOUT = NOSTRIPE SMPDG2 Newfs -c -f / DEV / VX / RDSK / SMPDG / LV_SMP
Assuming now, a machine is attached to / SMS MKDIR / SMS Chown SMP: SMP / SMS vxvol -g SMPDG Startall Mount / DEV / VX / DSK / SMPDG / LV_SMP / SMS UMOUNT / SMS VXVOL -G SMPDG Stopall vxdg Deport Smpdg Then hang it on the second machine to / SMS MKDIR / SMS Chown SMP: SMP / SMS vxdg import smpdg vxvol -g smpdg startALL newfs -c -f / dev / vx / rdsk / smpdg / lv_smp mount / dev / vx / DSK / SMPDG / LV_SMP / SMS UMOUNT / SMS
Remarks: The above is to create a shared file system is often used due to SMPDG to be assigned to an application, so you need to create a file system mounted when the logic is running: vxassist -g smpdg -u fsgen make smpdg-stat 2m Layout = NOLOG SMPDG1 VXassist -g Smpdg Mirror SMPDG-Stat Layout = Nostripe SMPDG2 Newfs / DEV / VX / RDSK / SMPDG / SMPDG-Stat
B, create a logical group smpdbdg create a volume group: vxdisksetup -i c1t2d0 vxdisksetup -i c2t2d0 vxdg init smpdbdg smpdbdg1 = c1t2d0 vxdg -g smpdbdg adddisk smpdbdg2 = c2t2d0 vxassist -g smpdbdg -U fsgen make smpdbdg-stat 2m layout = nolog smpdbdg1 vxassist -g SMPDBDG MIRROR SMPDBDG-Stat Layout = NOSTRIPE SMPDBDG2 Newfs / DEV / VX / RDSK / SMPDBDG / SMPDBDG-Stat
Create a logical volume: vxassist -g smpdbdg -U gen make lv_rootdbs 128m layout = nolog smpdbdg1 vxassist -g smpdbdg mirror lv_rootdbs layout = nostripe smpdbdg2 vxassist -g smpdbdg -U gen make lv_logdbs 300m layout = nolog smpdbdg1 vxassist -g smpdbdg mirror lv_logdbs layout = nostripe smpdbdg2 vxassist -g smpdbdg -U gen make lv_phydbs 100m layout = nolog smpdbdg1 vxassist -g smpdbdg mirror lv_phydbs layout = nostripe smpdbdg2 vxassist -g smpdbdg -U gen make lv_tempdbs 1000m layout = nolog smpdbdg1 vxassist -g smpdbdg mirror lv_tempdbs layout = nostripe smpdbdg2 vxassist -g smpdbdg -U gen make lv_svcchunk1 2000m layout = nolog smpdbdg1 vxassist -g smpdbdg mirror lv_svcchunk1 layout = nostripe smpdbdg2 vxassist -g smpdbdg -U gen make lv_svcchunk2 2000m layout = nolog smpdbdg1 vxassist -g smpdbdg mirror lv_svcchunk2 layout = nostripe smpdbdg2 vxassist - G Smpdbdg -u Gen Make LV_SVCCHUNK3 2000M Layout = NOLOG SMPDBDG1 VXassist -g SMPDBDG Mirror LV_SVCHUNK3 LAYOUT = NOSTRIPE SMPDBDG2 VXASSIST -G SMPDBDG -U GEN MAKE LV_RECCHUNK1 2000M layout = nolog smpdbdg1 vxassist -g smpdbdg mirror lv_recchunk1 layout = nostripe smpdbdg2 vxassist -g smpdbdg -U gen make lv_recchunk2 2000m layout = nolog smpdbdg1 vxassist -g smpdbdg mirror lv_recchunk2 layout = nostripe smpdbdg2 vxassist -g smpdbdg -U gen make lv_recchunk3 2000m layout = nolog smpdbdg1 vxassist -g smpdbdg mirror lv_recchunk3 layout = nostripe smpdbdg2 vxassist -g smpdbdg -U gen make lv_recchunk4 2000m layout = nolog smpdbdg1 vxassist -g smpdbdg mirror lv_recchunk4 layout = nostripe smpdbdg2 vxassist -g smpdbdg -U gen make lv_recchunk5 1700m layout = nolog smpdbdg1 vxassist -g smpdbdg mirror lv_recchunk5 layout = Nostripe SMPDG2
C, attribute VxEdit -g smpdg -v set user = SMP group = SMP LV_SMP VXEDIT -G SMPDBDG -V SET USER = INFORMIX GROUP = informix mode = 660 lv_logdbs vxedit -g smpdbdg -v set user = informix group = informix mode = 660 lv_phydbs vxedit -g smpdbdg -v set user = informix group = informix mode = 660 lv_tempdbs vxedit -g smpdbdg -v set user = informix group = informix mode = 660 lv_svcchunk1 vxedit -g smpdbdg -v set user = informix group = informix mode = 660 lv_svcchunk2 vxedit -g smpdbdg -v set user = informix group = informix mode = 660 lv_svcchunk3 vxedit -g smpdbdg -v set user = informix group = informix mode = 660 lv_recchunk1 vxedit -g smpdbdg -v set user = informix group = informix mode = 660 lv_recchunk2 vxedit -g smpdbdg -v set user = informix group = informix mode = 660 lv_recchunk3 vxedit -g smpdbdg -v set user = Informix Group = Informix Mode = 660 lv_recchunk4 vxedit -g smpdbdg -v set user = informix group = informix mode = 660 lv_recchunk5 Note: When the logical volume is given to the logical volume, it is equal to Chown, Chmod.
8. How to delete the volume group is actually deactivated and poured out, and then reformat the physics disk. vxvol -g smpdbdg stopall vxdg deport smpdbdg vxdisksetup -i c1t0d0 vxdisksetup -i c2t1d0 ......
After doing this, there will be no / dev / vx / smpdbdg directory.
9. How to establish a shared volume group to establish a volume group on the first machine, assuming that the volume group SMPDG has been built, and now establish a shared volume group SMPDG on the second machine, first in one machine, SMPDG Deactivate, and pour out SMPDG: SMCP01> vxvol -g smpdg stopall smcp01> vxdg Deport Smpdg
Amunicate on the second machine, import SMPDG: SMCP02> vxdg import smpdg smcp02> vxvol -g SMPDG Startall
After switching, the following three commands will be used to switch success: vxdg list // Information vxdisk list // for checking physical disks Vxprint -VT // Try to view all volume information
10, how to view the size of the disk
Method 1: #Format then select the code of the disk, enter the next level menu, then select Inquiry, get the size information of the disk, such as: vendor: Fujitsu Product: Man3184m sun18g revision: 1502 Note: Format is a powerful Disk diagnostic tool.
Method 2: #CD / OPT / SUNWEXPLO / BIN / Run Explorer to get a disk packet, is a directory, find a Disks directory, find a diskinfo file, use the following command to see each disk the size of:
0: rmt / 0ln HP C1537A L706 62 ######## 1: c0t0d0 FUJITSU MAJ3182M SUN18G 0804 0041P90050 ## 2: c1t0d0 SEAGATE ST318203LSUN18G 034A 0025H54125 ## 3: c1t1d0 SEAGATE ST318203LSUN18G 034A 0026H70087 ## 4: c1t2d0 FUJITSU MAJ3182M SUN18G 0804 0046P66422 ## 5: c2t0d0 SEAGATE ST318203LSUN18G 034A 0026G30220 ## 6: c2t1d0 SEAGATE ST318203LSUN18G 034A 0026H59041 ## 7: c2t2d0 FUJITSU MAJ3182M SUN18G 0804 0051P91980 ## 8: ses0 SYMBIOS D1000 2 O8 # SAF- 9: ses1 SYMBIOS D1000 2 O8 # SAF-
11. View Informix version #SU - Informix Informix> Onstat - This can see the INFORMIX version.
12. Tools of collecting information #CD / OPT / SunWexPlo / BIN / Explorer #Explorer After running, get a folder and the compressed package of the folder * .gz. We can enter the result folder and have a variety of information that needs to be viewed in this folder.
13. Script files #CD / OPT / SunWCluster / HA / SMPWORK have a folder for dual-machine applications in HA, such as SMPWork, and a configuration file for a variety of dual-machine applications under this folder.
14, the maintenance command set of the double machine
First start the cluster: # SCADMIN STARTCLUSTER SMCP01 SMCP on the node SMCP01, then start this node on the node SMCP02: # SCADMIN STARTNode Starting Observing the CLUSTER status command is: # Hastat // This command can display cluster, nodes, logic, and Data service's status, as well as some historical operations.
# get_node_status // This command can display information such as the node number and public network card of the node.
From the graphical local terminal (assuming its IP address is IP), log in to the SMCP host as SMCP user (note that the logic address of SMCP)% Telnet SMCPWork sets environment variables on the SMCP host to DISPLAY% STENV Display IP: 0.0 Performing% XHOST Manual Start OAM% OAM & Login with OAM Operator
Performed on two nodes SMCP01 machines and SMCP02: # SCADMIN stopNode This command will stop the current node to run in the Cluster and execute the command separately on both nodes.
For example, running SMCPWork to node SMCP02 can be entered: #scadmin Switch SMCP SMCP02 SMCPWORK, for example, running QueryWork to node SMCP02 can be entered: #HASWITCH SMCP02 QueryWorkhareg Command The Data Service Register and activate -R will be specified by the following switch parameters Data Service Register to Cluster -u to unregister the specified Data Service from the Cluster to activate the specified Data Service so that the status is ON -Y to activate all Data Service in the Cluster to activate its status. The specified Data Service enables its status to activate all the Data Service in the Cluster so that the status of all Data Service can be viewed for any parameter without any parameters. After registering to the Cluster, The status of ON or OFF will be available in the ON state, and the DATA Service in the OFF state is a normal external service. If the Data Service is canceled, you must re-register to run in Cluster. Of course, the premise of using the Hareg command is that the Cluster has started and running normally.
Log in to the SMCP host as a root user (assuming its IP address to IP0): It is assumed to be set in the local terminal in the local terminal to set up on the SMCP host. Environmental Variable Display # Display = IP1: 0.0 # Export Display # vxva
15, activation / destination / export / import volume group SMCP01> vxvol -g smpdg stopall smcp01> vxdg deport smpdg
SMCP02> VXDG import SMPDG SMCP02> VXVOL -G SMPDG Startall
16. SUN Netra T 1125 Detailed annotations for dual-machine configuration
A. Configuration of Network Resources Sun Netra T 1125 has 4 NIC: HME0, HME1, HME2 and HME3. HME0 and HME1 are the SUN server and the owner network card of the public network. It only needs an IP address; HME2 and HME3 are used as the heartbeat detection between the dual-machine, but also need to configure an IP address. In addition, TELLIN SMP external use is a floating IP address, with data IP in the same network segment, which is managed by Sun's Dual Software Sun Cluster.
1) How to modify the IP address and host name
The files involved in the IP address include: / etc / hosts (Change the ip address) / etc / netmasks (if subnetting) / etc / default (to Specify The New Gateway for this subnet)
Change the files involved in the host name: / etc / hosts (change to the new hostname) / etc / hostname.
Just give the HME0 configuration address is enough. This relationship is created when the following command is created in the next duplex configuration. #scconf smcp -l smcpwork -n smcp01, smcp02 -g smcpdg -i HME0, HME0, SMCPWORK -M
3) Configuring NAFO (NETWORK Adapter Fail over) / OPT / SUNWPNM / BIN / PNMSET
Check nafo0 ... <20 second hme0 is active remote address = 129.9.168.101 Test HME1 WAIT ... NAFO0 Test Passed this information indicates that the NAFO configuration is high when the NAFO configuration is high, sometimes it is necessary to successfully .
B, the general process of configuring the dual-machine configuration is, first start the dual-machine system, configure Cluster and bag on a node, check the configuration, and then make the appropriate operation. Note: Check the status of SMCPDG, QueryDG before using the double-machine. Perform the following steps: (1) Execute them separately in the two nodes: # vxdg list Should only see rootdg and cannot see SMCPDG and Querydg. (2) If the SMCPDG or QueryDG is stepped on step by step, it is necessary to check if the IDS is running (ONLINE). If you are running, terminate the IDS before running, then discard the control of Disk Group using vxdg deport. ==================== The general process of the two-machine configuration is to start the dual-machine system first, configure Cluster and packs on a node, after checking, make the configuration take effect , Then you can do it accordingly. Note: Check the status of SMCPDG, QueryDG before using the double-machine. Perform the following steps: Execute the two nodes separately: # vxdg list Should only see rootdg, you can't see SMCPDG and Querydg. If you see SMCPDG or Querydg on a step, you need to check if the IDS is running (Online). If you are running, terminate the IDS before running, then discard the control of Disk Group using vxdg deport.
Configure the two-machine system to run the #scadmin StartCluster SMCP01 SMCP. After the 2-machine software, run #scadmin startnode at No. 2 machine, add it as a node to the two-machine configuration logic to the two-machine system logic, which corresponds to the application, is a dual-machine system management application. Ways, each logic is only available outside the dual-machine system. ================================================= (2 Configure Cluster to run on a host #SCCONF IIN -L SCPWORK-N SMCP02, SMCP01 -G scPDG -I HME0, HME0, SCPWORK -M Note: SCCONF
Remarks: The floating IP address of the host name of the logic here must be configured in the / etc / hosts file.
To establish a management file system on each machine # Scconf Iin -f SCPWORK SCPDG Note: This command format is: Scconf
Establish management file system # scconf Iin -f querywork querydg
Register Double Machine HEREG -U Querywork Query.Register
HEREG -U SMCPWORK SMCP.REGISTER
C, configure the application
The / etc / opt / sunwcluster / conf directory can view the two files of the CCD.DataTBase and SmCP.cdb to view the information of the two-machine basic configuration and the Cluster, do not handle these files to keep the system to maintain them. Where ccd.Database has a special daemon maintains the same consistency on two nodes.
/ OPT / SUNWCluster / HA directory contains both SMCP and Query two subdirectories. The SMCP directory stores the Data Service-related profile and execution script of the SMCP section, where the smcp.config file records the basic configuration of the SMCPWork, and the smcp.register is used to register SMCPWork, and the other files are started, stop and monitor the run script of SMCPWork. The query directory stores the Data Service related configuration file and execution script in the Query section, where the query.config file logs QueryWork's basic configuration, Query.Register is used to register Querywork, and other files are required to run scripts. When you join the two Data Service to the Cluster, you must be registered via the Hareg command, which is already completed by executing smcp.register and query.regs during installation.
Remarks: The file ccd.database in the conf directory can cause the dual-machine to switch properly if the two machines are inconsistent.
D, two-machine configuration test
(1) Running on the host #scadmin startcluster smcp01 smcp (2) Waiting for the host dual-machine software to run on the standby machine #SCADMIN STARTNODE (3) running DF-K and ifconfig -a test in two hosts Run Hastat to view the HA status, you can see the HME0 bundled SMCP, Query application floating IP: HME0 .... 129.9.168.9.168.120 HME0: 2 .... 129.9.168.140 ( 4) Use the Haswitch command to switch the experiment, switch the logical host SMCPWORK by the physical host SMCP01 to the physical host SMCP02. # HASWITCH SMCP02 SMCPWORK To see if it is successful, then the following method: View disk resources with DF -K on the host SMCP02. If the display information has the following, the switching success: / dev / vx / dsk / smcpdg / smcpdg-stat to view the IP address on the host SMCP02, if the logical host SMCPWork's IP address 129.9.169.120 is tied The handover is successful in the HME0 NIC (the main network card of the public network). (5) the / opt / SUNWcluster / bin / xps_check cover db_check in the catalogs get_node_status testing dual-state smcp02> get_node_status sc: included in running cluster node id: 1 membership: 0 1 interconnect0: selected interconnect1: up vm_type: VxVM VM: UP DB: UP17, SUN Netra T 1125 How to set the Terminal Concentrator when installing.
=====================================
In Tellin SMP's Sun Netra T1125 standard configuration, the host is a Sun server without a display card and a display, so use the terminal hub to display the two hosts on the console signal to the monitoring station. Since the host is not controlled before Solaris is not started, the terminal hub must be set first. If the Terminal Concentrator (TC) is already set, you can reset it. The configuration steps of the terminal hub are given below. Once the terminal hub is configured, there is no need to configure each time. The following configuration procedure assumes that the IP address of the TC is 129.9.168.23, and the subnet mask is 255.255.255.0.
(1) Use a Sun workstation to connect the port 1 of the serial port A and the terminal hub with the RS232 J45 cable. Plus: A: DV = / demote file: a: DV = / dev / term / A: BR 9600: EL = ^ c ^ s ^ ^ u ^ D: IE =% $ E = ^ D: EL = ^ C ^ s ^ Q ^ U ^ D: IE =% $ E = ^ D: (2) Type: TIP A (3) Correctly connecting the terminal hub and public network (4) Correctly connect the terminal hub (5) ) Press the Test key of the terminal hub, the TEST indicator lights and enters the test mode. Note: Press the TEST button immediately after the power light is on, and cannot wait until it enters the normal running state, which is equivalent to "DEL" in the computer to enter the setting status. After completing the test, the correct indicator status is shown in Table 2-2. Table 2-2 Terminal Hub Indicator Lamp Name Power Unit Net Attn Load Active Colors Green Green Green Amber Green Green Status ON ON OFF OFF Slow (6) The monitor :: prompt will appear on the Sun workstation, use the addr command Configure TC's IP and subnet screen Monitor :: Addr
(Turn off the terminal hub power and reboot, if the PC function is used to Telnet, the correctness of the above configuration is verified. At this point, the port of the terminal hub is configured: Telnet 129.9.168.23
18. The information to view the physical disk Use the command to see the physical disk is assigned to which logical volume group.
#vxdisk list DEVICE TYPE DISK GROUP STATUS c0t0d0s2 sliced - - error c0t0d0s7 simple c0t0d0s7 rootdg online c0t8d0s2 sliced - - error c1t1d0s2 sliced c1t1d0 smcpdg online c1t2d0s2 sliced - - online c1t3d0s2 sliced c1t3d0 smcpdg online c1t4d0s2 sliced - - online c1t6d0s2 sliced - - online c2t1d0s2 sliced c2t1d0 smcpdg online c2t2d0s2 sliced - - online c2t3d0s2 sliced c2t3d0 smcpdg online c2t4d0s2 sliced - - online c2t6d0s2 sliced - - online19, SUN minicomputer kernel parameter modifications / etc / system set shmsys: shminfo_shmmax = 268435456 set semsys: seminfo_semmni = 4096 set semsys: seminfo_semmns = 4096 set semsys: seminfo_semmnu = 4096 set semsys: seminfo_semume = 64 set semsys: seminfo_semmsl = 100 set shmsys: shminfo_shmmin = 100 set shmsys: shminfo_shmmni = 100 set shmsys: shminfo_shmseg = 100
20. The log cluster log of the Sun dual-machine runs in VAR / ADM / MESSAAGE, and if the Cluster is faulty, we can view the file to help position the problem. Also, pay attention to the message on the console screen. Cluster runtime error and alarm information, including the results of timing monitoring, usually displayed on the console in real time.
21, how to use optical drive
A. How to use the optical drive to start or install the STOP and A key simultaneously on the host, ie: STOP A, which enters the OK command environment;
Enter boot cdrom in OK, you can enter the CD.
B, how to read the content of the optical drive
Put the CD into the optical drive, which will automatically hook the DF -K look at which directory on which the CD is hooked, and then enters the directory to access the content in the disc.
22. How to use the terminal hub to make a console function to the Sun dual-machine Console to modify the / / default / login file to modify the console = / dev / console, otherwise you can only log in to the host through TC, other ways can not log in.
23. Close the host's command #SHUTDOWN -
24. How to use the remote tape drive to back up files to assume two machines SMCP01 and SMCP02, only with a tape drive on the second machine, then the first machine uses the second machine's tape drive:
Write: #TAR CVF - / TMP / YQX | RSH SMCP02 DD OF = / DEV / RMT / 0M If the execution is unsuccessful, set: # OBS = 20b (20 blocks)
Read: #RSH SMCP02 DD if = / dev / rmt / 0m | TAR TVF - If the execution is unsuccessful, set: # bs = 20b
25. How to check the current network, how much is the network mask 1) View subnet #NetStat -in View hme0 Corresponds: Name MTU Net / Dest Address IPKTS Ierrs Opkts Oerrs Collis Queue HME0 1500 172.0.8.0 172.0.8.68 3430395 0 1134355 0 0 0 You know the subnet is 172.0.8.02) View the mask to view / etc / netmasks can
3) View address #ifconfig -a or view /etc/hostname.hme0
Note: The physical name of the network card on some machines is LE0.
26, how do I remove a logic from the Cluster? 1) First to register the application on the logic machine to register the Hareg -n SCPWork; 2) Remove the application from the logic machine to the SCCONF TELLINCLUSTER (Cluster Name) -S -R SCPSERV (App Name) SCPWORK (logical name ) 3) Finally, the logic machine is removed from the Cluster. 1) Use SCINSTALL to select Menge / Logic Hosts / Remove to delete Method 2) Directly use command scconf Iin -l scpnow -r
Note: You can check all the information about Sun dual-machine configuration with the scinstall command.
27. Summary of the logical volume group of Sun: Volumn Manager is referred to as VM, and the user attribute and read and write permission of disk volume groups such as smcpdg / querydg are permanently modified in this environment. Cove can not use Chown and CHMOD To modify, you can only modify it with VxEdit.
Added: Initialize Physical Disk: vxdisksetup -i c1t2d0 vxdisksetup -i c2t2d0 create a volume group: vxdg init smpdbdg smpdbdg1 = c1t2d0 vxdg -g smpdbdg adddisk smpdbdg2 = c2t2d0 create volume groups mounted file systems: vxassist -g smpdbdg -U fsgen make smpdbdg -stat 2m layout = nolog smpdbdg1 vxassist -g smpdbdg mirror smpdbdg-stat layout = nostripe smpdbdg2 newfs / dev / vx / rdsk / smpdbdg / smpdbdg-stat create a logical volume: vxassist -g smpdbdg -U gen make lv_rootdbs 128m layout = nolog smpdbdg1 vxassist -g smpdbdg mirror lv_rootdbs layout = nostripe smpdbdg2 modify a volume set of permissions: vxedit -g smpdg -v set user = smp group = smp lv_smp vxedit -g smpdbdg -v set user = informix group = informix mode = 660 lv_rootdbs See volume group activation Situation: vxdg list Import volume group: vxdg import smcpdg activation volume group: vxvol -g smcpdg Start All deactivation volume group: vxvol -g smcpdg stop all
28, the configuration of the automatic startup double machine when the Sun is configured
In order to ensure that the SMCP dual-machine can automatically pull the cluster after the two-machine restart is restarted.
SUN model: Copy the self-start script S99StartCluster of the dual-machine system to the system /etc/rc3.d directory. This script contains the following, which typically requires modifications according to the site: LocalNodename, Remotenodename, ClusterName IF [$ localnodename = "smcp01"]; then Remotenodename = "smcp02" # localid = 0 # remoteid = 1 else Remotenodename = "SMCP01" # localid = 1 # remoteid = 0 Fi ClusterName = SMCP-Cluster29 Measures: 1) Tap Del 2) Ctrl <--- BKSP (To the left delete key)
30. See what physical disks below the logical volume group
root @ smp2 # vxdg list smpdbdg Group: smpdbdg dgid: 1035450560.1072.smp2 import-id: 0.1071 flags: copies: nconfig = default nlog = default config: seqno = 0.1027 permlen = 3447 free = 3445 templen = 2 loglen = 522 config disk c1t0d0s2 Copy 1 Len = 3447 State = Clean Online Log Disk C1T0D0S2 Copy 1 LEN = 522
30. Maintenance command #scinstall commands in the SUN dual-machine command can make a series of maintenance of Sun duplers, such as Assuming a Default Cluster Name of SMP
Checking on installed package state ..................
============ Main menu ===================
1) Install / Upgrade - Install or Upgrade Server Packages or Install Client Packages 2) Remove -.. Remove Server or Client Packages 3) Change - Modify cluster or data service configuration 4) Verify - Verify installed package sets 5) List -. List Installed package set.
Help - The Help Screen for This Menu.
Please Choose One of the Menu Items: [7]:
31. How to delete logical volume vxedit -g scpdbdg -fr RM logical volume name
32. Modify /etc/opt/sunwcluster/conf/hanfs/vfstab.scpWork file system
33. About the Creating User in the Sun Small Machine Sometimes after the user is created, we will delete it, the correct operation should be the UserDel username to delete. However, sometimes it may be deleted from / etc / passwd from the engineer. This time, if you come to add the same name to the same name with Useradd, the system will prompt to add failed. At this time, you must pay attention to the user of the / etc / shadow file. The configuration row should also be deleted, remove the user in the / etc / shadow file and the user in the / etc / shadow file and the / etc / passwd file, so it can be added with useradd. 34. How to implement a user belongs to multiple user groups?
35, View SWAP Space #Swap -s EG: Total: 76552k Bytes Allocated 17184K Reserved = 93736k USED, 296608k Available