GFS维护命令

简介: GFS维护命令

其他维护命令

1:查看GFS卷

[root@localhost ~]# gluster volume list

dis-rep

dis-stripe

dis-volume

rep-volume

stripe-volume

[root@localhost ~]# gluster volume info

Volume Name: dis-rep

Type: Distributed-Replicate

Volume ID: 197055f7-37d8-419f-bb22-9f05c7e1a032

Status: Started

Snapshot Count: 0

Number of Bricks: 2 x 2 = 4

Transport-type: tcp

Bricks:

Brick1: node1:/c4

Brick2: node2:/c4

Brick3: node3:/c4

Brick4: node4:/c4

Options Reconfigured:

transport.address-family: inet

nfs.disable: on

Volume Name: dis-stripe

Type: Distributed-Stripe

Volume ID: ff516167-7840-485a-8d3a-1630bd4d174d

Status: Started

Snapshot Count: 0

Number of Bricks: 2 x 2 = 4

Transport-type: tcp

Bricks:

Brick1: node1:/b3

Brick2: node2:/b3

Brick3: node3:/b3

Brick4: node4:/b3

Options Reconfigured:

transport.address-family: inet

nfs.disable: on

Volume Name: dis-volume

Type: Distribute

Volume ID: 40946bd8-cc79-406a-be3c-5c03dd2a207e

Status: Started

Snapshot Count: 0

Number of Bricks: 2

Transport-type: tcp

Bricks:

Brick1: node1:/e6

Brick2: node2:/e6

Options Reconfigured:

transport.address-family: inet

nfs.disable: on

Volume Name: rep-volume

Type: Replicate

Volume ID: b5d1afda-ab03-47a7-82b9-2786648a9b3a

Status: Started

Snapshot Count: 0

Number of Bricks: 1 x 2 = 2

Transport-type: tcp

Bricks:

Brick1: node3:/d5

Brick2: node4:/d5

Options Reconfigured:

transport.address-family: inet

nfs.disable: on

Volume Name: stripe-volume

Type: Stripe

Volume ID: d8e335d5-47d5-484f-804b-bb36ed522bf6

Status: Started

Snapshot Count: 0

Number of Bricks: 1 x 2 = 2

Transport-type: tcp

Bricks:

Brick1: node1:/d5

Brick2: node2:/d5

Options Reconfigured:

transport.address-family: inet

nfs.disable: on

[root@localhost ~]# gluster volume status

Status of volume: dis-rep

Gluster process                             TCP Port  RDMA Port  Online  Pid

------------------------------------------------------------------------------

Brick node1:/c4                             49154     0          Y       5233

Brick node2:/c4                             49154     0          Y       4695

Self-heal Daemon on localhost               N/A       N/A        Y       5253

Self-heal Daemon on node2                   N/A       N/A        Y       4723

Task Status of Volume dis-rep

------------------------------------------------------------------------------

There are no active volume tasks

Status of volume: dis-stripe

Gluster process                             TCP Port  RDMA Port  Online  Pid

------------------------------------------------------------------------------

Brick node1:/b3                             49153     0          Y       5133

Brick node2:/b3                             49153     0          Y       4645

Task Status of Volume dis-stripe

------------------------------------------------------------------------------

There are no active volume tasks

Status of volume: dis-volume

Gluster process                             TCP Port  RDMA Port  Online  Pid

------------------------------------------------------------------------------

Brick node1:/e6                             49152     0          Y       4775

Brick node2:/e6                             49152     0          Y       4509

Task Status of Volume dis-volume

------------------------------------------------------------------------------

There are no active volume tasks

Status of volume: rep-volume

Gluster process                             TCP Port  RDMA Port  Online  Pid

------------------------------------------------------------------------------

Self-heal Daemon on localhost               N/A       N/A        Y       5253

Self-heal Daemon on node2                   N/A       N/A        Y       4723

Task Status of Volume rep-volume

------------------------------------------------------------------------------

There are no active volume tasks

Status of volume: stripe-volume

Gluster process                             TCP Port  RDMA Port  Online  Pid

------------------------------------------------------------------------------

Brick node1:/d5                             49155     0          Y       5468

Brick node2:/d5                             49155     0          Y       40580

Task Status of Volume stripe-volume

------------------------------------------------------------------------------

There are no active volume tasks

2:停止删除卷

[root@localhost ~]# gluster volume stop dis-stripe

Stopping volume will make its data inaccessible. Do you want to continue? (y/n) y

volume stop: dis-stripe: success

[root@localhost ~]# gluster volume delete dis-stripe

Deleting volume will erase all information about the volume. Do you want to continue? (y/n) y

volume delete: dis-stripe: failed: Some of the peers are down

3:设置卷的访问控制

[root@localhost ~]# gluster volume set dis-rep auth.allow 192.168.1.*,10.1.1.*

volume set: success

相关文章
|
6月前
|
存储 Linux 测试技术
性能工具之15个常用的Linux文件系统命令
【2月更文挑战第8天】性能工具之15个常用的Linux文件系统命令
145 1
|
3月前
|
存储 运维 负载均衡
构建高可用的 ChunkServer 系统
【8月更文第30天】在分布式文件系统中,ChunkServer(也称为 DataNode)负责存储文件的数据块(chunks)。为了保证系统的高可用性和数据冗余,需要设计一种可靠的 ChunkServer 部署方案。本文将探讨如何设计和实现一个高可用的 ChunkServer 系统,并通过具体的代码示例来展示其实现细节。
64 0
|
3月前
|
存储 运维 监控
在Linux中,在分布式环境中如何实现文件系统冗余和同步?(例如DRBD、GlusterFS)
在Linux中,在分布式环境中如何实现文件系统冗余和同步?(例如DRBD、GlusterFS)
|
存储 算法 5G
案例部署——GlusterFS分布式文件系统群集(一)
案例部署——GlusterFS分布式文件系统群集
758 0
|
数据安全/隐私保护
案例部署——GlusterFS分布式文件系统群集(二)
案例部署——GlusterFS分布式文件系统群集
104 0
|
存储 运维 网络协议
带你读《存储漫谈:Ceph原理与实践》——1.1.1 集中式存储系统
带你读《存储漫谈:Ceph原理与实践》——1.1.1 集中式存储系统
|
存储 网络协议 索引
GlusterFS数据存储脑裂修复方案
本文档介绍了glusterfs中可用于监视复制卷状态的`heal info`命令以及解决脑裂的方法
1423 0
下一篇
无影云桌面