Thanks for the advice. I created the first pool.
Btrfs supports flushoncommit, but Rockstorâs UI doesnât whitelist it. Is this a problem or am I overthinking how much I need to safeguard my critical data.
Current
raid1 rw,noatime,space_cache=v2,commit=5,subvolid=5,subvol=/ **[no]
Mounting the top-level subvolume (subvolid=5), which gives you full control over the pool I inserted the command and received this back
rockstor-nas:~ # lsof +D /mnt2/data-1
rockstor-nas:~ # umount /mnt2/data-1
rockstor-nas:~ # mount -o rw,noatime,flushoncommit,commit=5,space_cache=v2 /dev/sdd /mnt2/data-1
rockstor-nas:~ # mount | grep data-1
/dev/sdd on /mnt2/data-1 type btrfs (rw,noatime,flushoncommit,space_cache=v2,commit=5,subvolid=5,subvol=/)
I made it persistent
rockstor-nas:~ # nano /etc/fstab
GNU nano 7.2 /etc/fstab
LABEL=SWAP swap swap defaults 0 0
LABEL=ROOT / btrfs noatime 0 1
LABEL=ROOT /.snapshots btrfs noatime,subvol=@/.snapshots 0 0
LABEL=ROOT /home btrfs noatime,subvol=@/home 0 0
LABEL=ROOT /opt btrfs noatime,subvol=@/opt 0 0
LABEL=ROOT /root btrfs noatime,subvol=@/root 0 0
LABEL=ROOT /srv btrfs noatime,subvol=@/srv 0 0
LABEL=ROOT /tmp btrfs noatime,subvol=@/tmp 0 0
LABEL=ROOT /var btrfs noatime,subvol=@/var 0 0
LABEL=EFI /boot/efi vfat defaults 0 0
LABEL=ROOT /usr/local btrfs noatime,subvol=@/usr/local 0 0
LABEL=ROOT /boot/grub2/i386-pc btrfs noatime,subvol=@/boot/grub2/i386-pc 0 0
LABEL=ROOT /boot/grub2/x86_64-efi btrfs noatime,subvol=@/boot/grub2/x86_64-efi 0 0
added at the bottom
/dev/sdd /mnt2/data-1 btrfs rw,noatime,flushoncommit,commit=5,space_cache=v2 0 0
ctrl o then enter to save
mount -a
rockstor-nas:~ #
no errors appear, your entry is valid and will apply on reboot
while labels and UUIDs are generally stable, there are edge cases where they can change:
- Labels can be overwritten if you reformat or relabel a device.
- UUIDs can change if the filesystem is recreated or cloned.
- Device paths like
/dev/sdd can shift if hardware is added or reordered.
sticking with /dev/sdd gives you full visibility and control. Itâs explicit, predictable, and easy to traceâespecially in a home lab where you know the hardware layout.