This entry is part 6 of 10 in the series 11gR2 RAC on x86 64bit Solaris 10

This section describes various steps in configuring the Operating System.
Once you have booted your server, and logged in as root, perform the following tasks

Configure network interfaces and hosts file

  • Configuring /etc/hosts file
  • Make the following entries in your /etc/hosts file. Since I am not using DNS, I am using a SCAN entry in the /etc/hosts file. This is not the recommended method but is used her for demonstration purposes.

    ?Download hosts
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    
    # cat /etc/hosts
    #
    # Internet host table
    #
    ::1     localhost
    127.0.0.1       localhost
     
    #Public IP
    192.168.1.200   rac-node-01     rac-node-01.localdomain             loghost
    192.168.1.201   rac-node-02     rac-node-02.localdomain             loghost
     
    #Private IP
    10.10.10.1      rac-node-01-priv.localdomain
    10.10.10.2      rac-node-02-priv.localdomain
     
    #Virtual IP
    192.168.1.202   rac-node-01-vip.localdomain
    192.168.1.203   rac-node-02-vip.localdomain
     
    #SCAN IP
    192.168.1.221   rac-node.localdomain    rac-scan
  • Configure the network interfaces
  • By default, since the network interface was added later (after OS installation) to the Virtual machine, the only interfaces “plumbed” or attached to the system will be the loopback adapter and the first network card added before OS installation.

    ?Download text
    1
    2
    3
    4
    5
    6
    7
    
    # ifconfig -a
    lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
            inet 127.0.0.1 netmask ff000000
    e1000g0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
            inet 192.168.1.200 netmask ffffff00 broadcast 192.168.1.255
            ether 0:c:29:76:93:7e
    #

    Plumb the private network interface as follows

    ?Download text
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    
    # ifconfig -a plumb
    ifconfig: SIOCSLIFNAME for ip: e1000g0: already exists
    # ifconfig -a
    lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
            inet 127.0.0.1 netmask ff000000
    e1000g0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
            inet 192.168.1.200 netmask ffffff00 broadcast 192.168.1.255
            ether 0:c:29:76:93:7e
    e1000g1: flags=1000842<BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 5
            inet 0.0.0.0 netmask 0
            ether 0:c:29:76:93:88
    #

    You can see that no address is alloted to the e1000g1 network interface. We will now assign an IP address for the private interface (refer to the /etc/hosts for the relevant entry) as follows.

    ?Download text
    1
    2
    3
    4
    5
    
    # ifconfig e1000g1 10.10.10.1 netmask 255.0.0.0 up
    # ifconfig e1000g1
    e1000g1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 5
            inet 10.10.10.1 netmask ff000000 broadcast 10.255.255.255
            ether 0:c:29:76:93:88

    We will not configure an IP for (VIP). This will be configured during CRS setup by Oracle Installer, the VIP address will bind to the public interface.

  • Make changes permanent
  • These changes will not be permanent (across reboots). Perform the following tasks to make the changes persistent

    ?Download text
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    
     
    # ls -ltr /etc/hostname*
    -rw-r--r--   1 root     root          12 Feb 24 22:01 /etc/hostname.e1000g0
    #
     
    # cat /etc/hostname.e1000g1
    rac-node-01-priv
    #reboot
    .....
     
    # ifconfig -a
    lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
            inet 127.0.0.1 netmask ff000000
    e1000g0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
            inet 192.168.1.200 netmask ffffff00 broadcast 192.168.1.255
            ether 0:c:29:76:93:7e
    e1000g1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3
            inet 10.10.10.1 netmask ff000000 broadcast 10.255.255.255
            ether 0:c:29:76:93:88
    #

