Project

General

Profile

Actions

Bug #72484

closed
SJ MB

SeaStore SegmentCleaner::allocate_segment: out of space with JOURNAL sseq(38) MD GEN_INL

Bug #72484: SeaStore SegmentCleaner::allocate_segment: out of space with JOURNAL sseq(38) MD GEN_INL

Added by Samuel Just over 1 year ago. Updated about 1 month ago.

Status:
Resolved
Priority:
Normal
Category:
Seastore
Target version:
-
Due date:
% Done:

0%

Source:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Tags (freeform):
Fixed In:
v20.3.0-3029-gce35632016
Released In:
v21.2.0~2062
Upkeep Timestamp:
2026-10-24T01:41:10+00:00

Description

This issue can occur from 2 cases:
1) Upon mkfs, where there is not enough segments to open
2) When an IO needs to be blocked until we clear a new segment to open and Should_block_io_on_clean doesn't work correctly.

ERROR 2025-08-05 23:40:12,964 [shard 2:main] seastore_cleaner - SegmentCleaner::allocate_segment: out of space with JOURNAL sseq(38) MD GEN_INL
ERROR 2025-08-05 23:40:12,964 [shard 2:main] osd - /ceph/rpmbuild/BUILD/ceph-20.3.0-2038-g351ff8ab/src/crimson/os/seastore/async_cleaner.cc:1085 : In function 'virtual crimson::os::seastore::segment_id_t crimson::os::seastore::SegmentCleaner::allocate_segment(crimson::os::seastore::segment_seq_t, crimson::os::seastore::segment_type_t, crimson::os::seastore::data_category_t, crimson::os::seastore::rewrite_gen_t)', abort(seastore device size setting is too small)

DEBUG 2025-08-05 23:40:12,964 [shard 0:main] seastore_journal - RecordScanner::scan_valid_records: found valid record_group_header_t(num_records=1, mdlength=0x1000, dlength=0x0, segment_nonce=0x8b613510, committed_to=jseq(sseq(35), paddr<Seg[Dev(0x0),0xf5],0x23000>), data_crc=0xffffffff) at jseq(sseq(35), paddr<Seg[Dev(0x0),0xf5],0x23000>)
DEBUG 2025-08-05 23:40:12,964 [shard 0:main] seastore_journal - RecordScanner::scan_valid_records: processing committed record groups until jseq(sseq(35), paddr<Seg[Dev(0x0),0xf5],0x23000>), 1 pending
daemon-helper: command crashed with signal 6

https://pulpito.ceph.com/sjust-2025-08-05_23:22:50-crimson-rados-wip-sjust-seastore-testing-2025-08-04-1754319725-distro-crimson-debug-gibba/8427113


Related issues 1 (0 open — 1 closed)

Copied to crimson - Bug #73101: SeaStore SegmentCleaner::allocate_segment: out of space with JOURNAL sseq(38) MD GEN_INLResolvedMatan Breizman

Actions

MB Updated by Matan Breizman over 1 year ago Actions #1

  • Subject changed from seastore: SegmentCleaner::allocate_segment: out of space with JOURNAL sseq(38) MD GEN_INL to crimson_obejctstore_tool/seastore: SegmentCleaner::allocate_segment: out of space with JOURNAL sseq(38) MD GEN_INL

Note: seen only on crimson_obejctstore_tool so far - possibly releated to how this (new) test is configured.

MB Updated by Matan Breizman over 1 year ago Actions #2

  • Category set to Tools

MB Updated by Matan Breizman over 1 year ago Actions #4

Samuel Just wrote in #note-3:

@Matan Breizman I'm confused, the above log is from an osd, not the crimson_objectstore_tool. I just hit it again, once more on an osd. https://pulpito.ceph.com/sjust-2025-08-08_01:25:44-crimson-rados-wip-sjust-seastore-testing-2025-08-07-1754606289-distro-crimson-debug-gibba/8430754/

The test failing in both jobs is "crimson_objectstore_tool". Seems to me that we fail somewhere around booting with "abort(seastore device size setting is too small)". The error is not from the tool itself but from the objectstore_tool test trying to deploy unsuccessfully. Possibly insufficient space on the machine or misconfigured option. This is only happening in this test so I suspect the latter.

