Glusterfs Command Introduction

Source: Internet
Author: User
Tags glusterfs gluster

650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>

Installation:

Yum Install-y Glusterfs{,-server,-fuse,-geo-replication}

If you do not use master-slave replication, you can not install Glusterfs-geo-replication


Operation:

Gluster Peer Command

Gluster Peer Status

Gluster peer Probe server//Add machine

Gluster Peer Detach server//kick-out machine

Gluster volume Create New-volname [stripe COUNT | replica count] [transport [TCP | rdma | tcp,rdma]] New-bri CK1 New-brick2 NEW-BRICK3//Create Volume

Gluster Volume Create Vol1 Replica 2 transport TCP Gluster-node01:/gluster/brick1 Gluster-node02:/gluster/brick1

Gluster volume start volname//enable a volume

Gluster Volume Delete volname//delete volume

Mount-t glusterfs hostname-or-ipaddress:/volname MountDir//Mount Volume

mount-t glusterfs-o backupvolfile-server=volfile_server2,fetch- Attempts=2,log-level=warning,log-file=/var/log/gluster.log server1:/test- Volume/mnt/glusterfs

650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>

650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>

Gluster Volume rebalance Volname start//load Balancing

Gluster Volume rebalance volname start Force//forced equalization

Gluster volume rebalance Volname status//view equalization Status

Gluster Volume rebalance Volname stop//Stop equalization

Gluster Volume heal Volname//repair damaged files

Gluster Volume Heal Volname full//Repair all files (check if health files are damaged and repair if damaged)

Gluster Volume Heal Volname info//View the file information that needs to be repaired

Gluster Volume Heal Volname Info healed//view repaired file information

Gluster Volume Heal Volname info failed//view file information not repaired

Gluster Volume Heal Volname Info split-brain//View brain fissure file information (if there is a brain crack file, directly to the bad brain split file deletion for file repair, It is said that after the 3.3 version has a win link, the repair will still be the brain cracked file recovery, you can find the link file to delete or directly delete all the files in the directory.

To find the hard link process:

The CD to the brick directory below enters the. glusterfs directory in the corresponding hash directory to find hard-link files

650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>

Disk operations:

Gluster peer probe HOSTNAME//Add Host

Gluster volume Add-brick Volname new-brick//Add Brack

Gluster Volume info//View status

Gluster volume Remove-brick Volname brick start//delete Brick

Gluster volume Remove-brick Volname brick status//delete status

Gluster volume Remove-brick Volname Brick commit//Direct commit Delete (do not enter Yes)

Gluster volume Replace-brick volname brickold-brick bricknew-brick start//Migrate brick data

Gluster volume Replace-brick volname brick New-brick pause//Stop migration

Gluster volume Replace-brick volname brick New-brick abort//Interrupt Migration

Gluster volume Replace-brick volname brick new-brick status//Migration status

Gluster volume Replace-brick Volname brick New-brick commit//Direct commit migration

Gluster Volume Info Volname//Overall Status View

Disk or data migration operation after the load operation (the system starts the load program by default, you can do nothing, if you stop the program in the settings or you want to see the effect immediately can do the following actions):

Gluster Volume rebalance Volname fix-layout start//Start load Balancing

Gluster Volume rebalance Volname start

Gluster Volume rebalance volname start force

Gluster Volume rebalance Volname status

Gluster Volume rebalance Volname stop


Performance View:

Gluster Volume Profile Volname start

Gluster Volume Profile Volname info

Gluster Volume profile Volname stop


Gluster Volume top volname Open [Brick brick-name] [list-cnt CNT]

Gluster Volume top Vol1 Open

Gluster Volume top Vol1 Open Brick Gluster-node01:/gluster/brick1

Gluster Volume top vol1 Open brick Gluster-node01:/gluster/brick1 list-cnt 10


Gluster volume top volname read [brick brick-name] [list-cnt CNT]

Gluster volume top vol1 read Brick Gluster-node01:/gluster/brick1 list-cnt 10

Gluster Volume top Vol1 Write brick gluster-node01:/gluster/brick1 list-cnt 10

Gluster volume top vol1 opendir brick gluster-node01:/gluster/brick1 list-cnt 10

Gluster volume top vol1 readdir brick gluster-node01:/gluster/brick1 list-cnt 10


Gluster volume top Volname read-perf [BS blk-size count Count] [brick brick-name] [list-cnt CNT]

gluster Volume top volname write-perf [BS blk-size count Count] [brick brick-name] [list-cnt CNT]

Gluster volume top Vol1 read-perf BS count 1

Gluster volume top Vol1 read-perf BS count 1 brick Gluster-node02:/gluster/brick1

Parameter settings:

Gluster Volume set Volname OPTION PARAMETER

(Detailed parameters see the Official Handbook Chapter 7.) Managing GlusterFS Volume below 7.1 Tuning Volume Options)

Status View:

Gluster Volume Status All

Gluster Volume status Vol1 details

Gluster Volume status Vol1 clients

Gluster Volume status Vol1 Mem

Gluster Volume status Vol1 inode

Gluster Volume status Vol1 callpool


650) this.width=650; "alt=" Administration-guide.pdf "class=" editor-attachment "src="/e/u261/themes/default/images/ Spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid # ddd; "/>



This article is from the "WUSW" blog, make sure to keep this source http://flutewen.blog.51cto.com/6004070/1674991

Glusterfs Command Introduction

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.