Criando de forma fácil um simples ftp usando recursos gratuitos da OCI.

1. Provisionando uma instância de computação.

Para aqueles que não estão acostumados com OCI, aqui está uma descrição do que é Compute Instances.

O serviço Compute ajuda a provisionar VMs e instâncias bare metal para atender aos seus requisitos de computação e aplicativos. Uma instância é um host de computação. Escolha entre máquinas virtuais (VMs) e instâncias bare metal. A imagem que você usa para iniciar uma instância determina seu sistema operacional e outro software.

Todos os recursos utilizados são gratuitos, uma instancia com 1 OCP e 1GB de memória ram, com dois block volume de 50gb.

1.1 Digite o nome da sua instância e altere a versão do Oracle linux que usaremos para OL8.

1.2 Para quem está acostumado a trabalhar e estudar recursos na OCI, sabemos que os ambientes linux são acessados por uma chave privada e não por usuário e senha. Desta forma, baixe a chave privada que a OCI irá gerar para que você tenha acesso ao ambiente OL8, a seguir vá para a opção de criação.

1.3 Aguarde até que a instância seja provisionada e criada.

1.4 Instância criada e disponível para uso, do lado direito temos o ip de acesso público e o usuário que iremos utilizar juntamente com a chave privada para ter acesso a instância criada.

2. Adicionaremos dois block storage de 50gb que a OCI disponibiliza gratuitamente, vamos provisionar esses dois discos e usar o LVM para compor 100gb dedicados aos nossos arquivos sftp. Os volumes de bloco fornecem armazenamento de rede de alto desempenho para dar suporte a uma ampla variedade de cargas de trabalho intensivas de E/S.

2.1 Criando gratuitamente dois block volumes de 50gb cada.

2.2 Vamos nomear os volumes de vol1 e vol2, usaremos Block Volume no mesmo Domínio de Disponibilidade que nossa instância com Oracle Linux 8, então iremos para a opção customizada para usar o desempenho máximo do volume permitido com a opção de desempenho mais alto.

2.3 Aguardando o provisionamento e a criação do Block volume vol1 e vol2.

3. Adicionando os block volumes vol1 e vol2 na instância Oracle Linux 8 sftp. Clique em vol1 e, em seguida na opção Attached instances.

3.1 Adicionaremos o vol1 e o vol2 na instância Laboratory1, a seguir escolheremos o tipo de acesso e o caminho do dispositivo.

3.2 Provisionando e Attaching block volumes vol1 and vol2.

4. Acessando o nosso Oracle Linux 8 laboratory1 com a chave privada, neste exemplo estou usando a ferramenta Mobaxterm.

4.1 Adicionando block volumes vol1 e vol2 no Oracle Linux 8 iSCSI.

Executando os comandos para adicionar os discos iSCSI disponibilizados pela OCI para simplificar o nosso trabalho.

5. Adicionando block volumes vol1 and vol2 no Oracle Linux 8 usando LVM.

5.1 Criando os volumes físicos

5.2 List physical volumes created PVS.

5.3 Criando o volume group com 100gb e adicionando os block volumes vol1 and vol2.

5.4 Criando o volume lógico com 100gb para uso.

5.5 Formatando o volume criado com LVM nomeado volsftp em xfs.

5.6 Configurando o fstab para montar nosso volume automaticamente sempre que a instância for reiniciada LVM.

5.7 Montando o volume criado no LVM.

6. Instalando o serviço do SFTP no Oracle Linux 8.

6.1 Configurando SFTP.

6.2 Criando o usuario cesar que usara o serviço do sftp.

6.3 Adicionando o usuario cesar para ter acesso ao sftp.

6.4 Como na OCI acessamos ambientes linux com uma chave privada, teremos que ajustar o acesso para que o usuário cesar possa acessar o serviço do sftp apenas por usuário e senha.

6.5 Habilitando e iniciando o serviço do sftp.

6.6 Por segurança mude a senha do usuario opc.

6.7 Testando o acesso do sftp usando a ferramenta winscp.

Creating a simple sftp in OL8 using the free resources of OCI.

1. Provisioning Compute service.

For those who are not used to OCI, here is a description of what Compute Instances is.

The Compute service helps you provision VMs and bare metal instances to meet your compute and application requirements. An instance is a compute host. Choose between virtual machines (VMs) and bare metal instances. The image that you use to launch an instance determines its operating system and other software.

All the resources used are free, a VM with 1 OCP and 1GB of ram memory, with two 50GB block volume.

1.1 Enter the name of your instance and change the version of Oracle linux that we will use to OL8.

