[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
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交