Preliminary discussion on glusterfs-use summary FAQ

Source: Internet
Author: User
Tags dio prefetch glusterfs gluster

Preliminary discussion on glusterfs-use summary FAQ

2015/11/4 Time 17:58


1. Example of a process for quickly establishing a volume to provide a service "data disk partitioning" If the partition is already mounted, uninstall and delete the existing system first. Yum install lvm2 xfsprogs -y   pvcreate /dev/sdbvgcreate vg0  /dev/sdb lvcreate -l 100%FREE -n lv01 vg0mkfs.xfs -f -i  size=512 /dev/vg0/lv01 mkdir /datacat <<_eof >>/etc/fstabuuid=$ (Blkid  /dev/vg0/lv01 |cut -d ' " -f2)  /data                    xfs     defaults         0 0_EOFmount -a# df -h |grep  Data/dev/mapper/vg0-lv01  16t   33m  16t   1% /data " Configure the service to configure as an example on  10.60.200.11  yum install glusterfs-serverservice glusterd  Startchkconfig glusterd on "Configure cluster" gluster peer probe 10.60.200.12 directory m on each cluster nodeKdir /data/gv1/brick1 -p "Provide data domain" to create volume Gv0 as master data domain:# gluster volume create gv0  Replica 2 transport tcp 10.60.200.11:/data/gv2/brick1 10.60.200.12:/data/gv2/brick1   "Start" # gluster volume start gv2 "View status" # gluster volume info volume  Name: gv1Type: ReplicateVolume ID: 32b1866c-1743-4dd9-9429-6ecfdfa168a2Status:  Startednumber of bricks: 1 x 2 = 2transport-type: tcpbricks:brick1: When  10.60.200.11:/data/gv1/brick1brick2: 10.60.200.12:/data/gv1/brick12, mount, you can use parameters to provide an alternate node: Mount.gluster &NBSP;-O&NBSP;BACKUPVOLFILE-SERVER=10.60.200.12&NBSP;10.60.200.11:/GV1&NBSP;/MNT/TEST3, Parameter Configuration example: Ovirt optimization does the following: After---optimization, the configuration will be adjusted as follows:options reconfigured:diagnostics.count-fop-hits:  ondiagnostics.latency-measurement: onstorage.owner-gid: 36storage.owner-uid:  36cluster.server-quorum-type: servercluster.quorum-type: autonetwork.remote-dio: enablecluster.eager-lock: enableperformance.stat-prefetch:  Offperformance.io-cache: offperformance.read-ahead: offperformance.quick-read: offauth.allow:  *user.cifs: enablenfs.disable: offperformance.readdir-ahead: on------Configuration volumes, take GV1 as an example: Gluster  volume set gv1 diagnostics.count-fop-hits ongluster volume set gv1  diagnostics.latency-measurement ongluster volume set gv1 storage.owner-gid  36gluster volume set gv1 storage.owner-uid 36 gluster volume set  gv1 cluster.server-quorum-type servergluster volume set gv1  Cluster.quorum-type autogluster volume set gv1 network.remote-dio enablegluster  volume set gv1 cluster.eager-lock enablegluster volume set gv1  Performance.stat-prefetch offgluster volume set gv1 performance.io-cache offgluster volume set gv1  performance.read-ahead offgluster volume set gv1 performance.quick-read  offgluster volume set gv1 auth.allow \*gluster volume set gv1  User.cifs enablegluster volume set gv1 nfs.disable off---Configuration volume 4, Expansion volume  add-brick gv_test1 replica 2 10.60.200.21:/data/gv1/brick1 10.60.200.22:/data/gv1/ brick1# gluster volume info volume name: gv1type:  distributed-replicatevolume id: 32b1866c-1743-4dd9-9429-6ecfdfa168a2status: startednumber  of bricks: 2 x 2 = 4transport-type: tcpbricks:brick1: 10.60.200.11:/ Data/gv1/brick1brick2: 10.60.200.12:/data/gv1/brick1brick3: 10.60.200.21:/data/gv1/brick1brick4:  10.60.200.22:/data/gv1/brick1


Preliminary discussion on glusterfs-use summary FAQ

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.