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 #213

Closed yaxinchen666 closed 2 years ago

yaxinchen666 commented 2 years ago

Hi,

I met the same issue as https://github.com/westerndigitalcorporation/zenfs/issues/199

I set the memory backed to 1 but it still failed to mount because "No valid superblock found".

$ cat /sys/kernel/config/nullb/features
memory_backed,discard,bandwidth,cache,badblocks,zoned,zone_size,zone_capacity,zone_nr_conv,zone_max_open,zone_max_active
$ cat /sys/kernel/config/nullb/nullb0/memory_backed 
1
$ sudo ./plugin/zenfs/util/zenfs mkfs --zbd=nullb0 --aux_path=./plugin/zenfs/logs
ZenFS file system created. Free space: 7424 MB
$ sudo ./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

Linux version: 5.10.0-9-amd64 #1 SMP Debian 5.10.70-1 (2021-09-30) x86_64 GNU/Linux RocksDB version: 7.3

Edit: solved by using nullblk-zoned.sh in https://zonedstorage.io/docs/getting-started/nullblk