Enable 'btrfs' in CentOS
December 4 201672 words, ~1 min. read
centos, btrfs, filesystem
Steps
- Ensure HTTP proxy is enabled
export http_proxy=http://proxy.sbchand.net:8080 - Update packages
yum update -y - Install btrfs
yum install btrfs-progs -y - Load kernel module
modprobe btrfs - Test btrfs
dd if=/dev/zero of=sb seek=1 count=0 bs=1G
mkfs.btrfs sb
NOTE: To check whether btrfs kernel module is loaded, use modprobe
[root@centos ~]# modinfo btrfs
filename: /lib/modules/2.6.32-573.3.1.el6.x86_64/kernel/fs/btrfs/btrfs.ko
license: GPL
alias: devname:btrfs-control
alias: char-major-10-234
srcversion: B412C18B0F5BF7F1B3C941A
depends: libcrc32c,zlib_deflate,lzo_compress,lzo_decompress
vermagic: 2.6.32-573.3.1.el6.x86_64 SMP mod_unload modversions
References
- http://www.tecmint.com/create-btrfs-filesystem-in-linux
- https://wiki.centos.org/PhilipJensen/CentOS6ConvertToBTRFS
- http://www.tecmint.com/create-btrfs-filesystem-in-linux/
- https://www.howtoforge.com/a-beginners-guide-to-btrfs
- https://vulariter.wordpress.com/2014/02/11/how-to-install-centos-6-5-using-btrfs-for-the-root-partition/