Skip to main content

Posts

Showing posts with the label Solaris 10/11

HOW TO ENABLE ORACLE SOLARIS CONTAINERS RESOURCE MANAGEMENT AND CONFIGURATE SOLARIS 11 ZONES

How to enable Oracle Solaris containers resources Management and configurate Oracle Solaris 11 Zones 1.-Validate the state of the SMF Services disabled       12:02:37 svc:/system/pools/dynamic:default disabled          8:41:26 svc:/system/pools:default 2.-Enable the /system/poools:default ~# svcadm enable /system/pools ~# svcs -a | grep pool disabled       12:02:37 svc:/system/pools/dynamic:default online          8:41:26 svc:/system/pools:default 3.-Validate that are the resources are available to the pool ~# poolstat                               pset  id pool                 size used load   0 pool_default           32 0.00 0.01 ~# 4.-Enable your pools in your system for dinamic configuration ~# pooladm -s 5.-View the contents configuration file /etc/pooladm.conf ~#poolcfg -c info system default         string  system.comment         int     system.version 1         boolean system.bind-default true         string  system.poold.objectives wt-load  

Updating Solaris 11.X to 11.3 and SRU to 11.3.2.4.0

Updating Solaris 11.X to 11.3 Download Repository Certificate s accessing with MOS user https://pkg-register.oracle.com/register/certificate/ Upload them to the server and rename as below pkg.oracle.com.certificate.perm pkg.oracle.com.key.perm root@:~# pkg unset-publisher This option below delete the currently repository and add the new one root@:~# pkg set-publisher -k  /root/pkg.oracle.com.key.pem -c /root/pkg.oracle.com.certificate.pem -G "*" -g https://pkg.oracle.com/solaris/support/ solaris root@:~# pkg publisher PUBLISHER                   TYPE     STATUS P LOCATION solaris                     origin   online F http://pkg.oracle.com/solaris/support/ root@# pkg update Validate previous boot environment root@:~# beadm list BE      Flags Mountpoint Space  Policy Created --      ----- ---------- -----  ------ ------- solaris NR    /          12.58G static 2016-03-15 07:11 root@:~# root@:~# PHASE             

Solaris SunFreeware Mirrors Download

  Solaris SunFreeware Mirrors Download If you need to download packages for Solaris 9/10, you can use those links in order to download package that you need for your Solaris OS http://ftp.ntua.gr/mirror/sun-freeware/ http://ftp.telfort.nl/pub/mirror/sunfreeware/sparc/5.9/  

HOW TO SET KERNEL VALUES TO IMPROVE PERFORMANCE IN SOLARIS SERVERS

  (A) set maxphys  To improve basic disk performance  maxphys is the maximum size of physical I/O requests. If a driver sees a request larger than this size, the driver breaks the request into maxphys size chunks. File systems can and do impose their own limit. This value should be higher than all other settings (vol_maxio, vol_maxspecialio etc) such as in Filesystems/Volume Manager etc. maxphys is set in bytes.  Maximum number of page I/O requests that can be queued by the paging system. This number is divided by 4 to get the actual maximum used by the paging system. It is used to throttle the number of requests as well as to control process swapping. maxpgio is in I/O's.  C)Set FastScan  (Is Calculated by Multipliying 32678 for Physical Memory D)Set Handspreadpages(Is Calculated by Multipliying 32678 for Physical Memory  The Solaris environment uses a two-handed clock algorithm to look for pages that are candidates for reclaiming when memory is low. The first hand o

How to Solaris SVM Metaset

Creating the metaset is a simple process. First of all we define our metaset and add our host to it. bash-3.00# metaset -s test -a -h avalon Syntax is pretty straightforward: -s is used to specify which metaset we’re using -a is the add flag. Guess what -d does? -h specifies the hostname which owns this metaset All metasets are owned by at least one host (it’s how they track who can access them). If you’re in a cluster environment, multiple hosts will own the metaset, allowing the cluster software to move the metadevices between nodes. For a single hosted metaset, however, we just need to add one host, and we need to make sure that it will automatically take ownership and import the metaset on boot. All we have to do to make this happen is enable the autotake flag on the metaset: bash-3.00# metaset -s test -A enable And that completes the setup of the metaset. We then just select which LUNs we’re interested in, and add them in to the metaset: bash-3.00# metaset -s test -a

HOW TO INSTALL AND CHANGE LOCALE IN SOLARIS 11

