In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
GlusterFS distributed file system
GlusterFS is an open source distributed file system, the structure of the software is well designed, easy to expand and configure, through the flexible collocation of various modules to get targeted solutions. The following problems can be solved: network storage, federated storage, redundant backup, load balancing of large files. The reliability has not been tested for a long time, and it is not suitable for the product environment that provides 24-hour uninterrupted service. At present, it is suitable for offline applications with a large amount of data.
GlusterFS interconnects many cheap X86 hosts into a parallel network file system through infiniband RDMA or TCP/IP.
Note:
A storage unit in Brick:GFS through an export directory of a server in a trusted storage pool.
Client: a device attached to a GFS volume.
Node: the device that stores the Brick.
RDMA: remote direct memory access.
Each file or directory in the GFID:GFS volume is associated with a unique 128-bit data.
FUSE: a loadable kernel module that allows non-privileged users to create their own file systems without modifying kernel code.
Deployment of GlusterFS:
V install dependency package
# yum-y install xfsprogs fuse fuse-libs libacl-devel flex bison openssl-devel sqlite-devel libxml2
# rpm-ivh userspace-rcu-0.9.2-2.fc25.x86_64.rpm
# rpm-ivh userspace-rcu-devel-0.9.2-2.fc25.x86_64.rpm
V installation trilogy
#. / configure-prefix=/usr/local/gluster
# make & & make install
V manually specify that the system finds URCU
# ldconfig
# pkg-config-libs-cflags liburcu-bp liburcu
V define system variabl
# vim / etc/profile
Add content:
PATH=$PATH:/usr/local/gluster/sbin
V enable Glusterd service
# glusterd start
# ps aux | grep glusterd
Use of Gluster:
V Gluster cluster association
# gluster peer probe 1.1.1.1
# gluster peer probe 1.1.1.2
# gluster peer probe 1.1.1.3
V add a hard disk to the host, format and mount it
# fdisk-l
# fdisk / dev/sdb
# mkfs / dev/sdb1
# mount / dev/sdb1 / a
V create Volume
Multiple disks make up a volume without RAID
# gluster volume create renvg 1.1.1.1:/a 1.1.1.2:/b 1.1.1.3:/c
Multiple disks form a volume to make a RAID1
# gluster volume create renvg replica 2 1.1.1.1:/a 1.1.1.2:/b 1.1.1.3:/c
V just mount the volume in a folder
# mount-t glusterfs-o acl master:/renvg / opt/a
Summary of Gluster basic commands
Command
Description
Gluster volume stop renvg
Stop the use of volumes
Gluster volume start renvg
Start using the volume
Gluster volume delete renvg
Delete Volum
Repair the disk in the volume
Gluster volume replace-brick renvg 1.1.1.1:/a 1.1.1.3:/new
Gluster volume heal renvg full
Repair Volum
Expand volume capacity
Gluster volume add-brick renvg 1.1.1.4:/new
Expand the capacity of a volume online
Gluster volume rebalance renvg start
Balanced data
Reduce volume capacity
Gluster volume remove-brick renvg 1.1.1.1:/a start
Reduce the capacity of volumes online
Gluster volume remove-brick renvg 1.1.1.1:/a status
View the status of deleted volumes
Gluster volume remove-brick renvg commit
Submit remove operation
Disk quota
Gluster volume quota renvg enable
Turn on disk quota
Gluster volume quota renvg limit-usage / quo_a 10Gb
Set this directory to use only the 10Gb of the volume
Gluster volume quota renvg list
Show current quota usage
Gluster volume quota renvg remove / quo_a
Remove directory quota
Gluster volume quota renvg disable
Deactivate disk quota
Create volumes using RAID
Gluster volume create renvg stripe 3 1.1.1.1:/a 1.1.1.2:/b 1.1.1.3:/c
RAID0
Gluster volume create renvg replica2 stripe 3 1.1.1.1:/a 1.1.1.2:/b 1.1.1.3:/c
RAID1+0
Gluster volume create renvg disperse 6 redundancy 1 1.1.1.1:/a 1.1.1.2:/b 1.1.1.3:/c
RAID5
Gluster volume create renvg disperse 10 redundancy 5
RAID6
Note: green is the name of the volume.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.