Skip to main content

Posts

Showing posts with the label Solaris 10/11

HOW TO SHARE SAMBA SHARE FROM WINDOWS TO SOLARIS 11

SHARE WINDOWS FOLDER WITH SAMBA IN SOLARIS 11 OPEN THOSE PORT IF YOU HAVE A FIREWALL BETWEEN SERVERS PORT    STATE SERVICE 135/tcp open  msrpc 139/tcp open  netbios-ssn 445/tcp open  microsoft-ds 137 UDP 138 UDP INSTALL SAMBA PACKAGES #pkg install samba ENABLE EACH SERVICES AFTER INSTALLING SAMBA AND CONFIGURE THE SMB.CONF #svcadm enable idmap #svcadm enable smb/client #svcadm enable samba root@:/# vi /etc/samba/smb.conf [ftps]   path = //april.domaintest/FTPS   realm = april.domaintest.com   netbios name = april   passdb backend = YourSharingPassword   guest account = SAMBAUX   log file = /var/samba/log/%m.log   load printers = No   wins server = YourWinServer    winbind trusted domains only = No   workgroup = domaintest.com   hosts allow = 192.168.1.10    TEST THE CONNECTION WITH WINDOWS SAMBA SERVER SHARE     root@:/#  smbclient -L //april/FTPS/ -s /etc/samba/smb.conf -N Anonymous login successful         Sharename       Ty

HOW TO SHARE WITH ZFS A FILE SYSTEM IN SOLARIS 11

As root execute the following Create the pool #zpool create ztemp c0d0 Create ZFS  #zfs create ztemp/temp Mount ZFS  #zfs set mountpoint=/temp ztemp/temp Share ZFS with the option "sharenfs=on" #zfs set sharenfs=on ztemp/temp Share and Select the PATH and SERVERS that you need that mount the ZFS from the NFS Server in our case the servers are oracle1,oracle2 and oracle3 with Read and Write Options #zfs set share=name=temp,path=/temporario,prot=nfs,anon=0,rw=oracle1:oracle2:oracle3 ztemp/temp

How to correct dbca error after OS migration for library missing

After migrating Oracle 10 installed in Solaris 8, we have the following issue when we execute the command dbca in Solaris 11 testing{oracle10}# cd /data/oracle10/cfgtoollogs testing{oracle10}# ./dbca Exception in thread "main" test{oracle10}42# Checking the trace log file we found that we have a missing libray "libdps.so.5 testing{oracle10}48# more trace.log java.lang.UnsatisfiedLinkError: /d2/ora10/jdk/jre/lib/sparc/motif21/libmawt.so: ld.so.1: java: fatal: libdps.so.5: open failed: No such file or directory         at java.lang.ClassLoader$NativeLibrary.load(Native Method)         at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1586)         at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1482)         at java.lang.Runtime.load0(Runtime.java:737)         at java.lang.System.load(System.java:811)         at java.lang.ClassLoader$NativeLibrary.load(Native Method)         at java.lang.ClassLoader.loadLibrary0(ClassLoader.ja

HOW TO UPDATE NTP to 4.2.8.9 HACK VULNERABILITY IN SOLARIS 11

Vulnerability in NTP Solaris 11, and you can correct in the following form Network Time Protocol Daemon (ntpd) read_mru_list() Remote DoS [-/+] Synopsis The remote NTP server is affected by a denial of service vulnerability. Description The remote NTP server is affected by a denial of service vulnerability due to improper validation of mrulist queries. An unauthenticated, remote attacker can exploit this, via a specially crafted NTP mrulist query packet, to terminate the ntpd process. Note that the NTP server is reportedly affected by additional vulnerabilities as well; however, Nessus has not tested for these. Solution Upgrade to NTP version 4.2.8p9 or later. Risk Factor High How to fix the issue, you find the steps in order to correct this problem Set in FALSE the Facet Values in order to update and prevent in any other update that version does not change, Now if you want to change them Set in TRUE # pkg change-facet facet.version-loc

How to avoid Virtual Network Failures After a Live Migration 'extended-mapin-space' is set to 'on' BUG:17694771

HOW TO AVOID EXTENDED-MAPIN-SPACE ISSUE This issue applies to: Oracle VM Sun Software - Generic Solaris SPARC Operating System SPARC Guest domains  Solaris 10 or Solaris 11 on Oracle VM Server for SPARC (LDOMs 2.1 to 3.1) may experience virtual network failures after a live migration operation if 'extended-mapin-space' is set to 'on'. You can check if you have set to 'on' the value extended-mapin-space as below   # ldm list -l | grep extended-mapin-space=on In the /var/adm/messages when the issue is happening you can see the following vnet1: exceeded number of permitted handshake attempts (5) on channel 22 To avoid this issue, set 'extended-mapin-space' to 'off' before executing a live migration. If the described  issue has already occurred, the system can be restored by executing the following commands to re-establish the virtual network connectivity: ldm stop <affected guest domain> ldm unbind <affe