1.2 For those who are used to working and studying using OCI, we know that linux environments are accessed using a private key and not by user and password. In this way, download the private key and publish what the OCI will generate so that you can have access to the OL8 environment, then go to the create option.

1.3 Wait until the instance is provisioned and created.

1.4 Instance created and available for use, on the right side we have the public access ip and the user that we will use together with the private key.

2. We will add two 50gb block storage that OCI makes available for free, we will provision these two disks and we will use LVM to compose 100gb dedicated for our sftp files. Block volumes provide high-performance network storage to support a broad range of I/O intensive workloads.

2.1 Creating two free 50gb block volumes.

2.2 We will name it vol1, we will use Block Volume in the same Availability Domain as our instance with Oracle Linux 8, then we will go to the custom option to use the maximum performance of the volume allowed with the higther performance option.

2.3 Waiting for the provisioning and creation of the Block volume.

3. Adding the block volumes vol1 and vol2 in the instance Oracle Linux 8 sftp. Click on vol1, then attached instances.

3.1 We will add the vol1 and vol2 in instance laboratory1, then we will choose the type of access and device path.

3.2 Provisioning and Attaching block volumes vol1 and vol2

4. Accessing the OL8 laboratory1 instance with a private key, in this example I am using the Mobaxterm tool.

4.1 Adding block volumes vol1 and vol2 on Oracle Linux 8 iSCSI.

Run the commands copied from the iSCSI Commands tab.

5. Adding block volumes vol1 and vol2 on Oracle Linux 8 with LVM.

5.1 Creating Physical Volumes

5.2 List physical volumes created PVS.

5.3 Create volume group with size of 100gb, adding the two block volumes vol1 and vol2.

5.4 Create logical volume with 100gb for use.

5.5 Formatting volume created from LVM volsftp in xfs.

5.6 Configuring fstab to automatically mount the volume created in the LVM.

5.7 Mounting the LVM volume.

6. Installing the SFTP service on Oracle Linux 8.

6.1 Configuring SFTP.

6.2 Creating the cesar user that we will use to access sftp.

6.3 Adding the user cesar to have access to sftp.

6.4 As at OCI we access linux environments with a private key, we will have to adjust it so that the user can access by password and not by private key.

6.5 Enabling and starting the sftp service.

6.6 For security change the user’s password opc.

6.7 Testing access using wiscp with sftp on the public ip of the instance.

Criando Block Volumes e adicionando no servidor Oracle Linux 8 na OCI.

Creating Block Volumes and adding to the Oracle Linux 8 server at OCI.

Os volumes de bloco fornecem armazenamento de rede de alto desempenho para dar suporte a uma ampla variedade de cargas de trabalho intensivas de E / S.
Block volumes provide high-performance network storage to support a broad range of I/O intensive workloads.

Adicionaremos dois block volumes de 50gb que a OCI disponibiliza gratuitamente, vamos provisionar esses dois discos e usar o LVM para compor 100gb dedicados aos nossos Oracle Linux.

We will add two 50gb block volumes that OCI makes available for free, we will provision these two disks and use the LVM to compose 100gb dedicated to our Oracle Linux.

Criação de dois block volumes de 50 GB gratuitos.

Creating two free 50gb block volumes.

Vamos chamá-lo de vol1, usaremos Block Volume no mesmo Domínio de Disponibilidade que nossa instância com Oracle Linux 8, então iremos para a opção customizada para usar o desempenho máximo do volume permitido com a opção de desempenho mais alto.

We will name it vol1, we will use Block Volume in the same Availability Domain as our instance with Oracle Linux 8, then we will go to the custom option to use the maximum performance of the volume allowed with the higther performance option.

Aguardando o provisionamento e a criação dos Block Volumes vol1 e vol2.

Awaiting provisioning and the creation of Block Volumes vol1 and vol2.

Adicionando os volumes de bloco vol1 e vol2 na instância Oracle Linux 8. Clique em vol1 e, em seguida, nas instâncias anexadas.

Adding the block volumes vol1 and vol2 in the instance Oracle Linux 8. Click on vol1, then attached instances.

Provisionando e anexando Block Volumes vol1 e vol2

Provisioning and Attaching block volumes vol1 and vol2

Adicionando Block Volumes vol1 e vol2 no Oracle Linux 8 iSCSI.

Adding block volumes vol1 and vol2 on Oracle Linux 8 iSCSI.

Execute os comandos copiados da guia Comandos iSCSI.

Run the commands copied from the iSCSI Commands tab.

Adicionando Block Volumes vol1 e vol2 no Oracle Linux 8 com LVM.
Criando Volumes Físicos

