Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
BTRFS mounting?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
The_Great_Sephiroth
Veteran
Veteran


Joined: 03 Oct 2014
Posts: 1602
Location: Fayetteville, NC, USA

PostPosted: Thu Apr 30, 2015 4:38 pm    Post subject: BTRFS mounting? Reply with quote

Alright, I have two identical 500GB disks (SATA) on an old system and I intend to use them as /home via BTRFS. I created identical partitions on each (GPT) and created the file-system as "mkfs.btrfs -m raid1 -d raid1 -n 8192 -L Home -O ^extref /dev/sdb1 /dev/sdc1". All went well. However, I do not have a /dev/mdX device for it. When I use "btrfs filesystem show" I see it with a UUID and then it tells me it uses /dev/sdb1 and /dev/sdc1. So do I use that UUID to mount or what? I am not sure how to do this. I kind of expected something like /dev/md1.
_________________
Ever picture systemd as what runs "The Borg"?
Back to top
View user's profile Send private message
depontius
Advocate
Advocate


Joined: 05 May 2004
Posts: 3509

PostPosted: Thu Apr 30, 2015 9:23 pm    Post subject: Reply with quote

Code:
UUID="(blah-blah-blah)"     /mnt/btrfs-1/real_root  btrfs   noauto,device=/dev/disk/by-partuuid/(blah-blah-blah)        1 2


The same issue worried me, which is why I added the partuuid section. I don't know how necessary it really was, but since I put both disks on GPT, it was available. Also, this system system has sda - sdg, including a removable drive, so I didn't want to use /dev/sd(number).

It works for me.
_________________
.sigs waste space and bandwidth
Back to top
View user's profile Send private message
davidm
Guru
Guru


Joined: 26 Apr 2009
Posts: 557
Location: US

PostPosted: Fri May 01, 2015 1:02 am    Post subject: Reply with quote

I use multi-device raid and use:

Quote:

/dev/sda / btrfs device=/dev/sda,device=/dev/sdb,device=/dev/sdc,device=/dev/sdd,rw,autodefrag,compress=lzo,noatime,thread_pool=16,subvol=gentoo 0 0


You can probably mount it just by referring to one of the devices/partitions (such as /dev/sdb1) just as long as you have a proper intramfs. From what I understand btrfs will understand (as long as it was created properly) that it is multi-device and mount the other portion of the filesystem as well. It's pretty smart in that way. You probably don't need the device= portion but I have that in there from when I was experimenting with trying to do things without initramfs.
Back to top
View user's profile Send private message
depontius
Advocate
Advocate


Joined: 05 May 2004
Posts: 3509

PostPosted: Fri May 01, 2015 1:11 am    Post subject: Reply with quote

BTW, I didn't put my root on btrfs - this is on my server, and btrfs is served over NFS V4 for /home on my network.
_________________
.sigs waste space and bandwidth
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum