ext4 or btrfs on Synology


Recommended Posts

The latest DSM version defaults to formatting volumns with BTRFS, while I know there are advantages to this file system, do you really gain anything over just going with ext4? It from what I've read seems like a relatively new file system. I'm not really a linux person so I don't have the largest knowledge on the two file systems.

 

Is it better to just stick with ext4 for now? it seems like btrfs uses more disk space up since it versions (i assume ext4 doesn't from the light reading i've done on the two?)

Link to comment
https://www.neowin.net/forum/topic/1308408-ext4-or-btrfs-on-synology/
Share on other sites

Btrfs has issues and isn't to be depended on for long-term storage, whereas ext4 was made for it. Since you've pretty much answered your own question by the statement "btrfs uses more disk space", yeah. Ext4 is the clear choice of the two. :yes: 

  On 11/09/2016 at 23:31, Unobscured Vision said:

Btrfs has issues and isn't to be depended on for long-term storage, whereas ext4 was made for it. Since you've pretty much answered your own question by the statement "btrfs uses more disk space", yeah. Ext4 is the clear choice of the two. :yes: 

Expand  

Well all I knew about BTRFS was the journaling part and that take, and that synology pushes it as the default file format now.... I put a new volumn on and it went right to btrfs... probably should redo that as Ext4, which is what I've been using for the other volumns

"Btrfs has issues and isn't to be depended on for long-term storage"

 

Where did  you read this??  Why would it not be good for long term storage???

 

To be honest for a storage system btrfs would be hands down the most logical choice period!! 

  On 12/09/2016 at 19:43, BudMan said:

"Btrfs has issues and isn't to be depended on for long-term storage"

 

Where did  you read this??  Why would it not be good for long term storage???

 

To be honest for a storage system btrfs would be hands down the most logical choice period!! 

Expand  

I found that fishy as well. For desktop use, yes, EXT4 is better. But for server/storage with several disks, BTRFS is better all around.

  On 12/09/2016 at 19:43, BudMan said:

"Btrfs has issues and isn't to be depended on for long-term storage"

 

Where did  you read this??  Why would it not be good for long term storage???

 

To be honest for a storage system btrfs would be hands down the most logical choice period!! 

Expand  

Too many reports of btrfs flaking out and destroying the data stored within the file system. The guy that does the Linux Action Show had a run-in with it about a year ago, iirc, and was quite vocal about how badly it treated him after a mere weekend of use.

 

[EDIT] Here's the whole incident. 

 

https://www.youtube.com/watch?v=WfpNGJt40Lc&t=3384s (The point where he finally loses his cool about btrfs)

Edited by Unobscured Vision

So 1 idiot on youtube??  without even 5k views?  Over a year ago..  So that was posted Apr 2015, so that was what version at best 3.19.1?  Maybe 4?

 

https://btrfs.wiki.kernel.org/index.php/Changelog

 

So we are now version 4.7.2, think maybe a few improvements? ;)

 

So synology has now made it their default??  Do you think that would be a wise choice for a company that makes nas's for their bread and butter if their was even a slight chance it could flake out and wipe all their users data??  Does that sound plausible??  Mindovermatter was their red flashing lights, bells going off warning warning warning you could loose data using this??

  • Like 2

I'm using btrfs on my DS1815+. I have 3x6TB WD Red drives in it, and it's set up for 1 drive parity. I haven't had any issues with the file system at all. Pretty much every issue I've had so far has been with DSM 6.0, but they've since been cleared up (mainly issues with packages not running). It's been running solid for about 3 months or so now.

BTRFS is fine if you stick with the non-RAID and RAID 0 or 1 setups. RAID 5 or 6 is NOT safe. I've used BTRFS for close to 2 years now and I haven't experienced any data loss or corruption. I make use of RAID 1 with LZO compression and snapshots. I've experienced power outages and system freezes caused by others things than the file system. I've never lost data.

  On 13/09/2016 at 02:24, BudMan said:

So 1 idiot on youtube??  without even 5k views?  Over a year ago..  So that was posted Apr 2015, so that was what version at best 3.19.1?  Maybe 4?

 

https://btrfs.wiki.kernel.org/index.php/Changelog

 

