<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title>Hexo</title>
  
  
  <link href="https://moki.org.pl/atom.xml" rel="self"/>
  
  <link href="https://moki.org.pl/"/>
  <updated>2025-12-09T17:34:35.000Z</updated>
  <id>https://moki.org.pl/</id>
  
  <author>
    <name>Marcin Bagiński</name>
    
  </author>
  
  <generator uri="https://hexo.io/">Hexo</generator>
  
  <entry>
    <title>Update Debian 12 (Bookworm) to Debian 13 (Trixie)</title>
    <link href="https://moki.org.pl/2025/12/09/update-debian-12-bookworm-to-13-trixie/"/>
    <id>https://moki.org.pl/2025/12/09/update-debian-12-bookworm-to-13-trixie/</id>
    <published>2025-12-09T17:34:35.000Z</published>
    <updated>2025-12-09T17:34:35.000Z</updated>
    
    <content type="html"><![CDATA[<p>Prepare:</p><div class="highlight-container" data-rel="Shell"><figure class="iseeu highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">apt update</span><br><span class="line">apt upgrade -qqy</span><br><span class="line">apt dist-upgrade -qqy</span><br></pre></td></tr></table></figure></div><p>Update APT:</p><div class="highlight-container" data-rel="Shell"><figure class="iseeu highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sed -i &#x27;s/bookworm/trixie/g&#x27; /etc/apt/sources.list</span><br></pre></td></tr></table></figure></div><p>Upgrade:</p><div class="highlight-container" data-rel="Shell"><figure class="iseeu highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line">apt update &amp;&amp; \</span><br><span class="line">apt upgrade -qqy --without-new-pkgs &amp;&amp; \</span><br><span class="line">apt full-upgrade -qqy &amp;&amp; \</span><br><span class="line">apt --purge autoremove -qqy &amp;&amp; \</span><br><span class="line">apt clean</span><br></pre></td></tr></table></figure></div><p>Reboot:</p><div class="highlight-container" data-rel="Shell"><figure class="iseeu highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">reboot</span><br></pre></td></tr></table></figure></div>]]></content>
    
    
      
      
    <summary type="html">&lt;p&gt;Prepare:&lt;/p&gt;
&lt;div class=&quot;highlight-container&quot; data-rel=&quot;Shell&quot;&gt;&lt;figure class=&quot;iseeu highlight shell&quot;&gt;&lt;table&gt;&lt;tr&gt;&lt;td class=&quot;gutter&quot;&gt;&lt;pre&gt;&lt;</summary>
      
    
    
    
    <category term="Bez kategorii" scheme="https://moki.org.pl/categories/Bez-kategorii/"/>
    
    
    <category term="Debian" scheme="https://moki.org.pl/tags/Debian/"/>
    
    <category term="linux" scheme="https://moki.org.pl/tags/linux/"/>
    
  </entry>
  
  <entry>
    <title>OpenStack Kolla - fix HAproxy</title>
    <link href="https://moki.org.pl/2025/11/21/openstack-kolla-fix-haproxy/"/>
    <id>https://moki.org.pl/2025/11/21/openstack-kolla-fix-haproxy/</id>
    <published>2025-11-21T16:50:34.000Z</published>
    <updated>2025-11-21T16:50:34.000Z</updated>
    
    <content type="html"><![CDATA[<div class="highlight-container" data-rel="Shell"><figure class="iseeu highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">ip addr add &lt;kolla_external_vip_interface&gt;/32 dev &lt;iface&gt;</span><br><span class="line">ip addr add &lt;kolla_internal_vip_interface&gt;/32 dev &lt;iface&gt;</span><br><span class="line">docker restart haproxy</span><br></pre></td></tr></table></figure></div>]]></content>
    
    
      
      
    <summary type="html">&lt;div class=&quot;highlight-container&quot; data-rel=&quot;Shell&quot;&gt;&lt;figure class=&quot;iseeu highlight shell&quot;&gt;&lt;table&gt;&lt;tr&gt;&lt;td class=&quot;gutter&quot;&gt;&lt;pre&gt;&lt;span class=&quot;line</summary>
      
    
    
    
    <category term="Bez kategorii" scheme="https://moki.org.pl/categories/Bez-kategorii/"/>
    
    
    <category term="OpenStack" scheme="https://moki.org.pl/tags/OpenStack/"/>
    
    <category term="cloud" scheme="https://moki.org.pl/tags/cloud/"/>
    
    <category term="OpenStack Kolla" scheme="https://moki.org.pl/tags/OpenStack-Kolla/"/>
    
  </entry>
  
  <entry>
    <title>Git - force use specific SSH key</title>
    <link href="https://moki.org.pl/2025/11/15/git-force%20specific-ssh-key/"/>
    <id>https://moki.org.pl/2025/11/15/git-force%20specific-ssh-key/</id>
    <published>2025-11-15T08:42:23.000Z</published>
    <updated>2025-11-15T08:42:23.000Z</updated>
    
    <content type="html"><![CDATA[<div class="highlight-container" data-rel="Shell"><figure class="iseeu highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">git config --local core.sshCommand &#x27;ssh -i /home/user-name/.ssh/id_ed25519&#x27;</span><br></pre></td></tr></table></figure></div>]]></content>
    
    
      
      
    <summary type="html">&lt;div class=&quot;highlight-container&quot; data-rel=&quot;Shell&quot;&gt;&lt;figure class=&quot;iseeu highlight shell&quot;&gt;&lt;table&gt;&lt;tr&gt;&lt;td class=&quot;gutter&quot;&gt;&lt;pre&gt;&lt;span class=&quot;line</summary>
      
    
    
    
    <category term="Bez kategorii" scheme="https://moki.org.pl/categories/Bez-kategorii/"/>
    
    
    <category term="GIT" scheme="https://moki.org.pl/tags/GIT/"/>
    
  </entry>
  
  <entry>
    <title>MySQL Group Replication - force group recovery</title>
    <link href="https://moki.org.pl/2025/10/08/mysql-group-replication-force-group-recovery/"/>
    <id>https://moki.org.pl/2025/10/08/mysql-group-replication-force-group-recovery/</id>
    <published>2025-10-08T19:09:23.000Z</published>
    <updated>2025-10-08T19:09:23.000Z</updated>
    
    <content type="html"><![CDATA[<p><code>CLONE INSTANCE FROM</code> is optional.</p><div class="highlight-container" data-rel="Sql"><figure class="iseeu highlight sql"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line">STOP GROUP_REPLICATION;</span><br><span class="line">reset replica;</span><br><span class="line"><span class="keyword">set</span> <span class="keyword">global</span> group_replication_clone_threshold<span class="operator">=</span><span class="number">1</span>;</span><br><span class="line">CLONE INSTANCE <span class="keyword">FROM</span> <span class="string">&#x27;REPLICATION_USER&#x27;</span>@<span class="string">&#x27;ALIVE_SERVER_IP&#x27;</span>:<span class="number">3306</span> IDENTIFIED <span class="keyword">BY</span> <span class="string">&#x27;REPLICATION_PASSWORD&#x27;</span>;</span><br><span class="line"><span class="keyword">START</span> GROUP_REPLICATION;</span><br></pre></td></tr></table></figure></div>]]></content>
    
    
      
      
    <summary type="html">&lt;p&gt;&lt;code&gt;CLONE INSTANCE FROM&lt;/code&gt; is optional.&lt;/p&gt;
&lt;div class=&quot;highlight-container&quot; data-rel=&quot;Sql&quot;&gt;&lt;figure class=&quot;iseeu highlight sql&quot;&gt;&lt;ta</summary>
      
    
    
    
    <category term="Bez kategorii" scheme="https://moki.org.pl/categories/Bez-kategorii/"/>
    
    
    <category term="mysql" scheme="https://moki.org.pl/tags/mysql/"/>
    
    <category term="group replication" scheme="https://moki.org.pl/tags/group-replication/"/>
    
    <category term="replication" scheme="https://moki.org.pl/tags/replication/"/>
    
  </entry>
  
  <entry>
    <title>Ceph - remove host</title>
    <link href="https://moki.org.pl/2025/09/25/ceph-remove-host/"/>
    <id>https://moki.org.pl/2025/09/25/ceph-remove-host/</id>
    <published>2025-09-25T05:29:01.000Z</published>
    <updated>2025-09-25T05:29:01.000Z</updated>
    
    <content type="html"><![CDATA[<p>List services:</p><div class="highlight-container" data-rel="Shell"><figure class="iseeu highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">ceph orch ps</span><br></pre></td></tr></table></figure></div><p>Remove services:</p><div class="highlight-container" data-rel="Shell"><figure class="iseeu highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">ceph orch host drain NODE_NAME</span><br></pre></td></tr></table></figure></div><p>Remove host:</p><div class="highlight-container" data-rel="Shell"><figure class="iseeu highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">ceph orch host rm NODE_NAME --force</span><br></pre></td></tr></table></figure></div>]]></content>
    
    
      
      
    <summary type="html">&lt;p&gt;List services:&lt;/p&gt;
&lt;div class=&quot;highlight-container&quot; data-rel=&quot;Shell&quot;&gt;&lt;figure class=&quot;iseeu highlight shell&quot;&gt;&lt;table&gt;&lt;tr&gt;&lt;td class=&quot;gutter&quot;&gt;</summary>
      
    
    
    
    
    <category term="Ceph" scheme="https://moki.org.pl/tags/Ceph/"/>
    
  </entry>
  
  <entry>
    <title>Ceph - defragment OSD</title>
    <link href="https://moki.org.pl/2025/09/15/ceph-defragment-osd/"/>
    <id>https://moki.org.pl/2025/09/15/ceph-defragment-osd/</id>
    <published>2025-09-15T05:19:01.000Z</published>
    <updated>2025-09-15T05:19:01.000Z</updated>
    
    <content type="html"><![CDATA[<p>Check for score:</p><div class="highlight-container" data-rel="Shell"><figure class="iseeu highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">ceph daemon osd.0 bluestore allocator score block</span><br></pre></td></tr></table></figure></div><p>Stop OSD: </p><div class="highlight-container" data-rel="Shell"><figure class="iseeu highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">ceph orch daemon stop osd.0</span><br></pre></td></tr></table></figure></div><p>Deframgment:</p><div class="highlight-container" data-rel="Shell"><figure class="iseeu highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">cephadm shell --name osd.0 ceph-bluestore-tool bluestore trim</span><br></pre></td></tr></table></figure></div><p>Start OSD:</p><div class="highlight-container" data-rel="Shell"><figure class="iseeu highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">ceph orch daemon start osd.0</span><br></pre></td></tr></table></figure></div>]]></content>
    
    
      
      
    <summary type="html">&lt;p&gt;Check for score:&lt;/p&gt;
&lt;div class=&quot;highlight-container&quot; data-rel=&quot;Shell&quot;&gt;&lt;figure class=&quot;iseeu highlight shell&quot;&gt;&lt;table&gt;&lt;tr&gt;&lt;td class=&quot;gutter</summary>
      
    
    
    
    
    <category term="Ceph" scheme="https://moki.org.pl/tags/Ceph/"/>
    
  </entry>
  
  <entry>
    <title>OpenStack Kolla - remove RabbitMQ</title>
    <link href="https://moki.org.pl/2025/09/03/openstack-kolla-remove-rabbitmq/"/>
    <id>https://moki.org.pl/2025/09/03/openstack-kolla-remove-rabbitmq/</id>
    <published>2025-09-03T20:54:11.000Z</published>
    <updated>2025-09-03T20:54:11.000Z</updated>
    
    <content type="html"><![CDATA[<div class="highlight-container" data-rel="Shell"><figure class="iseeu highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line">docker ps -a --filter &quot;name=rabbitmq&quot; -q | xargs -r docker rm -f ; \</span><br><span class="line">docker volume ls --filter &quot;name=rabbitmq&quot; -q | xargs -r docker volume rm ; \</span><br><span class="line">docker images --filter &quot;reference=*rabbitmq*&quot; -q | xargs -r docker rmi -f ; \</span><br><span class="line">rm -rf /var/lib/kolla/volumes/rabbitmq ; \</span><br><span class="line">rm -rf /etc/kolla/rabbitmq ; \</span><br><span class="line">rm -rf /var/log/kolla/rabbitmq/</span><br></pre></td></tr></table></figure></div>]]></content>
    
    
      
      
    <summary type="html">&lt;div class=&quot;highlight-container&quot; data-rel=&quot;Shell&quot;&gt;&lt;figure class=&quot;iseeu highlight shell&quot;&gt;&lt;table&gt;&lt;tr&gt;&lt;td class=&quot;gutter&quot;&gt;&lt;pre&gt;&lt;span class=&quot;line</summary>
      
    
    
    
    <category term="Bez kategorii" scheme="https://moki.org.pl/categories/Bez-kategorii/"/>
    
    
    <category term="OpenStack" scheme="https://moki.org.pl/tags/OpenStack/"/>
    
    <category term="cloud" scheme="https://moki.org.pl/tags/cloud/"/>
    
    <category term="OpenStack Kolla" scheme="https://moki.org.pl/tags/OpenStack-Kolla/"/>
    
  </entry>
  
  <entry>
    <title>Ubuntu - grow root partition</title>
    <link href="https://moki.org.pl/2025/08/20/ubuntu-grow-root-disk/"/>
    <id>https://moki.org.pl/2025/08/20/ubuntu-grow-root-disk/</id>
    <published>2025-08-20T17:34:35.000Z</published>
    <updated>2025-08-20T17:34:35.000Z</updated>
    
    <content type="html"><![CDATA[<div class="highlight-container" data-rel="Shell"><figure class="iseeu highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">echo 1 | sudo tee /sys/class/block/sda/device/rescan ; parted -fs /dev/sda print &amp;&amp; parted -sf /dev/sda resizepart 3 100% &amp;&amp; partprobe &amp;&amp; pvresize /dev/sda3 &amp;&amp; lvextend -r -l +100%FREE /dev/ubuntu-vg/ubuntu-lv ; df -h</span><br></pre></td></tr></table></figure></div>]]></content>
    
    
      
      
    <summary type="html">&lt;div class=&quot;highlight-container&quot; data-rel=&quot;Shell&quot;&gt;&lt;figure class=&quot;iseeu highlight shell&quot;&gt;&lt;table&gt;&lt;tr&gt;&lt;td class=&quot;gutter&quot;&gt;&lt;pre&gt;&lt;span class=&quot;line</summary>
      
    
    
    
    <category term="Bez kategorii" scheme="https://moki.org.pl/categories/Bez-kategorii/"/>
    
    
    <category term="Debian" scheme="https://moki.org.pl/tags/Debian/"/>
    
    <category term="linux" scheme="https://moki.org.pl/tags/linux/"/>
    
    <category term="Ubuntu" scheme="https://moki.org.pl/tags/Ubuntu/"/>
    
  </entry>
  
  <entry>
    <title>Ubuntu upgrade</title>
    <link href="https://moki.org.pl/2025/08/14/ubuntu-upgrade/"/>
    <id>https://moki.org.pl/2025/08/14/ubuntu-upgrade/</id>
    <published>2025-08-14T05:19:01.000Z</published>
    <updated>2025-08-14T05:19:01.000Z</updated>
    
    <content type="html"><![CDATA[<div class="highlight-container" data-rel="Shell"><figure class="iseeu highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br></pre></td><td class="code"><pre><span class="line">alias X=&quot;ssh root@1.2.3.4&quot;</span><br><span class="line">X &lt;&lt;&#x27;EOF&#x27;</span><br><span class="line">tee /etc/apt/apt.conf.d/99force-conf &gt; /dev/null &lt;&lt;&#x27;BLOB&#x27;</span><br><span class="line">Dpkg::Options &#123;</span><br><span class="line">   &quot;--force-confdef&quot;;</span><br><span class="line">   &quot;--force-confold&quot;;</span><br><span class="line">&#125;</span><br><span class="line">BLOB</span><br><span class="line">export DEBIAN_FRONTEND=noninteractive</span><br><span class="line">apt update</span><br><span class="line">apt update -y</span><br><span class="line">apt full-upgrade -y</span><br><span class="line">apt autoremove -y</span><br><span class="line">exit</span><br><span class="line">EOF</span><br><span class="line">X -c &quot;&#x27;reboot&#x27;&quot;</span><br><span class="line">sleep 120 &amp;&amp; X -c &quot;&#x27;export DEBIAN_FRONTEND=noninteractive &amp;&amp; do-release-upgrade&#x27;&quot;</span><br></pre></td></tr></table></figure></div>]]></content>
    
    
      
      
    <summary type="html">&lt;div class=&quot;highlight-container&quot; data-rel=&quot;Shell&quot;&gt;&lt;figure class=&quot;iseeu highlight shell&quot;&gt;&lt;table&gt;&lt;tr&gt;&lt;td class=&quot;gutter&quot;&gt;&lt;pre&gt;&lt;span class=&quot;line</summary>
      
    
    
    
    
    <category term="Ceph" scheme="https://moki.org.pl/tags/Ceph/"/>
    
  </entry>
  
  <entry>
    <title>OpenStack Kolla - fix MariaDB</title>
    <link href="https://moki.org.pl/2025/08/06/openstack-kolla-fix-mariadb/"/>
    <id>https://moki.org.pl/2025/08/06/openstack-kolla-fix-mariadb/</id>
    <published>2025-08-06T16:50:34.000Z</published>
    <updated>2025-08-06T16:50:34.000Z</updated>
    
    <content type="html"><![CDATA[<div class="highlight-container" data-rel="Shell"><figure class="iseeu highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">kolla-ansible mariadb-recovery -i /etc/kolla/inventory</span><br></pre></td></tr></table></figure></div>]]></content>
    
    
      
      
    <summary type="html">&lt;div class=&quot;highlight-container&quot; data-rel=&quot;Shell&quot;&gt;&lt;figure class=&quot;iseeu highlight shell&quot;&gt;&lt;table&gt;&lt;tr&gt;&lt;td class=&quot;gutter&quot;&gt;&lt;pre&gt;&lt;span class=&quot;line</summary>
      
    
    
    
    <category term="Bez kategorii" scheme="https://moki.org.pl/categories/Bez-kategorii/"/>
    
    
    <category term="OpenStack" scheme="https://moki.org.pl/tags/OpenStack/"/>
    
    <category term="cloud" scheme="https://moki.org.pl/tags/cloud/"/>
    
    <category term="OpenStack Kolla" scheme="https://moki.org.pl/tags/OpenStack-Kolla/"/>
    
  </entry>
  
  <entry>
    <title>OpenStack Kolla - fix Redis</title>
    <link href="https://moki.org.pl/2025/08/06/openstack-kolla-fix-redis/"/>
    <id>https://moki.org.pl/2025/08/06/openstack-kolla-fix-redis/</id>
    <published>2025-08-06T16:50:34.000Z</published>
    <updated>2025-08-06T16:50:34.000Z</updated>
    
    <content type="html"><![CDATA[<div class="highlight-container" data-rel="Shell"><figure class="iseeu highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br></pre></td><td class="code"><pre><span class="line">if [ &quot;$(tail -n 100 /var/log/kolla/redis/redis.log | grep &#x27;AOF file, then use ./redis-check-aof&#x27; | wc -l)&quot; -gt 0 ]; then</span><br><span class="line">    echo &#x27;finxing&#x27;</span><br><span class="line">    FILENAME=&quot;$(tail -n 100 /var/log/kolla/redis/redis.log | grep &#x27;Bad file format reading the append only file&#x27; | head -n 1 | cut -d &#x27;:&#x27; -f 4 | cut -d &#x27; &#x27; -f 11)&quot;</span><br><span class="line">    IMAGE_ID=&quot;$(docker ps -a | grep &#x27;kolla/redis:&#x27; | awk &#x27;&#123;print $1&#125;&#x27;)&quot;</span><br><span class="line">    DOCKER_IMAGE_NAME=&quot;$(docker ps -a | grep &quot;$IMAGE_ID&quot; | awk &#x27;&#123;print $2&#125;&#x27;)&quot;</span><br><span class="line">    docker stop redis</span><br><span class="line">    docker run -it --rm -v /var/lib/docker/volumes/redis/_data/:/var/lib/redis $DOCKER_IMAGE_NAME bash -c &quot;echo &#x27;y&#x27; | redis-check-aof --fix &#x27;/var/lib/redis/appendonlydir/$FILENAME&#x27;&quot;</span><br><span class="line">    docker restart redis</span><br><span class="line">    tail -f /var/log/kolla/redis/redis*.log</span><br><span class="line">else</span><br><span class="line">    echo &#x27;problem not found&#x27;</span><br><span class="line">fi</span><br></pre></td></tr></table></figure></div>]]></content>
    
    
      
      
    <summary type="html">&lt;div class=&quot;highlight-container&quot; data-rel=&quot;Shell&quot;&gt;&lt;figure class=&quot;iseeu highlight shell&quot;&gt;&lt;table&gt;&lt;tr&gt;&lt;td class=&quot;gutter&quot;&gt;&lt;pre&gt;&lt;span class=&quot;line</summary>
      
    
    
    
    <category term="Bez kategorii" scheme="https://moki.org.pl/categories/Bez-kategorii/"/>
    
    
    <category term="OpenStack" scheme="https://moki.org.pl/tags/OpenStack/"/>
    
    <category term="cloud" scheme="https://moki.org.pl/tags/cloud/"/>
    
    <category term="OpenStack Kolla" scheme="https://moki.org.pl/tags/OpenStack-Kolla/"/>
    
  </entry>
  
  <entry>
    <title>OpenStack Kolla - upgrade</title>
    <link href="https://moki.org.pl/2025/08/06/openstack-kolla-upgrade/"/>
    <id>https://moki.org.pl/2025/08/06/openstack-kolla-upgrade/</id>
    <published>2025-08-06T16:50:34.000Z</published>
    <updated>2025-08-06T16:50:34.000Z</updated>
    
    <content type="html"><![CDATA[<p>Prepare passwords and inventory:</p><div class="highlight-container" data-rel="Shell"><figure class="iseeu highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br></pre></td><td class="code"><pre><span class="line">cp /usr/local/share/kolla-ansible/etc_examples/kolla/globals.yml /etc/kolla/globals.yml &amp;&amp; \</span><br><span class="line">cp /usr/local/share/kolla-ansible/ansible/inventory/multinode /etc/kolla/inventory/config/openstack &amp;&amp; \</span><br><span class="line">cp /etc/kolla/passwords.yml /tmp/passwords.yml.old &amp;&amp; \</span><br><span class="line">cp /usr/local/share/kolla-ansible/etc_examples/kolla/passwords.yml /tmp/passwords.yml.new &amp;&amp; \</span><br><span class="line">kolla-genpwd -p /tmp/passwords.yml.new &amp;&amp; \</span><br><span class="line">kolla-mergepwd --old /tmp/passwords.yml.old --new /tmp/passwords.yml.new --final /etc/kolla/passwords.yml &amp;&amp; \</span><br><span class="line">rm /tmp/passwords.yml.old /tmp/passwords.yml.new</span><br></pre></td></tr></table></figure></div><ul><li>diff <code>/etc/kolla/globals.yml</code> with your version from version control</li><li>diff <code>/etc/kolla/inventory</code> with your version from version control</li></ul><p>Fix python:</p><div class="highlight-container" data-rel="Shell"><figure class="iseeu highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED</span><br></pre></td></tr></table></figure></div><p>Pull images:</p><div class="highlight-container" data-rel="Shell"><figure class="iseeu highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">kolla-ansible pull -i /etc/kolla/inventory</span><br></pre></td></tr></table></figure></div><p>Checks:</p><div class="highlight-container" data-rel="Shell"><figure class="iseeu highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">kolla-ansible prechecks -i /etc/kolla/inventory</span><br></pre></td></tr></table></figure></div><p>Upgrade:</p><div class="highlight-container" data-rel="Shell"><figure class="iseeu highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">kolla-ansible upgrade -i /etc/kolla/inventory</span><br></pre></td></tr></table></figure></div><p>Post deploy:</p><div class="highlight-container" data-rel="Shell"><figure class="iseeu highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">kolla-ansible post-deploy -i /etc/kolla/inventory</span><br></pre></td></tr></table></figure></div>]]></content>
    
    
      
      
    <summary type="html">&lt;p&gt;Prepare passwords and inventory:&lt;/p&gt;
&lt;div class=&quot;highlight-container&quot; data-rel=&quot;Shell&quot;&gt;&lt;figure class=&quot;iseeu highlight shell&quot;&gt;&lt;table&gt;&lt;tr&gt;&lt;</summary>
      
    
    
    
    <category term="Bez kategorii" scheme="https://moki.org.pl/categories/Bez-kategorii/"/>
    
    
    <category term="OpenStack" scheme="https://moki.org.pl/tags/OpenStack/"/>
    
    <category term="cloud" scheme="https://moki.org.pl/tags/cloud/"/>
    
    <category term="OpenStack Kolla" scheme="https://moki.org.pl/tags/OpenStack-Kolla/"/>
    
  </entry>
  
  <entry>
    <title>Ceph - recovery speedup</title>
    <link href="https://moki.org.pl/2025/08/06/ceph-recovery-speedup/"/>
    <id>https://moki.org.pl/2025/08/06/ceph-recovery-speedup/</id>
    <published>2025-08-06T05:19:01.000Z</published>
    <updated>2025-08-06T05:19:01.000Z</updated>
    
    <content type="html"><![CDATA[<p>Speedup:</p><div class="highlight-container" data-rel="Shell"><figure class="iseeu highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">ceph tell &#x27;osd.*&#x27; injectargs &#x27;--osd-max-backfills 16&#x27;</span><br><span class="line">ceph tell &#x27;osd.*&#x27; injectargs &#x27;--osd-recovery-max-active 4&#x27;</span><br></pre></td></tr></table></figure></div><p>Normal:</p><div class="highlight-container" data-rel="Shell"><figure class="iseeu highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">ceph tell &#x27;osd.*&#x27; injectargs &#x27;--osd-max-backfills 1&#x27;</span><br><span class="line">ceph tell &#x27;osd.*&#x27; injectargs &#x27;--osd-recovery-max-active 0&#x27;</span><br></pre></td></tr></table></figure></div>]]></content>
    
    
      
      
    <summary type="html">&lt;p&gt;Speedup:&lt;/p&gt;
&lt;div class=&quot;highlight-container&quot; data-rel=&quot;Shell&quot;&gt;&lt;figure class=&quot;iseeu highlight shell&quot;&gt;&lt;table&gt;&lt;tr&gt;&lt;td class=&quot;gutter&quot;&gt;&lt;pre&gt;&lt;</summary>
      
    
    
    
    
    <category term="Ceph" scheme="https://moki.org.pl/tags/Ceph/"/>
    
  </entry>
  
  <entry>
    <title>Ceph - add host</title>
    <link href="https://moki.org.pl/2025/08/05/ceph-add-host/"/>
    <id>https://moki.org.pl/2025/08/05/ceph-add-host/</id>
    <published>2025-08-05T05:29:01.000Z</published>
    <updated>2025-08-05T05:29:01.000Z</updated>
    
    <content type="html"><![CDATA[<p>List services:</p><div class="highlight-container" data-rel="Shell"><figure class="iseeu highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">cephadm shell ceph orch host add NODE_NAME IP_ADDRESS</span><br></pre></td></tr></table></figure></div><p>Example:</p><div class="highlight-container" data-rel="Shell"><figure class="iseeu highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">cephadm shell ceph orch host add ceph-4 10.10.10.14</span><br></pre></td></tr></table></figure></div>]]></content>
    
    
      
      
    <summary type="html">&lt;p&gt;List services:&lt;/p&gt;
&lt;div class=&quot;highlight-container&quot; data-rel=&quot;Shell&quot;&gt;&lt;figure class=&quot;iseeu highlight shell&quot;&gt;&lt;table&gt;&lt;tr&gt;&lt;td class=&quot;gutter&quot;&gt;</summary>
      
    
    
    
    
    <category term="Ceph" scheme="https://moki.org.pl/tags/Ceph/"/>
    
  </entry>
  
  <entry>
    <title>Ceph - remove OSD</title>
    <link href="https://moki.org.pl/2025/08/05/ceph-remove-osd/"/>
    <id>https://moki.org.pl/2025/08/05/ceph-remove-osd/</id>
    <published>2025-08-05T05:29:01.000Z</published>
    <updated>2025-08-05T05:29:01.000Z</updated>
    
    <content type="html"><![CDATA[<p>List OSD:</p><div class="highlight-container" data-rel="Shell"><figure class="iseeu highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">ceph osd tree</span><br></pre></td></tr></table></figure></div><p>List volumes:</p><div class="highlight-container" data-rel="Shell"><figure class="iseeu highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">cephadm shell -- ceph-volume lvm list</span><br></pre></td></tr></table></figure></div><p>Remove OSD:</p><div class="highlight-container" data-rel="Shell"><figure class="iseeu highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br></pre></td><td class="code"><pre><span class="line">export ID=&quot;11&quot; ; \</span><br><span class="line">ceph osd out $ID ; \</span><br><span class="line">ceph osd down $ID ; \</span><br><span class="line">ceph osd rm $ID ; \</span><br><span class="line">ceph auth del osd.$ID ; \</span><br><span class="line">ceph orch daemon rm osd.$ID --force ; \</span><br><span class="line">ceph osd crush remove osd.$ID</span><br></pre></td></tr></table></figure></div><p>Wipe disk:</p><div class="highlight-container" data-rel="Shell"><figure class="iseeu highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">ceph orch device zap HOST DEVICE --force</span><br></pre></td></tr></table></figure></div><p>Example:</p><div class="highlight-container" data-rel="Shell"><figure class="iseeu highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">ceph orch device zap ceph-node-1 /dev/sde --force</span><br></pre></td></tr></table></figure></div>]]></content>
    
    
      
      
    <summary type="html">&lt;p&gt;List OSD:&lt;/p&gt;
&lt;div class=&quot;highlight-container&quot; data-rel=&quot;Shell&quot;&gt;&lt;figure class=&quot;iseeu highlight shell&quot;&gt;&lt;table&gt;&lt;tr&gt;&lt;td class=&quot;gutter&quot;&gt;&lt;pre&gt;</summary>
      
    
    
    
    
    <category term="Ceph" scheme="https://moki.org.pl/tags/Ceph/"/>
    
  </entry>
  
  <entry>
    <title>Ceph - add all available OSDs</title>
    <link href="https://moki.org.pl/2025/08/05/ceph-add-all-available-osds/"/>
    <id>https://moki.org.pl/2025/08/05/ceph-add-all-available-osds/</id>
    <published>2025-08-05T05:19:01.000Z</published>
    <updated>2025-08-05T05:19:01.000Z</updated>
    
    <content type="html"><![CDATA[<div class="highlight-container" data-rel="Shell"><figure class="iseeu highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">ceph orch apply osd --all-available-devices</span><br></pre></td></tr></table></figure></div>]]></content>
    
    
      
      
    <summary type="html">&lt;div class=&quot;highlight-container&quot; data-rel=&quot;Shell&quot;&gt;&lt;figure class=&quot;iseeu highlight shell&quot;&gt;&lt;table&gt;&lt;tr&gt;&lt;td class=&quot;gutter&quot;&gt;&lt;pre&gt;&lt;span class=&quot;line</summary>
      
    
    
    
    
    <category term="Ceph" scheme="https://moki.org.pl/tags/Ceph/"/>
    
  </entry>
  
  <entry>
    <title>Ceph - add new OSD</title>
    <link href="https://moki.org.pl/2025/08/05/ceph-add-new-osd/"/>
    <id>https://moki.org.pl/2025/08/05/ceph-add-new-osd/</id>
    <published>2025-08-05T05:19:01.000Z</published>
    <updated>2025-08-05T05:19:01.000Z</updated>
    
    <content type="html"><![CDATA[<div class="highlight-container" data-rel="Shell"><figure class="iseeu highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">ceph orch daemon add osd HOSTNAME:DEVICE_PATH</span><br></pre></td></tr></table></figure></div><p>Hosts list:</p><div class="highlight-container" data-rel="Shell"><figure class="iseeu highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">ceph orch host ls</span><br></pre></td></tr></table></figure></div><p>Devices list:</p><div class="highlight-container" data-rel="Shell"><figure class="iseeu highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">ceph orch device ls</span><br></pre></td></tr></table></figure></div><p>Disks list with optional node name:</p><div class="highlight-container" data-rel="Shell"><figure class="iseeu highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">ceph orch device ls [NODE_NAME]</span><br></pre></td></tr></table></figure></div><p>Example: </p><div class="highlight-container" data-rel="Shell"><figure class="iseeu highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">ceph orch daemon add osd ceph-node-1:/dev/sde</span><br></pre></td></tr></table></figure></div>]]></content>
    
    
      
      
    <summary type="html">&lt;div class=&quot;highlight-container&quot; data-rel=&quot;Shell&quot;&gt;&lt;figure class=&quot;iseeu highlight shell&quot;&gt;&lt;table&gt;&lt;tr&gt;&lt;td class=&quot;gutter&quot;&gt;&lt;pre&gt;&lt;span class=&quot;line</summary>
      
    
    
    
    
    <category term="Ceph" scheme="https://moki.org.pl/tags/Ceph/"/>
    
  </entry>
  
  <entry>
    <title>Ceph - force scrub and deep scrub</title>
    <link href="https://moki.org.pl/2025/08/05/ceph-force-scrub-and-deep-scrub/"/>
    <id>https://moki.org.pl/2025/08/05/ceph-force-scrub-and-deep-scrub/</id>
    <published>2025-08-05T05:19:01.000Z</published>
    <updated>2025-08-05T05:19:01.000Z</updated>
    
    <content type="html"><![CDATA[<div class="highlight-container" data-rel="Shell"><figure class="iseeu highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">ceph health detail | grep &quot;not scrubbed since&quot; | awk &#x27;&#123; print $2 &#125;&#x27; | xargs --no-run-if-empty -n1 ceph pg scrub ; \</span><br><span class="line">ceph health detail | grep &quot;not deep-scrubbed since&quot; | awk &#x27;&#123; print $2 &#125;&#x27; | xargs --no-run-if-empty -n1 ceph pg deep-scrub</span><br></pre></td></tr></table></figure></div>]]></content>
    
    
      
      
    <summary type="html">&lt;div class=&quot;highlight-container&quot; data-rel=&quot;Shell&quot;&gt;&lt;figure class=&quot;iseeu highlight shell&quot;&gt;&lt;table&gt;&lt;tr&gt;&lt;td class=&quot;gutter&quot;&gt;&lt;pre&gt;&lt;span class=&quot;line</summary>
      
    
    
    
    
    <category term="Ceph" scheme="https://moki.org.pl/tags/Ceph/"/>
    
  </entry>
  
  <entry>
    <title>Ceph - upgrade</title>
    <link href="https://moki.org.pl/2025/08/05/ceph-upgrade/"/>
    <id>https://moki.org.pl/2025/08/05/ceph-upgrade/</id>
    <published>2025-08-05T05:19:01.000Z</published>
    <updated>2025-08-05T05:19:01.000Z</updated>
    
    <content type="html"><![CDATA[<p>Check for <strong>HEALTH_OK</strong>:</p><div class="highlight-container" data-rel="Shell"><figure class="iseeu highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">ceph -s</span><br></pre></td></tr></table></figure></div><p>Start upgrade:</p><div class="highlight-container" data-rel="Shell"><figure class="iseeu highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">ceph orch upgrade start --ceph-version 19.2.3</span><br></pre></td></tr></table></figure></div><p>Monitor:</p><div class="highlight-container" data-rel="Shell"><figure class="iseeu highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">watch -n 1 ceph orch upgrade status</span><br></pre></td></tr></table></figure></div>]]></content>
    
    
      
      
    <summary type="html">&lt;p&gt;Check for &lt;strong&gt;HEALTH_OK&lt;/strong&gt;:&lt;/p&gt;
&lt;div class=&quot;highlight-container&quot; data-rel=&quot;Shell&quot;&gt;&lt;figure class=&quot;iseeu highlight shell&quot;&gt;&lt;table&gt;</summary>
      
    
    
    
    
    <category term="Ceph" scheme="https://moki.org.pl/tags/Ceph/"/>
    
  </entry>
  
  <entry>
    <title>Detect disks without reboot</title>
    <link href="https://moki.org.pl/2025/08/04/detect-disks-without-reboot/"/>
    <id>https://moki.org.pl/2025/08/04/detect-disks-without-reboot/</id>
    <published>2025-08-04T19:11:19.000Z</published>
    <updated>2025-08-04T19:11:19.000Z</updated>
    
    <content type="html"><![CDATA[<div class="highlight-container" data-rel="Shell"><figure class="iseeu highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">for host in /sys/class/scsi_host/*; do echo &quot;- - -&quot; | sudo tee $host/scan; ls /dev/sd* ; done</span><br></pre></td></tr></table></figure></div>]]></content>
    
    
      
      
    <summary type="html">&lt;div class=&quot;highlight-container&quot; data-rel=&quot;Shell&quot;&gt;&lt;figure class=&quot;iseeu highlight shell&quot;&gt;&lt;table&gt;&lt;tr&gt;&lt;td class=&quot;gutter&quot;&gt;&lt;pre&gt;&lt;span class=&quot;line</summary>
      
    
    
    
    <category term="Bez kategorii" scheme="https://moki.org.pl/categories/Bez-kategorii/"/>
    
    
    <category term="virtualization" scheme="https://moki.org.pl/tags/virtualization/"/>
    
    <category term="linux" scheme="https://moki.org.pl/tags/linux/"/>
    
  </entry>
  
</feed>
