※新增節點前,亦須確認該節點的 ssh key 是否已建立,並且確認其它節點可以無密碼login.
※確認 firewall 已允許各節點間互連。
$ mmaddnode c153 (可指定是否為quorum, 或之後用 mmchconfig designation=quorum 或 mmchnode --quorum 調整)
Fri Sep 4 17:12:58 CST 2009: mmaddnode: Processing node c153
mmaddnode: Command successfully completed
mmaddnode: Propagating the cluster configuration data to all
affected nodes. This is an asynchronous process.
$ mmstartup -N c153
Fri Sep 4 17:13:11 CST 2009: mmstartup: Starting GPFS ...
$ cat add_new_disk (此例子指定FailureGroup為2)
/dev/sda:c153::dataAndMetadata:2::
/dev/sdb:c153::dataAndMetadata:2::
$ mmcrnsd -F add_new_disk -v no
mmcrnsd: Processing disk sda
mmcrnsd: Processing disk sdb
mmcrnsd: Propagating the cluster configuration data to all
affected nodes. This is an asynchronous process.
$ mmlsnsd
File system Disk name NSD servers
---------------------------------------------------------------------------
gpfs0 gpfs1nsd c149
gpfs0 gpfs2nsd c150
gpfs0 gpfs3nsd c149
gpfs0 gpfs4nsd c150
gpfs0 gpfs5nsd c152
gpfs0 gpfs6nsd c152
(free disk) gpfs7nsd c153
(free disk) gpfs8nsd c153
$ mmadddisk gpfs0 -F add_new_disk -r
The following disks of gpfs0 will be formatted on node c149.twaren.net:
gpfs7nsd: size 1220994560 KB
gpfs8nsd: size 1220984320 KB
Extending Allocation Map
Checking Allocation Map for storage pool 'system'
79 % complete on Fri Sep 4 17:16:19 2009
100 % complete on Fri Sep 4 17:16:20 2009
Completed adding disks to file system gpfs0.
mmadddisk: Propagating the cluster configuration data to all
affected nodes. This is an asynchronous process.
Restriping gpfs0 ...
Scanning file system metadata, phase 1 ...
2 % complete on Fri Sep 4 17:16:27 2009
22 % complete on Fri Sep 4 17:16:30 2009
40 % complete on Fri Sep 4 17:16:33 2009
59 % complete on Fri Sep 4 17:16:36 2009
80 % complete on Fri Sep 4 17:16:39 2009
100 % complete on Fri Sep 4 17:16:42 2009
Scan completed successfully.
Scanning file system metadata, phase 2 ...
15 % complete on Fri Sep 4 17:16:45 2009
33 % complete on Fri Sep 4 17:16:48 2009
51 % complete on Fri Sep 4 17:16:51 2009
69 % complete on Fri Sep 4 17:16:54 2009
86 % complete on Fri Sep 4 17:16:57 2009
100 % complete on Fri Sep 4 17:17:00 2009
Scan completed successfully.
Scanning file system metadata, phase 3 ...
Scan completed successfully.
Scanning file system metadata, phase 4 ...
Scan completed successfully.
Scanning user file metadata ...
Scan completed successfully.
Done
$ mmlsdisk gpfs0 -L
disk driver sector failure holds holds storage
name type size group metadata data status availability disk id pool remarks
------------ -------- ------ ------- -------- ----- ------------- ------------ ------- ------------ ---------
gpfs1nsd nsd 512 1 yes yes ready up 1 system desc
gpfs2nsd nsd 512 2 yes yes ready up 2 system desc
gpfs3nsd nsd 512 1 yes yes ready up 3 system desc
gpfs4nsd nsd 512 2 yes yes ready up 4 system
gpfs5nsd nsd 512 1 yes yes ready up 5 system
gpfs6nsd nsd 512 1 yes yes ready up 6 system
gpfs7nsd nsd 512 2 yes yes ready up 7 system
gpfs8nsd nsd 512 2 yes yes ready up 8 system
Number of quorum disks: 3
Read quorum value: 2
Write quorum value: 2
$ df -h (dynamic add up disk space)
Filesystem Size Used Avail Use% Mounted on
/dev/gpfs0 9.1T 4.6T 4.6T 51% /gpfs
沒有留言:
張貼留言