Adding block volumes vol1 and vol2 on Oracle Linux 8 with LVM.

Creating Physical Volumes.

Lista os volumes físicos criados PVS.

List physical volumes created PVS.

Crie um grupo de Block Volumes com tamanho de 100 gb, adicionando os dois volumes de bloco vol1 e vol2.

Create volume group with size of 100gb, adding the two block volumes vol1 and vol2.

Crie um volume lógico com 100 GB para uso.

Create logical volume with 100gb for use.

Volume criado e formatado com LVM em xfs.

Formatting volume created from LVM volsftp in xfs.

Configurando o fstab para montar automaticamente o volume criado no LVM.

Configuring fstab to automatically mount the volume created in the LVM.

Montando volume.

Mounting the LVM volume.

Criando uma VM gratuita na OCI.

  1. Provisioning Compute service.
    Para aqueles que não estão acostumados com OCI, aqui está uma descrição do que é Compute Instances.
    O serviço Compute ajuda a provisionar VMs e instâncias bare metal para atender aos seus requisitos de computação e aplicativos. Uma instância é um host de computação. Escolha entre máquinas virtuais (VMs) e instâncias bare metal. A imagem que você usa para iniciar uma instância determina seu sistema operacional e outro software.
    Todos os recursos utilizados são gratuitos, uma VM com 1 OCP e 1GB de memória ram, com dois blocos de volume de 50GB.

Provisioning Compute service.

For those who are not used to OCI, here is a description of what Compute Instances is.

The Compute service helps you provision VMs and bare metal instances to meet your compute and application requirements. An instance is a compute host. Choose between virtual machines (VMs) and bare metal instances. The image that you use to launch an instance determines its operating system and other software.

All the resources used are free, a VM with 1 OCP and 1GB of ram memory, with two 50GB block volume.

1.1 Digite o nome da sua instância e altere a versão do Oracle linux que usaremos para OL8.

1.1 Enter the name of your instance and change the version of Oracle linux that we will use to OL8.

1.2 Para quem está acostumado a trabalhar e estudar na OCI, sabemos que os ambientes linux são acessados por meio de uma chave privada e não por usuário e senha. Desta forma, baixe a chave privada e publica que a OCI irá gerar para que você tenha acesso ao ambiente OL8, a seguir vá para a opção de criação.

1.2 For those who are used to working and studying using OCI, we know that linux environments are accessed using a private key and not by user and password. In this way, download the private key and publish what the OCI will generate so that you can have access to the OL8 environment, then go to the create option.

1.3 Espere até que a instância seja provisionada e criada.

1.3 Wait until the instance is provisioned and created.

1.4 Instância criada e disponível para uso, do lado direito temos o ip de acesso público e o usuário que iremos utilizar juntamente com a chave privada.

1.4 Instance created and available for use, on the right side we have the public access ip and the user that we will use together with the private key.

1.5 Acessando a instância OL8 laboratory1 com uma chave privada, neste exemplo estou usando a ferramenta Mobaxterm.

1.5 Accessing the OL8 laboratory1 instance with a private key, in this example I am using the Mobaxterm tool.

Creating a simple ftp to save or share your files using Oracle Linux 8 at OCI with free resources.

Criando de forma fácil um simples ftp usando recursos gratuitos da OCI.

Em português: https://sgbdbrasil.wordpress.com/2021/05/29/criando-de-forma-facil-um-simples-ftp-usando-recursos-gratuitos-da-oci/

Today I created a very cool document on how I created my private sftp using free resources from OCI.

In English: https://sgbdbrasil.wordpress.com/2021/05/29/creating-a-simple-sftp-in-ol8-using-the-free-resources-of-oci/

View Backup History

set colsep " | "
alter session set nls_date_format = 'DD/MM/YYYY HH24:MI:SS';
set linesize 200 pagesize 500
col STATUS format a9
col hrs format 999.99
select
SESSION_KEY, INPUT_TYPE, STATUS,
to_char(START_TIME,'dd/mm/yyyy hh24:mi') start_time,
to_char(END_TIME,'dd/mm/yyyy hh24:mi') end_time,
elapsed_seconds/3600 hrs,
INPUT_BYTES/1024/1024/1024 SUM_BYTES_READS_IN_GB,
OUTPUT_BYTES/1024/1024/1024 SUM_BACKUP_PIECES_WRITE_IN_GB –,INPUT_BYTES_PER_SEC_DISPLAY read_taxa_per_second,OUTPUT_BYTES_PER_SEC_DISPLAY write_taxa_per_second
from V$RMAN_BACKUP_JOB_DETAILS
where START_TIME >= sysdate -7
order by session_key desc;
view raw gistfile1.txt hosted with ❤ by GitHub