btw, regarding our discussion on error handling in Seastore. this is another side effect of handling errors (assert_all / abort) too soon - the error is not propagated to the caller. if we were to handle the error only at the caller level we would have seen the abort from the tool usage of it or from the object store mkfs stage.

MB Updated by Matan Breizman over 1 year ago · Edited Actions #5

  • Assignee set to Matan Breizman
  • Pull request ID set to 64715

Last main run looks ok:
https://pulpito.ceph.com/teuthology-2025-08-16_20:56:03-crimson-rados-main-distro-crimson-debug-smithi/8445564/

PR: https://github.com/ceph/ceph/pull/64715 will reduce the device size from 50GB to 10GB for testing purposes. I believe that this issue is caused due to out of space on the host:

  ERROR("out of space with {} {} {} {}",
        type, segment_seq_printer_t{seq}, category,
        rewrite_gen_printer_t{generation});
  ceph_abort_msg("seastore device size setting is too small");

nit: will also fix the message.

edit: I'm able to reproduce this locally, something is possibly flaky with this behavior:

  for (auto it = segments.begin();
       it != segments.end();
       ++it) {
    auto seg_id = it->first;
    auto& segment_info = it->second;
    if (segment_info.is_empty()) {


attaching logs:

INFO  2025-08-18 11:34:58,594 [shard 1:main] seastore_journal - Journal::replay: replay done, record_groups=23, records=23, alloc_deltas=4, dirty_deltas=4                                    
DEBUG 2025-08-18 11:34:58,594 [shard 1:main] seastore_journal - SegmentAllocator::open: Dev(0x0)_MD_G1                                                                                        
DEBUG 2025-08-18 11:34:58,594 [shard 2:main] seastore_cache - Cache::replay_delta: journal_seq jseq(sseq(2), paddr<Seg[Dev(0x0),0xe],0x2000>) < alloc_tail jseq(sseq(4), paddr<Seg[Dev(0x0),0x
1c],0x1000>), don't replay delta_info_t(type: ALLOC_INFO, paddr: paddr<NULL>, laddr: L0xffffffffffffffff, prev_crc: 0x0, final_crc: 0x0, length: 0x0, pversion: 0, ext_seq: sseq(0), seg_type:
 JOURNAL)                                                                                                                                                                                     
ERROR 2025-08-18 11:34:58,594 [shard 1:main] seastore_cleaner - SegmentCleaner::allocate_segment: out of space with JOURNAL sseq(6) MD GEN_INL                                                
DEBUG 2025-08-18 11:34:58,594 [shard 3:main] seastore_journal - RecordScanner::scan_valid_records: found valid record_group_header_t(num_records=1, mdlength=0x1000, dlength=0x0, segment_nonc
e=0xdca813a, committed_to=jseq(sseq(3), paddr<Seg[Dev(0x0),0x15],0x3000>), data_crc=0xffffffff) at jseq(sseq(3), paddr<Seg[Dev(0x0),0x15],0x3000>)                                            
DEBUG 2025-08-18 11:34:58,594 [shard 2:main] seastore_device - BlockSegmentManager::read: Seg[Dev(0x0),0xe] offset=0x3000~0x1000 poffset=0x170008000 ...
DEBUG 2025-08-18 11:34:58,594 [shard 3:main] seastore_journal - RecordScanner::scan_valid_records: processing committed record groups until jseq(sseq(3), paddr<Seg[Dev(0x0),0x15],0x3000>), 1
 pending                                                                                       
ERROR 2025-08-18 11:34:58,594 [shard 1:main] osd - /home/matan/ceph/src/crimson/os/seastore/async_cleaner.cc:1085 : In function 'virtual crimson::os::seastore::segment_id_t crimson::os::seas
tore::SegmentCleaner::allocate_segment(crimson::os::seastore::segment_seq_t, crimson::os::seastore::segment_type_t, crimson::os::seastore::data_category_t, crimson::os::seastore::rewrite_gen
_t)', abort(seastore device size setting is too small) 

MB Updated by Matan Breizman over 1 year ago · Edited Actions #6

  • Status changed from New to In Progress
DEBUG 2025-08-21 09:49:31,266 [shard 0:main] seastore_device - block_make_superblock: Dev(0x0)
DEBUG 2025-08-21 09:49:31,266 [shard 0:main] seastore_device - block_make_superblock: Dev(0x0) setting size 10737418240 from existing stats
DEBUG 2025-08-21 09:49:31,266 [shard 0:main] seastore_device - block_make_superblock: Dev(0x0) setting config_segment_size 67108864 from seastore_segment_size
DEBUG 2025-08-21 09:49:31,266 [shard 0:main] seastore_device - block_make_superblock: Dev(0x0) raw_segments 160 shard_tracker_size 4096 total_tracker_size 16384 tracker_off 4096 segments 159 segments_per_shard 39
DEBUG 2025-08-21 09:49:31,266 [shard 0:main] seastore_device - block_make_superblock: Dev(0x0) disk_size=0x280000000, segment_size=0x4000000, block_size=0x1000
DEBUG 2025-08-21 09:49:31,266 [shard 0:main] seastore_device - block_make_superblock: shard 0 infos: (size=0x9c000000, segments=39, tracker_offset=0x1000, first_segment_offset=0x5000)
DEBUG 2025-08-21 09:49:31,266 [shard 0:main] seastore_device - block_make_superblock: shard 1 infos: (size=0x9c000000, segments=39, tracker_offset=0x2000, first_segment_offset=0x9c005000)
DEBUG 2025-08-21 09:49:31,266 [shard 0:main] seastore_device - block_make_superblock: shard 2 infos: (size=0x9c000000, segments=39, tracker_offset=0x3000, first_segment_offset=0x138005000)
DEBUG 2025-08-21 09:49:31,266 [shard 0:main] seastore_device - block_make_superblock: shard 3 infos: (size=0x9c000000, segments=39, tracker_offset=0x4000, first_segment_offset=0x1d4005000

....

134 DEBUG 2025-08-21 12:30:51,936 [shard 2:main] seastore_journal - SegmentAllocator::open: Dev(0x0)_MD_G1
307135 DEBUG 2025-08-21 12:30:51,936 [shard 2:main] seastore_cleaner - SegmentCleaner::allocate_segment: JOURNAL sseq(9) MD GEN_INL segments num: 39                                                                                                          
307136 DEBUG 2025-08-21 12:30:51,936 [shard 2:main] seastore_cleaner - SegmentCleaner::allocate_segment: segment 0 / 39
307137 DEBUG 2025-08-21 12:30:51,936 [shard 2:main] seastore_cleaner - SegmentCleaner::allocate_segment: segment 1 / 39 
...
307174 DEBUG 2025-08-21 12:30:51,936 [shard 2:main] seastore_cleaner - SegmentCleaner::allocate_segment: segment 38 / 39
307175 ERROR 2025-08-21 12:30:51,936 [shard 2:main] seastore_cleaner - SegmentCleaner::allocate_segment: out of space with JOURNAL sseq(9) MD GEN_INL

This could also either with JOURNAL or OOL:

DEBUG 2025-08-21 08:56:54,726 [shard 1:main] seastore_device - BlockSegment::write: Seg[Dev(0x0),0x26] offset=0x0~0x1000 poffset=0x134005000 ...
DEBUG 2025-08-21 08:56:54,726 [shard 1:main] seastore_journal - SegmentAllocator::do_open: Dev(0x0)_DATA_G3 rolled new segment id=Seg[Dev(0x0),0x26]
DEBUG 2025-08-21 08:56:54,726 [shard 1:main] seastore_journal - RecordSubmitter::open: Dev(0x0)_DATA_G3 register metrics
DEBUG 2025-08-21 08:56:54,726 [shard 1:main] seastore_journal - SegmentAllocator::open: Dev(0x0)_DATA_G4
ERROR 2025-08-21 08:56:54,726 [shard 1:main] seastore_cleaner - SegmentCleaner::allocate_segment: out of space with OOL sseq(27) DATA GEN(4)

The raw_segments size is 160, after dividing the raw number to each shard we actually get 39*4 (156) shards.
I suspect the failure to allocate a shard comes when we actually try to use the 40th segment in the shard (which assumes it is reachable according to the device size).
Should we change the device size to be of `segments_per_shard` * smp::count * config_segment_size

Moving to block size of 1G:

DEBUG 2025-08-21 13:17:04,944 [shard 0:main] seastore - SeaStore::mkfs: found file: block
INFO  2025-08-21 13:17:04,944 [shard 0:main] seastore_device - BlockSegmentManager::primary_mkfs: Dev(0x0) path=store_bench_dir/block, device_config_t(major_dev=1, spec=device_spec(magic=0x6b8b4567, dtype=SSD, Dev(0x0)), meta=0f0ac1e1-71ce-436a-90df-586e3cdd20db, secondary())
DEBUG 2025-08-21 13:17:04,945 [shard 0:main] seastore_device - block_make_superblock: Dev(0x0)
DEBUG 2025-08-21 13:17:04,945 [shard 0:main] seastore_device - block_make_superblock: Dev(0x0) setting size 1073741824 from existing stats
DEBUG 2025-08-21 13:17:04,945 [shard 0:main] seastore_device - block_make_superblock: Dev(0x0) setting config_segment_size 67108864 from seastore_segment_size
DEBUG 2025-08-21 13:17:04,945 [shard 0:main] seastore_device - block_make_superblock: Dev(0x0) raw_segments 16 shard_tracker_size 4096 total_tracker_size 16384 tracker_off 4096 segments 15 segments_per_shard 3
DEBUG 2025-08-21 13:17:04,945 [shard 0:main] seastore_device - block_make_superblock: Dev(0x0) disk_size=0x40000000, segment_size=0x4000000, block_size=0x1000
DEBUG 2025-08-21 13:17:04,945 [shard 0:main] seastore_device - block_make_superblock: shard 0 infos: (size=0xc000000, segments=3, tracker_offset=0x1000, first_segment_offset=0x5000)
DEBUG 2025-08-21 13:17:04,945 [shard 0:main] seastore_device - block_make_superblock: shard 1 infos: (size=0xc000000, segments=3, tracker_offset=0x2000, first_segment_offset=0xc005000)
DEBUG 2025-08-21 13:17:04,945 [shard 0:main] seastore_device - block_make_superblock: shard 2 infos: (size=0xc000000, segments=3, tracker_offset=0x3000, first_segment_offset=0x18005000)
DEBUG 2025-08-21 13:17:04,945 [shard 0:main] seastore_device - block_make_superblock: shard 3 infos: (size=0xc000000, segments=3, tracker_offset=0x4000, first_segment_offset=0x24005000)

mkfs:

INFO  2025-08-21 13:17:04,993 [shard 0:main] seastore_tm - TransactionManager::mkfs: ...                                                                                                                                                                      
INFO  2025-08-21 13:17:04,993 [shard 0:main] seastore_cleaner - SegmentCleaner::mount: 1 segment managers                                                                                                                                                     
INFO  2025-08-21 13:17:04,993 [shard 0:main] seastore_cleaner - segments_info_t::add_segment_manager: adding segment manager Dev(0x0), size=0xc000000, segment size=0x4000000, segments=3                                                                     
INFO  2025-08-21 13:17:04,993 [shard 0:main] seastore_cleaner - SegmentCleaner::mount: 3 segments                                                                                                                                                             
DEBUG 2025-08-21 13:17:04,993 [shard 0:main] seastore_device - BlockSegmentManager::read: Seg[Dev(0x0),0x0] offset=0x0~0x1000 poffset=0x5000 ...                                                                                                              
DEBUG 2025-08-21 13:17:04,993 [shard 0:main] seastore_device - BlockSegmentManager::read: Seg[Dev(0x0),0x0] offset=0x0~0x1000 poffset=0x5000 invalid state empty                                                                                              
DEBUG 2025-08-21 13:17:04,993 [shard 0:main] seastore_device - BlockSegmentManager::read: Seg[Dev(0x0),0x1] offset=0x0~0x1000 poffset=0x4005000 ...                                                                                                           
DEBUG 2025-08-21 13:17:04,993 [shard 0:main] seastore_device - BlockSegmentManager::read: Seg[Dev(0x0),0x1] offset=0x0~0x1000 poffset=0x4005000 invalid state empty                                                                                           
DEBUG 2025-08-21 13:17:04,993 [shard 0:main] seastore_device - BlockSegmentManager::read: Seg[Dev(0x0),0x2] offset=0x0~0x1000 poffset=0x8005000 ...                                                                                                           
DEBUG 2025-08-21 13:17:04,993 [shard 0:main] seastore_device - BlockSegmentManager::read: Seg[Dev(0x0),0x2] offset=0x0~0x1000 poffset=0x8005000 invalid state empty                                                                                           
INFO  2025-08-21 13:17:04,993 [shard 0:main] seastore_cleaner - SegmentCleaner::mount: done, segments(empty=3, open=0, closed=0, type_journal=0, type_ool=0, total=0xc000000B, available=0xc000000B, unavailable=0x0B, available_ratio=1, submitted_head=JOURN
AL_SEQ_NULL, time_bound=tp(NULL))

seg1:

DEBUG 2025-08-21 13:17:04,993 [shard 0:main] seastore_journal - RecordSubmitter::open: MD_G1 opening allocator                                                                                                                                                
DEBUG 2025-08-21 13:17:04,993 [shard 0:main] seastore_journal - SegmentAllocator::open: Dev(0x0)_MD_G1                                                                                                                                                        
DEBUG 2025-08-21 13:17:04,993 [shard 0:main] seastore_cleaner - SegmentCleaner::allocate_segment: JOURNAL sseq(0) MD GEN_INL segments num: 3                                                                                                                  
DEBUG 2025-08-21 13:17:04,993 [shard 0:main] seastore_cleaner - SegmentCleaner::allocate_segment: segment 0 / 3                                                                                                                                               
DEBUG 2025-08-21 13:17:04,993 [shard 0:main] seastore_cleaner - SegmentCleaner::allocate_segment: segment 0, Seg[Dev(0x0),0x0] is available for allocation                                                                                                    
INFO  2025-08-21 13:17:04,993 [shard 0:main] seastore_cleaner - segments_info_t::mark_open: opening Seg[Dev(0x0),0x0] JOURNAL sseq(0) MD GEN_INL, seg_info_t(state=EMPTY, Seg[Dev(0x0),0x0]), num_segments(empty=3, opened=0, closed=0)                       
INFO  2025-08-21 13:17:04,993 [shard 1:main] seastore - SeaStoreS::mkfs_managers: ...                                                                                                                                                                         
INFO  2025-08-21 13:17:04,993 [shard 0:main] seastore_cleaner - SegmentCleaner::allocate_segment: opened, SegmentCleaner(not-ready, projected_avail_ratio=1, reclaim_ratio=0, alive_ratio=0)                                                                  
INFO  2025-08-21 13:17:04,993 [shard 0:main] seastore_device - BlockSegmentManager::open: Seg[Dev(0x0),0x0] ...                                                                                                                                               
INFO  2025-08-21 13:17:04,993 [shard 1:main] seastore_epm - ExtentPlacementManager::ExtentPlacementManager: cold_tier_generations=3, hot_tier_generations=5                                                                                                   
DEBUG 2025-08-21 13:17:04,993 [shard 0:main] seastore_device - SegmentStateTracker::write_out: Dev(0x0) poffset=0x1000~0x1000                                                                                                                                 
INFO  2025-08-21 13:17:04,993 [shard 3:main] seastore - SeaStoreS::mkfs_managers: ...                                                                                                                                                                         
INFO  2025-08-21 13:17:04,993 [shard 2:main] seastore - SeaStoreS::mkfs_managers: ...                                                                                                                                                                         
INFO  2025-08-21 13:17:04,993 [shard 3:main] seastore_epm - ExtentPlacementManager::ExtentPlacementManager: cold_tier_generations=3, hot_tier_generations=5                                                                                                   
INFO  2025-08-21 13:17:04,993 [shard 2:main] seastore_epm - ExtentPlacementManager::ExtentPlacementManager: cold_tier_generations=3, hot_tier_generations=5                                                                                                   
DEBUG 2025-08-21 13:17:04,993 [shard 0:main] seastore_device - BlockSegmentManager::open: Seg[Dev(0x0),0x0] done

seg2:

DEBUG 2025-08-21 13:17:04,994 [shard 1:main] seastore_cache - Cache::register_metrics:                                                                                                                                                                        
DEBUG 2025-08-21 13:17:04,994 [shard 0:main] seastore_journal - SegmentAllocator::do_open: Dev(0x0)_MD_G1 rolled new segment id=Seg[Dev(0x0),0x0]                                                                                                             
DEBUG 2025-08-21 13:17:04,994 [shard 0:main] seastore_journal - RecordSubmitter::open: Dev(0x0)_MD_G1 register metrics                                                                                                                                        
INFO  2025-08-21 13:17:04,994 [shard 0:main] seastore_cleaner - JournalTrimmerImpl::update_journal_tails: journal_dirty_tail JOURNAL_SEQ_NULL => jseq(sseq(0), paddr<Seg[Dev(0x0),0x0],0x1000>), JournalTrimmer(not-ready)                                    
INFO  2025-08-21 13:17:04,994 [shard 0:main] seastore_cleaner - JournalTrimmerImpl::update_journal_tails: journal_alloc_tail JOURNAL_SEQ_NULL => jseq(sseq(0), paddr<Seg[Dev(0x0),0x0],0x1000>), JournalTrimmer(not-ready)                                    
INFO  2025-08-21 13:17:04,994 [shard 0:main] seastore_cleaner - JournalTrimmerImpl::set_journal_head: journal_head JOURNAL_SEQ_NULL => jseq(sseq(0), paddr<Seg[Dev(0x0),0x0],0x1000>), JournalTrimmer(not-ready)                                              
INFO  2025-08-21 13:17:04,994 [shard 0:main] seastore_epm - ExtentPlacementManager::open_for_write: started with 1 devices                                                                                                                                    
DEBUG 2025-08-21 13:17:04,994 [shard 0:main] seastore_journal - RecordSubmitter::open: DATA_G2 opening allocator                                                                                                                                              
DEBUG 2025-08-21 13:17:04,994 [shard 0:main] seastore_journal - SegmentAllocator::open: Dev(0x0)_DATA_G2                                                                                                                                                      
DEBUG 2025-08-21 13:17:04,994 [shard 0:main] seastore_cleaner - SegmentCleaner::allocate_segment: OOL sseq(0) DATA GEN_OOL segments num: 3                                                                                                                    
DEBUG 2025-08-21 13:17:04,994 [shard 0:main] seastore_cleaner - SegmentCleaner::allocate_segment: segment 0 / 3                                                                                                                                               
DEBUG 2025-08-21 13:17:04,994 [shard 0:main] seastore_cleaner - SegmentCleaner::allocate_segment: segment 1 / 3                                                                                                                                               
INFO  2025-08-21 13:17:04,994 [shard 3:main] seastore_cache - ExtentPinboardLRU::ExtentPinboardLRU: created, lru_capacity=0x80000000B                                                                                                                         
INFO  2025-08-21 13:17:04,994 [shard 2:main] seastore_cache - ExtentPinboardLRU::ExtentPinboardLRU: created, lru_capacity=0x80000000B                                                                                                                         
DEBUG 2025-08-21 13:17:04,994 [shard 3:main] seastore_cache - Cache::register_metrics:                                                                                                                                                                        
DEBUG 2025-08-21 13:17:04,994 [shard 0:main] seastore_cleaner - SegmentCleaner::allocate_segment: segment 1, Seg[Dev(0x0),0x1] is available for allocation                                                                                                    
DEBUG 2025-08-21 13:17:04,994 [shard 2:main] seastore_cache - Cache::register_metrics:                                                                                                                                                                        
INFO  2025-08-21 13:17:04,994 [shard 0:main] seastore_cleaner - segments_info_t::mark_open: opening Seg[Dev(0x0),0x1] OOL sseq(0) DATA GEN_OOL, seg_info_t(state=EMPTY, Seg[Dev(0x0),0x1]), num_segments(empty=2, opened=1, closed=0)
INFO  2025-08-21 13:17:04,994 [shard 0:main] seastore_cleaner - SegmentCleaner::allocate_segment: opened, SegmentCleaner(not-ready, projected_avail_ratio=0.99998, reclaim_ratio=1, alive_ratio=0)
INFO  2025-08-21 13:17:04,994 [shard 0:main] seastore_device - BlockSegmentManager::open: Seg[Dev(0x0),0x1] ...
DEBUG 2025-08-21 13:17:04,994 [shard 0:main] seastore_device - SegmentStateTracker::write_out: Dev(0x0) poffset=0x1000~0x1000
DEBUG 2025-08-21 13:17:04,994 [shard 0:main] seastore_device - BlockSegmentManager::open: Seg[Dev(0x0),0x1] done

seg3:

DEBUG 2025-08-21 13:17:04,994 [shard 0:main] seastore_device - BlockSegment::write: Seg[Dev(0x0),0x1] offset=0x0~0x1000 poffset=0x4005000 ...
DEBUG 2025-08-21 13:17:04,994 [shard 0:main] seastore_journal - SegmentAllocator::do_open: Dev(0x0)_DATA_G2 rolled new segment id=Seg[Dev(0x0),0x1]
DEBUG 2025-08-21 13:17:04,994 [shard 0:main] seastore_journal - RecordSubmitter::open: Dev(0x0)_DATA_G2 register metrics
DEBUG 2025-08-21 13:17:04,994 [shard 0:main] seastore_journal - RecordSubmitter::open: DATA_G3 opening allocator
DEBUG 2025-08-21 13:17:04,994 [shard 0:main] seastore_journal - SegmentAllocator::open: Dev(0x0)_DATA_G3
DEBUG 2025-08-21 13:17:04,994 [shard 0:main] seastore_cleaner - SegmentCleaner::allocate_segment: OOL sseq(1) DATA GEN(3) segments num: 3
DEBUG 2025-08-21 13:17:04,994 [shard 0:main] seastore_cleaner - SegmentCleaner::allocate_segment: segment 0 / 3
DEBUG 2025-08-21 13:17:04,994 [shard 0:main] seastore_cleaner - SegmentCleaner::allocate_segment: segment 1 / 3
DEBUG 2025-08-21 13:17:04,994 [shard 0:main] seastore_cleaner - SegmentCleaner::allocate_segment: segment 2 / 3
DEBUG 2025-08-21 13:17:04,994 [shard 0:main] seastore_cleaner - SegmentCleaner::allocate_segment: segment 2, Seg[Dev(0x0),0x2] is available for allocation
INFO  2025-08-21 13:17:04,994 [shard 0:main] seastore_cleaner - segments_info_t::mark_open: opening Seg[Dev(0x0),0x2] OOL sseq(1) DATA GEN(3), seg_info_t(state=EMPTY, Seg[Dev(0x0),0x2]), num_segments(empty=1, opened=2, closed=0)
INFO  2025-08-21 13:17:04,994 [shard 0:main] seastore_cleaner - SegmentCleaner::allocate_segment: opened, SegmentCleaner(not-ready, projected_avail_ratio=0.999959, reclaim_ratio=1, alive_ratio=0)
INFO  2025-08-21 13:17:04,994 [shard 0:main] seastore_device - BlockSegmentManager::open: Seg[Dev(0x0),0x2] ...
DEBUG 2025-08-21 13:17:04,994 [shard 0:main] seastore_device - SegmentStateTracker::write_out: Dev(0x0) poffset=0x1000~0x1000
DEBUG 2025-08-21 13:17:04,994 [shard 0:main] seastore_device - BlockSegmentManager::open: Seg[Dev(0x0),0x2] done

seg4:

DEBUG 2025-08-21 13:17:04,994 [shard 0:main] seastore_cleaner - segments_info_t::update_written_to: type=OOL, offset=paddr<Seg[Dev(0x0),0x2],0x1000>, seg_info_t(state=OPEN, Seg[Dev(0x0),0x2] OOL sseq(1) DATA GEN(3), modify_time=tp(NULL), num_extents=0, w
ritten_to=0)
DEBUG 2025-08-21 13:17:04,994 [shard 0:main] seastore_device - BlockSegment::write: Seg[Dev(0x0),0x2] offset=0x0~0x1000 poffset=0x8005000 ...
DEBUG 2025-08-21 13:17:04,995 [shard 0:main] seastore_journal - SegmentAllocator::do_open: Dev(0x0)_DATA_G3 rolled new segment id=Seg[Dev(0x0),0x2]
DEBUG 2025-08-21 13:17:04,995 [shard 0:main] seastore_journal - RecordSubmitter::open: Dev(0x0)_DATA_G3 register metrics
DEBUG 2025-08-21 13:17:04,995 [shard 0:main] seastore_journal - RecordSubmitter::open: DATA_G4 opening allocator
DEBUG 2025-08-21 13:17:04,995 [shard 0:main] seastore_journal - SegmentAllocator::open: Dev(0x0)_DATA_G4
DEBUG 2025-08-21 13:17:04,995 [shard 0:main] seastore_cleaner - SegmentCleaner::allocate_segment: OOL sseq(2) DATA GEN(4) segments num: 3
DEBUG 2025-08-21 13:17:04,995 [shard 0:main] seastore_cleaner - SegmentCleaner::allocate_segment: segment 0 / 3
DEBUG 2025-08-21 13:17:04,995 [shard 0:main] seastore_cleaner - SegmentCleaner::allocate_segment: segment 1 / 3
DEBUG 2025-08-21 13:17:04,995 [shard 0:main] seastore_cleaner - SegmentCleaner::allocate_segment: segment 2 / 3
ERROR 2025-08-21 13:17:04,995 [shard 0:main] seastore_cleaner - SegmentCleaner::allocate_segment: out of space with OOL sseq(2) DATA GEN(4)

MB Updated by Matan Breizman over 1 year ago Actions #7

  • Subject changed from crimson_obejctstore_tool/seastore: SegmentCleaner::allocate_segment: out of space with JOURNAL sseq(38) MD GEN_INL to SeaStore SegmentCleaner::allocate_segment: out of space with JOURNAL sseq(38) MD GEN_INL
  • Description updated (diff)
  • Category changed from Tools to Seastore
  • Pull request ID changed from 64715 to 64771
This issue can occur from 2 cases:
1) Upon mkfs, where there is not enough segments to open
2) When an IO needs to be blocked until we clear a new segment to open and Should_block_io_on_clean doesn't work correctly.

