How file store when using Btrfs on multi-devices? What happen when a device fail?

2012-05-03 Thread Chu Duc Minh
Hi, i have some questions when using Btrfs on multi-devices: 1. a large file will always be stored wholely on a device or it may spread on some devices/partitions? Btrfs has option to specify it explicitly? 2. suppose i have a directory tree like that: Dir_1  |-- file_1A  |-- file_1B  |-- Dir_2    

Re: How file store when using Btrfs on multi-devices? What happen when a device fail?

2012-05-03 Thread Fajar A. Nugraha
On Thu, May 3, 2012 at 1:46 PM, Chu Duc Minh chu.ducm...@gmail.com wrote: Hi, i have some questions when using Btrfs on multi-devices: 1. a large file will always be stored wholely on a device or it may spread on some devices/partitions? IIRC: - in raid1 mode, it will be written on all disks

Re: How file store when using Btrfs on multi-devices? What happen when a device fail?

2012-05-03 Thread Hugo Mills
On Thu, May 03, 2012 at 01:56:10PM +0700, Fajar A. Nugraha wrote: On Thu, May 3, 2012 at 1:46 PM, Chu Duc Minh chu.ducm...@gmail.com wrote: Hi, i have some questions when using Btrfs on multi-devices: 1. a large file will always be stored wholely on a device or it may spread on some