Skip to contentSkip to conversation

btrfs on ssd and hdd

DISCUSSION [email protected] 2 participants 2 messages Jan 14, 2012 1 message not in the archive Btrfs file system

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 1289964295.1201326553279203.JavaMail.root@shiva

#1 lore raw

Hi,
I am using for my workspace btrfs filesystem on ssd disk. I do not thrust to my ssd and I want to have backup of all data on rotational hdd (raid5 of 5 disks). If I am not wrong, this can be done when I use btrfs on top of two phycical media (one ssd and second md device). This I think would work fine.

My question is, does btrfs recognize poor latency of md device and will preform most reads from ssd? (I want to set raid1 for metadata and also to data). (side question, should be ssd in parameters of mount?)

PS: Is this crazy idea, or normal (planned) usecase?

Thanks for clarification,
LuVar

#2 lore raw
Quoted 5 lines · On Sat, 14 Jan 2012 16:02:23 +0100 (GMT+01:00) [email protected] wrote:

I am using for my workspace btrfs filesystem on ssd disk. I do not thrust to my ssd and I want to have backup of all data on rotational hdd (raid5 of 5 disks). If I am not wrong, this can be done when I use btrfs on top of two phycical media (one ssd and second md device). This I think would work fine.

My question is, does btrfs recognize poor latency of md device and will preform most reads from ssd? (I want to set raid1 for metadata and also to data). (side question, should be ssd in parameters of mount?)

PS: Is this crazy idea, or normal (planned) usecase?

Hello,

This is not a crazy idea, and it's already possible in MD-based RAID. Run 'man md' and 'man mdadm' and do a search for 'write-mostly' to read more about it.

However I don't think the same feature has been implemented in BTRFS yet.

Signature · 8 lines
With respect,
Roman

~~~~~~~~~~~~~~~~~~~~~~~~~~~
"Stallman had a printer,
with code he could not see.
So he began to tinker,
and set the software free."