So we are now version 4.7.2, think maybe a few improvements? ;)

 

So synology has now made it their default??  Do you think that would be a wise choice for a company that makes nas's for their bread and butter if their was even a slight chance it could flake out and wipe all their users data??  Does that sound plausible??  Mindovermatter was their red flashing lights, bells going off warning warning warning you could loose data using this??

Expand  

:rofl:

  On 14/09/2016 at 00:30, Radium said:

BTRFS is fine if you stick with the non-RAID and RAID 0 or 1 setups. RAID 5 or 6 is NOT safe. I've used BTRFS for close to 2 years now and I haven't experienced any data loss or corruption. I make use of RAID 1 with LZO compression and snapshots. I've experienced power outages and system freezes caused by others things than the file system. I've never lost data.

Expand  

Synology for RAID5 and RAID6 default to BTRFS in DSM6

 

One thing I'm noticing is it uses up a lot more CPU time doing file level stuff, the check disk (raid error checking) / defrag take a lot longer to run, and of course uses up a good bit more space keeping change logs for files

  On 14/09/2016 at 20:19, Jason S. said:

what do you mean by this? i dont understand

Expand  

when you make a RAID5 or RAID6 volume it defaults the format to BTRFS as part of the creation, you have to explicitly tell it now no use ext4, which was previously the only format they used

 

I only brought that up because of the previous poster saying don't use it on RAID5 and RAID6 because it's not safe... if it wasn't safe I don't think they'd make it the default format

"if it wasn't safe I don't think they'd make it the default format"

 

There you go using logic again ;)  Didn't you watch the youtube video put out by that guy.. Clearly btrfs is a complete ###### show and your going to loose your data.  Which is why Synology has switched too it I am sure, they clearly want all their users to have a crap experience with their products..  And loose their data, maybe they got a dmca about their users storing copyrighted material and this is their way of getting rid of it ;) heheheh ROFL

 

Or maybe they just didn't see that video and don't understand that is not safe, and went ahead and enabled it and made it default without any testing of it at all.. Yeah that's prob it ;)

  On 15/09/2016 at 01:06, neufuse said:

when you make a RAID5 or RAID6 volume it defaults the format to BTRFS as part of the creation, you have to explicitly tell it now no use ext4, which was previously the only format they used

 

I only brought that up because of the previous poster saying don't use it on RAID5 and RAID6 because it's not safe... if it wasn't safe I don't think they'd make it the default format

Expand  

BTRFS has RAID 0, 1, 5 and 6 built in. That's what I'm talking about. Synology most likely uses MD-RAID 5 or 6 and then put BTRFS on top of it. That's completely different.

 

BTRFS RAID is configured during or after you set up the filesystem (using btrfs-progs).

If you create a RAID and pick a filesystem after the RAID has been configured then it's either hardware RAID or MD-RAID.

People have reported unrecoverable data loss from RAID56 in BTRFS. It even warns you on the BTRFS Wiki about it.

Based on this, Synology most likely uses MD-RAID, especially when you can(?) pick your own filesystem for the RAID. BTRFS is perfectly fine when run on top of a block level RAID since it doesn't do RAID itself when you do that.

You mean the wiki article that states

 

any system which might encounter unplanned shutdowns (power failure, kernel lock-up), and it should not be considered production-ready.

 

I completely agree that unplanned power failures or just plain lockup of the OS (kernel) could cause you loss... How is this not an issue for any raid system anywhere?  This is one of the reasons raid cards have battery backups.

 

So you have your synology just plugged into wall power?  Or do you have it using a UPS, and then planned shutdown before loss of battery power on power loss?

 

 

  On 15/09/2016 at 14:48, BudMan said:

You mean the wiki article that states

 

any system which might encounter unplanned shutdowns (power failure, kernel lock-up), and it should not be considered production-ready.

 

I completely agree that unplanned power failures or just plain lockup of the OS (kernel) could cause you loss... How is this not an issue for any raid system anywhere?  This is one of the reasons raid cards have battery backups.

 

So you have your synology just plugged into wall power?  Or do you have it using a UPS, and then planned shutdown before loss of battery power on power loss?

 

 

Expand  

Oh I always plan ahead my unplanned outages :rofl:

  On 15/09/2016 at 11:42, Radium said:

