GPFS集群创建磁盘

[root@gs01 data]# ls
gpfs_5.0.5.4-centos  gpfs_5.0.5.4-centos.zip  nsd.list

[root@gs01 data]# vi nsd.list
%nsd: device=/dev/sdb
       nsd=nsd01
       servers=gs01
       usage=dataAndMetadata
       failureGroup=11
       pool=system
%nsd: device=/dev/sdb
       nsd=nsd02
       servers=gs02
       usage=dataAndMetadata
       failureGroup=12
       pool=system
%nsd: device=/dev/sdc
      nsd=nsd011
      servers=gs01
      usage=dataAndMetadata
      failureGroup=13
      pool=system
%nsd: device=/dev/sdc
       nsd=nsd022
       servers=gs02
       usage=dataAndMetadata
       failureGroup=14
       pool=system


[root@gs01 data]# mmcrnsd -F nsd.list
mmcrnsd: Processing disk sdb
mmcrnsd: Processing disk sdb
mmcrnsd: Processing disk sdc
mmcrnsd: Processing disk sdc
mmcrnsd: Propagating the cluster configuration data to all
  affected nodes.  This is an asynchronous process.
[root@gs01 data]# lsblk
NAME            MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sda               8:0    0   20G  0 disk
├─sda1            8:1    0    1G  0 part /boot
└─sda2            8:2    0   19G  0 part
  ├─centos-root 253:0    0   17G  0 lvm  /
  └─centos-swap 253:1    0    2G  0 lvm  [SWAP]
sdb               8:16   0   10G  0 disk
└─sdb1            8:17   0   10G  0 part
sdc               8:32   0   10G  0 disk
└─sdc1            8:33   0   10G  0 part
sr0              11:0    1  4.4G  0 rom


[root@gs01 data]# mmstartup -a
2022年 12月 02日 星期五 16:44:01 CST: mmstartup: Starting GPFS ...
gs02:  The GPFS subsystem is already active.
gs01:  The GPFS subsystem is already active.


[root@gs01 data]# mmgetstate  -a

 Node number  Node name        GPFS state
-------------------------------------------
       1      gs01             active
       2      gs02             active
[root@gs01 data]# mmcr
mmcrcluster    mmcrfs         mmcrnodeclass  mmcrsnapshot
mmcrfileset    mmcrfsc        mmcrnsd
[root@gs01 data]# mmcrfs
mmcrfs   mmcrfsc
[root@gs01 data]# mmcrfs
gpfs_5.0.5.4-centos/     gpfs_5.0.5.4-centos.zip  nsd.list
[root@gs01 data]# mmcrfs fs01 -F nsd.list  -B 4M -T /data/ -k nfs4

The following disks of fs01 will be formatted on node gs01:
    nsd01: size 10240 MB
    nsd02: size 10240 MB
    nsd011: size 10240 MB
    nsd022: size 10240 MB
Formatting file system ...
Disks up to size 106.74 GB can be added to storage pool system.
Creating Inode File
Creating Allocation Maps
Creating Log Files
  78 % complete on Fri Dec  2 16:44:54 2022
 100 % complete on Fri Dec  2 16:44:55 2022
Clearing Inode Allocation Map
Clearing Block Allocation Map
Formatting Allocation Map for storage pool system
Completed creation of file system /dev/fs01.
mmcrfs: Propagating the cluster configuration data to all
  affected nodes.  This is an asynchronous process.
[root@gs01 data]# mmmount fs01  -a
2022年 12月 02日 星期五 16:45:11 CST: mmmount: Mounting file systems ...
[root@gs01 data]# df -TH
文件系统                类型      容量  已用  可用 已用% 挂载点
devtmpfs                devtmpfs  937M     0  937M    0% /dev
tmpfs                   tmpfs     954M     0  954M    0% /dev/shm
tmpfs                   tmpfs     954M   11M  944M    2% /run
tmpfs                   tmpfs     954M     0  954M    0% /sys/fs/cgroup
/dev/mapper/centos-root xfs        19G  5.4G   13G   30% /
/dev/sda1               xfs       1.1G  194M  870M   19% /boot
tmpfs                   tmpfs     191M   13k  191M    1% /run/user/42
tmpfs                   tmpfs     191M     0  191M    0% /run/user/0
fs01                    gpfs       43G  1.7G   42G    4% /data
[root@gs01 data]# lsblk
NAME            MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sda               8:0    0   20G  0 disk
├─sda1            8:1    0    1G  0 part /boot
└─sda2            8:2    0   19G  0 part
  ├─centos-root 253:0    0   17G  0 lvm  /
  └─centos-swap 253:1    0    2G  0 lvm  [SWAP]
sdb               8:16   0   10G  0 disk
└─sdb1            8:17   0   10G  0 part
sdc               8:32   0   10G  0 disk
└─sdc1            8:33   0   10G  0 part
sr0              11:0    1  4.4G  0 rom

  • 4
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值