For a test machine (the specs in my signature field) mostly for learning purposes, I have two smaller disks that I plan to make into a BTRFS raid (single disk because the disks will probably not be of same size), and after then I plan to have /var and /tmp mounted on that raid1 file system.
First problem:
From this article I'm reading (https://btrfs.wiki.kernel.org/index.php ... le_Devices) it says:
This is wher I fall off. Can someone elaborate so I can understand this concept?If you want to mount a multi-device filesystem using a loopback device, it's not sufficient to use mount -o loop. Instead, you'll have to set up the loopbacks manually:
# Create and mount a filesystem made of several disk images
mkfs.btrfs img0 img1 img2
losetup /dev/loop0 img0
losetup /dev/loop1 img1
losetup /dev/loop2 img2
mount /dev/loop0 /mnt/btrfs
Second problem (this is for learning purposes, I'm aware that the setup is not the best idea)
What steps to take for make a change in location for /var and /tmp. The first step will not involve adding another drive, but I want to set up the file system in a way so that SDB2 can be expanded.
I also need to mount btrfs so that it cause as little file fragmentation as possible.
About the attachment
First off - I'm not sure if it is possible at all to have swap partition and a btrfs partition (for expanding purposes on same disk). If that is impossible I can always try to make swap on first drive.
I assume the growth of /home will work ok.
The problem I assume to face is when I try to make /var and /temp to the same partition in a folder - because I'm not very familiar to mouning partitions in Linux.
What must I do inorder to accomplish this?