Difference between revisions of "Btrfs/tr"

From Funtoo
Jump to navigation Jump to search
(Created page with "BTRFS'yi kurmak ve kullanmak kolaydır. Bu basit tanıtımda, Funtoo Linux altında BTRFS'yi mevcut bir {{c | debian-sources}} veya {{c | debian-sources-lts}} kullanarak, Fun...")
(Created page with "== Kurulum ==")
Line 8: Line 8:
BTRFS'yi kurmak ve kullanmak kolaydır. Bu basit tanıtımda, Funtoo Linux altında BTRFS'yi mevcut bir {{c | debian-sources}} veya {{c | debian-sources-lts}}  kullanarak, Funtoo Linux ile sizin için önceden oluşturulmuş bir sürüm kullanarak kuracağız. Funtoo Linux kurulumunun bir parçası olmayan verileri depolamak için BTRFS depolama havuzumuz. Funtoo Linux BTRFS olmayan bir dosya sisteminden önyüklenir ve başlatma işleminin bir parçası olarak BTRFS depolama alanımızı başlatır ve tercih ettiğimiz yere bağlar.
BTRFS'yi kurmak ve kullanmak kolaydır. Bu basit tanıtımda, Funtoo Linux altında BTRFS'yi mevcut bir {{c | debian-sources}} veya {{c | debian-sources-lts}}  kullanarak, Funtoo Linux ile sizin için önceden oluşturulmuş bir sürüm kullanarak kuracağız. Funtoo Linux kurulumunun bir parçası olmayan verileri depolamak için BTRFS depolama havuzumuz. Funtoo Linux BTRFS olmayan bir dosya sisteminden önyüklenir ve başlatma işleminin bir parçası olarak BTRFS depolama alanımızı başlatır ve tercih ettiğimiz yere bağlar.


== Installation ==
== Kurulum ==


To install BTRFS no aditional steps are needed as it is part of Linux Kernel (in mainline Linux kernel since 2.6.29). Let's emerge the BTRFS userspace tools ({{c|btrfs-progs}}):
To install BTRFS no aditional steps are needed as it is part of Linux Kernel (in mainline Linux kernel since 2.6.29). Let's emerge the BTRFS userspace tools ({{c|btrfs-progs}}):

Revision as of 22:01, September 14, 2019

Other languages:
English • ‎Türkçe • ‎español • ‎português do Brasil • ‎中文(中国大陆)‎

BTRFS, başlangıçta GNU/Linux'ta kullanılmak üzere Oracle Corporation'da tasarlanan, copy-on-write (COW) ilkesine dayanan bir dosya sistemidir. BTRFS'in gelişimi 2007'de başladı ve Ağustos 2014'ten bu yana dosya sisteminin disk formatı kararlı olarak işaretlendi.

2015'te Btrfs, SUSE Linux Enterprise Server 12 için varsayılan dosya sistemi olarak kabul edildi. SUSE, RedHat'ın Btrfs'i desteklemeyi bıraktığını açıklamasının ardından 2017'de Btrfs'e olan bağlılığını teyit etti.

Btrfs, Linux dosya sistemlerinde havuzlama, anlık görüntüler, sağlama toplamları ve tümleşik çoklu aygıt eksikliğini gidermeyi amaçlamaktadır.

BTRFS'yi kurmak ve kullanmak kolaydır. Bu basit tanıtımda, Funtoo Linux altında BTRFS'yi mevcut bir debian-sources veya debian-sources-lts kullanarak, Funtoo Linux ile sizin için önceden oluşturulmuş bir sürüm kullanarak kuracağız. Funtoo Linux kurulumunun bir parçası olmayan verileri depolamak için BTRFS depolama havuzumuz. Funtoo Linux BTRFS olmayan bir dosya sisteminden önyüklenir ve başlatma işleminin bir parçası olarak BTRFS depolama alanımızı başlatır ve tercih ettiğimiz yere bağlar.

Kurulum

To install BTRFS no aditional steps are needed as it is part of Linux Kernel (in mainline Linux kernel since 2.6.29). Let's emerge the BTRFS userspace tools (btrfs-progs):

root # emerge btrfs-progs

BTRFS is now ready for use.

BTRFS Concepts

BTRFS can be used to manage the physical disks that it uses, and physical disks are added to a BTRFS volume. Then, BTRFS can create subvolumes from the volume on which files can be stored.

Unlike traditional Linux filesystems, BTRFS filesystems will allocate storage on-demand from the underlying volume.

In the BTRFS world, the word volume corresponds to a storage pool (ZFS) or a volume group (LVM).

  • devices - one or multiple underlying physical volumes.
  • volume - one large storage pool comprised of all space of the devices and can support different redundancy levels
  • subvolumes - these are what get mounted and you store files in.
  • snapshots - a read-only copy of a subvolume at a given point in time and/or read-write copy of a subvolume in time (aka clone).

Creating a Volume

To create a basic BTRFS volume, you will need an extra empty disk. Perform the following steps:

root #  mkfs.btrfs /dev/sdxy
btrfs-progs v4.17.1 
See http://btrfs.wiki.kernel.org for more information.

Detected a SSD, turning off metadata duplication.  Mkfs with -m dup if you want to force metadata duplication.
Performing full device TRIM /dev/sdj (223.57GiB) ...
Label:              (null)
UUID:               d6bcba6e-8fd5-41fc-9bb4-79628c5c928c
Node size:          16384
Sector size:        4096
Filesystem size:    223.57GiB
Block group profiles:
  Data:             single            8.00MiB
  Metadata:         single            8.00MiB
  System:           single            4.00MiB
SSD detected:       yes
Incompat features:  extref, skinny-metadata
Number of devices:  1
Devices:
   ID        SIZE  PATH
    1   223.57GiB  /dev/sdxy

/dev/sdxy should be an unused disk. You may need to use the following command if this disk contains any pre-existing data on it:

root #  mkfs.btrfs -f /dev/sdxy

Now you can mount the created volume as you would mount any other linux filesystem.

root #  mkdir /data
root #  mount /dev/sdxy /data
root #  mount
...
/dev/sdxy on /data type btrfs (rw,relatime,ssd,space_cache,subvolid=5,subvol=/)

To automatically mount this volume after reboot you need to add a simple fstab entry:

/dev/sdxy	/data	btrfs	defaults	0 0

You should now be at the point where you can begin to use BTRFS for a variety of tasks. While there is a lot more to BTRFS than what is covered in this short introduction, you should now have a good understanding of the fundamental concepts on which BTRFS is based.