BTRFS has RAID 0, 1, 5 and 6 built in. That's what I'm talking about. Synology most likely uses MD-RAID 5 or 6 and then put BTRFS on top of it. That's completely different.

 

BTRFS RAID is configured during or after you set up the filesystem (using btrfs-progs).

If you create a RAID and pick a filesystem after the RAID has been configured then it's either hardware RAID or MD-RAID.

People have reported unrecoverable data loss from RAID56 in BTRFS. It even warns you on the BTRFS Wiki about it.

Based on this, Synology most likely uses MD-RAID, especially when you can(?) pick your own filesystem for the RAID. BTRFS is perfectly fine when run on top of a block level RAID since it doesn't do RAID itself when you do that.

Expand  

MD-RAID? Area you talking about "Multiple Device RAID"? Gawd I had to look this up... so BTRFS does it's own version of software RAID to span across multiple disks or volumes or it could be BTRFS as standalone file system split over a hardware RAID array (which is what sinology is doing)? am I getting this right?

  On 15/09/2016 at 20:39, neufuse said:

MD-RAID? Area you talking about "Multiple Device RAID"? Gawd I had to look this up... so BTRFS does it's own version of software RAID to span across multiple disks or volumes or it could be BTRFS as standalone file system split over a hardware RAID array (which is what sinology is doing)? am I getting this right?

Expand  

You've got it right. There are benefits to do it like BTRFS and ZFS compared to relying on hardware RAID or an intermediate software RAID layer. You lose performance but RAID is more about reliability and uptime than performance. Having the filesystem in on it allows you to have an odd number of drives and mismatched drives when you mirror your data. It also allows you to add and remove drives on the fly while the filesystem is online, just to mention some features.

  • 1 year later...

Reviving an old thread because I found it (so others will as well) while investigating the use of Btrfs on striped RAID arrays on Synology.  Here is their response:

https://www.synology.com/en-us/knowledgebase/DSM/tutorial/General/What_was_the_RAID_implementation_for_Btrfs_File_System_on_SynologyNAS

 

"However, it is known that Btrfs RAID is unstable and not suitable for production environments. For this reason, Synology chose Linux RAID over Btrfs RAID. The following diagram explains the concept - Synology has implemented the layers in between to ensure that we have full control of the communication for the highest stability."

  • 3 weeks later...
  On 12/12/2017 at 00:45, Unobscured Vision said:

No. Use ext3/4 (Linux raid). Far more stable. That's what Synology was saying. Btrfs RAID isn't supported at all due to data corruption issues.

Expand  

That isn't what they are saying at all. Synology isn't using the RAID functionality of BTRFS since it has issues and isn't production ready (as the official BTRFS wiki is telling the rest of the world). It is this RAID functionality that people mean when they are saying that RADI5/6 with BTRFS gives issues (read: data corruption).

 

What Synology is doing, is what just about the entire storage world has been doing for years: they layer. You start with hardware RAID (which requires a RAID card) or software RAID (which can be something that is part of the OS such as MD) and on top of that you put the filesystem (ext4, BTRFS, ZFS, NTFS, APFS, HFS+, etc.). There are also other options where you can put more layers. That's exactly what the picture given by @Zakman12 shows: Synology uses software RAID and puts BTRFS or ext4 on top of that.

 

In this case you can opt for MD (or Linux RAID as Synology calls it) or Synology's own software RAID which they call Synology Hybrid RAID (SHR). Next you pick what filesystem should be used: ext4 or BTRFS. This means that you can pick whatever RAID level you want without it wreaking havoc on the BTRFS filesystem that you put on top of it.

 

So once more:

  • RAID functionality in BTRFS = trouble
  • separate RAIDed volume with BTRFS on top like Synology does it = no issues
  • To stress: Synology is NOT using the RAID functionality of BTRFS at all

Thus: the way Synology does it makes it safe to use RAID6 and BTRFS. 

 

However, the use of RAID6 is debatable. Most are using RAID10 instead. If you want to know more about that I suggest to search around by starting with the Wikipedia article on RAID.

 

