root@vzwc1:~# isainfo -n
amd64
root@vzwc1:~# uname
SunOS
root@vzwc1:~# cat /etc/release
Oracle Solaris 11.1 X86
Copyright (c) 1983, 2012, Oracle and/or its affiliates. All rights reserved.
Assembled 19 September 2012
root@vzwc1:~# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
net0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 192.168.1.61 netmask ffffff00 broadcast 192.168.1.255
ether 8:0:27:3c:8d:72
net1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3
inet 172.168.1.61 netmask ffffff00 broadcast 172.168.1.255
ether 8:0:27:16:13:40
lo0: flags=2002000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv6,VIRTUAL> mtu 8252 index 1
inet6 ::1/128
net0: flags=20002000840<RUNNING,MULTICAST,IPv6> mtu 1500 index 2
inet6 ::/0
ether 8:0:27:3c:8d:72
net1: flags=20002000840<RUNNING,MULTICAST,IPv6> mtu 1500 index 3
inet6 ::/0
ether 8:0:27:16:13:40
root@vzwc1:~# hostname
vzwc1
root@vzwc1:~# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c7t0d0 <ATA-VBOX HARDDISK-1.0-40.00GB>
/pci@0,0/pci8086,2829@d/disk@0,0
1. c7t2d0 <ATA-VBOX HARDDISK-1.0 cyl 1534 alt 2 hd 128 sec 32>
/pci@0,0/pci8086,2829@d/disk@2,0
2. c7t3d0 <ATA-VBOX HARDDISK-1.0 cyl 1534 alt 2 hd 128 sec 32>
/pci@0,0/pci8086,2829@d/disk@3,0
3. c7t4d0 <ATA-VBOX HARDDISK-1.0 cyl 1534 alt 2 hd 128 sec 32>
/pci@0,0/pci8086,2829@d/disk@4,0
4. c7t5d0 <ATA-VBOX HARDDISK-1.0 cyl 1534 alt 2 hd 128 sec 32>
/pci@0,0/pci8086,2829@d/disk@5,0
5. c7t6d0 <ATA-VBOX HARDDISK-1.0 cyl 1534 alt 2 hd 128 sec 32>
/pci@0,0/pci8086,2829@d/disk@6,0
6. c7t7d0 <ATA-VBOX HARDDISK-1.0 cyl 2608 alt 2 hd 255 sec 63>
/pci@0,0/pci8086,2829@d/disk@7,0
7. c7t8d0 <ATA-VBOX HARDDISK-1.0 cyl 1303 alt 2 hd 255 sec 63>
/pci@0,0/pci8086,2829@d/disk@8,0
Specify disk (enter its number): 1
selecting c7t2d0
[disk formatted]
No Solaris fdisk partition found.
FORMAT MENU:
disk - select a disk
type - select (define) a disk type
partition - select (define) a partition table
current - describe the current disk
format - format and analyze the disk
fdisk - run the fdisk program
repair - repair a defective sector
label - write label to the disk
analyze - surface analysis
defect - defect list management
backup - search for backup labels
verify - read and display labels
save - save new disk/partition definitions
inquiry - show disk ID
volname - set 8-character volume name
!<cmd> - execute <cmd>, then return
quit
format> p
WARNING - This disk may be in use by an application that has
modified the fdisk table. Ensure that this disk is
not currently in use before proceeding to use fdisk.
format> fdisk
No fdisk table exists. The default partition for the disk is:
a 100% "SOLARIS System" partition
Type "y" to accept the default partition, otherwise type "n" to edit the
partition table.
y
format> p
PARTITION MENU:
0 - change `0' partition
1 - change `1' partition
2 - change `2' partition
3 - change `3' partition
4 - change `4' partition
5 - change `5' partition
6 - change `6' partition
7 - change `7' partition
select - select a predefined table
modify - modify a predefined partition table
name - name the current table
print - display the current table
label - write partition map and label to the disk
!<cmd> - execute <cmd>, then return
quit
partition> p
Current partition table (default):
Total disk cylinders available: 1533 + 2 (reserved cylinders)
Part Tag Flag Cylinders Size Blocks
0 unassigned wm 0 0 (0/0/0) 0
1 unassigned wm 0 0 (0/0/0) 0
2 backup wu 0 - 1532 2.99GB (1533/0/0) 6279168
3 unassigned wm 0 0 (0/0/0) 0
4 unassigned wm 0 0 (0/0/0) 0
5 unassigned wm 0 0 (0/0/0) 0
6 unassigned wm 0 0 (0/0/0) 0
7 unassigned wm 0 0 (0/0/0) 0
8 boot wu 0 - 0 2.00MB (1/0/0) 4096
9 unassigned wm 0 0 (0/0/0) 0
partition> 6
Part Tag Flag Cylinders Size Blocks
6 unassigned wm 0 0 (0/0/0) 0
Enter partition id tag[unassigned]: usr
Enter partition permission flags[wm]:
Enter new starting cyl[1]: 3
Enter partition size[0b, 0c, 3e, 0.00mb, 0.00gb]: 2g
partition> label
Ready to label disk, continue? yes
partition> p
Current partition table (unnamed):
Total disk cylinders available: 1533 + 2 (reserved cylinders)
Part Tag Flag Cylinders Size Blocks
0 unassigned wm 0 0 (0/0/0) 0
1 unassigned wm 0 0 (0/0/0) 0
2 backup wu 0 - 1532 2.99GB (1533/0/0) 6279168
3 unassigned wm 0 0 (0/0/0) 0
4 unassigned wm 0 0 (0/0/0) 0
5 unassigned wm 0 0 (0/0/0) 0
6 usr wm 3 - 1026 2.00GB (1024/0/0) 4194304
7 unassigned wm 0 0 (0/0/0) 0
8 boot wu 0 - 0 2.00MB (1/0/0) 4096
9 unassigned wm 0 0 (0/0/0) 0
partition> q
FORMAT MENU:
disk - select a disk
type - select (define) a disk type
partition - select (define) a partition table
current - describe the current disk
format - format and analyze the disk
fdisk - run the fdisk program
repair - repair a defective sector
label - write label to the disk
analyze - surface analysis
defect - defect list management
backup - search for backup labels
verify - read and display labels
save - save new disk/partition definitions
inquiry - show disk ID
volname - set 8-character volume name
!<cmd> - execute <cmd>, then return
quit
format> p
root@vzwc1:~# chown -R grid:asmadmin /dev/rdsk/c7t2d0s6
root@vzwc1:~# chown -R grid:asmadmin /dev/rdsk/c7t3d0s6
root@vzwc1:~# chown -R grid:asmadmin /dev/rdsk/c7t4d0s6
root@vzwc1:~# chown -R grid:asmadmin /dev/rdsk/c7t5d0s6
root@vzwc1:~# chown -R grid:asmadmin /dev/rdsk/c7t6d0s6
root@vzwc1:~# chown -R grid:asmadmin /dev/rdsk/c7t7d0s6
root@vzwc1:~# chown -R grid:asmadmin /dev/rdsk/c7t8d0s6
root@vzwc1:~#
root@vzwc1:~# chmod 600 /dev/rdsk/c7t2d0s6
root@vzwc1:~# chmod 600 /dev/rdsk/c7t3d0s6
root@vzwc1:~# chmod 600 /dev/rdsk/c7t4d0s6
root@vzwc1:~# chmod 600 /dev/rdsk/c7t5d0s6
root@vzwc1:~# chmod 600 /dev/rdsk/c7t6d0s6
root@vzwc1:~# chmod 600 /dev/rdsk/c7t7d0s6
root@vzwc1:~# chmod 600 /dev/rdsk/c7t8d0s6
grid@vzwc1:~/grid$ ./runcluvfy.sh stage -pre crsinst -n vzwc1,vzwc2 -fixup -verbose
Performing pre-checks for cluster services setup
Checking node reachability...
Check: Node reachability from node "vzwc1"
Destination Node Reachable?
------------------------------------ ------------------------
vzwc1 yes
vzwc2 yes
Result: Node reachability check passed from node "vzwc1"
Checking user equivalence...
Check: User equivalence for user "grid"
Node Name Status
------------------------------------ ------------------------
vzwc2 passed
vzwc1 passed
Result: User equivalence check passed for user "grid"
Checking node connectivity...
Checking hosts config file...
Node Name Status
------------------------------------ ------------------------
vzwc2 passed
vzwc1 passed
Verification of the hosts config file successful
Interface information for node "vzwc2"
Name IP Address Subnet Gateway Def. Gateway HW Address MTU
------ --------------- --------------- --------------- --------------- ----------------- ------
net0 192.168.1.62 192.168.1.0 192.168.1.62 192.168.1.1 08:00:27:79:E4:F3 1500
net1 172.168.1.62 172.168.1.0 172.168.1.62 192.168.1.1 08:00:27:B1:D8:FC 1500
Interface information for node "vzwc1"
Name IP Address Subnet Gateway Def. Gateway HW Address MTU
------ --------------- --------------- --------------- --------------- ----------------- ------
net0 192.168.1.61 192.168.1.0 192.168.1.61 192.168.1.1 08:00:27:3C:8D:72 1500
net1 172.168.1.61 172.168.1.0 172.168.1.61 192.168.1.1 08:00:27:16:13:40 1500
Check: Node connectivity of subnet "192.168.1.0"
Source Destination Connected?
------------------------------ ------------------------------ ----------------
vzwc2[192.168.1.62] vzwc1[192.168.1.61] yes
Result: Node connectivity passed for subnet "192.168.1.0" with node(s) vzwc2,vzwc1
Check: TCP connectivity of subnet "192.168.1.0"
Source Destination Connected?
------------------------------ ------------------------------ ----------------
vzwc1:192.168.1.61 vzwc2:192.168.1.62 passed
Result: TCP connectivity check passed for subnet "192.168.1.0"
Check: Node connectivity of subnet "172.168.1.0"
Source Destination Connected?
------------------------------ ------------------------------ ----------------
vzwc2[172.168.1.62] vzwc1[172.168.1.61] yes
Result: Node connectivity passed for subnet "172.168.1.0" with node(s) vzwc2,vzwc1
Check: TCP connectivity of subnet "172.168.1.0"
Source Destination Connected?
------------------------------ ------------------------------ ----------------
vzwc1:172.168.1.61 vzwc2:172.168.1.62 passed
Result: TCP connectivity check passed for subnet "172.168.1.0"
Interfaces found on subnet "192.168.1.0" that are likely candidates for VIP are:
vzwc2 net0:192.168.1.62
vzwc1 net0:192.168.1.61
Interfaces found on subnet "172.168.1.0" that are likely candidates for VIP are:
vzwc2 net1:172.168.1.62
vzwc1 net1:172.168.1.61
WARNING:
Could not find a suitable set of interfaces for the private interconnect
Checking subnet mask consistency...
Subnet mask consistency check passed for subnet "192.168.1.0".
Subnet mask consistency check passed for subnet "172.168.1.0".
Subnet mask consistency check passed.
Result: Node connectivity check passed
Checking multicast communication...
Checking subnet "192.168.1.0" for multicast communication with multicast group "230.0.1.0"...
Check of subnet "192.168.1.0" for multicast communication with multicast group "230.0.1.0" passed.
Checking subnet "172.168.1.0" for multicast communication with multicast group "230.0.1.0"...
Check of subnet "172.168.1.0" for multicast communication with multicast group "230.0.1.0" passed.
Check of multicast communication passed.
Check: Total memory
Node Name Available Required Status
------------ ------------------------ ------------------------ ----------
vzwc2 4GB (4194304.0KB) 2GB (2097152.0KB) passed
vzwc1 4GB (4194304.0KB) 2GB (2097152.0KB) passed
Result: Total memory check passed
Check: Available memory
Node Name Available Required Status
------------ ------------------------ ------------------------ ----------
vzwc2 2.927GB (3069192.0KB) 50MB (51200.0KB) passed
vzwc1 2.4648GB (2584568.0KB) 50MB (51200.0KB) passed
Result: Available memory check passed
Check: Swap space
Node Name Available Required Status
------------ ------------------------ ------------------------ ----------
vzwc2 4GB (4194300.0KB) 4GB (4194304.0KB) failed
vzwc1 4GB (4194300.0KB) 4GB (4194304.0KB) failed
Result: Swap space check failed
Check: Free disk space for "vzwc2:/tmp"
Path Node Name Mount point Available Required Status
---------------- ------------ ------------ ------------ ------------ ------------
/tmp vzwc2 /tmp 6.453GB 1GB passed
Result: Free disk space check passed for "vzwc2:/tmp"
Check: Free disk space for "vzwc1:/tmp"
Path Node Name Mount point Available Required Status
---------------- ------------ ------------ ------------ ------------ ------------
/tmp vzwc1 /tmp 5.9748GB 1GB passed
Result: Free disk space check passed for "vzwc1:/tmp"
Check: User existence for "grid"
Node Name Status Comment
------------ ------------------------ ------------------------
vzwc2 passed exists(1100)
vzwc1 passed exists(1100)
Checking for multiple users with UID value 1100
Result: Check for multiple users with UID value 1100 passed
Result: User existence check passed for "grid"
Check: Group existence for "oinstall"
Node Name Status Comment
------------ ------------------------ ------------------------
vzwc2 passed exists
vzwc1 passed exists
Result: Group existence check passed for "oinstall"
Check: Group existence for "dba"
Node Name Status Comment
------------ ------------------------ ------------------------
vzwc2 passed exists
vzwc1 passed exists
Result: Group existence check passed for "dba"
Check: Membership of user "grid" in group "oinstall" [as Primary]
Node Name User Exists Group Exists User in Group Primary Status
---------------- ------------ ------------ ------------ ------------ ------------
vzwc2 yes yes yes yes passed
vzwc1 yes yes yes yes passed
Result: Membership check for user "grid" in group "oinstall" [as Primary] passed
Check: Membership of user "grid" in group "dba"
Node Name User Exists Group Exists User in Group Status
---------------- ------------ ------------ ------------ ----------------
vzwc2 yes yes yes passed
vzwc1 yes yes yes passed
Result: Membership check for user "grid" in group "dba" passed
Check: Run level
Node Name run level Required Status
------------ ------------------------ ------------------------ ----------
vzwc2 3 3 passed
vzwc1 3 3 passed
Result: Run level check passed
Check: Hard limits for "maximum open file descriptors"
Node Name Type Available Required Status
---------------- ------------ ------------ ------------ ----------------
vzwc2 hard 65536 65536 passed
vzwc1 hard 65536 65536 passed
Result: Hard limits check passed for "maximum open file descriptors"
Check: Soft limits for "maximum open file descriptors"
Node Name Type Available Required Status
---------------- ------------ ------------ ------------ ----------------
vzwc2 soft 65536 1024 passed
vzwc1 soft 65536 1024 passed
Result: Soft limits check passed for "maximum open file descriptors"
Check: Hard limits for "maximum user processes"
Node Name Type Available Required Status
---------------- ------------ ------------ ------------ ----------------
vzwc2 hard 29995 16384 passed
vzwc1 hard 29995 16384 passed
Result: Hard limits check passed for "maximum user processes"
Check: Soft limits for "maximum user processes"
Node Name Type Available Required Status
---------------- ------------ ------------ ------------ ----------------
vzwc2 soft 29995 2047 passed
vzwc1 soft 29995 2047 passed
Result: Soft limits check passed for "maximum user processes"
Check: System architecture
Node Name Available Required Status
------------ ------------------------ ------------------------ ----------
vzwc2 64-bit amd64 kernel modules 64-bit amd64 kernel modules passed
vzwc1 64-bit amd64 kernel modules 64-bit amd64 kernel modules passed
Result: System architecture check passed
Check: Kernel version
Node Name Available Required Status
------------ ------------------------ ------------------------ ----------
vzwc2 5.11 5.11 passed
vzwc1 5.11 5.11 passed
Result: Kernel version check passed
Check: Kernel parameter for "project.max-shm-memory"
Node Name Current Required Status
------------ ------------------------ ------------------------ ----------
vzwc2 5368709120 2147483648 passed
vzwc1 5368709120 2147483648 passed
Result: Kernel parameter check passed for "project.max-shm-memory"
Checking for multiple users with UID value 0
Result: Check for multiple users with UID value 0 passed
Check: Current group ID
Result: Current group ID check passed
Starting check for consistency of primary group of root user
Node Name Status
------------------------------------ ------------------------
vzwc2 passed
vzwc1 passed
Check for consistency of root user's primary group passed
Starting Clock synchronization checks using Network Time Protocol(NTP)...
NTP Configuration file check started...
Network Time Protocol(NTP) configuration file not found on any of the nodes. Oracle Cluster Time Synchronization Service(CTSS) can be used instead of NTP for time synchronization on the cluster nodes
No NTP Daemons or Services were found to be running
Result: Clock synchronization check using Network Time Protocol(NTP) passed
Checking Core file name pattern consistency...
Core file name pattern consistency check passed.
Checking to make sure user "grid" is not in "root" group
Node Name Status Comment
------------ ------------------------ ------------------------
vzwc2 passed does not exist
vzwc1 passed does not exist
Result: User "grid" is not part of "root" group. Check passed
Check default user file creation mask
Node Name Available Required Comment
------------ ------------------------ ------------------------ ----------
vzwc2 0022 0022 passed
vzwc1 0022 0022 passed
Result: Default user file creation mask check passed
Checking consistency of file "/etc/resolv.conf" across nodes
Checking the file "/etc/resolv.conf" to make sure only one of domain and search entries is defined
File "/etc/resolv.conf" does not have both domain and search entries defined
Checking if domain entry in file "/etc/resolv.conf" is consistent across the nodes...
domain entry in file "/etc/resolv.conf" is consistent across nodes
Checking if search entry in file "/etc/resolv.conf" is consistent across the nodes...
search entry in file "/etc/resolv.conf" is consistent across nodes
Checking DNS response time for an unreachable node
Node Name Status
------------------------------------ ------------------------
vzwc2 passed
vzwc1 passed
The DNS response time for an unreachable node is within acceptable limit on all nodes
File "/etc/resolv.conf" is consistent across nodes
Check: Time zone consistency
Result: Time zone consistency check passed
Pre-check for cluster services setup was unsuccessful on all the nodes.
注意: Solaris11 上安装11gR2 RAC GI的时候 ,在最后执行root.sh这个脚本需要进入GRID_HOME,然后执行./root.sh,否则会报错
pwd: cannot access parent directories [Permission denied]
Run root.sh from a directory that has read/execute access to the grid owner 'grid'
/u01/app/11.2.0/grid/perl/bin/perl -I/u01/app/11.2.0/grid/perl/lib -I/u01/app/11.2.0/grid/crs/install /u01/app/11.2.0/grid/crs/install/rootcrs.pl execution failed
详见
11.2 Grid Infrastructure root.sh Failed with "error retrieving current directory" (Doc ID 1114203.1)