btrfs raid1 nvme for data

ecotechie

Member
Nov 11, 2023
34
0
6
Hi,

I'm testing out btrfs on a new installation. I limited knowledge of btrfs and have done some reading. However, I seem to be missing a very simple concept. How to setup/mount the volumes.

I created the raid1:
Code:
mkfs.btrfs -m raid1 -d raid1 -L btr-vault /dev/nvme3n1 /dev/nvme2n1

Then the mount point and mounted:
Code:
mkdir /mnt/btr-vault
mount /dev/nvme2n1 /mnt/btr-vault/

But I should be creating volumes, right?
I ran:
Code:
btrfs subvolume create /mnt/btr-vault/volume
pvesm add btrfs btr-vault --path /mnt/btr-vault/volume/

But now ls /mnt/btr-vault/ returns:
Code:
dump  images  private  volume

Something tells me there is a correct way to do this and this isn't it.

I did read the wiki on btrfs, but it just wasn't clear to me how I would use/mount the volume instead of the disk? I think that's what I did... Not sure. I'm used to older file systems :)
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!