LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-21-2011, 05:11 AM   #1
nass
Member
 
Registered: Apr 2006
Location: Athens, Greece
Distribution: slackware, debian, ubuntu
Posts: 666

Rep: Reputation: 39
btrfs OR raid&lvm


Hello everyone,
I am gonna setup a backup pc in the office ice i work for.. and I was thinking of trying btrfs on it.

what do I have:
2x 150GB drives (sda) on a raid card (raid 1)for the OS (slack 13.37)
2x 2TB drives (sdb) on that same raid card (raid 1, too)
2x 1.5TB drives (sdc,sdd) directly attached to MoBo
2x 750GB drives (sde,sdf) attached to MoBo too.

if i got about it the normal way, i'd create softRAID 1 out of the the 1.5TB and the 750GB drives and LVM all the data arrays (2TB+1.5TB+750GB) to get a unified disk.

If I use btrfs will I be able to do the same?
I mean I have read how to create raid arrays with mkfs.btrfs and that some lvm capability is incorporated in the filesystem. but will it understand what I want it to do, if i just say

Code:
mkfs.btrfs /dev/sdb1 /dev/sdc1 /dev/sdd1 /dev/sde1 /dev/sdf1
probably not, eh?

Also how stable of a filesystem are we talking about?
Has anyone tried it and had serious data corruption?

Thank you for your help
 
Old 06-21-2011, 06:11 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
I think you'll need to create different filesystems. It's not like LVM - filesystems don't live in a "container" (vg). You want to expand a filesystem, you just add partitions/devices at it.
I did some testing with raid10, but it didn't recover properly when a device was failed deliberately (was a while back).

I use btrfs on all my non-production systems. I don't use it on any production system.
Your data, your choice.
 
Old 06-21-2011, 02:48 PM   #3
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 6,142

Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
As far as I know, btrfs is not yet supported by fsck, so if you get into difficulties there may not be a way to get out.

Incidentally, Fedora will make btrfs their default this autumn: you may think that's an aweful warning!
 
Old 06-21-2011, 04:20 PM   #4
lumak
Member
 
Registered: Aug 2008
Location: Phoenix
Distribution: Arch
Posts: 799
Blog Entries: 32

Rep: Reputation: 111Reputation: 111
I personally wouldn't trust it with sensitive data that has no other backups.
However, I'm currently using it wrong as it is running on an LVM that is on an encrypted partition and it works fine. The only issue with either of those is that you can't use the seed feature when the device is mounted as a loop device.... I don't know if this was fixed in the later kernels.

Anyway, btrfs has it's own raid features as well as its own Volume Management capabilities. I know that you can always add another partition to an existing file system... but safely removing it might be a different matter completely. I don't know exactly how its raid features work...

Anyway the best way to start with brtfs is start playing with it to see if it works the way you want it to.

Also remember that it's not designed to have independent file systems on really small partitions. It's more aimed at expandable storage. I believe there are plans for subvolume quotas, but that is not implemented yet.

Also the odd thing is that you can have sub sub volumes and at any one time, a parent or sub volume can be mounted on the system. A sub volume appears just like a regular folder to the system.

If you install the main OS onto a btr file system, be sure to install it to a subvolume so that you can better manage snapshots.

Also, set the default sub volume to that one or it will mount the root volume by default.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] fsck.btrfs doesn't skip check on root if fstab uses wrong simlink with lvm. lumak Slackware 1 04-30-2011 05:32 PM
[SOLVED] Btrfs, grub & dualboot martvefun Linux - General 2 02-02-2011 01:07 AM
Dual drive failure in RAID 5 (also, RAID 1, and LVM) ABL Linux - Server 6 05-27-2009 08:01 PM
RHEL 3: Steps of expanding file system (add new SCSI disks) to existing SW RAID & LVM atman1974 Linux - General 2 01-12-2006 09:49 PM
Partition type LVM & Raid siawash Linux - Newbie 16 07-13-2004 06:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration