<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Ceph on GpMidi.Net - Beard Stuff</title><link>https://www.gpmidi.net/tags/ceph/</link><description>Recent content in Ceph on GpMidi.Net - Beard Stuff</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Sat, 30 Jan 2021 19:31:38 +0000</lastBuildDate><atom:link href="https://www.gpmidi.net/tags/ceph/index.xml" rel="self" type="application/rss+xml"/><item><title>Running Reweight By Utilization In Octopus</title><link>https://www.gpmidi.net/posts/2021/running-reweight-by-utilization-in-octopus/</link><pubDate>Sat, 30 Jan 2021 19:30:13 +0000</pubDate><guid>https://www.gpmidi.net/posts/2021/running-reweight-by-utilization-in-octopus/</guid><description>&lt;p&gt;Need to run a reweight by utilization but can't with octopus? Try this...&lt;/p&gt;&#10;&lt;blockquote&gt;&#10;&lt;p&gt;ceph osd reweight-by-utilization 0.5 -- 150&lt;/p&gt;&#10;&lt;/blockquote&gt;&#10;&lt;p&gt;Errors: &lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;Invalid command: unused arguments&lt;/li&gt;&#10;&lt;li&gt;xxxxx not in --no-increasing&lt;/li&gt;&#10;&lt;/ul&gt;</description></item><item><title>Ceph: Frequent Node Reboots</title><link>https://www.gpmidi.net/posts/2021/ceph-frequent-node-reboots/</link><pubDate>Sun, 10 Jan 2021 20:19:24 +0000</pubDate><guid>https://www.gpmidi.net/posts/2021/ceph-frequent-node-reboots/</guid><description>&lt;p&gt;A few of my Ceph nodes with 60-ish disks each were experiencing frequent reboots. Turns out kernel.nmi_watchdog was rebooting it due to disks holding it up under very high load. By turning it off via `echo "kernel.nmi_watchdog=0" &amp;gt; /etc/sysctl.d/99-watchdog.conf` the problem was solved. Although I suspect there are better ways to tune NMI Watchdog to fix this. I'm being lazy. &lt;/p&gt;</description></item><item><title>Ceph: Networking Between Hosts</title><link>https://www.gpmidi.net/posts/2021/ceph-networking-between-hosts/</link><pubDate>Sat, 09 Jan 2021 19:55:04 +0000</pubDate><guid>https://www.gpmidi.net/posts/2021/ceph-networking-between-hosts/</guid><description>&lt;p&gt;Hosts in my cluster all have two 10GbE links to a switch bonded with LACP. That gives them an effective link of 20GbE normally. But really, even 5Gbps would be enough for most hosts. The kernel in most boxes combined with drivers and such isn't going to be able to push 20GbE, much less 40GbE. So faster isn't worth it. &lt;/p&gt;&#10;&lt;p&gt;Note: Don't bother with IPoIB. You're better off with 10GbE x2 via LACP. Although if it's a choice between 40Gbps IB and IPoIB or a couple of 1GbE lines, go IPoIB. &lt;/p&gt;</description></item><item><title>Ceph: What Drive Sizes To Use</title><link>https://www.gpmidi.net/posts/2021/ceph-what-drive-sizes-to-use/</link><pubDate>Sat, 09 Jan 2021 19:49:39 +0000</pubDate><guid>https://www.gpmidi.net/posts/2021/ceph-what-drive-sizes-to-use/</guid><description>&lt;h2&gt;Drive Counts&lt;/h2&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;43 2TB&lt;/li&gt;&#10;&lt;li&gt;1 2.5TB&lt;/li&gt;&#10;&lt;li&gt;23  3TB&lt;/li&gt;&#10;&lt;li&gt;42 8TB (In Ceph)&lt;/li&gt;&#10;&lt;li&gt;30 8TB (Not In Ceph)&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;h2&gt;Why&lt;/h2&gt;&#10;&lt;p&gt;Why these drives? They're the main data drives I've had and used for years. The only ones I'm going to remove soon are a subset of the 2TB drives with high spin times. Some of them have more than 8.5 years of spin time. I'll probably remove any disk with more than 6 years of spin time as a preventive measure. &lt;/p&gt;</description></item><item><title>Ceph: OSD Journal/WAL (&amp; Sometimes Database)</title><link>https://www.gpmidi.net/posts/2021/ceph-osd-journal-wal-sometimes-database/</link><pubDate>Sat, 09 Jan 2021 19:41:44 +0000</pubDate><guid>https://www.gpmidi.net/posts/2021/ceph-osd-journal-wal-sometimes-database/</guid><description>&lt;p&gt;Once GREAT option for improving OSD performance with spinning disk, esp slow disk, is to use a redundant array of SSDs for the Bluestore Journal. If you've got SSD space to spare you could even put the RocksDB on SSD too. But that needs a LOT more space. The Journal only needs a couple of GiB per OSD. &lt;a href="https://docs.ceph.com/en/octopus/rados/configuration/bluestore-config-ref/#sizing"&gt;RocksDB needs a LOT more&lt;/a&gt;. &lt;/p&gt;&#10;&lt;p&gt;One important note: If you're using CephMgr for deployment of your OSDs you may run into problems if you don't use hardware RAID for your OSD Journal SSD arrays. That's because they only want to add one, normal disk, not MD devices. &lt;/p&gt;</description></item><item><title>Ceph: osd_memory_target</title><link>https://www.gpmidi.net/posts/2021/ceph-osd-memory-target/</link><pubDate>Sat, 09 Jan 2021 19:37:48 +0000</pubDate><guid>https://www.gpmidi.net/posts/2021/ceph-osd-memory-target/</guid><description>&lt;p&gt;A couple of months back I changed the value of "osd_memory_target" for all of my OSDs from 4GiB to 1.5GiB. That change has stopped all RAM related issues on my cluster. While I suspect but can't prove a small performance drop, it's well worth it in my case. &lt;/p&gt;</description></item><item><title>NDS-4600 - SATA Drive Failures In Linux</title><link>https://www.gpmidi.net/posts/2020/nds-4600-sata-drive-failures-in-linux/</link><pubDate>Tue, 01 Dec 2020 22:01:58 +0000</pubDate><guid>https://www.gpmidi.net/posts/2020/nds-4600-sata-drive-failures-in-linux/</guid><description>&lt;p&gt;One issue I've recently run into with a failed SATA drive in one of my NDS-4600 units is that Linux frequently tries to recover the drive by resetting the bus. This takes out a few other disks in the group with it. The resulting IO timeouts cause problems for my Ceph OSDs using those disks. &lt;/p&gt;&#10;&lt;p&gt;It should be noted that only some types of disk failures cause this. The host bus resets only are done by the Linux kernel in some cases (I think) and I suspect the cause of the other disks errors is said disk. &lt;/p&gt;</description></item><item><title>Scrubbing Vs Deep Scrubbing</title><link>https://www.gpmidi.net/posts/2020/scrubbing-vs-deep-scrubbing/</link><pubDate>Wed, 03 Jun 2020 17:36:17 +0000</pubDate><guid>https://www.gpmidi.net/posts/2020/scrubbing-vs-deep-scrubbing/</guid><description>&lt;p&gt;Ceph has two forms of scrubbing that it runs periodically: Scrub and Deep Scrub&lt;/p&gt;&#10;&lt;p&gt;A Scrub is basically as fsck for replicated objects. It ensures that each object's replicas are all the latest version and exist. &lt;/p&gt;&#10;&lt;p&gt;A Deep Scrub is a full checksum validation of all data. &lt;/p&gt;</description></item><item><title>Ceph For Media Storage (Big But Slow I/O)</title><link>https://www.gpmidi.net/posts/2020/ceph-for-media-storage-big-but-slow-i-o/</link><pubDate>Wed, 03 Jun 2020 16:50:17 +0000</pubDate><guid>https://www.gpmidi.net/posts/2020/ceph-for-media-storage-big-but-slow-i-o/</guid><description>&lt;p&gt;My Ceph cluster at home isn't designed for performance. It's not designed to maximum availability. It's designed for a low cost per TiB while still maintaining usability and decent disk-level redundancy. Here is some recent tuning to help with performance and corruption prevention....&lt;/p&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;mds&#13;&#10;&#9;&lt;ol&gt;&#10;&lt;li&gt;mds_cache_memory_limit: 4GiB =&amp;gt; 8GiB&#13;&#10;&#9;&#9;&lt;ol&gt;&#10;&lt;li&gt;Target maximum memory usage of MDS cache&lt;/li&gt;&#10;&lt;li&gt;The default wasn't enough for the CephFS instance I have. Probably related to the number objects or frequency FS scans for metadata. &lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;osd&#13;&#10;&#9;&lt;ol&gt;&#10;&lt;li&gt;osd_deep_scrub_interval: 1w =&amp;gt; 8w&#13;&#10;&#9;&#9;&lt;ol&gt;&#10;&lt;li&gt;Deep scrub each PG (i.e., verify data checksums) at least this often&lt;/li&gt;&#10;&lt;li&gt;Scrubs on 200TiB (and about to grow another 150TiB) of data isn't feasible once a week&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;osd_op_queue: wpq =&amp;gt; mclock_client&#13;&#10;&#9;&#9;&lt;ol&gt;&#10;&lt;li&gt;Which operation priority queue algorithm to use&lt;/li&gt;&#10;&lt;li&gt;Changed from wpq to mclock_client to help with client and workload type per-osd disk queuing&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;osd_max_backfills: 1 =&amp;gt; 4&#13;&#10;&#9;&#9;&lt;ol&gt;&#10;&lt;li&gt;Maximum number of concurrent local and remote backfills or recoveries per OSD&lt;/li&gt;&#10;&lt;li&gt;While most spinning should keep this at one, this should help overcome network/cpu latency. I think. &lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;osd_recovery_max_active: 0 =&amp;gt; 4&#13;&#10;&#9;&#9;&lt;ol&gt;&#10;&lt;li&gt;Number of simultaneous active recovery operations per OSD (overrides _ssd and _hdd if non-zero)&lt;/li&gt;&#10;&lt;li&gt;Helps ensure the recovery operations go as fast as possible. This  may impact client read performance during recovery. But I'd prefer that over a higher chance of corruption, data loss, or other problems. &lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;osd_recovery_max_single_start: 1 =&amp;gt; 4&#13;&#10;&#9;&#9;&lt;ol&gt;&#10;&lt;li&gt;The maximum number of recovery operations per OSD that will be newly started when an OSD is recovering&lt;/li&gt;&#10;&lt;li&gt;See 2.3.2&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;osd_scrub_auto_repair: false =&amp;gt; true&#13;&#10;&#9;&#9;&lt;ol&gt;&#10;&lt;li&gt;Automatically repair damaged objects detected during scrub&lt;/li&gt;&#10;&lt;li&gt;If something corrupt or out of sync is found, let's get that fixed asap. &lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;osd_scrub_during_recovery: false =&amp;gt; true&#13;&#10;&#9;&#9;&lt;ol&gt;&#10;&lt;li&gt;Allow scrubbing when PGs on the OSD are undergoing recovery&lt;/li&gt;&#10;&lt;li&gt;See 2.3.2&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;osd_scrub_load_threshold: 0.5 =&amp;gt; 4&#13;&#10;&#9;&#9;&lt;ol&gt;&#10;&lt;li&gt;Allow scrubbing when system load divided by number of CPUs is below this value&lt;/li&gt;&#10;&lt;li&gt;The load on my OSD servers is usually above 1 during normal operations. It only seems to go above four during heavy recovery and other heavy ops. So this seemed a good middle ground. &lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;osd_scrub_max_interval: 1w =&amp;gt; 4w&#13;&#10;&#9;&#9;&lt;ol&gt;&#10;&lt;li&gt;Scrub each PG no less often than this interval&lt;/li&gt;&#10;&lt;li&gt;With 15 million objects / 220 million replicas as of 2020-06-03, every day seems like overkill. &lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;osd_scrub_min_interval: 1d =&amp;gt; 1w&#13;&#10;&#9;&#9;&lt;ol&gt;&#10;&lt;li&gt;Scrub each PG no more often than this interval&lt;/li&gt;&#10;&lt;li&gt;See 2.9.2&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;global&#13;&#10;&#9;&lt;ol&gt;&#10;&lt;li&gt;target_max_misplaced_ratio: 5% =&amp;gt; 1%&#13;&#10;&#9;&#9;&lt;ol&gt;&#10;&lt;li&gt;Max ratio of misplaced objects to target when throttling data rebalancing activity&lt;/li&gt;&#10;&lt;li&gt;Given the large number of objects in my cluster I figured this should be low so the reblancing is a higher priority. &lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;p&gt;These can be fetched with `ceph config get &amp;lt;level 0&amp;gt; &amp;lt;level 1&amp;gt;` and set with `ceph config set &amp;lt;level 0&amp;gt; &amp;lt;level 1&amp;gt; &amp;lt;value&amp;gt;` where "level 0" is the top level indent in the list and "level 1" is the second level indentation. &lt;/p&gt;</description></item><item><title>23TiB On CephFS &amp; Growing</title><link>https://www.gpmidi.net/posts/2020/23tib-on-cephfs-growing/</link><pubDate>Sun, 24 May 2020 17:37:49 +0000</pubDate><guid>https://www.gpmidi.net/posts/2020/23tib-on-cephfs-growing/</guid><description>&lt;h2&gt;&lt;a href="https://redd.it/gpuljd"&gt;Original post on Reddit&lt;/a&gt;&lt;/h2&gt;&#10;&lt;h2&gt; &lt;/h2&gt;&#10;&lt;h2&gt;Hardware&lt;/h2&gt;&#10;&lt;p&gt;Previously I &lt;a href="https://old.reddit.com/r/DataHoarder/comments/eyqay1/racked_two_used_60bay_das_units_nds4600jd05/"&gt;posted about the used 60-bay DAS units I recently acquired and racked&lt;/a&gt;. Since then I've &lt;a href="https://www.gpmidi.net/taxonomy/term/48"&gt;figured out the basics of using them&lt;/a&gt; and have them up and working. &lt;/p&gt;&#10;&lt;h2&gt;&lt;br/&gt;&#13;&#10;Ceph&lt;/h2&gt;&#10;&lt;p&gt;The current setup has one unit with 60 2TB-3TB drives attached to a single R710. The other unit has 22 2TB, 3TB, and 8TB disks. It's attached to one active R710. Although as the number of 8TB disks grows I'll be forced to attached the other two R710s to it. The reason for this is [Ceph](https://ceph.io/) OSDs need 1GB of RAM per OSD plus 1GB of RAM per TB of disk. The R710s each have 192GB of RAM in them. &lt;/p&gt;</description></item><item><title>Ceph With Many OSDs</title><link>https://www.gpmidi.net/posts/2020/ceph-with-many-osds/</link><pubDate>Sun, 24 May 2020 17:26:06 +0000</pubDate><guid>https://www.gpmidi.net/posts/2020/ceph-with-many-osds/</guid><description>&lt;p&gt;While setting up my Ceph cluster on a set of Dell R710s, one with 60 disks attached to it, I found that I needed to raise fs.aio-max-nr to around 1,000,000. SELinux also needed to be disabled. Once that was done the normal cephadm osd install worked great, even with 60 disks. &lt;/p&gt;&#10;&lt;blockquote&gt;&#10;&lt;pre&gt;&#13;&#10;$ cat /etc/sysctl.d/99-osd.conf&#13;&#10;&lt;h1 id="for-osds"&gt;For OSDs&lt;/h1&gt;&#10;&lt;p&gt;fs.aio-max-nr=1000000&lt;/pre&gt;&lt;/p&gt;&#10;&lt;/blockquote&gt;</description></item><item><title>Ceph Orch Error When Adding Host</title><link>https://www.gpmidi.net/posts/2020/ceph-orch-error-when-adding-host/</link><pubDate>Sun, 03 May 2020 23:48:15 +0000</pubDate><guid>https://www.gpmidi.net/posts/2020/ceph-orch-error-when-adding-host/</guid><description>&lt;blockquote&gt;&#10;&lt;pre&gt;&#13;&#10;[ceph: root@xxxxxx0 /]# ceph orch host add xxxxxxxxxxx1&#13;&#10;Error EINVAL: Traceback (most recent call last):&#13;&#10; File "/usr/share/ceph/mgr/mgr_module.py", line 1153, in _handle_command&#13;&#10; return self.handle_command(inbuf, cmd)&#13;&#10; File "/usr/share/ceph/mgr/orchestrator/_interface.py", line 110, in handle_command&#13;&#10; return dispatch[cmd['prefix']].call(self, cmd, inbuf)&#13;&#10; File "/usr/share/ceph/mgr/mgr_module.py", line 308, in call&#13;&#10; return self.func(mgr, **kwargs)&#13;&#10; File "/usr/share/ceph/mgr/orchestrator/_interface.py", line 72, in &amp;lt;lambda&amp;gt;&#13;&#10; wrapper_copy = lambda *l_args, **l_kwargs: wrapper(*l_args, **l_kwargs)&#13;&#10; File "/usr/share/ceph/mgr/orchestrator/_interface.py", line 63, in wrapper&#13;&#10; return func(*args, **kwargs)&#13;&#10; File "/usr/share/ceph/mgr/orchestrator/module.py", line 179, in _add_host&#13;&#10; raise_if_exception(completion)&#13;&#10; File "/usr/share/ceph/mgr/orchestrator/_interface.py", line 628, in raise_if_exception&#13;&#10; raise e&#13;&#10;OSError: cannot send (already closed?)&lt;/pre&gt;&#10;&lt;/blockquote&gt;&#10;&lt;p&gt;Fix: &lt;/p&gt;</description></item><item><title>Storage Diagram - Ceph</title><link>https://www.gpmidi.net/posts/2020/storage-diagram-ceph/</link><pubDate>Sun, 16 Feb 2020 16:31:38 +0000</pubDate><guid>https://www.gpmidi.net/posts/2020/storage-diagram-ceph/</guid><description>&lt;p&gt;If I were to go Ceph&lt;/p&gt;</description></item><item><title>Two NDS-4600-JD-05</title><link>https://www.gpmidi.net/posts/2020/two-nds-4600-jd-05/</link><pubDate>Tue, 04 Feb 2020 13:41:44 +0000</pubDate><guid>https://www.gpmidi.net/posts/2020/two-nds-4600-jd-05/</guid><description>&lt;p&gt;These two NDS-4600-JD-05 units each have space for 60 3.5" drives with four 6 Gbps SAS ports on each of the two controllers. The plan is to connect two R610s (eventually R620s) to each of them with the DAS units partitioned so that each of the R610s/R620s has 30 disks (well, 15-disks on each of a pair of redundant 6 Gbps SAS lines). There will be a Ceph OSD per disk on each of the 30 disks. Half of the 30 disks will be 8TB and half will be either 3TB or 2TB disks. &lt;/p&gt;</description></item><item><title>Problems Manually Removing ZFS ZVOL Used By Ceph OSD</title><link>https://www.gpmidi.net/posts/2019/problems-manually-removing-zfs-zvol-used-by-ceph-osd/</link><pubDate>Sat, 07 Sep 2019 06:38:57 +0000</pubDate><guid>https://www.gpmidi.net/posts/2019/problems-manually-removing-zfs-zvol-used-by-ceph-osd/</guid><description>&lt;p&gt;Check `pvdisplay` as Ceph can use LVM. &lt;/p&gt;&#10;&lt;blockquote&gt;&#10;&lt;p&gt;&lt;code&gt;zfs destroy data/osd &lt;br/&gt;&#13;&#10;cannot destroy 'data/osd': dataset is busy&lt;/code&gt;&lt;/p&gt;&#10;&lt;/blockquote&gt;</description></item></channel></rss>