westerndigitalcorporation / zenfs

ZenFS is a storage backend for RocksDB that enables support for ZNS SSDs and SMR HDDs.
GNU General Public License v2.0
238 stars 87 forks source link

No valid superblock found #199

Closed lmc395319437 closed 2 years ago

lmc395319437 commented 2 years ago

Why is "No valid superblock found" displayed after mkfs succeeds ?

$./plugin/zenfs/util/zenfs mkfs --zbd=nullb0 --aux_path=zenfs_log ZenFS file system created. Free space: 255552 MB

$ ./db_bench --fs_uri=zenfs://dev:nullb0 --benchmarks=fillrandom --use_direct_io_for_flush_and_compaction Failed creating env: Invalid argument: NotFound: No valid superblock found: zenfs://dev:nullb0

$ ./plugin/zenfs/util/zenfs list --zbd=nullb0 --path=./.rocksdb Failed to mount filesystem, error: NotFound: No valid superblock found

Linux version: 5.4.0-104-generic Description: Ubuntu 20.04.4 LTS RocksDB version: 7.3

metaspace commented 2 years ago

That is odd. Are you using memory backed null_blk?

cat /sys/kernel/config/nullb/features

Shoud contain memory_backed.

lmc395319437 commented 2 years ago

yes!I use null_blk.

$cat /sys/kernel/config/nullb/features memory_backed,discard,bandwidth,cache,badblocks,zoned,zone_size

Seems to have memory backed!

MatiasBjorling commented 2 years ago

Hi,

What if you cat the memory_backed file in the same directory? It should be reporting 1 if it is memory backed.

On Thu, 26 May 2022, 09:57 lmc395319437, @.***> wrote:

yes!I use null_blk.

$cat /sys/kernel/config/nullb/features memory_backed,discard,bandwidth,cache,badblocks,zoned,zone_size

Seems to have memory backed!

— Reply to this email directly, view it on GitHub https://github.com/westerndigitalcorporation/zenfs/issues/199#issuecomment-1138268679, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEYEY322XIE5GD5EDNSQL3VL4VFPANCNFSM5W75J2HA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

lmc395319437 commented 2 years ago

Thanks!

I'm going to set memory backed to 1 and it's going to run!