Re: btrfs on software RAID0

2014-05-07 Thread Marc MERLIN
On Tue, May 06, 2014 at 09:02:46AM +0200, john terragon wrote: just one last doubt: why do you use --align-payload=1024? (or 8912) Cryptsetup man says that the default for the payload alignment is 2048 (512-byte sectors). So, it's already aligned by default to 4K-byte physical sectors (if

Re: btrfs on software RAID0

2014-05-06 Thread john terragon
just one last doubt: why do you use --align-payload=1024? (or 8912) Cryptsetup man says that the default for the payload alignment is 2048 (512-byte sectors). So, it's already aligned by default to 4K-byte physical sectors (if that was your concern). Am I missing something? John On Mon, May 5,

btrfs on software RAID0

2014-05-05 Thread john terragon
Hi. I'm about to try btrfs on an RAID0 md device (to be precise there will be dm-crypt in between the md device and btrfs). If I used ext4 I would set the stride and stripe_width extended options. Is there anything similar I should be doing with mkfs.btrfs? Or maybe some mount options beneficial

Re: btrfs on software RAID0

2014-05-05 Thread Marc MERLIN
On Mon, May 05, 2014 at 10:51:46PM +0200, john terragon wrote: Hi. I'm about to try btrfs on an RAID0 md device (to be precise there will be dm-crypt in between the md device and btrfs). If I used ext4 I would set the stride and stripe_width extended options. Is there anything similar I

Re: btrfs on software RAID0

2014-05-05 Thread ronnie sahlberg
start-btrfs-dmcrypt : ... echo $pwd | ... Hmmm. This makes the plaintext password visible in ps output. It is probably better to pass this in by redirecting a file to stdin. On Mon, May 5, 2014 at 2:25 PM, Marc MERLIN m...@merlins.org wrote: On Mon, May 05, 2014 at 10:51:46PM +0200, john

Re: btrfs on software RAID0

2014-05-05 Thread Marc MERLIN
On Mon, May 05, 2014 at 02:42:53PM -0700, ronnie sahlberg wrote: start-btrfs-dmcrypt : ... echo $pwd | ... Hmmm. This makes the plaintext password visible in ps output. It is probably better to pass this in by redirecting a file to stdin. echo is built in, it will not show up in ps.

Re: btrfs on software RAID0

2014-05-05 Thread john terragon
On Mon, May 5, 2014 at 11:25 PM, Marc MERLIN m...@merlins.org wrote: This is not directly an answer to your question, so far I haven't used a special option like this with btrfs on my arrays although my undertstanding is that it's not as important as with ext4. That said, please read