Skip to contentSkip to conversation

advice for testing fileserver

DISCUSSION Caleb O'Connell 1 participant 1 message Sep 11, 2012 Btrfs file system

lore
Share & tools
lore
#0 lore raw

I'm building a test file server using samba 3.6 to see if BTRFS is a good fit. I want to stress that this is a test setup for now.

I'm trying to get an idea of the sub-volume concept and how it relates to the LVM concept. Trying to see what might be the best practice.

I was going to create one of two configs.
-----------------------------------------------------------------------------
##
option 1
sda1 -> /boot using ext4
sda2 is LV sysvg, this will include:
lvroot -> / using ext4
lvvar -> /var using ext4
lvopt -> /opt using ext4
lvhome -> /home using btrfs
lvsrv -> /srv using btrfs

I could create sub-volumes in srv for each samba share.

##
option 2
sda1 -> /boot using ext4
sda2 is LV sysvg, this will include:
lvroot -> / using ext4
lvvar -> /var using ext4
lvopt -> /opt using ext4
sda3 -> /home using btrfs
sda4 -> /srv using btrfs

both /home and /srv can create their own sub-volumes for each homedir and each share.
____________________________________________________________________________
Does BTRFS work fine within a LV? Is there an advantage to keep BTRDS out or in a LV? Does all this make no sense? and I really should just create one big BTRFS partition and only use sub-volumes?