Sunday 29 January 2012

Solaris 10 Installation Steps


Installation Assumptions
This guide makes several assumptions, including:
  • The system is an x86 system
  • The system is compatible with the Solaris 10 5/09 OS and is listed on the Solaris Hardware Compatibility List (HCL)
  • The system has a graphical interface
While this guide is most appropriate for a stand-alone system that doesn't connect to a network or connects to a network with automatic configuration, it can be used to install a system with a fixed IP address if the network configuration information is available.
If problems arise during the installation process that are not discussed in this guide, refer to the Solaris 10 OS Installation Guide: Basic Installations for more information. This guide is part of the Solaris 10 Release and Installation Collection located on the Sun Web site at http://docs.sun.com/app/docs/prod/solaris.10.







Check the Hardware Compatibility List
The first step before the installation process is to verify that the system to be installed is on the hardware compatibility list located at: http://www.sun.com/bigadmin/hcl/.
Note: The term "x86" refers to the family of 32-bit x86-compatible architecture and 64-bit AMD64 and Intel 64.







Basic System Requirements
Verify the computer system meets the following requirements.
NOTE: The requirements below are recommended minimums.
While it is possible to install the Solaris OS on a system with less disk capacity and CPU speed, it is not recommended.
  • Minimum 1024 MB of physical RAM
  • Minimum 10 GB of available hard drive space
  • Minimum 400 MHz CPU speed
  • DVD or CD-ROM drive
  • Attached monitor or integrated display
For more information on Solaris System requirements, visit http://www.sun.com/solaris/specs.jsp. For a catalog of the more than 5000 Solaris-ready applications and solutions, please visit http://sun.com/bigadmin/apps.








Obtaining Media for the x86 Platform
The Solaris 10 5/09 OS release is available via download from the Sun Web site.
  1. Go to http://sun.com/solaris/ and click on the Solaris logo if you want to obtain information about the Solaris 10 5/09 OS; if not, proceed to step 2.
  2. Go to http://sun.com/solaris/get.jsp to begin the download process.
  3. Choose Solaris 10 on the list of available downloads.
  4. Click on the appropriate media format (Solaris for x86 systems).
  5. Register at the Sun Download Center, if you have not already done so.
  6. Answer the short questionnaire.
  7. Read and accept the license agreement.
  8. Download and burn the CDs or DVDs.
See the Solaris 10 Self Help FAQs located at http://www.sun.com/solaris/self_help.jsp for additional guidance, instruction, and tips on downloading the Solaris 10 OS or burning installation CD and DVD media.







Power Up and Media Boot
If you don't want to substitute your current operating system and instead you want to run Solaris as a guest OS or Virtual Machine, please download and install xVM VirtualBox for free from http://www.virtualbox.org.
The following procedure can be used to install Solaris 10 5/09 on a new or used system.
  1. Power up the system and insert the first installation CD or DVD into the drive tray.
  2. Restart the system.
  3. If the system appears to be booting from the hard disk and the Solaris OS installer does not start, power cycle the system (power cycle is shutting down the power on the system and then restarting the system). As the system begins to boot, enter setup mode. Typically, the system displays a message indicating which key to press (such as "Enter F2 to enter setup", although the key to press varies by manufacturer; the ESC and F12 keys are other common options.) If you miss the message, simply restart the system a couple of times until you are able to view it.
  4. Once in setup mode, specify the boot device for the system. This example specifies the CD or DVD drive as the boot device. To do so, find the list that describes boot order and re-order as needed to ensure the CD or DVD drive appears first on the list. The system should then boot from the CD or DVD drive to start the install process.


http://www.sun.com/software/solaris/howtoguides/images/installSolaris_01.gif








Installing the Solaris 10 5/09 Operating System
Identifying the Console
The next step in the installation process is to select the type of console for the hardware on which the Solaris OS is being installed. Use the arrow keys to select the version of the Solaris OS that matches the hardware configuration. For most x86 systems, use the default selection.
Press the ENTER key and boot the version of operating system selected. The highlighted entry boots in 60 seconds even if a key is not pressed.
Note: Prompts do not appear during the boot process. If a selection is not made, the screen times out and the system automatically boots the Solaris OS.
http://www.sun.com/software/solaris/howtoguides/images/installSolaris_02.gif

