首页 | 新闻 | 新品 | 文库 | 方案 | 视频 | 下载 | 商城 | 开发板 | 数据中心 | 座谈新版 | 培训 | 工具 | 博客 | 论坛 | 百科 | GEC | 活动 | 主题月 | 电子展
返回列表 回复 发帖

在 IBM AIX 上构建一个双节点的 IBM GPFS 集群:GPFS 文件系统配置

在 IBM AIX 上构建一个双节点的 IBM GPFS 集群:GPFS 文件系统配置

接下来,可以对 GPFS 文件系统进行配置。mmcrfs 命令用于创建文件系统。我们选择了创建两个文件系统;/gpfs 和 /gpfs1。/gpfs (gpfs0) 文件系统将被配置了一个大小为 256K(默认)的 GPFS 块,并且 /gpfs1 (gpfs1) 的块大小将被配置为 1M*。两个文件系统都针对复制进行了配置 (-M2 –R2)。为 /gpfs 指定 /tmp/cg/gpfs-disk.txt 文件,并为 /gpfs1 指定 /tmp/cg/gpfs1-disk.txt。这些文件指定了在创建过程中每个文件系统使用哪些 NSD 设备。
*备注:小心地选择块大小。在已经创建 GPFS 设备后,就无法再更改这个值。
1
2
3
4
5
6
7
8
9
10
11
12
# cat /tmp/cg/gpfs-disk.txt
nsd01:::dataAndMetadata:-1::system
nsd02:::dataAndMetadata:-1::system
nsd03:::dataAndMetadata:-1::system

# cat /tmp/cg/gpfs1-disk.txt
nsd04:::dataAndMetadata:-1::system
nsd05:::dataAndMetadata:-1::system
nsd06:::dataAndMetadata:-1::system

# mmcrfs /gpfs gpfs0 -F/tmp/cg/gpfs-disks.txt -M2 -R 2
# mmcrfs /gpfs1 gpfs1 -F/tmp/cg/gpfs1-disks.txt -M2 -R 2 –B 1M




mmlsnsd 命令显示每个文件系统的 NSD 配置。NSD 设备 1 至 3 被分配到 gpfs0,而设备 4 至 6 被分配到 gpfs1。
1
2
3
4
5
6
7
8
9
10
# mmlsnsd

File system   Disk name    NSD servers
---------------------------------------------------------------------------
gpfs0         nsd01        (directly attached)
gpfs0         nsd02        (directly attached)
gpfs0         nsd03        (directly attached)
gpfs1         nsd04        (directly attached)
gpfs1         nsd05        (directly attached)
gpfs1         nsd06        (directly attached)




现在,两个 GPFS 文件系统在两个节点上均可用。
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
aixlpar1 :/ # df -g
Filesystem    GB blocks      Free %Used    Iused %Iused Mounted on
/dev/hd4           1.00      0.89   12%     5211     3% /
/dev/hd2           3.31      0.96   71%    53415    18% /usr
/dev/hd9var        2.00      1.70   16%     5831     2% /var
/dev/hd3           2.00      1.36   33%      177     1% /tmp
/dev/hd1           2.00      2.00    1%      219     1% /home
/proc                 -         -    -         -     -  /proc
/dev/hd10opt       1.00      0.79   21%     3693     2% /opt
/dev/local         1.00      0.97    3%      333     1% /usr/local
/dev/loglv         1.00      1.00    1%       54     1% /var/log
/dev/tsmlog        1.00      1.00    1%        7     1% /var/tsm/log
/dev/hd11admin      0.12      0.12    1%       13     1% /admin
/dev/optIBMlv      2.00      1.99    1%       17     1% /opt/IBM
/dev/gpfs1       150.00    147.69    2%     4041     3% /gpfs1
/dev/gpfs0       150.00    147.81    2%     4041     7% /gpfs




在这里,可以使用 mmdsh 命令快速检查所有节点上的文件系统状态。
1
2
3
4
5
aixlpar1 :/ # mmdsh df -g | grep gpfs
aixlpar2:/dev/gpfs0       150.00    147.81    2%     4041     7% /gpfs
aixlpar2:/dev/gpfs1       150.00    147.69    2%     4041     3% /gpfs1
aixlpar1:/dev/gpfs1       150.00    147.69    2%     4041     3% /gpfs1
aixlpar1:/dev/gpfs0       150.00    147.81    2%     4041     7% /gpfs




如果需要更详细的信息,可以使用 mmdf 命令。
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
aixlpar1 :/gpfs # mmdf gpfs0 --block-size=auto
disk      disk size  failure holds    holds                 free                free
name      group metadata data        in full blocks        in fragments
--------------- ------------- -------- -------- ----- -------------------- ------------
Disks in storage pool: system (Maximum disk size allowed is 422 GB)
nsd01       50G       -1 yes      yes          49.27G ( 99%)          872K ( 0%)
nsd02       50G       -1 yes      yes          49.27G ( 99%)          936K ( 0%)
nsd03       50G       -1 yes      yes          49.27G ( 99%)          696K ( 0%)
           -------------                       -------------------- -------------------
(pool total) 150G                              147.8G ( 99%)        2.445M ( 0%)

           =============                       ==================== ===================
(total)          150G                          147.8G ( 99%)        2.445M ( 0%)

Inode Information
-----------------
Number of used inodes:            4040
Number of free inodes:           62008
Number of allocated inodes:      66048
Maximum number of inodes:        66048

aixlpar1 :/gpfs # mmdf gpfs1 --block-size=auto
disk       disk size  failure holds   holds             free            free
name       group metadata data        in full blocks    in fragments
--------------- ------------- -------- -------- ----- --------------------
Disks in storage pool: system (Maximum disk size allowed is 784 GB)
nsd04        50G       -1 yes      yes          49.55G ( 99%)        1.938M ( 00%)
nsd05        50G       -1 yes      yes          49.56G ( 99%)          992K ( 0%)
nsd06        50G       -1 yes      yes          49.56G ( 99%)        1.906M ( 00%)
          -------------                         -------------------- -------------------
(pool total) 150G                               148.7G ( 99%)        4.812M ( 00%)

          =============                         ==================== ===================
(total)           150G                          148.7G ( 99%)        4.812M ( 00%)

Inode Information
-----------------
Number of used inodes:            4040
Number of free inodes:          155704
Number of allocated inodes:     159744
Maximum number of inodes:       159744

返回列表