Configure Disks for ASM, Binary and Staging area

  • Create disks for CRS Home, Oracle Home and Stage are for Installation disk

    To do this, you need to first format the 8GB disks and create file systems for those disks and mount them.

    Run the format command to get the list of disks and choose the disk.
    We are choosing disk 10, 11, 12 since these are the disks which are 8GB disks for CRS, Oracle Home and Staging area. The size can be arrived at using the prtvtoc /dev/rdsk/c1t??d0s0 command

    Follow all the steps carefully as described below

    ?Download text
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    
    	# format
    	Searching for disks...done
     
     
    	AVAILABLE DISK SELECTIONS:
    	       0. c1t0d0 <DEFAULT cyl 1563 alt 2 hd 255 sec 63>
    	          /pci@0,0/pci15ad,1976@10/sd@0,0
    	       1. c1t1d0 <DEFAULT cyl 1021 alt 2 hd 64 sec 32>
    	          /pci@0,0/pci15ad,1976@10/sd@1,0
    	       2. c1t2d0 <DEFAULT cyl 1021 alt 2 hd 64 sec 32>
    	          /pci@0,0/pci15ad,1976@10/sd@2,0
    	       3. c1t3d0 <DEFAULT cyl 1021 alt 2 hd 64 sec 32>
    	          /pci@0,0/pci15ad,1976@10/sd@3,0
    	       4. c1t4d0 <DEFAULT cyl 1021 alt 2 hd 128 sec 32>
    	          /pci@0,0/pci15ad,1976@10/sd@4,0
    	       5. c1t5d0 <DEFAULT cyl 1021 alt 2 hd 128 sec 32>
    	          /pci@0,0/pci15ad,1976@10/sd@5,0
    	       6. c1t6d0 <DEFAULT cyl 1021 alt 2 hd 128 sec 32>
    	          /pci@0,0/pci15ad,1976@10/sd@6,0
    	       7. c1t8d0 <DEFAULT cyl 1021 alt 2 hd 128 sec 32>
    	          /pci@0,0/pci15ad,1976@10/sd@8,0
    	       8. c1t9d0 <DEFAULT cyl 1021 alt 2 hd 128 sec 32>
    	          /pci@0,0/pci15ad,1976@10/sd@9,0
    	       9. c1t10d0 <DEFAULT cyl 1021 alt 2 hd 128 sec 32>
    	          /pci@0,0/pci15ad,1976@10/sd@a,0
    	      10. c1t11d0 <DEFAULT cyl 4093 alt 2 hd 128 sec 32>
    	          /pci@0,0/pci15ad,1976@10/sd@b,0
    	      11. c1t12d0 <DEFAULT cyl 4093 alt 2 hd 128 sec 32>
    	          /pci@0,0/pci15ad,1976@10/sd@c,0
    	      12. c1t13d0 <DEFAULT cyl 4093 alt 2 hd 128 sec 32>
    	          /pci@0,0/pci15ad,1976@10/sd@d,0
    	Specify disk (enter its number):  10
    selecting c1t11d0
    [disk formatted]
     
     
    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 vendor, product and revision
            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 (original):
    Total disk cylinders available: 4092 + 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 - 4091        7.99GB    (4092/0/0) 16760832
      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> 0
    Part      Tag    Flag     Cylinders        Size            Blocks
      0 unassigned    wm       0               0         (0/0/0)           0
     
    Enter partition id tag[unassigned]:
    Enter partition permission flags[wm]:
    Enter new starting cyl[0]: 1
    Enter partition size[0b, 0c, 1e, 0.00mb, 0.00gb]: 4090c
    partition> label
    Ready to label disk, continue? yes
     
    partition> quit
     
     
    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 vendor, product and revision
            volname    - set 8-character volume name
            !<cmd>     - execute <cmd>, then return
            quit
    format>
    format> quit

    disk number 10 c1t11d0s0 has been formatted and partitioned. We can now create the filesystem on this partition and mount this disk on /crs directory as follows.

    ?Download text
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    
    	# newfs -v /dev/rdsk/c1t11d0s0
    	newfs: construct a new file system /dev/rdsk/c1t11d0s0: (y/n)? y
    	pfexec mkfs -F ufs /dev/rdsk/c1t11d0s0 16752640 32 -1 8192 1024 224 1 120 8192 t                     0 -1 8 128 n
    	Warning: 2048 sector(s) in last cylinder unallocated
    	/dev/rdsk/c1t11d0s0:    16752640 sectors in 2727 cylinders of 48 tracks, 128 sec                    tors
    	        8180.0MB in 171 cyl groups (16 c/g, 48.00MB/g, 5824 i/g)
    	super-block backups (for fsck -F ufs -o b=#) at:
    	 32, 98464, 196896, 295328, 393760, 492192, 590624, 689056, 787488, 885920,
    	 15831200, 15929632, 16028064, 16126496, 16224928, 16323360, 16421792,
    	 16520224, 16618656, 16717088

    Mount the partition

    ?Download text
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    
    	# mkdir /crs
    	# mount /dev/dsk/c1t11d0s0 /crs
    	# df -kh
    	Filesystem             size   used  avail capacity  Mounted on
    	/dev/dsk/c1t0d0s0      6.4G   3.5G   2.9G    55%    /
    	/devices                 0K     0K     0K     0%    /devices
    	ctfs                     0K     0K     0K     0%    /system/contract
    	proc                     0K     0K     0K     0%    /proc
    	mnttab                   0K     0K     0K     0%    /etc/mnttab
    	swap                   1.8G   968K   1.8G     1%    /etc/svc/volatile
    	objfs                    0K     0K     0K     0%    /system/object
    	sharefs                  0K     0K     0K     0%    /etc/dfs/sharetab
    	/usr/lib/libc/libc_hwcap1.so.1
    	                       6.4G   3.5G   2.9G    55%    /lib/libc.so.1
    	fd                       0K     0K     0K     0%    /dev/fd
    	swap                   1.8G    40K   1.8G     1%    /tmp
    	swap                   1.8G    28K   1.8G     1%    /var/run
    	/dev/dsk/c1t0d0s7      4.9G   5.0M   4.8G     1%    /export/home
    	/dev/dsk/c1t11d0s0     7.9G   8.0M   7.8G     1%    /crs
    	#

    Repeat these steps for disk 11 and 12 (and mount them as /oracle and /stage)
    Make this mount automatically at boot by adding entry to /etc/vfstab (/stage is required only on node 1)

    ?Download text
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    
    # vi /etc/vfstab
    "/etc/vfstab" 14 lines, 523 characters
    #device         device          mount           FS      fsck    mount   mount
    #to mount       to fsck         point           type    pass    at boot options
    #
    fd      -       /dev/fd fd      -       no      -
    /proc   -       /proc   proc    -       no      -
    /dev/dsk/c1t0d0s1       -       -       swap    -       no      -
    /dev/dsk/c1t0d0s0       /dev/rdsk/c1t0d0s0      /       ufs     1       no      -
    /dev/dsk/c1t0d0s7       /dev/rdsk/c1t0d0s7      /export/home    ufs     2       yes     -
    /devices        -       /devices        devfs   -       no      -
    sharefs -       /etc/dfs/sharetab       sharefs -       no      -
    ctfs    -       /system/contract        ctfs    -       no      -
    objfs   -       /system/object  objfs   -       no      -
    swap    -       /tmp    tmpfs   -       yes     -
    /dev/dsk/c1t11d0s0      /dev/rdsk/c1t11d0s0     /crs    ufs     2       yes     -
    /dev/dsk/c1t12d0s0      /dev/rdsk/c1t12d0s0     /oracle ufs     2       yes     -
    /dev/dsk/c1t13d0s0      /dev/rdsk/c1t13d0s0     /stage  ufs     2       yes     -

Create base disks for ACFS

All the disks (of 1GB and 2GB size) have to be formatted and initialized as follows so that they are detected during installation of CRS

From the format command, we have got the list of the disks as follows

?Download text
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# format
Searching for disks...done
 
 
AVAILABLE DISK SELECTIONS:
       0. c1t0d0 <DEFAULT cyl 1563 alt 2 hd 255 sec 63>
          /pci@0,0/pci15ad,1976@10/sd@0,0
       1. c1t1d0 <DEFAULT cyl 1021 alt 2 hd 64 sec 32>
          /pci@0,0/pci15ad,1976@10/sd@1,0
       2. c1t2d0 <DEFAULT cyl 1021 alt 2 hd 64 sec 32>
          /pci@0,0/pci15ad,1976@10/sd@2,0
       3. c1t3d0 <DEFAULT cyl 1021 alt 2 hd 64 sec 32>
          /pci@0,0/pci15ad,1976@10/sd@3,0
       4. c1t4d0 <DEFAULT cyl 1021 alt 2 hd 128 sec 32>
          /pci@0,0/pci15ad,1976@10/sd@4,0
       5. c1t5d0 <DEFAULT cyl 1021 alt 2 hd 128 sec 32>
          /pci@0,0/pci15ad,1976@10/sd@5,0
       6. c1t6d0 <DEFAULT cyl 1021 alt 2 hd 128 sec 32>
          /pci@0,0/pci15ad,1976@10/sd@6,0
       7. c1t8d0 <DEFAULT cyl 1021 alt 2 hd 128 sec 32>
          /pci@0,0/pci15ad,1976@10/sd@8,0
       8. c1t9d0 <DEFAULT cyl 1021 alt 2 hd 128 sec 32>
          /pci@0,0/pci15ad,1976@10/sd@9,0
       9. c1t10d0 <DEFAULT cyl 1021 alt 2 hd 128 sec 32>
          /pci@0,0/pci15ad,1976@10/sd@a,0
      10. c1t11d0 <DEFAULT cyl 4092 alt 2 hd 128 sec 32>
          /pci@0,0/pci15ad,1976@10/sd@b,0
      11. c1t12d0 <DEFAULT cyl 4092 alt 2 hd 128 sec 32>
          /pci@0,0/pci15ad,1976@10/sd@c,0
      12. c1t13d0 <DEFAULT cyl 4092 alt 2 hd 128 sec 32>
          /pci@0,0/pci15ad,1976@10/sd@d,0
Specify disk (enter its number):

We need to format disks 2 through 9 and make raw partition in those as follows

  • Find the base device
  • ?Download text
    1
    2
    3
    
     
    # ls -ltr /dev/rdsk/c1t1d0s0
    lrwxrwxrwx   1 root     root          50 Feb 28 10:22 /dev/rdsk/c1t1d0s0 -> ../../devices/pci@0,0/pci15ad,1976@10/sd@1,0:a,raw
  • Format using the base device
  • ?Download text
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    
    # format /devices/pci@0,0/pci15ad,1976@10/sd@1,0:a,raw
    selecting /devices/pci@0,0/pci15ad,1976@10/sd@1,0:a,raw
    [disk formatted]
     
     
    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 vendor, product and revision
            volname    - set 8-character volume name
            !<cmd>     - execute <cmd>, then return
            quit
    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> 0
    Part      Tag    Flag     Cylinders        Size            Blocks
      0 unassigned    wm       0               0         (0/0/0)          0
     
    Enter partition id tag[unassigned]:
    Enter partition permission flags[wm]:
    Enter new starting cyl[0]: 1
    Enter partition size[0b, 0c, 1e, 0.00mb, 0.00gb]: 1020c
    partition> label
    Ready to label disk, continue? yes
     
    partition> p
    Current partition table (unnamed):
    Total disk cylinders available: 1021 + 2 (reserved cylinders)
     
    Part      Tag    Flag     Cylinders        Size            Blocks
      0 unassigned    wm       1 - 1020     1020.00MB    (1020/0/0) 2088960
      1 unassigned    wm       0               0         (0/0/0)          0
      2     backup    wu       0 - 1020     1021.00MB    (1021/0/0) 2091008
      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        1.00MB    (1/0/0)       2048
      9 unassigned    wm       0               0         (0/0/0)          0
     
    partition>

    Repeat the same for all the devices till disk 9. Max cylinders can be found from prtvtoc /dev/rdsk/ command

    ?Download text
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    
    		c1t1d0
    		../../devices/pci@0,0/pci15ad,1976@10/sd@1,0:a,raw
    		c1t2d0
    		../../devices/pci@0,0/pci15ad,1976@10/sd@2,0:a,raw
    		c1t3d0
    		../../devices/pci@0,0/pci15ad,1976@10/sd@3,0:a,raw
    		c1t4d0
    		../../devices/pci@0,0/pci15ad,1976@10/sd@4,0:a,raw
    		c1t5d0
    		../../devices/pci@0,0/pci15ad,1976@10/sd@5,0:a,raw
    		c1t6d0
    		../../devices/pci@0,0/pci15ad,1976@10/sd@6,0:a,raw
    		c1t8d0
    		../../devices/pci@0,0/pci15ad,1976@10/sd@8,0:a,raw
    		c1t9d0
    		../../devices/pci@0,0/pci15ad,1976@10/sd@9,0:a,raw
    ?Download text
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    
    # prtvtoc /dev/rdsk/c1t8d0s0
    * /dev/rdsk/c1t8d0s0 partition map
    *
    * Dimensions:
    *     512 bytes/sector
    *      32 sectors/track
    *     128 tracks/cylinder
    *    4096 sectors/cylinder
    *    1023 cylinders
    *    1021 accessible cylinders
    *
    * Flags:
    *   1: unmountable
    *  10: read-only
    *
    * Unallocated space:
    *       First     Sector    Last
    *       Sector     Count    Sector
    *        4096   4177920   4182015
    *
    *                          First     Sector    Last
    * Partition  Tag  Flags    Sector     Count    Sector  Mount Directory
           2      5    01          0   4182016   4182015
           8      1    01          0      4096      4095
    #

Configure users, groups and permissions

Though with 11gr2, best practices suggest that you create separate DBA and OPERATOR groups for ASM too, we are going to create just one user for both oracle and crs, with dba as the primary group

?Download text
1
2
3
# groupadd -g 1000 oinstall
# groupadd -g 1001 dba
# useradd -u 100 -g oinstall -G dba -d /export/home/oracle -s /usr/bin/ksh oracle

Now that the user and groups are added, we can change the ownership of the following partitions as follows

Filesystems

?Download text
1
2
3
# chown oracle:dba /crs
# chown oracle:dba /oracle
# chown oracle:dba /stage

Raw disks

?Download text
1
2
3
4
5
6
7
# chown oracle:dba /dev/rdsk/c1t1d0s0
# chown oracle:dba /dev/rdsk/c1t2d0s0
# chown oracle:dba /dev/rdsk/c1t3d0s0
# chown oracle:dba /dev/rdsk/c1t4d0s0
# chown oracle:dba /dev/rdsk/c1t5d0s0
# chown oracle:dba /dev/rdsk/c1t6d0s0
# chown oracle:dba /dev/rdsk/c1t7d0s0

Configure kernel parameters and swap space

  • Create a project for Solaris
  • ?Download text
    1
    2
    3
    4
    5
    6
    7
    8
    
    #  projadd -U oracle user.oracle
    #  projmod -s -K "project.max-sem-ids=(priv,100,deny)" user.oracle
    #  projmod -s -K "process.max-sem-nsems=(priv,256,deny)" user.oracle
    #  projmod -s -K "project.max-shm-memory=(priv,2254857830,deny)" user.oracle
    #  projmod -s -K "project.max-shm-ids=(priv,100,deny)" user.oracle
    #  projmod -s -K "process.max-file-descriptor=(priv,65536,deny)" user.oracle
    #  echo "set max_nprocs = 30000"  >> /etc/system
    #  echo "set maxuprc = 16384"     >> /etc/system
  • Add neccessary parameters to the project and configuration files
  • ?Download text
    1
    2
    
    #  echo "set max_nprocs = 30000"  >> /etc/system
    #  echo "set maxuprc = 16384"     >> /etc/system
  • Configure swap space
  • At this stage, you can shutdown the host and from vmware console add a new disk of 3 GB , to be used for swap.

    Once added, you can configure the swap space using this disk as follows

    Create a slice on the disk

    ?Download text
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    
    	# format
    	Searching for disks...done
     
     
    	AVAILABLE DISK SELECTIONS:
    	       0. c1t0d0 <DEFAULT cyl 1563 alt 2 hd 255 sec 63>
    	          /pci@0,0/pci15ad,1976@10/sd@0,0
    	       1. c1t1d0 <DEFAULT cyl 1021 alt 2 hd 64 sec 32>
    	          /pci@0,0/pci15ad,1976@10/sd@1,0
    	       2. c1t2d0 <DEFAULT cyl 1021 alt 2 hd 64 sec 32>
    	          /pci@0,0/pci15ad,1976@10/sd@2,0
    	       3. c1t3d0 <DEFAULT cyl 1021 alt 2 hd 64 sec 32>
    	          /pci@0,0/pci15ad,1976@10/sd@3,0
    	       4. c1t4d0 <DEFAULT cyl 1021 alt 2 hd 128 sec 32>
    	          /pci@0,0/pci15ad,1976@10/sd@4,0
    	       5. c1t5d0 <DEFAULT cyl 1021 alt 2 hd 128 sec 32>
    	          /pci@0,0/pci15ad,1976@10/sd@5,0
    	       6. c1t6d0 <DEFAULT cyl 1021 alt 2 hd 128 sec 32>
    	          /pci@0,0/pci15ad,1976@10/sd@6,0
    	       7. c1t8d0 <DEFAULT cyl 1021 alt 2 hd 128 sec 32>
    	          /pci@0,0/pci15ad,1976@10/sd@8,0
    	       8. c1t9d0 <DEFAULT cyl 1021 alt 2 hd 128 sec 32>
    	          /pci@0,0/pci15ad,1976@10/sd@9,0
    	       9. c1t10d0 <DEFAULT cyl 1021 alt 2 hd 128 sec 32>
    	          /pci@0,0/pci15ad,1976@10/sd@a,0
    	      10. c1t11d0 <DEFAULT cyl 4092 alt 2 hd 128 sec 32>
    	          /pci@0,0/pci15ad,1976@10/sd@b,0
    	      11. c1t12d0 <DEFAULT cyl 4092 alt 2 hd 128 sec 32>
    	          /pci@0,0/pci15ad,1976@10/sd@c,0
    	      12. c1t13d0 <DEFAULT cyl 4092 alt 2 hd 128 sec 32>
    	          /pci@0,0/pci15ad,1976@10/sd@d,0
    	      13. c1t14d0 <DEFAULT cyl 1533 alt 2 hd 128 sec 32>
    	          /pci@0,0/pci15ad,1976@10/sd@e,0
    	Specify disk (enter its number): 13
    	selecting c1t14d0
    	[disk formatted]
     
     
    	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 vendor, product and revision
    	        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> 0
    	Part      Tag    Flag     Cylinders        Size            Blocks
    	  0 unassigned    wm       0               0         (0/0/0)          0
     
    	Enter partition id tag[unassigned]:
    	Enter partition permission flags[wm]:
    	Enter new starting cyl[0]: 1
    	Enter partition size[0b, 0c, 1e, 0.00mb, 0.00gb]: 1530c
    	partition> label
    	Ready to label disk, continue? yes
     
    	partition> quit
     
     
    	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 vendor, product and revision
    	        volname    - set 8-character volume name
    	        !<cmd>     - execute <cmd>, then return
    	        quit
    	format> quit

    Add the swap manually and to the /etc/vfstab file

    ?Download text
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    
    	 swap -a /dev/dsk/c1t14d0s0
     
     
    	# swap -l
    	swapfile             dev  swaplo blocks   free
    	/dev/dsk/c1t0d0s1   32,1       8 1060280 1060280
    	/dev/dsk/c1t14d0s0  32,896      8 6266872 6266872
     
    	Add this to /etc/vfstab
    	/dev/dsk/c1t14d0s0 - - swap - no -

Popularity: 20% [?]

3 Responses to “Part 6 – Oracle 11gR2 RAC Solaris 10 – Configure OS”

  1. Oracle Masters » Blog Archive » Part 1 – Oracle 11gR2 RAC Solaris 10 – Introduction Says:
    Oracle Masters » Blog Archive » Part 1 – Oracle 11gR2 RAC Solaris 10 – Introduction

    [...] Setup & ConfigurationPart 5 – Oracle 11gR2 RAC Solaris 10 – Install Solaris 10 OSPart 6 – Oracle 11gR2 RAC Solaris 10 – Configure OSPart 7 – Oracle 11gR2 RAC Solaris 10 – Clone and configure second nodePart 8 – [...]

  2. d singh Says:
    d singh

    tanks for this. this is helping a lot.

  3. Farooq Says:
    Farooq

    Two thumbs up for detailed instructions

Leave a Reply

Internet Advertisingundelete