27 July 2022

Cara nak tahu package apa yg ada dalam apt repo tertentu

cd /var/lib/apt/lists

ls


cari file yg berakhir dengan Packages, cth:
    
dl.google.com_linux_chrome_deb_dists_stable_main_binary-amd64_Packages


Dalam file ini, tersenarai nama package yg terdapat dalam repo tersebut.



ref:
https://tecadmin.net/list-all-packages-available-in-a-repository-on-ubuntu/

14 July 2022

ceph troubleshoot

1) start with

ceph health detail



2) OSD_FULL

Ceph prevent writing to a full OSD. By default 'full' is set to 0.95. Temporary solution, set full to 0.97

    ceph osd set-full-ratio 0.96


ps: to get more info 
1- ceph osd dump | grep full_ratio
2- ceph df

(ref https://docs.ceph.com/en/quincy/rados/operations/health-checks/)



3) POOL_TOO_FEW_PGS

list pools

ceph osd lspools

To allow the cluster to automatically adjust the number of PGs

ceph osd pool set <pool-name> pg_autoscale_mode on

To manually set the number of PGs for the pool to the recommended amount with:
ceph osd pool set <pool-name> pg_num <new-pg-num>

4) BLUESTORE_NO_PER_POOL_OMAP
Stop the osd, repair, then start again:
eg: osd.123
systemctl stop ceph-osd@123
ceph-bluestore-tool repair --path /var/lib/ceph/osd/ceph-123
systemctl start ceph-osd@123

13 July 2022

ceph info gathering

 ceph health

ceph heatlh detail

Extending size of local-lvm(lvm thin) for proxmox

 Prepare new disk to be Physical_Volume
pvcreate /dev/sdj


Add new disk to existing Volume_group
vgextend pve /dev/sdj


Extend size of for local-lvm(lvm thin)
lvextend -L+100G pve/data


Extend size of poolmetadata for local-lvm(lvm thin)
       lvresize --poolmetadatasize +1GB pve/data

Proxmox: lvm info gathering

 Proxmox LVM

1- pvs
2- pvdisplay
3- vgs
4- vgdisplay
5- lvs
6- lvdisplay

=======================================================================

pvs

  /dev/sdh   sdh_thinPool                              lvm2 a--    1.09t 120.00m
  /dev/sdi   ceph-c52a84e1-dbb7-45ce-8f2b-7b164b113313 lvm2 a--    1.09t      0 
  /dev/sdj   pve                                       lvm2 a--    1.09t  <1.01t
  /dev/sdk3  pve                                       lvm2 a--  223.00g      0 

pvdisplay

  --- Physical volume ---
  PV Name               /dev/sdh
  VG Name               sdh_thinPool
  PV Size               1.09 TiB / not usable <1.59 MiB
  Allocatable           yes 
  PE Size               4.00 MiB
  Total PE              286160
  Free PE               30
  Allocated PE          286130
  PV UUID               NHORh3-YaHf-CssJ-IqqT-j3FM-vcpI-elSI4i


=============================================================================

vgs

  ceph-c8f585b1-835b-4584-9b44-687543a5ef12   1   1   0 wz--n-  1.09t      0 
  pve                                         2   3   0 wz--n- <1.31t  <1.01t
  sdh_thinPool                                1   5   0 wz--n-  1.09t 120.00m

    

vgdisplay

  --- Volume group ---
  VG Name               pve
  System ID             
  Format                lvm2
  Metadata Areas        2
  Metadata Sequence No  13
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                3
  Open LV               2
  Max PV                0
  Cur PV                2
  Act PV                2
  VG Size               <1.31 TiB
  PE Size               4.00 MiB
  Total PE              343249
  Alloc PE / Size       78594 / <307.01 GiB
  Free  PE / Size       264655 / <1.01 TiB
  VG UUID               ut9tSq-VL7P-abb4-YmEi-zAoV-w9DP-9Ci7l8

--- Volume group ---
  VG Name sdh_thinPool
  System ID             
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  12
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                5
  Open LV               2
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               1.09 TiB
  PE Size               4.00 MiB
  Total PE              286160
  Alloc PE / Size       286130 / 1.09 TiB
  Free  PE / Size       30 / 120.00 MiB
  VG UUID               b2ZreT-EXdF-S8yQ-6DUA-1YnI-hZgh-AN2Dgz


==============================================================

lvs

LV                  VG             Attr       LSize   Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
  data              pve            twi-aotz--   1.11t             0.42   0.20
  root              pve            -wi-ao---- 155.75g
  swap              pve            -wi-ao----   8.00g
  vm-123-disk-0     pve            Vwi-a-tz--  20.00g data        24.21    

  

lvdisplay

--- Logical volume ---
LV Name data
VG Name pve
LV UUID IUc7pT-Df9y-7pQt-vndT-zloU-YJxi-2IrXsh
LV Write Access read/write (activated read only)
LV Creation host, time proxmox, 2020-06-02 07:51:03 +0800
LV Pool metadata data_tmeta
LV Pool data data_tdata
LV Status available
# open 0
LV Size 140.39 GiB
Allocated pool data 0.00%
Allocated metadata 1.14%
Current LE 35940
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:14

  --- Logical volume ---
  LV Name                sdh_thinPool
  VG Name                sdh_thinPool
  LV UUID                UNmZHv-dwut-4tB4-5fQ1-Tn45-KuPx-pCa4Hv
  LV Write Access        read/write (activated read only)
  LV Creation host, time prox1, 2022-07-07 10:45:34 +0800
  LV Pool metadata       sdh_thinPool_tmeta
  LV Pool data           sdh_thinPool_tdata
  LV Status              available
  # open                 0
  LV Size                <1.07 TiB
  Allocated pool data    0.73%
  Allocated metadata     0.21%
  Current LE             280406
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:16


=====================================================================


lsblk

sdk                                                  8:160  0 223.5G  0 disk 
|-sdk1                                               8:161  0  1007K  0 part 
|-sdk2                                               8:162  0   512M  0 part /boot/efi
`-sdk3                                               8:163  0   223G  0 part 
  |-pve-swap                                       253:7    0     8G  0 lvm  [SWAP]
  |-pve-root                                       253:8    0 155.8G  0 lvm  /
  |-pve-data_tmeta                                 253:9    0  11.4G  0 lvm 
  | `-pve-data-tpool                               253:11   0   1.1T  0 lvm  
  |   |-pve-data                                   253:12   0   1.1T  1 lvm  
  |   `-pve-vm--123--disk--0                       253:13   0    20G  0 lvm  
  `-pve-data_tdata                                 253:10   0   1.1T  0 lvm  
    `-pve-data-tpool                               253:11   0   1.1T  0 lvm  
      |-pve-data                                   253:12   0   1.1T  1 lvm  
      `-pve-vm--123--disk--0                       253:13   0    20G  0 lvm  













ref:
https://forum.proxmox.com/threads/resize-local-or-local-lvm-and-how.105263/