我正在尝试部署一个包含 12 个节点、每个节点 10 TB 的 gluster 集群,但是当我创建卷时,每个块仅创建 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
砖块的体积细节(仅 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
有什么想法吗?我遗漏了什么吗?
答案1
看起来砖块的磁盘安装在/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
或systemd.mount
)。然后您应该能够安装名为 的新卷lotsofdata
并将内容复制vol1
到那里。
目前您vol1
正在使用逻辑卷中的空间/dev/mapper/centos-root
。因此您需要删除vol1
所有/glusterfs/distributed
目录。