Showing posts with label Solaris. Show all posts
Showing posts with label Solaris. Show all posts

Wednesday, July 4, 2018

How to Install Boot Block in Solaris 10 and solaris 11


After mounting the data set, install the boot block using installboot or installgrub

SPARC
# installboot -F zfs /mnt/usr/platform/`uname -i`/lib/fs/zfs/bootblk /dev/rdsk/c1t0d0s0

x86 systems with Solaris 10 or Solaris 11.0
# installgrub /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/c1t1d0s0

x86 systems with Solaris 11.1 and above

Use bootadm on x86 systems with Solaris 11.1 and above.The install-bootloader subcommand installs the system bootloader. It supersedes the functionality of installgrub on x86 as well as supporting installation of GRUB2’s bootloader on x86.

# bootadm install-bootloader -P rpool

Regards
Gurudatta N.R

Friday, August 5, 2016

How to enable and disable the dtlogin in solaris


# /usr/dt/bin/dtconfig –e   ( enable)
# /usr/dt/bin/dtconfig –d   ( disable)
 
Regards
Gurudatta N.R

Sunday, November 1, 2015

How to Enable Deadman Kernel in solaris 10



Deadman code is enabled by setting snooping in /etc/system. Make the
following entry in the /etc/system file:
set snooping = 1

Reboot the system with kadb:
ok boot kadb

When the next hang occurs, hopefully the deadman timer will be triggered,
and the system will drop into kadb:
# ~stopped at 0xfbd01028: ta 0x7d
kadb[0]:

At this point, any specific debugger commands can be run to examine the
current state of the system. Of particular interest are:
$r dump the registers
$c dump the current stack backtrace
freemem/D see how much memory is free

When kadb debugging is complete, attempt to take a core dump by doing:
kadb[0]: $q

ok sync

Regards
Gurudatta N.R




workaround for Solaris 10 (prtdiag hanging)


In order to fix this stop and start picld.

# svcs -a |grep picl
online         Feb_11   svc:/system/picl:default
# svcadm -v disable svc:/system/picl:default
svc:/system/picl:default disabled.
# svcs -a |grep picl
disabled       10:39:37 svc:/system/picl:default
Wait about a minute…
# svcadm -v enable svc:/system/picl:default
svc:/system/picl:default enabled.

# svcs -a |grep picl
online         10:40:49 svc:/system/picl:default

Regards
Gurudatta N.R

Sunday, July 26, 2015

How to install the ohmp locally in solaris 11

.1) Download Patch 20483158: Oracle HMP 2.3.1.1 for Oracle Solaris 11 from MOS.

See http://www.oracle.com/technetwork/server-storage/servermgmt/downloads/index.html for download instruction.
You can download p20483158_2311_Generic.zip.

2) Extact the file and verify the path to oracle-hmp-2.3.1.1-SunOS-5.11.p5p.

# ls -l /root/oracle-hmp-2.3.1.1/oracle-hmp-2.3.1.1-SunOS-5.11.p5p
-rw-rw-rw-   1 root     root     53258240 Jan 25  2015 /root/oracle-hmp-2.3.1.1/oracle-hmp-2.3.1.1-SunOS-5.11.p5p
#

3) Create repo.

# pkgrepo create /var/tmp/hwprepo

4) Copy the files to repo.

# pkgrecv -s /root/oracle-hmp-2.3.1.1/oracle-hmp-2.3.1.1-SunOS-5.11.p5p -d /var/tmp/hwprepo '*'
Processing packages for publisher mp-re ...
Retrieving and evaluating 10 package(s)...
PROCESS                                         ITEMS    GET (MB)   SEND (MB)
Completed                                       10/10   50.1/50.1 138.8/138.8

#

5) Verify the files are copied properly.

# pkgrepo list -s /var/tmp/hwprepo
PUBLISHER NAME                                          O VERSION
mp-re     system/management/hmp/biosdrv                   2.2.3,5.11:20150124T165507Z
mp-re     system/management/hmp/hmp-hwmgmt                2.3.1.1.18779,5.11-1:20150124T165501Z
mp-re     system/management/hmp/hmp-ipmiflash             1.8.12.0,5.11-2:20150124T165503Z
mp-re     system/management/hmp/hmp-ipmitool              1.8.12.0,5.11-3:20150124T165503Z
mp-re     system/management/hmp/hmp-libs                  2.3.1.1.18779,5.11-1:20150124T165442Z
mp-re     system/management/hmp/hmp-snmp                  2.3.1.1.18779,5.11-1:20150124T165504Z
mp-re     system/management/hmp/hmp-tools                 2.3.1.1.18779,5.11-1:20150124T165507Z
mp-re     system/management/hmp/hmp-tools-biosconfig      2.3.1.1.18779,5.11-1:20150124T165506Z
mp-re     system/management/hmp/hmp-tools-ubiosconfig     2.3.1.1.18779,5.11-1:20150124T165505Z
mp-re     system/management/hmp/hmp-tools-zoningcli       2.3.1.1.18779,5.11-1:20150124T164836Z
#

6) Set publisher.

# pkg set-publisher -g file:///var/tmp/hwprepo mp-re


7) Install hmp-hwmgmt.

# pkg install system/management/hmp/hmp-hwmgmt
          Packages to install:  2
      Create boot environment: No
