In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly shows you "GPFS how to add and delete disks online", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "GPFS how to add and delete disks online" this article.
First, add the order online
1. View the current NSD disk
Dbfc:/tmp # mmlsnsd-m
Disk name NSD volume ID Device Node name Remarks
-
Gpfs1nsd 0AC8016258A2CCC4 / dev/sdc dbfc.example.com
Gpfs2nsd 0AC8016258A2CCF2 / dev/sdd dbfc.example.com
Gpfs3nsd 0AC8016258A2CD1B / dev/sde dbfc.example.com
Gpfs4nsd 0AC8016258A3AF5D / dev/sdf dbfc.example.com
Dbfc:/tmp # mmlsnsd
File system Disk name NSD servers
Db2arch gpfs4nsd (directly attached)
Db2data gpfs2nsd (directly attached)
Db2inst gpfs1nsd (directly attached)
Db2log gpfs3nsd (directly attached)
2. Edit the NSD configuration file
Vi / tmp/nsdprofile
Sdg:::dataAndMetadata::
3. Create an NSD disk
Dbfc:/tmp # mmcrnsd-F / tmp/nsdprofile
Mmcrnsd: Processing disk sdg
Mmcrnsd: Propagating the cluster configuration data to all
Affected nodes. This is an asynchronous process.
4. Confirm the creation
Dbfc:/tmp # mmlsnsd
File system Disk name NSD servers
Db2arch gpfs4nsd (directly attached)
Db2data gpfs2nsd (directly attached)
Db2inst gpfs1nsd (directly attached)
Db2log gpfs3nsd (directly attached)
(free disk) gpfs5nsd (directly attached)
Dbfc:/tmp # mmlsnsd-m
Disk name NSD volume ID Device Node name Remarks
-
Gpfs1nsd 0AC8016258A2CCC4 / dev/sdc dbfc.example.com
Gpfs2nsd 0AC8016258A2CCF2 / dev/sdd dbfc.example.com
Gpfs3nsd 0AC8016258A2CD1B / dev/sde dbfc.example.com
Gpfs4nsd 0AC8016258A3AF5D / dev/sdf dbfc.example.com
Dbfc:/tmp # mmlsdisk db2data
Disk driver sector failure holds holds storage
Name type size group metadata data status availability pool
Gpfs2nsd nsd 512-1 yes yes ready up system
Gpfs5nsd nsd 512-1 yes yes ready up system
5. Add the newly created NSD disk to the GPFS cluster
Dbfc:/tmp # cat / tmp/nsdprofile
# sdg:::dataAndMetadata::
Gpfs5nsd:::dataAndMetadata:-1::system
Dbfc:/tmp # mmadddisk db2data-F / tmp/nsdprofile
The following disks of db2data will be formatted on node dbfc:
Gpfs5nsd: size 10240 MB
Extending Allocation Map
Checking Allocation Map for storage pool system
Completed adding disks to file system db2data.
Mmadddisk: Propagating the cluster configuration data to all
Affected nodes. This is an asynchronous process.
6. Confirm the result of capacity expansion
Asynchronous synchronization, so you need to log in to all nodes to check
Df-h
Dbnode02:~ # mmlsnsd
File system Disk name NSD servers
Db2arch gpfs4nsd (directly attached)
Db2data gpfs2nsd (directly attached)
Db2data gpfs5nsd (directly attached)
Db2inst gpfs1nsd (directly attached)
Db2log gpfs3nsd (directly attached)
II. Rebalance file system
Dbfc:/tmp # mmrestripefs db2data-b
Scanning file system metadata, phase 1...
Scan completed successfully.
Scanning file system metadata, phase 2...
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...
100.00 complete on Thu Apr 13 16:44:28 2017 (133376 inodes with total 1969 MB data processed)
Scan completed successfully.
III. Dynamic reduction
Dbfc:/tmp # mmrestripefs db2data-b
Scanning file system metadata, phase 1...
Scan completed successfully.
Scanning file system metadata, phase 2...
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...
100.00 complete on Thu Apr 13 16:44:28 2017 (133376 inodes with total 1969 MB data processed)
Scan completed successfully.
Dbfc:/tmp # mmlsnsd
File system Disk name NSD servers
Db2arch gpfs4nsd (directly attached)
Db2data gpfs2nsd (directly attached)
Db2data gpfs5nsd (directly attached)
Db2inst gpfs1nsd (directly attached)
Db2log gpfs3nsd (directly attached)
Dbfc:/tmp # mmdeldisk db2data gpfs2nsd
Deleting disks...
Scanning file system metadata, phase 1...
73% complete on Thu Apr 13 16:51:18 2017
100% complete on Thu Apr 13 16:51:19 2017
Scan completed successfully.
Scanning file system metadata, phase 2...
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...
100.00 complete on Thu Apr 13 16:51:28 2017 (133376 inodes with total 1969 MB data processed)
Scan completed successfully.
Checking Allocation Map for storage pool system
Attention: A disk being removed reduces the number of failure groups to 1
Which is below the number required for replication: 2.
New blocks will be allocated from the remaining disks
But files will be unreplicated and hence at risk.
Tsdeldisk completed.
Mmdeldisk: Propagating the cluster configuration data to all
Affected nodes. This is an asynchronous process.
The above is all the contents of the article "how to add and remove disks online by GPFS". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.