Btw, by no means is ext3/ext4 Linux RAID. They are filesystems and do not have any form of RAID functionality. You need a newer generation filesystem such as BTRFS or ZFS for that. When using ext4 you therefore need something else to do the RAID part. That, the issues with BTRFS' RAID functionality and their desire to control the RAID part is probably why they are using MD and SHR.

Edited by dyn
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Microsoft Edge gets new password feature and security fixes by Taras Buria Microsoft has released a new update for the Edge browser in the Stable Channel. Version 137.0.3296.83 introduces a new password feature and fixes security vulnerabilities to make your browsing experience safer. Starting with new features, Microsoft Edge 137 now supports Secure Password Deployment. Microsoft recently announced this for IT admins, allowing them to share encrypted passwords with user groups. This service lets users log into websites without seeing their passwords, thus enhancing the organization's security. You can read more about Microsoft Edge Secure Password Deployment in our recent article here. Security updates in Microsoft Edge 137.0.3296.83 include two fixes for Chromium vulnerabilities: CVE-2025-5958: Use after free in Media in Google Chrome prior to 137.0.7151.103 allowed a remote attacker to potentially exploit heap corruption via a crafted HTML page. (Chromium security severity: High) CVE-2025-5959: Type Confusion in V8 in Google Chrome prior to 137.0.7151.103 allowed a remote attacker to execute arbitrary code inside a sandbox via a crafted HTML page. (Chromium security severity: High) You can update Microsoft Edge to the latest version by heading to edge://settings/help. The browser can also update itself automatically in the background and apply updates between restarts. In case you missed it, Microsoft released Edge 137 by the end of May. The update deprecated quite a lot of existing features, including Wallet, Image Editor, Image Hover, Mini menu, and Video Super Resolution. It also introduced Web Content Filtering and enhancements for the picture-in-picture player and Find on Page in Microsoft Edge for Business. The next feature update for Microsoft Edge, version 138, is expected on the week of June 26, 2025, as part of the standard four-week release cadence.
    • Microsoft commits to upskill 1 million UK workers in AI this year by Paul Hill Microsoft has partnered with the UK government in the latter’s ambitious plan to train 7.5 million workers in AI skills over the next five years. Specifically, Microsoft has committed to upskilling 1 million of those workers by the end of this year. This represents a significant portion of the overall target and within a very short timeframe. The education drive by Microsoft builds on its previous “Get On” program, which has given 1.5 million people basic digital skills. The effort to train up 1 million British workers in AI is part of Microsoft’s broader £2.5 billion investment in UK AI infrastructure. Ensuring workers have the skills to leverage AI tools is important. Microsoft CEO UK Darren Hardman said recently that two-thirds of business people wouldn’t hire someone lacking AI skills, showing just how vital it is to get people’s skills up to date. Microsoft's approach to AI skills development Microsoft has several platforms to offer AI training, including Microsoft Learn, AI Skills Navigator, and through partnerships with non-profit organisations such as Catch22 in the UK. Its educational materials cover everything from the basics of generative AI to helping you prepare for advanced roles like being an AI engineer. With Catch22, Microsoft helps to train people who face various challenges to getting tech skills, including gender and ethnicity barriers, homelessness, mental health issues, school exclusion and disability. Microsoft is also trying to get more women into tech fields through programmes like TechHer, where it has trained thousands of women across UK government departments. Many of the courses that Microsoft offers come complete with certificates that you can show off on your CV when applying for a job to impress potential employers and land a job. Who else is partnering with the UK government? While Microsoft is playing a massive role in the government’s plans, it’s not the only big tech giant helping out. The firms that have partnered with the government are: Accenture, Amazon, Barclays, BT, Google, IBM, Intuit, Microsoft, Sage, SAS, and Salesforce. While all of these firms are helping to train workers, Microsoft’s planned efforts are the most notable. This initiative by the government will help the country brace for the changes AI is expected to bring to the economy. In April, the United Nations said that AI will affect 40% of all jobs, so being ready is a must.
    • Microsoft has an update on Exchange Online Basic Auth removal for Office 365 by Sayan Sen Back in 2022, Microsoft announced the retirement of Basic Authentication as it was moving to modern OAuth 2.0 token-based authentication. The reason was simple, to move away from such simple username-password authentication to more secure sign-ins. While Microsoft had previously planned to "permanently remove support for Basic authentication with Client Submission (SMTP AUTH) in September 2025", the company has now updated this timeline, adding a final delay. Perhaps this was on the cards given that Microsoft recently extended Basic Auth support for High Volume Email to 2028. On the Microsoft 365 Admin Center, a new message has been posted that details the changes regarding SMTP (Simple Mail Transfer Protocol) AUTH Client Submission. The message says: Thus, starting March 1, 2026, Exchange Online will begin phasing out Basic authentication for sending emails via SMTP AUTH. At first, fewer attempts will be blocked, but by April 30, 2026, this older method will be fully disabled. After that, any apps or devices that want to send email this way will need to use OAuth. The message further adds how admins can proceed with the changes in case OAuth is not supported: Users who have access to the M365 Admin Center can view the message under ID MC786329.
    • Weekend PC Game Deals: Total War grabs, management freebies, demos to try, and more by Pulasthi Ariyasinghe Weekend PC Game Deals is where the hottest gaming deals from all over the internet are gathered into one place every week for your consumption. So kick back, relax, and hold on to your wallets. The Humble Store brought out a couple of fresh bundles this week, and up first is the Narrative Arc collection. This comes with Mutazione, Venba, and Frank and Drake in the starting tier with an $8 price tag. Going up a rung will cost you $14, and this adds on Season: A Letter to the Future and Dustborn. Lastly, paying $20 gets you Harold Halibut and Six Ages 2: Lights Going Out. Next, the Case and Consequences Collection landed. This bundle comes with Heavy Rain, Song of Farca, Lacuna, and Sherlock Holmes: Crimes and Punishments in the starting tier for $6. The second and final tier of this bundle costs $10, adding on Murders on the Yangtze River, BROK the InvestiGator, and Between Horizons. Both bundles will come to an end two weeks from now, so you have plenty of time to decide. The Epic Games Store's mystery giveaways came to an end this week, but the standard promotion has already returned, touting a freebie from Sega. The Two Point Studios-developed construction and sim experience Two Point Hospital is now yours to claim. Arriving as a spiritual successor to the classic title Theme Hospital, this also offers a humorous take on hospital management and patient treatment. You'll be creating treatment rooms, hiring doctors, and taking care of financials, all the while patients with the wildest illnesses pass through looking for cures. The Two Point Hospital giveaway will last until Thursday, June 19. This is also when The Operator will become the next free game on the platform. Free Events The demo festival that Valve hosts three times a year, Steam Next Fest, is back with a brand-new selection of games to try out. This promotion is slated to last until June 16, giving you just a few more days to try out gameplay slices from upcoming games. Several standard free events are currently active too. This includes the colony sim Stardeus, the dungeon-crawler roguelite Barony, the WW2-set hardcore first-person shooter Hell Let Loose, the building and management sim Construction Simulator, as well as the side-scrolling looter brawler Towerborne. Big Deals The Steam Summer Sale is just days away, but plenty of publishers already having big promotions on their games. This includes a Total War historical sale, Konami classics, 505's early summer promotions, and others. With those and more, here's our hand-picked big deals list for this weekend: SILENT HILL 2 – $41.99 on Steam Forza Horizon 5 – $29.99 on Steam Hell Let Loose – $24.99 on Steam Wasteland 3 – $19.99 on Steam Resident Evil 4 – $19.99 on Steam Metro Awakening – $19.99 on Steam Halo Infinite (Campaign) – $19.79 on Steam Mind Over Magic – $18.74 on Steam Castlevania Dominus Collection – $17.49 on Steam DEATH STRANDING DIRECTOR'S CUT – $15.99 on Steam Blasphemous 2 – $14.99 on Steam Grand Theft Auto V Enhanced – $14.99 on Steam Total War: THREE KINGDOMS – $14.99 on Steam Total War: ROME II - Emperor Edition – $14.99 on Steam DRAGON BALL Z: KAKAROT – $12.99 on Gamesplanet DREDGE – $12.49 on Steam Fable Anniversary – $12.24 on Steam METAL GEAR SOLID V: The Definitive Experience – $11.99 on Steam Total War: ROME REMASTERED – $10.19 on Steam Pillars of Eternity II: Deadfire – $9.99 on Steam Bloodstained: Ritual of the Night – $9.99 on Steam Ghostrunner 2 – $9.99 on Steam METAL GEAR SOLID 3: Snake Eater - Master Collection Version – $9.99 on Steam METAL GEAR SOLID 2: Sons of Liberty - Master Collection Version – $9.99 on Steam Barony – $9.99 on Steam Total War: PHARAOH – $9.99 on Steam DRAGON BALL FighterZ – $9.59 on Steam Deep Rock Galactic: Survivor – $9.09 on Steam The Callisto Protocol – $8.99 on Steam Quantum Break – $7.99 on Steam Oxygen Not Included – $7.49 on Steam The Ascent – $7.49 on Steam Ghostrunner – $7.49 on Steam Total War: SHOGUN 2 – $7.49 on Steam Overcooked! 2 – $6.24 on Steam Human Fall Flat – $5.99 on Steam Grand Theft Auto IV: The Complete Edition – $5.99 on Steam Don't Starve Together – $5.09 on Steam Last Day of June – $4.99 on Steam ABZU – $4.99 on Steam Super Meat Boy Forever – $4.99 on Steam Total War: MEDIEVAL II – Definitive Edition – $4.99 on Steam Legend of Grimrock 2 – $4.79 on Steam Golf With Your Friends – $4.49 on Steam Rise of the Tomb Raider – $4.49 on Steam Golf It! – $4.49 on Steam Sunset Overdrive – $3.99 on Steam Super Meat Boy – $3.74 on Steam Tomb Raider – $2.24 on Steam Crime Boss: Rockay City – $1.99 on Steam Mortal Shell – $1.49 on Steam Crypt of the NecroDancer – $1.49 on Steam This War of Mine – $0.99 on Steam Two Point Hospital – $0 on Epic Store DRM-free Specials The DRM-free discounts from the GOG store this weekend include open-world adventures, story-rich titles, indies, publisher sales, and more. Here are some highlights: No Man's Sky - $23.99 on GOG The Thaumaturge - $19.24 on GOG INDIKA - $16.24 on GOG Against the Storm - $14.99 on GOG Shadows of Doubt - $14.99 on GOG EVERSPACE 2 - $14.99 on GOG Core Keeper - $13.99 on GOG art of rally - $12.49 on GOG Shadowrun Trilogy - $10.07 on GOG Cold Waters - $9.99 on GOG Disco Elysium - The Final Cut - $9.99 on GOG Streets of Rage 4 - $9.99 on GOG Dying Light: The Following – Enhanced Edition - $8.99 on GOG Potion Craft: Alchemist Simulator - $7.99 on GOG Little Nightmares - $4.99 on GOG Edge Of Eternity - $4.49 on GOG Epistory - Typing Chronicles - $4.49 on GOG This War of Mine: Complete Edition - $4.07 on GOG Graveyard Keeper - $3.99 on GOG Alba: A Wildlife Adventure - $3.39 on GOG Chroma Squad - $2.24 on GOG EVERSPACE - $0.99 on GOG Keep in mind that availability and pricing for some deals could vary depending on the region. That's it for our pick of this weekend's PC game deals, and hopefully, some of you have enough self-restraint not to keep adding to your ever-growing backlogs. As always, there are an enormous number of other deals ready and waiting all over the interwebs, as well as on services you may already subscribe to if you comb through them, so keep your eyes open for those, and have a great weekend.
    • I've had the opposite honestly Linux always just works except for games with drm/anti cheat Windows is sometimes corrupted on first install Windows update downloading wrong drivers ...
  • Recent Achievements

    • First Post
      ThatGuyOnline earned a badge
      First Post
    • One Month Later
      5i3zi1 earned a badge
      One Month Later
    • Week One Done
      5i3zi1 earned a badge
      Week One Done
    • Week One Done
      julien02 earned a badge
      Week One Done
    • One Year In
      Drewidian1 earned a badge
      One Year In
  • Popular Contributors

    1. 1
      +primortal
      537
    2. 2
      ATLien_0
      224
    3. 3
      +FloatingFatMan
      157
    4. 4
      Michael Scrip
      112
    5. 5
      +Edouard
      92
  • Tell a friend

    Love Neowin? Tell a friend!