View previous topic :: View next topic |
Author |
Message |
The_Great_Sephiroth Veteran
Joined: 03 Oct 2014 Posts: 1602 Location: Fayetteville, NC, USA
|
Posted: Thu Apr 30, 2015 4:38 pm Post subject: BTRFS mounting? |
|
|
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 |
|
|
depontius Advocate
Joined: 05 May 2004 Posts: 3509
|
Posted: Thu Apr 30, 2015 9:23 pm Post subject: |
|
|
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 |
|
|
davidm Guru
Joined: 26 Apr 2009 Posts: 557 Location: US
|
Posted: Fri May 01, 2015 1:02 am Post subject: |
|
|
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 |
|
|
depontius Advocate
Joined: 05 May 2004 Posts: 3509
|
Posted: Fri May 01, 2015 1:11 am Post subject: |
|
|
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 |
|
|
|
|
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
|
|