Check unit to add
#fdisk -l
Return:
Exemplo: Selecione o disco Disk /dev/sdb: 17.2 GB, 17179869184 bytes, 33554432 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes
Adding partition:
#fdisk /dev/sdb
# M – “Show all options available”
# P – “Type ” p” to display information on the disc as the current partitions”
# n – “Show all options available”
# p – “primary partition”
# 1 – “Partition number 1”
# enter – “default”
# enter – “default”
# w “List unit”
Check unit created
# fdisk -l
Check BTRFS Version and Installation
#yum search btrfs #yum install btrfs-progs.x86_64
FSTAB access the file and add the mount point and compression
#vim /etc/fstab
Add the following line:
/dev/sdb1 /opt btrfs compress=zlib,compress-force=zlib 1 1
Assembling Compression :
#mkfs.btrfs /dev/sdb1 -f
Restart the machine and starting from this moment the unit / opt ‘ll be using btrfs to compress the files.
4 Comentários
An interesting discussion is definitely worth comment.
I think that you ought to publish more on this issue, it might not be a taboo subject but
usually people don’t discuss these topics. To the next!
Many thanks!!
Thank you friend.
I am actually grateful to the owner of this site who has shared this fantastic post at at this
place.
thank you