Check status of ASM disks

set linesize 200
set pagesize 500
set colsep " | "
col "disk_name" format a30
col group_number heading group|number
col header_status format a15
col "group_name" format a10
col path format a40
select group_number,disk_number,mount_status,header_status,mode_status,state,os_mb,total_mb,free_mb,path
from v$asm_disk;
view raw gistfile1.txt hosted with ❤ by GitHub

TNS-12518: TNS:listener could NOT hand off client connection , Linux Error: 32: Broken pipe

Ontem fui escalado em um atendimento avulso de um cliente desesperado pois o ambiente Oracle database tinha parado de responder, três profissionais não conseguiram inicializar o listener apresentando os erros TNS-03501, TNS-12547, TNS-125560, TNS-00517 e Linux Error: 32: Broken pipe.
Após analisar o ambiente por um período, constatei que tinham alterado o nível de permissionamento no ORACLE_HOME, desta forma seguindo os passos a serem validados para uma correção.
Yesterday I was scheduled for a single service from a desperate customer because the Oracle database environment had stopped responding, three professionals were unable to initialize the listener with errors TNS-03501, TNS-12547, TNS-125560, TNS-00517 and Linux Error: 32: Broken pipe.
After analyzing the environment for a period, I found that the permission level had changed in ORACLE_HOME, thus following the steps to be validated for a correction.
1 – Erros:
TNS-12518: TNS:listener could NOT hand off client connection
TNS-12547: TNS:lost contact
TNS-12560: TNS:protocol adapter error
TNS-00517: Lost contact
Linux Error: 32: Broken pipe
2 – Aplicações as permissões abaixo:
Applications the permissions below:
chmod 6751 /u01/app/oracle/product/11.2.0/db_1/bin/oracle
chmod 755 /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1
chmod 755 /u01/app/oracle/product/11.2.0/db_1/lib/libagtsh.so.1.0
chmod 755 /u01/app/oracle/product/11.2.0/db_1/lib/libocci.so.11.1
3 – O que realmente resolveu meu problema:
What really solved my problem:
3.1 – Parar o banco com shut immediate.
Stop database shut immediate
3.2 – Ajustar permissão e realizar o Relink
Adjust permission and Relink
chmod -R 775 /u01
$ORACLE_HOME/bin/relink all
Apos executar o passo 3, o listener voltou a funcionar com sucesso.
After performing step 3, the listener has returned to working successfully.
view raw gistfile1.txt hosted with ❤ by GitHub

Configuring ssh between Oracle Linux passwordless servers

# Na Origem e Destino gerar chaves publicas
# At Source and Destination generate public keys
ssh-keygen -t rsa
# Da origem A –> Com destino B
# From origin A -> To destination B
ssh-copy-id oracle@172.16.0.221
# Da origem B –> Com destino A
# From source B -> With destination A
ssh-copy-id oracle@172.16.0.100
view raw gistfile1.txt hosted with ❤ by GitHub

OL 8 interesting points about dnf

