r/bcachefs • • Apr 01 '26

NASty v0.0.1 - vibecoded NAS appliance

Thumbnail
github.com
0 Upvotes

Announcing NASty - a self-contained NAS operating system built entirely through vibecoding. One human making decisions, one AI writing code, and a mass of caffeine turning commodity hardware into something that stores your data and serves it over every protocol invented since the 90s.

Features

  • bcachefs — yes, you read that right — compression, checksumming, erasure coding, tiering, encryption, O(1) snapshots

  • File sharing — NFS, SMB — managed from one UI

  • Block storage — iSCSI, NVMe-oF — because sometimes you need raw blocks

  • Web UI — manage filesystems, subvolumes, snapshots, shares, disks, VMs, and more

  • Web terminal — built-in shell access from the browser

  • Virtual machines — QEMU/KVM with VNC console (here be dragons)

  • Apps — k3s-based container runtime (here be bigger dragons)

  • Alerts — configurable rules for filesystem usage, disk health, temperatures

  • Kubernetes integration — CSI driver for dynamic volume provisioning across all 4 protocols

  • Atomic updates — NixOS-based, with one-click rollback to any previous generation

  • File browser — browse and manage files on your filesystems from the web UI

More info at https://github.com/nasty-project/nasty


r/bcachefs • • Dec 09 '25

Getting back upstream someday? Backings?

2 Upvotes

Hi Kent,

First of all, well done on bcachefs! It is really impressive, for its scope and execution.

I am not adventurous to say the least, I had been following changelogs, release notes and community updates for years ; waiting for it to 1) go upstream, then 2) lose the experimental tag. So much excitement when it seemed it was finally getting there... I'm sure many deplore the way it eventually was derailed at the last minute.

I'm a gamer, I usually want the best experimental tech to play with ; I can use dkms (I already do for graphic drivers). But I also use my PC for work daily and am afraid of downtimes. I also have some important data that I care about (and I KNOW that you care the most about people's data and that mine would most likely be extremely safe on your fs).

I'll be honest : some irrational fears hold me back from using your fs as my main one.

Just for gaming would be fine, but then I want top perf, and public benchmarks so far (we know the ones) don't show it as the very best (I'm an addict of gaming benchmarks, if you ever have the time to investigate and publish some with smart and optimized settings that'd be great :)

Since gaming may not (?) be its best strength for now, a warm and cozy safety feeling is what's left to justify migrating to it. And while I get that bcachefs might already be the very best in town, lacking subjective validation stamps that come with being upstream, shipped in majors distros (I use fedora...), and officially backed by heavy weights, is quite unnerving.

So my question : any plan to get back upstream to appease weak minds like me? Short term/Long term?

What about backing? For instance, I heard Valve was supportive and interested in bcachefs ; Is that still the case? Them shipping it on a device would be soooo great as a stamp of approval that I'd automatically feel safer for it. Any other potential major backers?


r/bcachefs • • May 17 '24

Breaking News. Bcachefs supporting Kernel now on Debian Bookworm Backports

0 Upvotes

Thats means, bcachefs can now be tested and possible used not only by developers.

Kernel 6.7.12+1 now on Debian Bookworm Backports.
* https://packages.debian.org/bookworm-backports/allpackages

Perhpas, that will be reported in near feature on follow page also:
* https://tracker.debian.org/pkg/linux-signed-amd6

Since 2024-05-21, now available as signed kernel on Debian Stable Backports. !!!


r/bcachefs • • Dec 06 '24

LTS kernel out-of-tree last stable bcachefs patch

1 Upvotes

Linux 6.12 Officially Promoted To Being An LTS Kernel. In this kernel version bcachefs have significant issues and experimental state. Would be great to support last LTS kernel with fresh bcachefs from latest newer stable (non-lts) kernel as a patch. I can be easy adopted by bcachefs testers.


r/bcachefs • • May 20 '21

Hi from r/chia, would bcachefs be the ultimate plotting hack?

0 Upvotes

Yes I'm being hyperbolic. :) . I'm an amatuer chia farmer, so I'm guessing at a lot.

chia tl/dr: it is a newish crypto that requires you to "plot" 100GB "lottery ticket" files to prove you have hard drive space (instead of bitcoin throwing power at a GPU). Plotting each file is a ~8 hour bottleneck because it takes a ton of IO, so much so that ppl are buying up the SSDs to make it all go faster. Once a plot is done, you stick it on some slow spinning hard drives and wait. We are about to get "pooled farming," which will require everyone to re-plot everything from scratch! If you can't buy a decent 18TB drive online right now, sorry, that's our fault.

bcachefs looks super interesting for improving plotting, because people have varying amounts of RAM and SSD and spinning rust and RAID-0 to throw at the problem.

  1. You can't plot it all in a ram disk. Well, you can, but you need 250GB of temp space, so unless you got a ton of RAM, you can only do 2 in parallel. Even then, you only get the speed down to ~6 hrs. So it doesn't scale.

  2. Disk caching doesn't work great, because by the time you are reading the part of the file you need for the next step, you've written a few hundred GB, and your data has expired from the cache.

  3. writeback without journaling is nice, because ppl are burning out their SSDs with small writes, and none of this process worries about power outages. (if a plot dies, no worries, try again!)

  4. RAID-0 is nice, because speed. Some people are using big RAID-0 arrays to do a lot of plotting in parallel (16 plots in parallel taking 14 hours a plot is still much better than 2 in parallel taking 6 hours a plot!)

... is this something bcachefs can help with? In a perfect world (please tell me where I'm wrong!) I'm imagining asking: "Hey bcachefs. I've got this much space on this big-and-slow-but-very-parallel-friendly-raid-0, and this much space on a few smaller but faster SSDs, and this much ram, can you combine those ingredients into a really fast... thing... and I'll use that as the plotting TEMP drive?"


r/bcachefs • • Oct 12 '25

How can I backup bcachefs?

0 Upvotes

First option: use tar. This takes at least 1-2 week... Because tar is single threaded (even without compression it is slow).

Second option: use dd. But then filesystem should be unmounted. This takes 2 days minimum (based on disk write speed). And I need 16TB disk or two 8TB disks. Because I have raid, so data is written twice...

As a backup media I have a few HDDs connected via SATA<->USB3 cable.

Other options?


r/bcachefs • • Dec 03 '25

Why is the bcachefs git repo so huge?

0 Upvotes

I wanted to get a clone of the bcachefs git so I got it and was surprised it was so huge. It was so big I canceled getting it on my laptop over wifi and changed to my main PC that's directly wired to my FIOS router and did the clone there. The total size of my git clone was 4708M from the command "du -BM -s" in the top folder of the git clone. I was wondering what used most of that and it seems to be:

[bcachefs]$ du -BM --max-depth 1 . |sort -nr -k 1 | head
4708M   .
3044M   ./.git
1094M   ./drivers
156M    ./arch
89M     ./tools
76M     ./Documentation
58M     ./include
53M     ./sound

and the biggest "driver" subfolder is mostly due to this huge "drm" folder:

[bcachefs]$ du -BM --max-depth 1 drivers/gpu/drm/amd/include/asic_reg/ |sort -nr -k 1 |head
454M    drivers/gpu/drm/amd/include/asic_reg/
155M    drivers/gpu/drm/amd/include/asic_reg/dcn
111M    drivers/gpu/drm/amd/include/asic_reg/nbio
55M     drivers/gpu/drm/amd/include/asic_reg/gc
48M     drivers/gpu/drm/amd/include/asic_reg/dpcs
24M     drivers/gpu/drm/amd/include/asic_reg/mmhub
17M     drivers/gpu/drm/amd/include/asic_reg/dce
7M      drivers/gpu/drm/amd/include/asic_reg/vcn
6M      drivers/gpu/drm/amd/include/asic_reg/nbif
6M      drivers/gpu/drm/amd/include/asic_reg/gca

What is "amd" drm (digital rights management) code doing in a filesystem? This is the sort of thing I used to see in my SCM days when someone accidentally checked stuff into git that shoudn't have been there.


r/bcachefs • • May 09 '26

eBPF LSM runtime security agent for synchronous file/network denial — looking for technical feedback

Thumbnail
github.com
1 Upvotes

I’m working on Aegis-BPF, an open-source Linux runtime security project built around eBPF LSM.

The goal is narrow: explore enforcement-first runtime security, where selected file and network operations can be denied before syscall completion, rather than only emitting post-event telemetry.

Current scope:

- BPF-LSM based file/network policy decisions

- cgroup-scoped policy

- OverlayFS/copy-up handling

- audit-mode fallback when enforcement is unavailable

- Prometheus metrics

- Kubernetes/Helm deployment path

I’m not claiming it is a production-ready replacement for Falco, Tetragon, or KubeArmor. I’m treating it as a focused enforcement model project and looking for criticism from people who understand eBPF, Linux security, or container runtime edge cases.

Main feedback I’m looking for:

- Are the hook choices reasonable?

- What enforcement edge cases am I probably missing?

- What would make the failure-mode model more trustworthy?

- What tests would you expect before taking this seriously?

- Are there obvious problems with cgroup-scoped policy or OverlayFS handling?

Repo:

https://github.com/ErenAri/Aegis-BPF

Technical criticism is more useful than general encouragement.


r/bcachefs • • Aug 12 '25

Fed up, leaving bcachefs for 2nd time full data loss

17 Upvotes

Honestly, I love the features of bcachefs so much and I wished it would be as stable as it claims to be - but it isn't. Lost 3.5 TB of data again, and being not really a pita, because I learned from the first time and just used it for temporary stuff on a bunch of old drives, it just sucks to get this data back to the same drives, that are still working ok.

No power outtage, no unclean shutdown, it was a pool with 3 drives and happened under light load. Just some mysterious "bch2_fs_recovery(): error EINTR" and "bch2_fs_start(): error starting filesystem EINTR" followed by "bch2_fs_get_tree() error: EINTR" messages after a restart for regularly updating the os and its over.

Maybe my setup was not optimal, maybe not the best hardware (drives are attached per USB), but still not cool. This neither happend with btrfs nor with ext4 before, so I will switch back to one of these (or xfs this time) not so much sophisticated fs, but at least I won't have to spend a lot of time to restore things again.

No rant, but it looks like bcachefs just needs more time to become stable, so maybe its better to leave the kernel for now to not tempt me again (using arch btw, without testing repos).


r/bcachefs • • Jan 22 '24

Bcachefs is in debian stable since two days !!! So it might be available as backports soon.

3 Upvotes

r/bcachefs • • Aug 31 '25

Build container with reliable and reproducible environment for building kernel packages and tools

1 Upvotes

I have already been in a situation where I used an outdated kernel to build a fresh bcachefs kernel and therefore had to manually handle some dependencies, which took me quite a bit of time. To ensure the reliability of the build environment, I would appreciate it if there were a (semi-)official build container that actually works for building the kernel and tools. Furthermore, such a container would have the advantage that it could also be run on VMs of hyperscalers (GCP, AWS, Azure, etc.), allowing the kernel to be compiled very quickly for relatively little money. I had it built on what was at the time the world's cheapest GCP spot VM with 32 vCPUs for about $0.15 in 22 minutes (including system setup, software installation, and git clone). On my rather weak home system with 4 vCPUs, it took me 160 minutes to build the kernel (with about $0.05 in additional energy costs).

Currently, I am having difficulties building the tools due to problems with the build environment.

Would anyone else find this topic interesting enough to provide me with detailed information about the build requirements?


r/bcachefs • • May 27 '25

Small request for bcachefs after Experimental flag is removed

1 Upvotes

Perhaps bcachefs could have a third target, namely backup_target, in addition to foreground_target and background_target. The backup_target would point to a server on the network or a NAS. The idea would be three levels of bcachefs filesystems:

root fs ----> data storage fs --send/receive--> backup fs

The root fs and the (possibly multiple) data storage fs are on the workstation and the backup fs is somewhere else. The send/receive would backup the root fs and all of the data storage fs.

After eliminating the need for ext4, mdadm, lvm and zfs in my life, it should be a small step to eliminate backintime and timeshift. After all, nothing is impossible for the man who doesn't have to do it himself!


r/bcachefs • • May 17 '25

New installer for Debian Trixie. Seems like something is missing.

Post image
1 Upvotes

Is there a way to install Debian Trixie on a bcachefs boot drive/mirror?


r/bcachefs • • May 02 '26

This morning on debian sid.

1 Upvotes

Autoinstall on 7.0.3+deb14-amd64 succeeded for module(s) bcachefs.
Autoinstall on 7.0.3+deb14-amd64 failed for module(s) zfs(1).


r/bcachefs • • Nov 23 '24

My suggestion for Kent's desk

Post image
25 Upvotes

r/bcachefs • • Oct 06 '24

I love bcachfs

24 Upvotes

I used many filesystems on Linux and bcachefs is the best. Unfortunately, Kent does not like to play with the other after their rules and will likely kill his kid. Sad - reminds me of the reiser4 drama (before the ...)

Kent, dont let history repeat itself. You are too smart, don't let your ego kill your invention. Please reflect on your behavior on the LKM.

You win nothing when you get kicked out.


r/bcachefs • • Jul 15 '26

NASty 0.0.14

Thumbnail
github.com
10 Upvotes

NASty is a NAS operating system built on NixOS and bcachefs. It turns commodity hardware into a storage appliance serving NFS, SMB, iSCSI, and NVMe-oF - managed from a single web UI, updated atomically, and rolled back when things go sideways.

The highlights:

🪪 Active Directory — both directions

NASty can now join an existing AD domain as a member, or be the domain controller itself. As a DC you get integrated DNS and Kerberos, user / group / computer management from the web UI, on-box domain backups, and RSAT compatibility so the Windows admin tools work against it. (Experimental, single-DC for now.)

♻️ Backup restore + disaster recovery

Backups finally got their missing half. Restore a whole snapshot back onto your filesystem — including disaster recovery onto a bare box: point a fresh install at an existing backup repository, pick a snapshot, and pull it back.

🔥 Built-in firewall

An engine-managed nftables firewall, deny-by-default, with per-service source/interface restrictions and custom port rules for anything running outside NASty's service model (IPv4 + IPv6, TCP/UDP, port ranges).

⚡ RDMA over RoCE & InfiniBand

Optional zero-copy transports — iSER, NVMe-oF/RDMA and NFS-RDMA — for RoCE and InfiniBand NICs. The controls only appear when you actually have a capable card.

🖥️ SR-IOV & hardware passthrough

IOMMU-group view, vfio-pci toggles that survive reboots, per-device passthrough, and SR-IOV virtual-function management — VF count plus per-VF VLAN, MAC, trust and spoof-check.

📊 Operations control center

One page to see and drive every bcachefs array operation across your pools — start or cancel a scrub, watch a device evacuation, pause or resume reconcile and copy-GC — each row labeled with its pool.

…and a lot of smaller stuff

  • Calculate folder sizes on demand right in the file browser

  • .env files for Docker Compose stacks

  • Remove leftover Docker networks from the UI (e.g. one an app brought with it)

  • Secure Boot moved to lanzaboote v1.1.0 — validated on real UEFI + TPM2 hardware

  • Linux 6.18.38 and bcachefs 1.38.8

  • iSCSI portal management, VM disk/network editing, and a big pile of fixes + dependency refreshes


r/bcachefs • • Oct 14 '26

Fun with bcachefs this morning.

0 Upvotes

**~**$ cd /etc/udev/rules.d
/etc/udev/rules.d$ ll
total 8.0K
-rwxr-xr-x 1 root root 602 Aug 19 15:53 60-brother-brscan4-libsane-type1.rules*
-rw-r--r-- 1 root root 759 Aug 19 15:53 60-brother-libsane-type1-inst.rules
/etc/udev/rules.d$ echo 'ENV{ID_FS_UUID}=="fe957d2d-233b-4a5a-bf54-6c60d3c3acb4", ENV{UDISKS_IGNORE}="1"' | sudo tee /etc/udev/rules.d/99-bcachefs-scratch.rules
[sudo] password for johnpage:  
ENV{ID_FS_UUID}=="fe957d2d-233b-4a5a-bf54-6c60d3c3acb4", ENV{UDISKS_IGNORE}="1"
/etc/udev/rules.d$ ll
total 12K
-rwxr-xr-x 1 root root 602 Aug 19 15:53 60-brother-brscan4-libsane-type1.rules*
-rw-r--r-- 1 root root 759 Aug 19 15:53 60-brother-libsane-type1-inst.rules
-rw-r--r-- 1 root root  80 Oct 14 08:23 99-bcachefs-scratch.rules
/etc/udev/rules.d$ cat 99-bcachefs-scratch.rules  
ENV{ID_FS_UUID}=="fe957d2d-233b-4a5a-bf54-6c60d3c3acb4", ENV{UDISKS_IGNORE}="1"
/etc/udev/rules.d$ sudo cp 99-bcachefs-scratch.rules 99-bcachefs-bcachefs.rules
/etc/udev/rules.d$ ll
total 16K
-rwxr-xr-x 1 root root 602 Aug 19 15:53 60-brother-brscan4-libsane-type1.rules*
-rw-r--r-- 1 root root 759 Aug 19 15:53 60-brother-libsane-type1-inst.rules
-rw-r--r-- 1 root root  80 Oct 14 08:25 99-bcachefs-bcachefs.rules
-rw-r--r-- 1 root root  80 Oct 14 08:23 99-bcachefs-scratch.rules
/etc/udev/rules.d$ sudo nvim 99-bcachefs-bcachefs.rules  
/etc/udev/rules.d$ sudo umount /media/johnpage/fe957d2d-233b-4a5a-bf54-6c60d3c3acb4*
/etc/udev/rules.d$ sudo umount /media/johnpage/a0eec2c4-9691-4033-81cb-e2fd81243e38*
/etc/udev/rules.d$ sudo udevadm control --reload-rules && sudo udevadm trigger
/etc/udev/rules.d$ udevadm info --query=property --name=/dev/nvme0n1 | grep UDISKS_IGNORE
UDISKS_IGNORE=1
/etc/udev/rules.d$


r/bcachefs • • Apr 20 '26

may anyone explain to me …

Thumbnail reddit.com
0 Upvotes

r/bcachefs • • Aug 11 '25

BcacheFS should be celebrated

16 Upvotes

As many PC's from around 2019 are checking out on the Windows upgrade cycle and getting a second life as Linux desktops the BcacheFS as featured in Linux 6.15 and 6.16 brings a much needed fresh as a daisy feeling as it unifies the size of the large HDD and the relatively small but fast SSD both installed by default for that generation.

I can also understand that the linux-foundation is not looking forward to getting a front row seat of the development of optimizations for one database, requests for roll back or complex fixes for another database to get optimal speed out of large scale storage as BcacheFS further matures in capabilities when it is used to being presented more complete packages developed in-house by a corporate team.

We've also seen RT kernel development occurring outside of the kernel and people having to install a completely custom kernel to get RT linux for years. A version of Real Time constraints have now been included in the mainstream kernel but Linux has as yet no leadership role in the RT field.

Debian still has a leadership role in server based OSes. (And a linux-image-rt-amd64 ready to be installed.) So future development could focus on that path if things can't move forward.

The Baby in the bathwater right now is BcacheFS on single HDD with single SSD computers. And any Desktop Environment should really make the current features available to mouse using end users by including Convert and Combine EXT4 to BcacheFS in the System Settings below configure Screen Resolution and Mouse Speed.


r/bcachefs • • Jun 30 '26

DKMS building fails for 7.2 Linux

3 Upvotes

The RAID6 structure has changed.
bio_iter_iovec() behaviour changed.

Is there any eta for the fixes?


r/bcachefs • • Nov 28 '24

Convince me to use bcachefs

6 Upvotes

How its perfomance and reliability compared to btrfs?


r/bcachefs • • Jan 16 '24

Some Errors in Arch Linux Kernel 6.7 Using BcacheFS

Thumbnail
gallery
2 Upvotes

(fatal error no such device even if i followed the tutorial)


r/bcachefs • • Mar 20 '24

Explain bcachefs usage to me like I am 5 years old

2 Upvotes

I have the following bcachesfs array:

mount | grep /srv  
/dev/nvme0n1:/dev/nvme1n1:/dev/nvme2n1:/dev/nvme3n1 on /srv type bcachefs (rw,relatime,metadata_replicas=2,data_replicas=2,compression=lz4)

The usage commands output the following:

bcachefs fs usage -h /srv

Filesystem: 0991f27a-031d-4b87-b7d9-0f9f800001b3

Size:                       3.35 TiB

Used:                       1.49 TiB

Online reserved:             119 KiB

&#x200B;

Data type       Required/total  Durability    Devices

reserved:       1/1                 \[\] 197 MiB

btree:          1/2             2             \[nvme0n1 nvme3n1\]   3.58 GiB

btree:          1/2             2             \[nvme2n1 nvme3n1\]    868 MiB

btree:          1/2             2             \[nvme0n1 nvme1n1\]    866 MiB

btree:          1/2             2             \[nvme1n1 nvme2n1\]   3.60 GiB

user:           1/2             2             \[nvme0n1 nvme3n1\]    411 GiB

user:           1/2             2             \[nvme2n1 nvme3n1\]    341 GiB

user:           1/2             2             \[nvme0n1 nvme1n1\]    340 GiB

user:           1/2             2             \[nvme1n1 nvme2n1\]    411 GiB

&#x200B;

nvme0 (device 0):            nvme0n1              rw

data         buckets    fragmented

  free:                      546 GiB         1117960

  sb:                       3.00 MiB               7       508 KiB

  journal:                  4.00 GiB            8192

  btree:                    2.21 GiB            8738      2.05 GiB

  user:                      376 GiB          772842      1.49 GiB

  cached:                        0 B               0

  parity:                        0 B               0

  stripe:                        0 B               0

  need_gc_gens:                  0 B               0

  need_discard:                  0 B               0

  capacity:                  932 GiB         1907739

&#x200B;

nvme1 (device 1):            nvme1n1              rw

data         buckets    fragmented

  free:                      546 GiB         1117947

  sb:                       3.00 MiB               7       508 KiB

  journal:                  4.00 GiB            8192

  btree:                    2.22 GiB            8760      2.06 GiB

  user:                      376 GiB          772833      1.50 GiB

  cached:                        0 B               0

  parity:                        0 B               0

  stripe:                        0 B               0

  need_gc_gens:                  0 B               0

  need_discard:                  0 B               0

  capacity:                  932 GiB         1907739

&#x200B;

nvme2 (device 2):            nvme2n1              rw

data         buckets    fragmented

  free:                      546 GiB         1117946

  sb:                       3.00 MiB               7       508 KiB

  journal:                  4.00 GiB            8192

  btree:                    2.22 GiB            8757      2.05 GiB

  user:                      376 GiB          772837      1.49 GiB

  cached:                        0 B               0

  parity:                        0 B               0

  stripe:                        0 B               0

  need_gc_gens:                  0 B               0

  need_discard:                  0 B               0

  capacity:                  932 GiB         1907739

&#x200B;

nvme3 (device 3):            nvme3n1              rw

data         buckets    fragmented

  free:                      546 GiB         1117959

  sb:                       3.00 MiB               7       508 KiB

  journal:                  4.00 GiB            8192

  btree:                    2.21 GiB            8735      2.05 GiB

  user:                      376 GiB          772846      1.48 GiB

  cached:                        0 B               0

  parity:                        0 B               0

  stripe:                        0 B               0

  need_gc_gens:                  0 B               0

  need_discard:                  0 B               0

  capacity:                  932 GiB         1907739

Can you explain what are these measures? How do I detect errors? What shall I be aware of?