Skip to main content

Posts

What is PaaS, IaaS and SaaS?

Recent posts

HOW TO INCREASE RPOOL ADDING NEW DISK SOLARIS 11

  root@solaris:~# echo | format Searching for disks...done  AVAILABLE DISK SELECTIONS:        0. c1d0 <Unknown-Unknown-0001-40.00GB>           /virtual-devices@100/channel-devices@200/disk@0 Specify disk (enter its number): Specify disk (enter its number):   root@solaris:~#  zpool list NAME    SIZE  ALLOC   FREE  CAP  DEDUP  HEALTH  ALTROOT rpool  39.8G  5.98G  33.8G  15%  1.00x  ONLINE  -   root@solaris:~#  zpool status   pool: rpool state: ONLINE   scan: none requested config:           NAME    STATE      READ WRITE CKSUM         rpool   ONLINE        0     0     0           c1d0  ONLINE        0     0     0   errors: No known data errors   Adding a disk 80 GiB                                                                                                                                                                                          #ssh -l root solaris Oracle Corporation      SunOS 5.11      11.4    Aug 2018 root@solaris:~# root@solaris:~# root@solaris:~#  echo | for

HOW TO MIGRATE MYSQL DATABASE

 SOURCE SERVER innobackupex --user=YOURUSER --password=YOURPASSWORD /var/log/backup innobackupex --apply-log /var/log/backup/2022-02-14_11-41-35/ NEW SERVER systemctl stop mysql xtrabackup --copy-back --datadir=/var/lib/mysql --target-dir=/data/2022-02-14_11-41-35 chown -R mysql.mysql /var/lib/mysql systemctl start mysql systemctl status mysql Copy /etc/mysql/my.cnf (Validate parameters starting and stopping db) If you need due to a new version upgrade  root@mysqlposter:~# mysql_upgrade -u YOURUSER -p Enter password: YOURPASSWORD Checking if update is needed. Checking server version. Running queries to upgrade MySQL server. Checking system database. mysql.columns_priv                                 OK mysql.db                                           OK mysql.engine_cost                                  OK mysql.event                                        OK mysql.func                                         OK mysql.general_log                                  OK mysql.gtid_execute

HOW TO KUBERNETES SCRIPT TO HANDLE ISSUES

1. Some Script to do easy KUBERNETES administration   top_pods.sh                                                                                                                                     #!/bin/bash # #Pod List in the ENV echo "#################################" echo "#PODs List that you can select  #" echo "#################################" kubectl get pods | awk '{print $1}' #Select the pod to check echo "#######################" echo "#Select Pods to check #" echo "#######################" echo "Input PodName: " read podname echo "##############################" echo "#CPU and Memory information  #" echo "##############################" # Screen validation for consuming CPU and Memory kubectl top pod $podname --sort-by=cpu oomskill_check.sh                                                                                                                             #!

HOW TO KUBERNETES FLUENTD ISSUES IN GOOGLE CLOUD

1. Connect to the context in the cloud $ gcloud container clusters get-credentials my-sbx-us-central1 --region us-central1 --project my-sbx 2. Check fluentd pods with issues $ for i in `kubectl get pods -A | grep fluentd | awk '{print $2}' `; do echo $i; kubectl logs $i | tail -n 10 | wc -c; done 3. Validate logs  $ kubectl logs pod <pod-name> 4. Delete Pods if you  need $ kubectl delete pod <pod-name>

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 ADD A LINE WITH ANSIBLE WITH TAB SPACE IN A FILE

-bash-4.2# vi add_line_syslog.yml --- - name: script in order to add in the server list below with TAB spaces a Line in the SYSLOG CONF   hosts: oraking   tasks:     - name: Add a Line  in /etc/syslog.conf in order to delivery that information to another server       lineinfile:         path: /etc/syslog.conf         line: " *.err;auth.notice;auth.info;local0.info \t\t @10.10.10.200 "         insertbefore: ' \*.alert;kern.err;daemon.err '     - name: Restart system-log       command: /usr/sbin/svcadm restart svc:/system/system-log:default