Jump to content

Encryption FS Type?


Recommended Posts

  • 4 weeks later...
On 10/5/2019 at 6:14 AM, adminmat said:

Do I use xfs for the array disks and btrfs for my cache? I plan on two NVME drives in RAID1 for cache. 

 

thanks 

 

On 10/5/2019 at 6:15 AM, itimpi said:

That would be normal.

 

I'm new to unRAID and i was about to ask the very same question about which encrypted FS i should use, or at least the differences between them.

 

Why is it normal to use XFS for the array, and BTRFS for the cache? Why not just XFS all round, or BTRFS all round? And what makes Reiser not the preference?

 

Thanks :)

Link to comment
3 minutes ago, Derek_ said:

Why is it normal to use XFS for the array, and BTRFS for the cache? Why not just XFS all round, or BTRFS all round? And what makes Reiser not the preference?

XFS is simpler and more mature. It suits most people's needs. BTRFS is newer and more sophisticated, offering advanced features, like checksums and RAID. The RAID feature is why it's used for cache pools of more than one disk. ReiserFS is obsolete and no longer maintained. As a simple rule of thumb, if you need to ask then your best option is to accept the defaults.

  • Like 1
Link to comment
26 minutes ago, John_M said:

XFS is simpler and more mature. It suits most people's needs. BTRFS is newer and more sophisticated, offering advanced features, like checksums and RAID. The RAID feature is why it's used for cache pools of more than one disk. ReiserFS is obsolete and no longer maintained. As a simple rule of thumb, if you need to ask then your best option is to accept the defaults.

The default is no encryption, although it does default to XFS sans encryption. Is BTRFS the default if i set a cache drive (i haven't set up any yet). If i have just one cache drive (likely), is there an advantage to BTRFS? Maybe the checksums make it worthwhile?

 

I use EXT4 with LUKS on my PC. EXT4 is kinda the default for Linux distros (so i took your advice before you gave it :) ). I'm pretty unfamiliar with the others.

 

Thanks for the info.

Link to comment
41 minutes ago, Derek_ said:

If i have just one cache drive (likely), is there an advantage to BTRFS? Maybe the checksums make it worthwhile?

If you have only one cache drive the default is XFS but you can choose BTRFS if you want. If you intend adding one or more drives to you cache pool in the future you might want to choose BTRFS now. At one time, single-disk BTRFS was considered to be less reliable in the event of an unexpected power outage but I don't think that's an issue any more. The checksums allow the Web GUI to offer a scrub option for BTRFS volumes. Advanced users also make use of BTRFS's snapshot facility but at the moment it's only available via the command line. After much experimenting and changing I've settled on using XFS on magnetic disks and BTRFS on SSDs.

  • Thanks 1
Link to comment

To follow up on this I've recently learned that if you use a cache pool with a different file system than the array (like btrfs) when you run the Mover some docker containers / applications become unresponsive. For example when my Mover starts Plex will no longer be able to play anything til the Mover is finished. Even if the movie files were already living on the array. 

 

I may remove one cache drive due to this until its resolved. (if it can be resolved) 

Link to comment
4 minutes ago, adminmat said:

To follow up on this I've recently learned that if you use a cache pool with a different file system than the array (like btrfs) when you run the Mover some docker containers / applications become unresponsive. For example when my Mover starts Plex will no longer be able to play anything til the Mover is finished. Even if the movie files were already living on the array. 

That's a v6.7 bug, unrelated to filesystems used, it was resolved in v6.8rc

Link to comment
1 minute ago, Derek_ said:

How long does it take for something to move off the cache and onto the storage array?

It will stay there until the Mover moves it. By default the Mover runs once a day, sometime during the night, though you can customise it to whenever and how often you want. If you have only a single cache disk, files stored there don't have the benefit of mirrored protection before being moved to the parity protected array - a slight risk but one you should bear in mind. Some people don't use the cache for its original purpose of caching writes to the server now that "turbo write" is an option. Instead they use the cache exclusively for storing docker containers and VMs. Turbo write is an alternative write method to the parity protected array. The traditional write method is known as "read-modify-write" and its advantage is that only the active data disk and the parity disk(s) need to be spinning - the rest can be spun down. It's disavantage is that it's comparatively slow because it spends a lot of time waiting for the disk platters to complete a full rotation between reading and writing (the modification part is very quick). Turbo write, or "reconstruct write" as it's more correctly known, is faster but its disadvantage is that it needs all array disks to be spinning.

  • Thanks 1
Link to comment
1 hour ago, Derek_ said:

I have to say that i would rather not use the cache to write, unless it then moved to the array in very short order. I will look at what options are available.

You can control at the individual share level whether new files written to that share are first written to the cache (and later moved to the array) or whether they by-pass the cache and go straight to the array.   That means you can achieve the balance you prefer between performance and risk.

Link to comment
On 10/29/2019 at 11:02 PM, itimpi said:

You can control at the individual share level whether new files written to that share are first written to the cache (and later moved to the array) or whether they by-pass the cache and go straight to the array.   That means you can achieve the balance you prefer between performance and risk.

 

Thanks. I did a bit more reading and realised just how much faster using the cache would be, so i will probably go BTRFS in RAID as @John_M uses. I forget sometimes how much the price of SSDs has dropped lately. I think it's worth it :)  With that, my setup will be using 5 of the 6 storage devices allowed with my license (and all that my mobo can support). I may use the 6th for another SSDs for VMs. Though i was hoping to keep it spare to increase the size of the array in the future.. but that might be 3-4 years away, so i'll worry about that then.

Edited by Derek_
Link to comment

I've set up BTRFS with 2 x 250gb SSDs. I've hunted around and i *think* the default for BTRFS with 2 drives in the cache pool is mirrored. This seems to be evidenced by the fact there's only one folder icon (far right) and the total storage available is ~250gb.

 

Oh, and i've now realised the VMs can be stored on the cache drives (re previous post).

 

As a curiosity. Is it possible to change it to striped? I could not see anywhere to change it (not that i want to).

 

Thanks for your advice earlier :)

Edited by Derek_
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...