Glusterfs

Glusterfs 磚尺寸

  • August 9, 2018

我正在嘗試部署一個具有 12 個節點的 gluster 集群,每個節點 10 TB,但是當我創建卷時,每個磚塊僅創建 50GB,它必須具有我想的整個磁碟空間。這是我的配置:

每個節點中的磁碟配置:

NAME            MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda               8:0    0   9,1T  0 disk 
└─sda1            8:1    0   9,1T  0 part /bricks/brick1

Gluster 卷資訊:

Volume Name: vol01
Type: Distributed-Replicate
Volume ID: 70de6c08-e133-406e-99b0-7284be67cf5f
Status: Started
Snapshot Count: 0
Number of Bricks: 6 x 2 = 12
Transport-type: tcp
Bricks:
Brick1: gfs01:/glusterfs/distributed
Brick2: gfs02:/glusterfs/distributed
Brick3: gfs03:/glusterfs/distributed
Brick4: gfs04:/glusterfs/distributed
Brick5: gfs05:/glusterfs/distributed
Brick6: gfs06:/glusterfs/distributed
Brick7: gfs07:/glusterfs/distributed
Brick8: gfs08:/glusterfs/distributed
Brick9: gfs09:/glusterfs/distributed
Brick10: gfs10:/glusterfs/distributed
Brick11: gfs11:/glusterfs/distributed
Brick12: gfs12:/glusterfs/distributed
Options Reconfigured:
transport.address-family: inet
nfs.disable: on
performance.client-io-threads: off

Brick 的音量詳細資訊(其中只有 2 個,其餘配置相同):

Brick                : Brick gfs01:/glusterfs/distributed
TCP Port             : 49152               
RDMA Port            : 0                   
Online               : Y                   
Pid                  : 12308               
File System          : xfs                 
Device               : /dev/mapper/centos-root
Mount Options        : rw,relatime,attr2,inode64,noquota
Inode Size           : 512                 
Disk Space Free      : 48.4GB              
Total Disk Space     : 50.0GB              
Inode Count          : 26214400            
Free Inodes          : 26152769            

Brick                : Brick gfs02:/glusterfs/distributed
TCP Port             : 49152               
RDMA Port            : 0                   
Online               : Y                   
Pid                  : 11446               
File System          : xfs                 
Device               : /dev/mapper/centos-root
Mount Options        : rw,relatime,attr2,inode64,noquota
Inode Size           : 512                 
Disk Space Free      : 48.4GB              
Total Disk Space     : 50.0GB              
Inode Count          : 26214400            
Free Inodes          : 26152770 

客戶端掛載點(50*12=300GB):

gfs01:/vol01                              300G    13G  288G   5% /mnt/glusterfs

任何的想法?我錯過了什麼嗎?

磚塊的磁碟似乎安裝在/bricks/brick1. 但是您根據積木的不同目錄創建了卷,即gfs01:/glusterfs/distributed.

您可能應該創建一個新卷,如下所示:

# gluster volume create lotsofdata \
 replica 2 \
 gfs{01,02,03,04,05,06,07,08,09,10,11,12}:/bricks/brick1/data

# gluster volume start lotsofdata

確保它/bricks/brick1是自動安裝的(通過/etc/fstab或 a systemd.mount)。然後,您應該能夠掛載名為的新卷lotsofdata並將內容從那裡複製vol1到那裡。

目前您vol1正在使用/dev/mapper/centos-root邏輯卷中的空間。因此,您將要刪除vol1所有/glusterfs/distributed目錄。

引用自:https://serverfault.com/questions/925273