https://github.com/ceph/ceph/pull/64771 should fix the first issue.

UB Updated by Upkeep Bot about 1 year ago Actions #8

  • Status changed from In Progress to Resolved
  • Merge Commit set to ce3563201690312e3854b5fc1f3e17a3c7566ee7
  • Fixed In set to v20.3.0-3029-gce35632016
  • Upkeep Timestamp set to 2025-09-16T10:58:52+00:00

MB Updated by Matan Breizman about 1 year ago Actions #9

  • Status changed from Resolved to In Progress

Not yet entirely resolved. Only first half.

UB Updated by Upkeep Bot about 1 year ago Actions #10

  • Status changed from In Progress to Resolved
  • Upkeep Timestamp changed from 2025-09-16T10:58:52+00:00 to 2025-09-16T12:36:44+00:00

MB Updated by Matan Breizman about 1 year ago Actions #11

  • Copied to Bug #73101: SeaStore SegmentCleaner::allocate_segment: out of space with JOURNAL sseq(38) MD GEN_INL added

UB Updated by Upkeep Bot about 1 month ago Actions #12

  • Released In set to v21.2.0~2062
  • Upkeep Timestamp changed from 2025-09-16T12:36:44+00:00 to 2026-10-24T01:41:10+00:00
Actions

Also available in: PDF Atom