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

Tuesday, September 27, 2022

Why and How to add new DNS client in Solaris?

Why ?

A basic needed is to resolve the naming service with IP using your company DNS Server, below I am sharing the Oracle official we that I follow to add and check the service of the DNS client.

How ?

Please follow the below to achieve this ,:

1- Oracle documentation for Solaris 11.4:

https://docs.oracle.com/cd/E37838_01/html/E60988/gnlbt.html

## Example :

## configure the DNS

$ svccfg -s network/dns/client

svc:/network/dns/client> setprop config/search = astring: ("nameserver")

svc:/network/dns/client> setprop config/nameserver = net_address: (10.1.1.100)

svc:/network/dns/client> select network/dns/client:default

svc:/network/dns/client:default> refresh

svc:/network/dns/client:default> validate

svc:/network/dns/client:default> select name-service/switch

svc:/system/name-service/switch> setprop config/host = astring: "files dns"

svc:/system/name-service/switch> select system/name-service/switch:default

svc:/system/name-service/switch:default> refresh

svc:/system/name-service/switch:default> validate

svc:/system/name-service/switch:default> quit


2- Check the status of the service :

 https://docs.oracle.com/cd/E19120-01/open.solaris/819-2379/ecdne/index.html

## Check DNS status

$ svcadm enable dns/client

$ svcadm enable name-service/switch

## Do any use nslookup

nslookup google.com

Wednesday, August 10, 2022

Why and How to manage disk space quota in Solaris 11?

  Why ?

In Solaris you will have a disk and after that the sub disk will be assigned for a value of space to make sure that total space in disk divided on these sub directories and each take the assigned space from disk only , for example if you 100G and you need to make sure /u01 is only 20G and /u02 takes 80G , set a quota is the soft way , reservation and refquota will do this as well with different properties of each , here I will show only how to do quota.

How ?

Below are simple commands for getting and setting the quota

1- list the disks and it is detail:

zpool list

2- get a list of all list of create directory in the disk as mount point:

df –h

zfs list

3- To get/set specific path quota if any :

# zfs set quota=10G tank/home/jeff

# zfs get quota tank/home/jeff

 

My reference always is : https://docs.oracle.com/cd/E23824_01/html/821-1448/gazvb.html



Sunday, June 27, 2021

Why and How to manage Sun Cluster resources running for Oracle Database

  Why ?

To do activity for Oracle database like patching , upgrade or switchover/failover ..etc and this sever is running on Sun cluster HA services , you have to do disable/enable and monitor/unmonitored for certain services configured in your cluster resources and group.

How ?

Below are most important commands you may need to use in Sun Cluster management  :

1- Checking Cluster group status:

clrg status

=== Cluster Resource Groups ===

Group Name      Node Name        Suspended      Status

----------      ---------        ---------      ------

Group_res       Server1         No             Online

                Server2         No             Offline

 

2- Check Cluster resources details of the group :

clrs status

=== Cluster Resources ===

Resource Name      Node Name        State       Status Message

-------------      ---------        -----       --------------

DB-srv            Server1           Online      Online

                   Server2           Offline     Offline

 

DB-lsnr            Server1           Online      Online

                   Server2           Offline     Offline

 

Ip_HA             server1            Online      Online - LogicalHostname online.

                  server2            Offline     Offline

 

DB_zfs-rs        server1            Online      Online

3- Stop/shutdown certain recourse

clrs disable DB-srv

clrs enable DB-srv

4- Disable the cluster management for certain resource

clrs unmonitor DB-srv

clrs monitor DB-srv

5- Show configured things in resource :

clrs show -v DB-srv

6- Switchover to server2

clrg switch -n server2 Group_res


A good reference you may refer to is :

Why and How to install Grid 19c on RHEL 8?

  Why ? Simply we will be requested to install Oracle Grid RAC DB on Redhat RHEL 8, below is my note for this installation . How ? 1-  OS in...