Re: [arch-general] RAID10 + dmcrypt/LUKS + ext4: expanding?

2017-10-24 Thread Guus Snijders via arch-general
Op 25 okt. 2017 03:53 schreef "L. Rose" :

Hi everyone,

I want to setup a couple of drives using RAID10 with mdadm. On top of
/dev/md0, I want to setup one large dmcrypt/LUKS encrypted ext4 volume.
As Arch wiki reads, this seems to be possible. But what about expanding
that volume later on? RAID#Format_the_RAID_Filesystem recommends
calculating the stripe_width value for ext4 based on the number of data
disks[0]. When adding a new disk, the number of data disks would
increase by one, and expanding both the dmcrypt/LUKS and the ext4 layer
should be possible - but what about the stripe width_value? Does it need
to be updated? Should it be updated? Is it possible to update the
stripe_width value afterwards?

[...]

[0]: https://wiki.archlinux.org/index.php/RAID#Example_3._RAID10.2Cfar2


Regarding the (md)stripe_width: with the F2 layout, you can just add a 3rd
drive without worry. Take a *good* look at the Linux MD Raid documentation
(not just the ArchWiki) and you'll see that F2 always uses *blocks* in
pairs, not disks.

That is a major difference between software RAID and hardware Raid.


Mvg, Guus Snijders


Re: [arch-general] RAID10 + dmcrypt/LUKS + ext4: expanding?

2017-10-24 Thread Yaro Kasear

On 10/24/2017 08:53 PM, L. Rose wrote:
> Hi everyone,
>
> I want to setup a couple of drives using RAID10 with mdadm. On top of
> /dev/md0, I want to setup one large dmcrypt/LUKS encrypted ext4 volume.
> As Arch wiki reads, this seems to be possible. But what about expanding
> that volume later on? RAID#Format_the_RAID_Filesystem recommends
> calculating the stripe_width value for ext4 based on the number of data
> disks[0]. When adding a new disk, the number of data disks would
> increase by one, and expanding both the dmcrypt/LUKS and the ext4 layer
> should be possible - but what about the stripe width_value? Does it need
> to be updated? Should it be updated? Is it possible to update the
> stripe_width value afterwards?
>
> Encryption is a must for me, and having the space accessible in one big
> chunk instead of individual disks would allow more efficient usage and
> is therefore important for me. So it would be really nice to get some
> information on this. Thanks in advance!
>
> Regards,
>
> L. Rose
>
> [0]: https://wiki.archlinux.org/index.php/RAID#Example_3._RAID10.2Cfar2
As far as I can tell, the stripe size doesn't have a noticeable impact
on performance. I'd go with a sensible starting stripe size and not fuss
over the stripe size after that. I don't know if you can modify stripe
size after the fact.

Adding onto RAID 10 should be pretty simple as long as you remember you
can only add drives in multiples of 2, since you're mirroring and
striping. Depending on how your RAID 10 is set up you can use mdadm to
add the drives or, if you're using something like Intel Rapid Storage
you could use your UEFI to expand the array with perhaps a little less
confusion.

LUKS should handle the expansion just fine, though I'd recommend putting
LVM in the encrypted mapping so that you can more easily manage volumes
once the LUKS container is unlocked. This way you can have multiple
volumes under one key. LVM also readily expands and shrinks as you need,
which makes things less of a headache.

You could even do a RAID 10-like setup with LVM if I'm not mistaken. I'd
probably do it that way just to avoid the hassle of dealing with
differing RAID formats, plus mdadm isn't as friendly as LVM. I only use
RAID 10 myself because I wanted one big shared volume between Arch Linux
and Windows 10.

Conrad



signature.asc
Description: OpenPGP digital signature


[arch-general] RAID10 + dmcrypt/LUKS + ext4: expanding?

2017-10-24 Thread L. Rose
Hi everyone,

I want to setup a couple of drives using RAID10 with mdadm. On top of
/dev/md0, I want to setup one large dmcrypt/LUKS encrypted ext4 volume.
As Arch wiki reads, this seems to be possible. But what about expanding
that volume later on? RAID#Format_the_RAID_Filesystem recommends
calculating the stripe_width value for ext4 based on the number of data
disks[0]. When adding a new disk, the number of data disks would
increase by one, and expanding both the dmcrypt/LUKS and the ext4 layer
should be possible - but what about the stripe width_value? Does it need
to be updated? Should it be updated? Is it possible to update the
stripe_width value afterwards?

Encryption is a must for me, and having the space accessible in one big
chunk instead of individual disks would allow more efficient usage and
is therefore important for me. So it would be really nice to get some
information on this. Thanks in advance!

Regards,

L. Rose

[0]: https://wiki.archlinux.org/index.php/RAID#Example_3._RAID10.2Cfar2


Re: [arch-general] Problem updating Fenrir from AUR.

2017-10-24 Thread matthew dyer via arch-general
Yes It works fine now.  I figured it would be wort  put it here figuring itt 
was accessibility related.  Thanks for the heads up though.

Matthew



Sent from Mail for Windows 10

From: Storm Dragon via arch-general
Sent: Monday, October 23, 2017 6:54 PM
To: General Discussion about Arch Linux
Cc: Storm Dragon
Subject: Re: [arch-general] Problem updating Fenrir from AUR.

Howdy,

Sorry, that was my bad. It's all fixed now. Let me know if you have any more 
problems with it.

On Mon, Oct 23, 2017 at 04:20:12PM -0400, Arch Linux General wrote:
>Hi all.
>
>Yesterday, I notesed that Fenrir got a miner update in the AUER and when 
>trying to update, I receive a message force settings  could not be reconnized 
>or something to the efeect.  Any ideas on this one?  I  only made a change so 
>that keyboard keys speak.  I use yaourt to keep all my AUR packages updated.  
>If anyone has any way to get around this please let me know.  I am using gnome 
>3.26.1 with all updates as well as orca master as of this morning.
>
>Thanks.
>
>
>
>Sent from Mail for Windows 10
>

-- 
Powered by Arch Linux! I am registered Linux user number 508465: 
https://linuxcounter.net/user/508465.html
My blog, Thoughts of a Dragon: http://www.stormdragon.tk/
get my public PGP key: gpg --keyserver wwwkeys.pgp.net --recv-key 43DDC193
Twitter and Facebook are so ... yesteryear. Get your 2MB Social account TODAY! 
http://2mb.social/main/register
How many Internet mail list subscribers does it take to change a lightbulb? 
http://goo.gl/eO4PJ
"So many souls follow the path, trusting their magic and blades. There has to 
be more than that, fight with your heart or fail."
Battlelore - Swordmaster