HOW TO INSTALL AND CHANGE LOCALE IN SOLARIS 11 Installing Argentina Locales #pkg change-facet facet.locale.es_AR*=True # locale -a C POSIX de_DE.ISO8859-1 de_DE.ISO8859-15 de_DE.UTF-8 en_US.ISO8859-1 en_US.ISO8859-15 en_US.UTF-8 es_AR.ISO8859-1 es_AR.UTF-8 Change locale to es_AR.ISO8859-1 #svccfg -s svc:/system/environment:init setprop environment/LC_ALL = astring: "es_AR.ISO8859-1" #svccfg -s svc:/system/environment:init setprop environment/LC_COLLATE = astring: "es_AR.ISO8859-1" #svccfg -s svc:/system/environment:init setprop environment/LC_CTYPE = astring: "es_AR.ISO8859-1" #svccfg -s svc:/system/environment:init setprop environment/LC_NUMERIC = astring: "es_AR.ISO8859-1" #svccfg -s svc:/system/environment:init setprop environment/LC_TIME = astring: "es_AR.ISO8859-1" #svccfg -s svc:/system/environment:init setprop environment/LC_MONETARY = astring: "es_AR.ISO8859-1" #svcadm refresh svc:/system/environme

How to Install Boot Blocks Solaris

How to Install Boot Blocks for a ZFS Root  FS (rpool) As root user run the following: #installboot -F zfs /usr/platform/`uname i`/lib/fs/zfs/bootblk /dev/rdsk/c#t#d#s0 #init 6   How to Install Boot Blocks Solaris Sparc As root user run the following: #installboot /usr/platform/`uname -i`/lib/fs/ufs/bootblk /dev/rdsk/c#t#d#s0 #init 6 How to install Boot Block Solaris x86 As root user run the following: #/sbin/installgrub /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/c#t#d#s# #init6 What are the grub stage1 and stage 2? below the explanation /boot/grub/stage1 partition boot file. /boot/grub/stage2 boot block code. For each command you will need to reboot in order to check or verify that is correctly installed #init 6  

HOW TO CHANGE SOLARIS 11 HOSTNAME

How to change hostname Solaris 11 1.-Execute the followings command in order to change hostname in the identity node property in the SMF #svccfg -s system/identity:node setprop config/nodename="unixserver" #svccfg -s system/identity:node setprop config/loopback="unixserver" 2. Refresh and restart the system/identity:node service for the changes to take effect. # svcadm refresh system/identity:node # svcadm restart system/identity:node

HOW TO ADD ENTRIES NSSWITCH / RESOLV.CONF SOLARIS 11 (CONFIGURING DNS RESOLUTION)

  How to add entries in nsswitch.conf/resolv.conf Solaris 11 1.- Add entries in the ipnode and hosts in the nsswitch.conf to use dns after check files # svccfg -s name-service/switch svc:/system/name-service/switch> setprop config/host = astring:"files dns" svc:/system/name-service/switch> setprop config/ipnode = astring:"files dns" svc:/system/name-service/switch> exit # svcadm refresh name-service/switch # svcadm restart name-service/switch 2.- Add DNS entries 10.0.0.4 and 10.0.0.5 with domain example.com on the server # svccfg -s dns/client svc:/network/dns/client> setprop config/nameserver = net_address:  (10.0.0.4 10.0.0.5) svc:/network/dns/client> setprop config/domain = example.com svc:/network/dns/client> listprop config config                      application config/value_authorization astring     solaris.smf.value.name-service.dns.client config/nameserver          net_address 10.0.0.4 10.0.0.5 config/domain            

How to configure a Pool/Pset and Assign to the Solaris Zone

How to configure a Pool/Pset and Assing it to the Solaris Zone Generate a file with the information below #vi poolnew create pset backup-pset (uint pset.min = 4; uint pset.max = 6 ) create pool pool_backup associate pool pool_backup (pset backup-pset) Now we have a minimun pset set in 4 and maximum set in 6 for a pool named backup in order to create our new pool_backup In the poolnew we have the configuration file in order to create the pool (line 2) and pset with min and max values, finally the association the all the information to the pool # cat poolnew create pset backup-pset (uint pset.min = 4; uint pset.max = 6) create pool pool_backup associate pool pool_backup (pset backup-pset) In the poolnew, now we have the configuration file in order to create the pool (line 2) and pset with min and max values, finally the association the all the information to the pool Apply the configuration with pooladm command # pooladm -c After applying the configuration you can ch