當前位置: 首頁>>技術教程>>正文


Ubuntu 是否計劃將 btrfs 作為默認文件係統?

,

問題描述

Btrfs 似乎有一組有用的功能,例如我們的快照,並且是 Opensuse 和 Suse 中的默認功能。Fedora 計劃遷移到它。 Ubuntu 是否計劃遷移到它?如果不是,為什麽?

最佳方法

我不確定 Debian 或 Ubuntu 何時甚至是否會切換到 Btrfs 作為默認根文件係統。看看它最近如何 “become stable” 如果它在幾年前達到 Debian Stable (但 Ubuntu 基於 Debian Unstable ……),我不會感到驚訝。如果是我,我會等一段時間看看 openSUSE 的情況如何。

似乎 this openSUSE news page 中提到的“快照和回滾 [是 Btrfs 的殺手級功能”,但這聽起來像是一種可靠的備份策略,您可以在今天的任何 FS 中實施,隻需一點點努力。我確實喜歡壓縮功能,我認為它現在使用 ZLIB,但我認為它不會與默認情況下使用的 xz 相比。

This guy on LinuxBSDos.com 說“在 openSUSE 上默認使用 Btrfs,其他發行版何時會效仿”,但表示雖然默認安裝在 root 上使用 Btrfs,但“/home 的單獨分區使用 XFS”。然後補充說“在 openSUSE 13.2 中引起我注意的一件事是根分區無法加密,選擇了 Btrfs。我認為這是因為在默認分區方案中,沒有單獨的分區用於 /boot。”一條評論做出了有根據的猜測,“Btrfs 位於 root 上,因為在出​​現意外故障時,您始終可以 re-install 係統。而在 /home 上存在用戶數據時,您不能指望 re-install。”

我實際上不知道 Btrfs 是穩定的,隻是讀到它在 2014 年 8 月左右的某個時候變成了 “stable” – 如果 Wikipedia 有資格作為一個好的來源( Ubuntu’s Community Help Wiki on Btrfs says Wikipedia is a “more info” link on Btrfs… ),指向 Btrfs Wiki 的鏈接說它“不再不穩定”並且仍然有:

The Btrfs code base is under heavy development. Every effort is being made to keep it stable and fast. Due to the fast development speed, the state of development of the filesystem improves noticeably with every new Linux version, so it’s recommended to run the most modern kernel possible.

Debian’s Wiki 似乎沒有任何關於 btrfs 的新消息,提到它從 2.6.29 ( 23 March, 2009 ) 開始就在內核中

實際上 Btrfs Wiki’s FAQ 似乎沒有關於它的穩定性比 2012 年 12 月更新的消息(我確信更新文檔的優先級很低,但達到穩定對我來說似乎是一個裏程碑):

Is btrfs stable?

Short answer: No, it’s still considered experimental.

Long answer: Nobody is going to magically stick a label on the btrfs code and say “yes, this is now stable and bug-free”. Different people have different concepts of stability: a home user who wants to keep their ripped CDs on it will have a different requirement for stability than a large financial institution running their trading system on it. If you are concerned about stability in commercial production use, you should test btrfs on a testbed system under production workloads to see if it will do what you want of it. In any case, you should join the mailing list (and hang out in IRC) and read through problem reports and follow them to their conclusion to give yourself a good idea of the types of issues that come up, and the degree to which they can be dealt with. Whatever you do, we recommend keeping good, tested, off-system (and off-site) backups.

Pragmatic answer: (2012-12-19) Many of the developers and testers run btrfs as their primary filesystem for day-to-day usage, or with various forms of “real” data. With reliable hardware and up-to-date kernels, we see very few unrecoverable problems showing up. As always, keep backups, test them, and be prepared to use them.


The Fedora Project Wiki about Btrfs 在它的“Btrfs 文件係統草案”中說“從 Fedora 16 開始,它將成為默認文件係統”,但這是在 2011 年發布的,所以我認為該頁麵沒用……

Red Hat Enterprise Linux 7 Storage Administration Guide 將 Btrfs 稱為 “Technology Preview”,RedHat 版本於 2014 年 6 月 10 日發布(2019 年第四季度的“生產結束 1 階段”)。

在紅帽中,What does a “Technology Preview” feature mean?

Technology Preview features are currently unsupported, may not be functionally complete, and are not suitable for deployment in production. However, these features are provided to the customer as a courtesy and the primary goal is for the feature to gain wider exposure with the goal of full support in the future.

參考資料

本文由Ubuntu問答整理, 博文地址: https://ubuntuqa.com/zh-tw/article/12688.html,未經允許,請勿轉載。