1 Şubat 2020 Cumartesi

Red Hat Satellite 6.x notları


Akıl defter değil demiş ataları. Ama burasını defter olarak kullanabiliriz. :)

 

Satellite sunucumuzun temel taşlarından bir tanesi dns kayıtlarıdır.

DNS kayıdı düzgün ve tam olmalı, aşağıdaki gibi kontrol yapabiliriz.

[root@satellite ~]# nslookup $(hostname)
Server:        192.168.168.253
Address:    192.168.168.253#53

Name:    satellite.example.lan
Address: 192.168.168.252

[root@satellite ~]# host 192.168.168.252
252.168.168.192.in-addr.arpa domain name pointer satellite.example.lan.
[root@satellite ~]# 


Satellite sunucumuzda herşeyin yerli yerinde olduğundan emin olmak için aşağıdaki iki komutu kullanabiliriz, kontrol yapmadan önce sunucuyu yeniden başlattıysanız, en az 5 dk sunucuyu kendi haline bırakın. Duruma göre 10 dk. olabilir. Sonrasında kontrol etmeye başlarsınız.

satellite-maintain service list ;

satellite-maintain health check;



Genel bilgilere konsoldan erişmek;

hammer ile 'base', 'table', 'csv', 'yaml', 'json' formatlarında istediğimiz çıktıları alabiliriz;

hammer --output yaml  repository list
hammer --output yaml organization list

hammer --output yaml location list

[root@satellite ~]# hammer --output yaml organization list
---
- Id: 3
  Title: ArGe
  Name: ArGe
  Description: Arastirma ve Gelistirme bolumu
  Label: ArGe
- Id: 4
  Title: Egitim
  Name: Egitim
  Description: Tum egitim bolumu
  Label: Egitim
- Id: 1
  Title: example
  Name: example
  Description:
  Label: example
[root@satellite ~]#


hammer ile bir repoyu elle senkronize edebiliriz. Bu işlem için öncelikle reponun id numarasını öğrenmemiz, sonrasında id no ile sonkron ol diyebiliriz;

# hammer --output json repository list

...
 {
    "Id": 69,
    "Name": "satellite-tools-6.9-for-rhel-8-aarch64-rpms",
    "Product": "Red Hat Enterprise Linux 8  fo -aarch64",
    "Content Type": "yum",
    "Url": "https://cdn.redhat.com/content/dist/layered/rhel8/aarch64/sat-tools/6.9/os"
  }
]

# hammer repository synchronize --id repo_id_no

 
[root@satellite ~]# hammer repository synchronize --id 69
[...............................................................................] [100%]
No content added.
Total steps: 24/24
--------------------------------
Associating Content: 0/0
Downloading Artifacts: 0/0
Downloading Metadata Files: 9/9
Parsed Advisories: 1/1
Parsed Comps: 0/0
Parsed Packages: 14/14
Un-Associating Content: 0/0
[root@satellite ~]#

satellite gereksiz repo dosyalarının temizlenmesi:

Satellite'da gereksiz veya silinmiş repo dosyaları silinmediyse aşağıdaki gibi gereksiz veya silinmiş dosyaların(repo silinmiş, fakat sistemde kalmış dosyalar)  temizlenmesini sağlayabilirsiniz.

# foreman-rake katello:clean_published_repo_directories

# foreman-rake katello:delete_orphaned_content RAILS_ENV=production
Orphaned content deletion started in background.


Bu  ikinci işlemden sonra satellite sunucumda yaklaşık ~160GB yer kazandım.


Detaylı bilgi için;

https://access.redhat.com/solutions/2893971

# satellite kurulmus linux sunuculara paket yukleme;

foreman-maintain packages install paket-ismi

 

 

Hiç yorum yok:

Yorum Gönder

ansible ile yerel quay sunucusu üzerinden execution environment kullanımı

 Yerel quay veya registry sunucularımızdaki ee leri ansible ile kullanabiliyoruz. Bunun için kendi yaptığımız ee leri veya hazır ee leri yük...