Create backup boot environment: No
           Services to change:  1

DOWNLOAD                                PKGS         FILES    XFER (MB)   SPEED
Completed                                2/2         99/99    18.0/18.0    0B/s

PHASE                                          ITEMS
Installing new actions                       180/180
Updating package state database                 Done
Updating image state                            Done
Creating fast lookup database                   Done
#

Sunday, May 17, 2015

Solaris 11 and 11.2 Supported X86 and SPARC server list.

http://www.oracle.com/webfolder/technetwork/hcl/data/s11ga/systems/views/oracle_systems_all_results.page1.html


Regards
Gurudatta N.R

Monday, May 11, 2015

Sun Microsystems chips

Sun Microsystems chips in collection


SuperSPARC
SuperSPARC TMX390Z50GF-40
SuperSPARC TMX390Z52GF STP1020APGA-60
microSPARC II
microSPARC II STP 1012, 70 MHz
microSPARC II STP 1012A, 85 MHz
microSPARC II STP 1012, 110 MHz
SuperSPARC II
SuperSPARC II STP 1021APGA, 85 MHz
UltraSPARC
UltraSPARC STP 1030, 143 MHz
UltraSPARC STP 1030, 200 MHz
UltraSPARC II
UltraSPARC II STP 1031, 250 MHz
UltraSPARC II STP 1031, 250 MHz (w/ Bolts)
UltraSPARC II STP 1031, 300 MHz
UltraSPARC II STP 1031, 336 MHz
UltraSPARC II STP 1032, 400 MHz
UltraSPARC II STP 1032A, 400 MHz
UltraSPARC II STP 1032A, 450 MHz
UltraSPARC IIi
UltraSPARC IIi SME 1040, 333 MHz
UltraSPARC IIi SME 1430, 360 MHz
UltraSPARC IIi SME 1430, 440 MHz
UltraSPARC IIe
UltraSPARC IIe SME 1701, 400 MHz
UltraSPARC IIe SME 1701, 500 MHz
UltraSPARC III
UltraSPARC III SME 1052A
UltraSPARC III SME 1052B, 900 MHz
UltraSPARC III SME 1052B, 1015 MHz

Saturday, March 7, 2015

How to install Gnome in solaris 11.

After a fresh install of Solaris 11 express, only the console mode is activated.
To install Gnome

$ sudo pkg install slim_install

This will install additional packages that are not installed by default.

Then enable the service.

$ sudo svcadm enable gdm


Regards
Gurudatta N.R

Saturday, January 31, 2015

Oracle Solaris 11 Cheat Sheet

http://www.oracle.com/technetwork/server-storage/solaris11/documentation/solaris-11-cheat-sheet-1556378.pdf

Sunday, June 15, 2014

Solaris 11 Network Virtualization Features - Demo

http://www.oracle.com/webfolder/technetwork/tutorials/tutorial/solaris/11/ManagingNetworkResources/ManagingNetworkResources.htm

Friday, May 30, 2014

How to split the files in solaris

# split -b 256m Gurudatta.tar.gz

  will produce xaa, xab, xac, xad etc


Regards
Gurudatta N.R

Saturday, January 18, 2014

Commands to Monitor the Processes in Solaris 10

========================================================================
Command Description
========================================================================
ps         Print status and information about active processes
pgrep Find the process id (PID) of a process
prstat View overall process statistics (similar to Linux top command)
preap Reap zombie processes
pstop Temporarily freeze a process
prun         Continue a process that was stopped by pstop command
pwait Wait for a process to finish
pwdx List working directory for a process
pargs Print the arguments and environment variables of a process
pfiles Print the list of file descriptors associated with the process
pldd         List dynamic libraries associated with process (similar to ldd for executable)
ptree Print a process ancestry tree
pstack Get stack back trace of a process for debugging purposes
truss Trace system calls and signals for a process
svcs         With the -p option, this command will list processes associated with each
========================================================================

Regards
Gurudatta N.R

Monday, January 13, 2014

How to control the root access to the system.


You can control root access to the system by setting parameters in the /etc/default/login file. The /etc/default/login file establish default parameters for users when they log in to the system.

One of the parameters you can set is CONSOLE variable. There are three possible states that restrict access to the root account:

If CONSOLE variable is commented out ( #CONSOLE=/dev/console ), the root user can log in to the system from any workstation. In other words, root access to the system is unlimited.
If CONSOLE variable is not commented ( CONSOLE=/dev/console ), the root user can log in only localy on the system console. No remote access is possible.
If CONSOLE variable does not have any value assign to it ( CONSOLE= ), then the root user cannot log in from anywhere. The only possibility how to become root user is to switch from regular user account by using su command.

Source : Net

Sunday, December 29, 2013

Unable to create file-system, Newfs is throwing error in solaris 10

Ensure file "/etc/security/exec_attr" contains line:
All:suser:cmd:::*:

Ensure file "/etc/security/prof_attr" contains line:
All:::Execute any command as the user or role:help=RtAll.html

Ensure file "/etc/user_attr" contains line:
root::::auths=solaris.*,solaris.grant;profiles=Web Console Management,All;lock_after_retries=no;min_label=admin_low;clearance=admin_high

It is due to insufficient attributes in the exec_attr(4) database

Regards
Gurudatta N.R