OSWatcher analysis Solaris/Oracle Linux for DataBases

ORACLE DATABASE 10 or greater ORACLE SOLARIS SPARC 1.  As "root" use create  OSWatcher startup/stop script (startOSWbb.sh) # uname -a SunOS solaristest  5.10 Generic_150-400 # pwd /etc/init.d # cat OSW_init.sh  OSW_SRC_DIR= <<<<----- Modify this to reflect your OS Watcher source directory echo $OSW_SRC_DIR echo "******************************************************" >> $OSW_SRC_DIR/init_osw.log case $1 in 'start') echo "...Starting OSWBB from init at `date` " >> $OSWBB_SRC_DIR/init_osw.log cd $OSWBB_SRC_DIR; ./startOSWbb.sh ;; 'stop') echo "...Stopping OSWBB from init at `date` " >> $OSWBB_SRC_DIR/init_osw.log cd $OSW_SRC_DIR; ./stopOSWbb.sh ;; *) echo "Usage: $0 start|stop" >&2 exit 1 ;; esac exit 0   2.  Add "execute" permissions on this script: #chmod +x OSW_init.sh 3.  Create a soft link to this script fr

Solaris 11.3 Bug# 21207532 System or DB hang in zil_commit() at shutdown

The issue is generated due to ZFS bug present in version lower than 11.3.2.4.0, those symptoms produce that some errors related with IO wait are generated in the trace log file of the Oracle Data Base, shutting down the mmon process as you see below Trace log example: Thu Sep 01 08:51:11 2016 WARNING: aiowait timed out 2 times Thu Sep 01 08:57:38 2016 minact-scn: got error during useg scan e:12751 usn:4 minact-scn: useg scan erroring out with error e:12751 Suspending MMON action 'Block Cleanout Optim, Undo Segment Scan' for 82800 seconds Thu Sep 01 09:01:11 2016 WARNING: aiowait timed out 3 times Thu Sep 01 09:07:20 2016 Suspending MMON action 'undo usage' for 82800 seconds Thu Sep 01 09:11:11 2016 WARNING: aiowait timed out 4 times Thu Sep 01 09:12:03 2016 Shutting down instance (immediate) Stopping background process SMCO Thu Sep 01 09:12:34 2016 Background process SMCO not dead after 30 seconds Killing background process SMCO Shutting

HOW TO INSTALL UCB OR BERKLEY IF YOU HAVE .PROFILES USING THEM

#pkg install compatibility/ucb            Packages to install:  1        Create boot environment: No Create backup boot environment: No DOWNLOAD                                PKGS         FILES    XFER (MB)   SPEED Completed                                1/1         95/95      0.5/0.5 91.7k/s PHASE                                          ITEMS Installing new actions                       181/181 Updating package state database                 Done Updating package cache                           0/0 Updating image state                            Done Creating fast lookup database                   Done Updating package cache                           1/1 # ls -ltr /usr/ucb | more total 1086 -r-xr-xr-x   4 root     bin        56800 Aug 14 23:01 ps -r-xr-xr-x   1 root     bin          521 Sep 15 06:56 fastboot -r-xr-xr-x   1 root     bin          518 Sep 15 06:56 fasthalt -r-xr-xr-x   1 root     bin          613 Sep 15 06:56 file -rwxr-xr-x   1 root     bin  

HOW TO INSTALL JAVA IN SOLARIS 11 OR SOLARIS 11 ZONES

1.-Set proxy with user and password if you have proxy with authentication or without it #export https_proxy=https://sun:sun@192.168.100.100:8080 #export http_proxy=http://sun:sun@192.168.2.100.100:8080 2.- Set publisher in order to use the Oracle Support Repository #pkg set-publisher -k  /var/pkg/ssl/pkg.oracle.com.key.pem -c /var/pkg/ssl/pkg.oracle.com.certificate.pem -g https://pkg.oracle.com/solaris/support/  solaris 3.-You can search the packages availables in my case I need to install JAVA 8 #pkg search -p java PACKAGE                                                                 PUBLISHER pkg:/SUNWj6cfg@1.6.0.999.99                                             solaris pkg:/SUNWj6dev@1.6.0.999.99                                             solaris pkg:/SUNWj6dmo@1.6.0.999.99                                             solaris pkg:/SUNWj6dmx@1.6.0.999.99                                             solaris pkg:/SUNWj6dvx@1.6.0.999.99