Selecting the Type of Installation
After the ENTER key is pressed or the counter times out, a series of dots will run on the screen and you will see the basic device configuration message along with a menu with six installation options.
http://www.sun.com/software/solaris/howtoguides/images/installSolaris_03.gif

Before this new counter times out, select option 3 to install Solaris 10 5/09 from the beginning using Solaris ZFS as the root file system. You can get more information on ZFS from http://www.sun.com/software/solaris/zfs.jsp.


http://www.sun.com/software/solaris/howtoguides/images/installSolaris_04.gif

Note: If you don't want to use ZFS as your root filesystem, you can use option 1. Please refer to the previous version of this "How To Guide."
Once option 3 is selected, you'll see the following screen with some information regarding your hardware. Keep in mind that the hardware information displayed (such as "nge0") may differ from the exact data displayed below and that each step can take up to a couple of minutes to complete:


http://www.sun.com/software/solaris/howtoguides/images/installSolaris_05.gif

After a few seconds, you are presented with the keyboard layout configuration in case you don't have a standard keyboard or if you have a localized keyboard. If you have a US keyboard, press the [F2] key; if not, select the right language using the arrow keys to move up or down, make your selection with the [space bar] and then press [F2] to continue.


http://www.sun.com/software/solaris/howtoguides/images/installSolaris_06.gif

Immediately, you'll see the following message. Press ENTER to continue.


http://www.sun.com/software/solaris/howtoguides/images/installSolaris_07.gif

 
System Configuration
A series of screens guides you through the Solaris OS configuration process.
Note: The graphical screens require a mouse to be rolled over the window in order to answer questions posed throughout the configuration process.
  1. After you press ENTER, the system configuration process will start through a series of windows. Please roll the mouse over the window, click the mouse, then press ENTER to continue.


http://www.sun.com/software/solaris/howtoguides/images/installSolaris_08.gif

  1. Select a language for the system.


http://www.sun.com/software/solaris/howtoguides/images/installSolaris_09.gif

  1. A new window, the Solaris Install Console, appears in the bottom-right corner. This window is used to display pertinent installation messages. Another window appears in which the Solaris OS installation questions should be answered. Press [F2] to continue.


http://www.sun.com/software/solaris/howtoguides/images/installSolaris_10.gif

  1. The system identification process begins. Press [F2] to continue:.


http://www.sun.com/software/solaris/howtoguides/images/installSolaris_11.gif

  1. The Network Connectivity window appears. Use the default answer, (unless you don't have a network) and press [F2] to continue.


http://www.sun.com/software/solaris/howtoguides/images/installSolaris_12.gif

  1. The DHCP selection appears. For most cases, just select DHCP for your network configuration using the arrow keys and the space bar to make the selection and then press [F2] to continue.


http://www.sun.com/software/solaris/howtoguides/images/installSolaris_13.gif

  1. The IPv6 window appears. Just use the default and press [F2] to continue.


http://www.sun.com/software/solaris/howtoguides/images/installSolaris_14.gif

  1. The Confirmation window appears. If you agree with your selections, press [F2] to continue; if not, press [F4] and the process will go back to step 5.


http://www.sun.com/software/solaris/howtoguides/images/installSolaris_15.gif

  1. The Security Policy window appears. Use the default for No Kerberos configuration, then press [F2] to continue.


http://www.sun.com/software/solaris/howtoguides/images/installSolaris_16.gif

  1. For confirmation of your policy selection, press [F2] and continue to the next screen.


http://www.sun.com/software/solaris/howtoguides/images/installSolaris_17.gif

  1. The Name Service window appears. Select NONE using the arrow keys and pressing the space bar to select, then press [F2] to continue.


http://www.sun.com/software/solaris/howtoguides/images/installSolaris_18.gif

  1. For confirmation of your selection, press [F2] and continue to the next screen.


http://www.sun.com/software/solaris/howtoguides/images/installSolaris_19.gif

  1. The NFSv4 domain name window appears. Let the system use the default option and press [F2] to continue.


http://www.sun.com/software/solaris/howtoguides/images/installSolaris_20.gif

  1. For confirmation of your selection, press [F2] to continue to the next screen.


http://www.sun.com/software/solaris/howtoguides/images/installSolaris_21.gif

  1. The Time Zone window appears. Next, set the time zone for the system. This example sets the Americas time zone. Use the arrow keys and the space bar to make the selection, then press [F2] to continue.


http://www.sun.com/software/solaris/howtoguides/images/installSolaris_22.gif

  1. Time Zone cont'd. Set the United States Country & Region, then press [F2] to continue.


http://www.sun.com/software/solaris/howtoguides/images/installSolaris_23.gif

  1. Time Zone cont'd. Set the Pacific Time, then press [F2] to continue.


http://www.sun.com/software/solaris/howtoguides/images/installSolaris_24.gif

  1. Set current date and time. Use arrow keys and keyboard to change the proposed date and time, then press [F2] to continue.


http://www.sun.com/software/solaris/howtoguides/images/installSolaris_25.gif

  1. To confirm your selection, press [F2] to continue.


http://www.sun.com/software/solaris/howtoguides/images/installSolaris_26.gif

  1. The Root Password window appears. Set the root password. Note the password typed remains invisible. Re-enter the password in the second box and press [F2] to continue.


http://www.sun.com/software/solaris/howtoguides/images/installSolaris_27.gif

  1. The Network Services window appears. Click [F2] to continue.


http://www.sun.com/software/solaris/howtoguides/images/installSolaris_28.gif

  1. The Remote Services window appears. In this window, you can choose a "Secure by default" Solaris installation, but afterwards individual services should be enabled. If you are unsure of your type of installation, follow the default "Yes" to enable all remote services and press [F2] to continue.


http://www.sun.com/software/solaris/howtoguides/images/installSolaris_29.gif

  1. The Install Progress window appears. Wait for a few minutes while Solaris installs on your system. After the installation is completed, the system will reboot automatically and will start the Solaris OS. Remember that in some cases, you will have to eject the media manually.


http://www.sun.com/software/solaris/howtoguides/images/installSolaris_30.gif

  1. The Eject CD/DVD window appears. Use the default. Press [F2] to continue; the system will automatically eject the media after installation.


http://www.sun.com/software/solaris/howtoguides/images/installSolaris_31.gif

  1. The Reboot After Installation window appears. Use the default, press [F2] to continue.


http://www.sun.com/software/solaris/howtoguides/images/installSolaris_32.gif

  1. The Confirmation window appears; press [F2] to continue. In some cases, the system will not be able to eject the media after installation. Be sure to eject it manually to avoid starting the installation process again; if after the installation your system didn't eject the media and the install process started again, you can simply reboot your system. During the boot process, eject the media and the system will boot from the hard disk using the freshly installed Solaris 10 image.


http://www.sun.com/software/solaris/howtoguides/images/installSolaris_33.gif

  1. The License window appears. Please read the Solaris License Agreement, and if you agree, press [F2] to continue.


http://www.sun.com/software/solaris/howtoguides/images/installSolaris_34.gif

  1. The Geographic Regions window appears. To add support for other regions, select the desired region; if not, press [F2] to continue.


http://www.sun.com/software/solaris/howtoguides/images/installSolaris_35.gif

  1. The System Locale window appears. Press [F2] to continue.


http://www.sun.com/software/solaris/howtoguides/images/installSolaris_36.gif

  1. The Selection of Additional Products window appears. Press [F2] to continue.


http://www.sun.com/software/solaris/howtoguides/images/installSolaris_37.gif

  1. The Root File System selection window appears. Select ZFS and press [F2] to continue.


http://www.sun.com/software/solaris/howtoguides/images/installSolaris_38.gif

  1. The Software Selection window appears. Use the default and press [F2] to continue.


http://www.sun.com/software/solaris/howtoguides/images/installSolaris_39.gif

  1. The Disk Selection window appears. Use the default and press [F2] to continue.


http://www.sun.com/software/solaris/howtoguides/images/installSolaris_40.gif

  1. The ZFS Configuration window appears. Use the default and press [F2] to continue.


http://www.sun.com/software/solaris/howtoguides/images/installSolaris_41.gif

  1. The Remote Mounts window appears. Use the default and press [F2] to continue.


http://www.sun.com/software/solaris/howtoguides/images/installSolaris_42.gif

  1. The Profile window appears. On this window, you can see a technical description of how Solaris will be installed on your system. Press [F2] to continue.


http://www.sun.com/software/solaris/howtoguides/images/installSolaris_43.gif

  1. The Install Progress window appears. Wait for a few minutes while Solaris installs on your system. After the installation is completed, the system will reboot automatically and will start the Solaris OS. Remember that in some cases, you will have to eject the media manually.


http://www.sun.com/software/solaris/howtoguides/images/installSolaris_44.gif

  1. Now you have successfully installed Solaris 10 5/09 on your system. Login using the root user and the password you assigned on step 19.


http://www.sun.com/software/solaris/howtoguides/images/installSolaris_45.gif

Install Network Card Drivers in Solaris 10

1.1 Preparing For Installation
Install your PCI card and boot Solaris 10. Copy Gani-2.6.8 drivers to Desktop. Add hostname for the NIC card into /etc/hosts file

Ex.

Make links to correct binary directory and Makefile according to your configuration. I386 and gcc are default.

# cd /Desktop/gani-2.6.8
# rm -f Makefile
# ln -s Makefile.amd64_gcc Makefile
# ln -s amd64 obj

1.2 Making Binaries Only For Open Solaris Users.

# rm Makefile.config
# ln -s Makefile.config_gld3 Makefile.config
# /usr/ccs/bin/make
1.3 Testing
Testing before installation is strongly recommended.

# cd /Desktop/gani-2.6.8
# /usr/ccs/bin/make install
# ./adddrv.sh
# modload obj/gani
# ifconfig ganiN plumb (where N is an instance number, typically 0 for first card) Ex: gani0 (Network card name)
# ifconfig -a (you will see an entry for ganiN)
# ifconfig gani0 YOUR-HOST-NAME
# ifconfig gani0 (ensure IP address is correct)
# ifconfig gani0 up (and then you can test with ping, telnet, ftp ...)
1.4 Installation
After you ensure that the gani driver is fully functional, install it. Configure the network interface. Create and/or modify the following file:

Edit /etc/hostname.gani0
Enter
OR
# vi /etc/hostname.gani0
Enter & Save.

1.5 Reboot the System

# init 6

Adding Network Gateway in Solaris 10

edit /etc/defaultrouter
# vi /etc/defaultrouter
Add

Assign the current default route. To implement the new default route without rebooting the system, use the following command substituting your default route for 192.168.8.1.

# route add default 192.168.8.1

Adding DNS Name servers in Solaris 10

1.7 Adding DNS

edit /etc/resolv.conf & add
nameserver 4.2.2.2
nameserver 202.56.250.6 and Save.
# cp /etc/nsswitch.dns /etc/nsswitch.conf

Enabling TELNET & FTP in Solaris 10

2.1 Enabling TELNET
Comment CONSOLE=/dev/console in /etc/default/login file.
Ex. # CONSOLE=/dev/console

2.2 Enabling FTP
Comment root in /etc/ftpd/ftpusers file.
Ex. #root

Creating FILE SYSTEM for Sap ECC 6.0 in Solaris 10

3.1 Creating File System for DB2

Before creating file system make sure disk is free for creating partition.

login: root
Password:
Last login: Sat Feb 26 15:20:36 on console
Oracle Corporation SunOS 5.10 Generic Patch January 2005
# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c0d0
/pci@0,0/pci-ide@1f,2/ide@0/cmdk@0,0

Specify disk (enter its number): 0
selecting c0d0
Controller working list found
[disk formatted, defect list found]
Warning: Current Disk has mounted partitions.
/dev/dsk/c0d0s0 is currently mounted on /. Please see umount (1M).
/dev/dsk/c0d0s1 is currently used by swap. Please see swap (1M).
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
show - translate a disk address
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
volname - set 8-character volume name
! - execute , then return
quit
format> p
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
! - execute , 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
! - execute , then return
quit

partition> p
Current partition table (original):
Total disk cylinders available: 38910 + 2 (reserved cylinders)
Part Tag Flag Cylinders Size Blocks
0 root wm 36952 - 38909 15.00GB (1958/0/0) 31455270
1 swap wu 3 - 1569 12.00GB (1567/0/0) 25173855
2 backup wm 0 - 38909 298.07GB (38910/0/0) 625089150
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 7.84MB (1/0/0) 16065
9 alternates wu 1 - 2 15.69MB (2/0/0) 32130
partition> 3
Part Tag Flag Cylinders Size Blocks
3 unassigned wm 0 0 (0/0/0) 0
Enter partition id tag[unassigned]:
Enter partition permission flags[wm]: wm
Enter new starting cyl[0]: 1570
Enter partition size[0b, 0c, 1570e, 0.00mb, 0.00gb]: 12gb

partition> label
Ready to label disk, continue? y
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
show - translate a disk address
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
volname - set 8-character volume name
! - execute , then return
quit
format> verify
Primary label contents:
Volume name = < >
ascii name =
pcyl = 38912
ncyl = 38910
acyl = 2
bcyl = 0
nhead = 255
nsect = 63
Part Tag Flag Cylinders Size Blocks
0 root wm 36952 - 38909 15.00GB (1958/0/0) 31455270
1 swap wu 3 - 1569 12.00GB (1567/0/0) 25173855
2 backup wm 0 - 38909 298.07GB (38910/0/0) 625089150
3 unassigned wm 1570 - 3136 12.00GB (1567/0/0) 25173855
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 7.84MB (1/0/0) 16065
9 alternates wu 1 - 2 15.69MB (2/0/0) 32130
format> label
Ready to label disk, continue? y
format> q
# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c0d0
/pci@0,0/pci-ide@1f,2/ide@0/cmdk@0,0
Specify disk (enter its number): 0
selecting c0d0
Controller working list found
[disk formatted, defect list found]
Warning: Current Disk has mounted partitions.
/dev/dsk/c0d0s0 is currently mounted on /. Please see umount (1M).
/dev/dsk/c0d0s1 is currently used by swap. Please see swap (1M).
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
show - translate a disk address
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
volname - set 8-character volume name
! - execute , then return
quit
format> save
Saving new disk and partition definitions
Enter file name["./format.dat"]:
format> q
Repeat the above steps to create additional Partitions



************* After creating parition disk name C0d0s0 to s1,s2,s3 try this

# newfs /dev/rdsk/c0d0s3 (For sapmnt)
newfs: construct a new file system /dev/rdsk/c0d0s3: (y/n)? y
Warning: 5518 sector(s) in last cylinder unallocated
/dev/rdsk/c0d0s3: 41945714 sectors in 6828 cylinders of 48 tracks, 128 sectors
20481.3MB in 427 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,
Initializing cylinder groups:
........
super-block backups for last 10 cylinder groups at:
40997024, 41095456, 41193888, 41292320, 41390752, 41489184, 41587616, 41686048, 41784480, 41882912













# mkdir /db2
# mkdir /db2/db2ids
# mkdir /db2/IDS
# mkdir /db2/IDS/db2dump
# mkdir /db2/IDS/db2ids
# mkdir /db2/IDS/log_dir
# mkdir /db2/IDS/sapdata1
# mkdir /db2/IDS/sapdata2
# mkdir /db2/IDS/sapdata3
# mkdir /db2/IDS/sapdata4