don't worry about ssd write cycles modern ssd are not that bad
as for lvm I don't think it has any usefulness with btrfs as btrfs by itself has almost all features of lvm
don't worry about ssd write cycles modern ssd are not that bad
as for lvm I don't think it has any usefulness with btrfs as btrfs by itself has almost all features of lvm
as for how to add devices to btrfs I think this articles explains it
Iām really confusedā¦how would I be able to utilize the 2 HDDs, unless I combine their respective storage capacities into one logical volume? Otherwise, Iād have to mount /home/user1
to one HDD and then /home/user2
to the other HDD - which really doesnāt make much sense since the two HDDs are of different storage capacities. Further, Iām not planning on having more than one user account on the system, so not quite sure how best to utilize all 3 HDDs?
use btrfs device add to combine three disks in one partition.
read about btrfs device add
Thanks for the tip, reading up on this now!
Ok, Iāve been reading up on btrfs on arch, and Iām finding some conflicting infoā¦some sources indicate that btrfs device add
with different storage capacities limits to the lowest common storage capacity denominator, whereas others are showing that the full storage capacity will be used when rebalanced after the device is added. Can anyone confirm?
Additionally, when running the btrfs device add
command, you have to specify both the /dev/sdX
path and then a mount point like /mnt
or whatever you define. For example:
btrfs device add /dev/sdb1 /mnt
and then run the rebalance command. However, doesnāt this effectively silo the storage capacity to the/mnt
path only? Or does it somehow expand the volume to include the original system storage deviceās capacity and the new storage device capacity into one continuous volume, regardless of the mount point specified in the btrfs device add
command?
Edit: Found this:
I believe this is a similar use-case for meā¦in that I have 3 drives with very different performance characteristics. Is it possible to keep the ssd as the system btrfs, then combine the two hdds as one btrfs volume that I can mount in fstab?
@dalto would you happen to know if this would work? Primary btrfs on SSD on clean install, then somehow combine the 2 HDDs as another āsingleā btrfs volume? Not sure Iām asking the right question, but trying to conceptualize the idea of sdd as one volume, and the 2 hdds as another single volume (a la raid 0 or lvm) but with 2 btrfs volumes instead?
Yes, it is possible. If you donāt want redundancy but want the total space available you can just create a btrfs filesystem on one of the HHDs and then add the other drive to it.
btrfs is a weird command in that it often needs a mount point to work. It doesnāt mean that the mountpoint is the only thing it impacts. It just needs a reference to a mounted subvolume to work.
In other words you can use the mountpoint from any subvolume, but the disk will be added to the full btrfs volume, not just that subvolume.
Cool! So, let me see if I understand the steps correctlyā¦
/mnt/hdd1
(for example)/mnt/hdd1/hdd2
?I think Iām getting lost on the actual steps I need to take of keeping the ssd as itās own btrfs partition, and then somehow /etc/fstab
mount the btrfs volume of HDD1+HDD2 into itās own mountpoint off the root dirā¦Sorry if Iām being dense.
Gottit, that kind of makes senseā¦
It has been a while since I have done this but I think you only format the first one. With the second one you just need the partition type set correctly then you add it to the first.
Not exactly⦠You donāt mount 1 into 2. You just add 2 to 1. In other words if you mount the volume with a single disk at /mnt/monkey
, you use sudo btrfs device add <2nd device path> /mnt/monkey
Use the UUID of the btrfs volume. You can get that from sudo btrfs filesystem show /mnt/monkey
With btrfs it is often easier to actually do things than it is to try to conceptualize them in advance.
LOL Ok, I think I get it now:
/etc/fstab
, for example /mnt/data
btrfs add device
HDD2 onto /mnt/data
But now how to rebalance only the two HDD drives in /mnt/data
as a single volume?
As soon as you add them they will be a single volume.
To rebalance it you do:
sudo btrfs balance start /mnt/monkey
Awesome! Thank you!
Brother, you said a mouthful.
Iāve never heard it put better. The more I investigated btrfs, the more I decided itās not meant to be grokked by this 70-year oldās remaining braincells. The stuff is very fluid. And thatās very unsettling. Best to just do as you say.
The more I keep falling down this rabbit hole, the truer these words becomeā¦fun to learn tho!
I though it was a desktop layout which i could steal
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.