Estudando o OL8, encontrei alguns pontos interessantes sobre o dnf, abaixo seguem pontos que me chamaram a atenção:
Studying OL8, I found some interesting points about DNF, below are points that caught my attention:
1 – Histórico de instalação, quem nunca precisou saber quando foi instalado ou feito um update de pacotes?
Installation history, who never needed to know when packages were installed or updated?
[root@oelestudos1 ~]# dnf history
ID | Command line | Date and time | Action(s) | Altered
——————————————————————————————————————————————————————–
31 | install nginx | 2021-04-06 01:04 | Install | 15
30 | install dnf-automatic | 2021-04-06 00:48 | Install | 1
29 | install tmux | 2021-04-06 00:12 | Install | 1
28 | install logwatch | 2021-04-04 16:35 | Install | 6
27 | install ftp | 2021-04-04 15:54 | Install | 1
26 | install vsftpd | 2021-04-04 15:42 | Install | 1
25 | -y remove kernel-uek-5.4.17-2011.7.4.el8uek | 2021-03-19 19:32 | Removed | 1
24 | -y install http://129.146.131.238/oci-mar-2021/oci-linux-config-2.0-1.0.16.el8.noarch.rpm | 2021-03-19 19:26 | Upgrade | 1 EE
23 | -y install http://129.146.131.238/oci-mar-2021/oraclelinux-release-el8-1.0-16.0.1.el8.x86_64.rpm http://129.1 | 2021-03-19 19:26 | Upgrade | 7 EE
22 | -y install iperf3 | 2021-03-19 19:26 | Install | 2
21 | -y install perf | 2021-03-19 19:26 | Install | 3
20 | -y install trace-cmd | 2021-03-19 19:26 | Install | 1 EE
19 | -y install kernel-uek-devel | 2021-03-19 19:26 | Install | 3
18 | -y install bcc | 2021-03-19 19:25 | Install | 6
17 | -y install ltrace | 2021-03-19 19:25 | Install | 1
16 | -y install dtrace | 2021-03-19 19:25 | Install | 1
15 | -y install oswatcher | 2021-03-19 19:25 | Install | 3 EE
14 | -y install systemtap | 2021-03-19 19:25 | Install | 21
13 | -y install oci-linux-config | 2021-03-19 19:25 | Install | 1 EE
12 | -y install tuned-profiles-oci-recommend | 2021-03-19 19:25 | Install | 2
11 | -y install uptrack | 2021-03-19 19:24 | Install | 36 EE
10 | -y install https://objectstorage.us-phoenix-1.oraclecloud.com/p/H8i2z6l0-4HAPbIayw-5AMXEMw5l8JlKN7Lv-VlWqSXRB | 2021-03-19 19:24 | Install | 1 EE
9 | -y update –exclude=cuda *455* *460* | 2021-03-19 19:23 | I, U | 19 EE
8 | -y install oci-utils | 2021-03-19 19:23 | Install | 10 EE
7 | -y install mysql-release-el8 | 2021-03-19 19:22 | Install | 1
6 | -y install oracle-epel-release-el8 | 2021-03-19 19:22 | Install | 1
5 | -y install ksplice-release-el8 | 2021-03-19 19:22 | Install | 1
4 | -y install oci-release-el8 | 2021-03-19 19:22 | Install | 1
3 | -y install https://objectstorage.us-phoenix-1.oraclecloud.com/p/QEhSfbu-EXnz8pndSF6Gdo2v2QV7hFicBBg8jm6IfX-Q_ | 2021-03-19 19:22 | Install | 1
2 | -y install oraclelinux-developer-release-el8 | 2021-03-19 19:22 | Install | 1
1 | | 2021-03-19 19:15 | Install | 599 EE
| 2021-03-19 19:15 | Install | 599 EE
2 – Desfazer e refazer a instalação de um pacote.
Quem nunca atualizou um pacote e descobriu que a versão mais atual fez uma aplicação parar de funcionar, abaixo segue exemplo de undo e redo.
Undo and redo the installation of a package.
Who never updated a package and found that the most current version made an application to stop working, below follows an example of undo and redo.
[root@oelestudos1 ~]# dnf list installed | grep nginx
nginx.x86_64 1:1.14.1-9.0.1.module+el8.0.0+5347+9282027e @ol8_appstream
nginx-all-modules.noarch 1:1.14.1-9.0.1.module+el8.0.0+5347+9282027e @ol8_appstream
nginx-filesystem.noarch 1:1.14.1-9.0.1.module+el8.0.0+5347+9282027e @ol8_appstream
nginx-mod-http-image-filter.x86_64 1:1.14.1-9.0.1.module+el8.0.0+5347+9282027e @ol8_appstream
nginx-mod-http-perl.x86_64 1:1.14.1-9.0.1.module+el8.0.0+5347+9282027e @ol8_appstream
nginx-mod-http-xslt-filter.x86_64 1:1.14.1-9.0.1.module+el8.0.0+5347+9282027e @ol8_appstream
nginx-mod-mail.x86_64 1:1.14.1-9.0.1.module+el8.0.0+5347+9282027e @ol8_appstream
nginx-mod-stream.x86_64 1:1.14.1-9.0.1.module+el8.0.0+5347+9282027e @ol8_appstream
[root@oelestudos1 ~]# dnf history
ID | Command line | Date and time | Action(s) | Altered
——————————————————————————————————————————————————————–
31 | install nginx | 2021-04-06 01:04 | Install | 15
[root@oelestudos1 ~]# dnf history undo 31 -y
[root@oelestudos1 ~]# dnf list installed | grep nginx
[root@oelestudos1 ~]# | 2021-03-19 19:15 | Install | 599 EE
[root@oelestudos1 ~]# dnf history redo 31 -y
[root@oelestudos1 ~]# dnf list installed | grep nginx
nginx.x86_64 1:1.14.1-9.0.1.module+el8.0.0+5347+9282027e @ol8_appstream
nginx-all-modules.noarch 1:1.14.1-9.0.1.module+el8.0.0+5347+9282027e @ol8_appstream
nginx-filesystem.noarch 1:1.14.1-9.0.1.module+el8.0.0+5347+9282027e @ol8_appstream
nginx-mod-http-image-filter.x86_64 1:1.14.1-9.0.1.module+el8.0.0+5347+9282027e @ol8_appstream
nginx-mod-http-perl.x86_64 1:1.14.1-9.0.1.module+el8.0.0+5347+9282027e @ol8_appstream
nginx-mod-http-xslt-filter.x86_64 1:1.14.1-9.0.1.module+el8.0.0+5347+9282027e @ol8_appstream
nginx-mod-mail.x86_64 1:1.14.1-9.0.1.module+el8.0.0+5347+9282027e @ol8_appstream
nginx-mod-stream.x86_64 1:1.14.1-9.0.1.module+el8.0.0+5347+9282027e @ol8_appstream
3 – Verificar e atualizar o OL apenas atualizações de segurança?
Check and update the OL only security updates?
[root@oelestudos1 ~]# dnf updateinfo sec
Last metadata expiration check: 0:30:53 ago on Tue 06 Apr 2021 12:42:01 AM GMT.
Updates Information Summary: available
5 Security notice(s)
4 Important Security notice(s)
1 Moderate Security notice(s)
4 – Aplicar atualizações de segurança.
Apply security updates.
[root@oelestudos1 ~]# dnf update –security
[root@oelestudos1 ~]# dnf updateinfo sec
Last metadata expiration check: 0:43:08 ago on Tue 06 Apr 2021 12:42:01 AM GMT.
Updates Information Summary: available
2 Security notice(s)
1 Important Security notice(s)
1 Moderate Security notice(s)
Security: kernel-uek-5.4.17-2102.200.13.el8uek.x86_64 is an installed security update
Security: kernel-uek-5.4.17-2036.104.5.el8uek.x86_64 is the currently running version
5 – Verificar atualizações de segurança aplicadas.
Check for applied security updates.
[root@oelestudos1 ~]# dnf history
ID | Command line | Date and time | Action(s) | Altered
——————————————————————————————————————————————————————–
34 | update –security | 2021-04-06 01:17 | I, U | 19 EE
33 | history redo 31 -y | 2021-04-06 01:10 | Install | 15
32 | history undo 31 -y | 2021-04-06 01:08 | Removed | 15
31 | install nginx | 2021-04-06 01:04 | Install | 15
30 | install dnf-automatic | 2021-04-06 00:48 | Install | 1
29 | install tmux | 2021-04-06 00:12 | Install | 1
28 | install logwatch | 2021-04-04 16:35 | Install | 6
27 | install ftp | 2021-04-04 15:54 | Install | 1
26 | install vsftpd | 2021-04-04 15:42 | Install | 1
25 | -y remove kernel-uek-5.4.17-2011.7.4.el8uek | 2021-03-19 19:32 | Removed | 1
24 | -y install http://129.146.131.238/oci-mar-2021/oci-linux-config-2.0-1.0.16.el8.noarch.rpm | 2021-03-19 19:26 | Upgrade | 1 EE
23 | -y install http://129.146.131.238/oci-mar-2021/oraclelinux-release-el8-1.0-16.0.1.el8.x86_64.rpm http://129.1 | 2021-03-19 19:26 | Upgrade | 7 EE
22 | -y install iperf3 | 2021-03-19 19:26 | Install | 2
21 | -y install perf | 2021-03-19 19:26 | Install | 3
20 | -y install trace-cmd | 2021-03-19 19:26 | Install | 1 EE
19 | -y install kernel-uek-devel | 2021-03-19 19:26 | Install | 3
18 | -y install bcc | 2021-03-19 19:25 | Install | 6
17 | -y install ltrace | 2021-03-19 19:25 | Install | 1
16 | -y install dtrace | 2021-03-19 19:25 | Install | 1
15 | -y install oswatcher | 2021-03-19 19:25 | Install | 3 EE
14 | -y install systemtap | 2021-03-19 19:25 | Install | 21
13 | -y install oci-linux-config | 2021-03-19 19:25 | Install | 1 EE
12 | -y install tuned-profiles-oci-recommend | 2021-03-19 19:25 | Install | 2
11 | -y install uptrack | 2021-03-19 19:24 | Install | 36 EE
10 | -y install https://objectstorage.us-phoenix-1.oraclecloud.com/p/H8i2z6l0-4HAPbIayw-5AMXEMw5l8JlKN7Lv-VlWqSXRB | 2021-03-19 19:24 | Install | 1 EE
9 | -y update –exclude=cuda *455* *460* | 2021-03-19 19:23 | I, U | 19 EE
8 | -y install oci-utils | 2021-03-19 19:23 | Install | 10 EE
7 | -y install mysql-release-el8 | 2021-03-19 19:22 | Install | 1
6 | -y install oracle-epel-release-el8 | 2021-03-19 19:22 | Install | 1
5 | -y install ksplice-release-el8 | 2021-03-19 19:22 | Install | 1
4 | -y install oci-release-el8 | 2021-03-19 19:22 | Install | 1
3 | -y install https://objectstorage.us-phoenix-1.oraclecloud.com/p/QEhSfbu-EXnz8pndSF6Gdo2v2QV7hFicBBg8jm6IfX-Q_ | 2021-03-19 19:22 | Install | 1
2 | -y install oraclelinux-developer-release-el8 | 2021-03-19 19:22 | Install | 1
1 | | 2021-03-19 19:15 | Install | 599 EE
6 – Reverter atualizações de segurança.
Rollback security updates.
[root@oelestudos1 ~]# dnf history undo 34 -y
Last metadata expiration check: 0:47:51 ago on Tue 06 Apr 2021 12:42:01 AM GMT.
Undoing transaction 34, from Tue 06 Apr 2021 01:17:22 AM GMT
Install grub2-tools-efi-1:2.02-90.0.4.el8_3.1.x86_64 @ol8_baseos_latest
Install kernel-uek-devel-5.4.17-2102.200.13.el8uek.x86_64 @ol8_UEKR6
Install kernel-uek-5.4.17-2102.200.13.el8uek.x86_64 @ol8_UEKR6
Upgrade libstdc++-8.3.1-5.1.0.2.el8.x86_64 @ol8_baseos_latest
Upgraded libstdc++-8.3.1-5.1.0.1.el8.x86_64 @@System
Upgrade libgomp-8.3.1-5.1.0.2.el8.x86_64 @ol8_baseos_latest
Upgraded libgomp-8.3.1-5.1.0.1.el8.x86_64 @@System
Upgrade libgcc-8.3.1-5.1.0.2.el8.x86_64 @ol8_baseos_latest
Upgraded libgcc-8.3.1-5.1.0.1.el8.x86_64 @@System
Upgrade openssl-libs-1:1.1.1g-15.el8_3.x86_64 @ol8_baseos_latest
Upgraded openssl-libs-1:1.1.1g-12.el8_3.x86_64 @@System
Upgrade openssl-1:1.1.1g-15.el8_3.x86_64 @ol8_baseos_latest
Upgraded openssl-1:1.1.1g-12.el8_3.x86_64 @@System
Upgrade grub2-tools-1:2.02-90.0.4.el8_3.1.x86_64 @ol8_baseos_latest
Upgraded grub2-tools-1:2.02-90.0.2.el8_3.1.x86_64 @@System
Upgrade grub2-common-1:2.02-90.0.4.el8_3.1.noarch @ol8_baseos_latest
Upgraded grub2-common-1:2.02-90.0.2.el8_3.1.noarch @@System
Upgrade shim-x64-15.3-1.0.2.x86_64 @ol8_baseos_latest
Upgraded shim-x64-15-11.0.5.x86_64 @@System
Upgrade grub2-tools-extra-1:2.02-90.0.4.el8_3.1.x86_64 @ol8_baseos_latest
Upgraded grub2-tools-extra-1:2.02-90.0.2.el8_3.1.x86_64 @@System
Upgrade grub2-efi-x64-1:2.02-90.0.4.el8_3.1.x86_64 @ol8_baseos_latest
Upgraded grub2-efi-x64-1:2.02-90.0.2.el8_3.1.x86_64 @@System
Upgrade grub2-tools-minimal-1:2.02-90.0.4.el8_3.1.x86_64 @ol8_baseos_latest
Upgraded grub2-tools-minimal-1:2.02-90.0.2.el8_3.1.x86_64 @@System
Upgrade python2-libs-2.7.17-2.0.2.module+el8.3.0+el8+9687+03d85b1a.x86_64 @ol8_appstream
Upgraded python2-libs-2.7.17-2.0.1.module+el8.3.0+7833+4aaf98ce.x86_64 @@System
Upgrade python36-3.6.8-2.0.1.module+el8.3.0+el8+9688+bb1990d3.x86_64 @ol8_appstream
Upgraded python36-3.6.8-2.module+el8.3.0+7694+550a8252.x86_64 @@System
Upgrade python2-2.7.17-2.0.2.module+el8.3.0+el8+9687+03d85b1a.x86_64 @ol8_appstream
Upgraded python2-2.7.17-2.0.1.module+el8.3.0+7833+4aaf98ce.x86_64 @@System
Upgrade gcc-8.3.1-5.1.0.2.el8.x86_64 @ol8_appstream
Upgraded gcc-8.3.1-5.1.0.1.el8.x86_64 @@System
Upgrade cpp-8.3.1-5.1.0.2.el8.x86_64 @ol8_appstream
Upgraded cpp-8.3.1-5.1.0.1.el8.x86_64 @@System
Dependencies resolved.
7 – Verificar histórico das atualizadas desfeitas.
Check history of und updates.
[root@oelestudos1 ~]# dnf history
ID | Command line | Date and time | Action(s) | Altered
——————————————————————————————————————————————————————–
35 | history undo 34 -y | 2021-04-06 01:30 | D, E | 19
34 | update –security | 2021-04-06 01:17 | I, U | 19 EE
33 | history redo 31 -y | 2021-04-06 01:10 | Install | 15
32 | history undo 31 -y | 2021-04-06 01:08 | Removed | 15
31 | install nginx | 2021-04-06 01:04 | Install | 15
30 | install dnf-automatic | 2021-04-06 00:48 | Install | 1
29 | install tmux | 2021-04-06 00:12 | Install | 1
28 | install logwatch | 2021-04-04 16:35 | Install | 6
27 | install ftp | 2021-04-04 15:54 | Install | 1
26 | install vsftpd | 2021-04-04 15:42 | Install | 1
25 | -y remove kernel-uek-5.4.17-2011.7.4.el8uek | 2021-03-19 19:32 | Removed | 1
24 | -y install http://129.146.131.238/oci-mar-2021/oci-linux-config-2.0-1.0.16.el8.noarch.rpm | 2021-03-19 19:26 | Upgrade | 1 EE
23 | -y install http://129.146.131.238/oci-mar-2021/oraclelinux-release-el8-1.0-16.0.1.el8.x86_64.rpm http://129.1 | 2021-03-19 19:26 | Upgrade | 7 EE
22 | -y install iperf3 | 2021-03-19 19:26 | Install | 2
21 | -y install perf | 2021-03-19 19:26 | Install | 3
20 | -y install trace-cmd | 2021-03-19 19:26 | Install | 1 EE
19 | -y install kernel-uek-devel | 2021-03-19 19:26 | Install | 3
18 | -y install bcc | 2021-03-19 19:25 | Install | 6
17 | -y install ltrace | 2021-03-19 19:25 | Install | 1
16 | -y install dtrace | 2021-03-19 19:25 | Install | 1
15 | -y install oswatcher | 2021-03-19 19:25 | Install | 3 EE
14 | -y install systemtap | 2021-03-19 19:25 | Install | 21
13 | -y install oci-linux-config | 2021-03-19 19:25 | Install | 1 EE
12 | -y install tuned-profiles-oci-recommend | 2021-03-19 19:25 | Install | 2
11 | -y install uptrack | 2021-03-19 19:24 | Install | 36 EE
10 | -y install https://objectstorage.us-phoenix-1.oraclecloud.com/p/H8i2z6l0-4HAPbIayw-5AMXEMw5l8JlKN7Lv-VlWqSXRB | 2021-03-19 19:24 | Install | 1 EE
9 | -y update –exclude=cuda *455* *460* | 2021-03-19 19:23 | I, U | 19 EE
8 | -y install oci-utils | 2021-03-19 19:23 | Install | 10 EE
7 | -y install mysql-release-el8 | 2021-03-19 19:22 | Install | 1
6 | -y install oracle-epel-release-el8 | 2021-03-19 19:22 | Install | 1
5 | -y install ksplice-release-el8 | 2021-03-19 19:22 | Install | 1
4 | -y install oci-release-el8 | 2021-03-19 19:22 | Install | 1
3 | -y install https://objectstorage.us-phoenix-1.oraclecloud.com/p/QEhSfbu-EXnz8pndSF6Gdo2v2QV7hFicBBg8jm6IfX-Q_ | 2021-03-19 19:22 | Install | 1
2 | -y install oraclelinux-developer-release-el8 | 2021-03-19 19:22 | Install | 1
1 | | 2021-03-19 19:15 | Install | 599 EE
8 – Verificar histórico das atualizações de segurança desfeitas.
Check history of broken security updates.
[root@oelestudos1 ~]# dnf updateinfo sec
Last metadata expiration check: 0:50:07 ago on Tue 06 Apr 2021 12:42:01 AM GMT.
Updates Information Summary: available
5 Security notice(s)
4 Important Security notice(s)
1 Moderate Security notice(s)
view raw gistfile1.txt hosted with ❤ by GitHub