Monday, May 19, 2014

[GPFS] Adding a disk to the filesystem concurrently

[GPFS] Adding a disk to the GPFS filesystem concurrently It's very simple to add a disk to the filsystem.
We will make it from making nsd to add a disk to the filesystem.

1. Check the disk status on both nodes (check disk number, pvid)
# lspv

2. For adding a 'nsd' to GPFS cluster, making a disk.desc file when we use it before the GPFS configuration

# vi diskadd_desc
hdisk6:::dataAndMetadata:-1:kn_nsd3

3. Adding a nsd using a 'mmcrnsd' command mmcrnsd.

# mmcrnsd -F /diskadd_desc


Check whether the nsd is well made or not

# mmlsnsd

gpfs1

4. Adding the nsd we made to the filesystem.

# mmadddisk filesystem_name nsd_name

Now you can see the changed filesystem using 'mmlsnsd' and 'mmdf' command.

# mmlsnsd
# mmdf filesystem_name
gpfs2

5. Finally, this job will be completed after using 'restripe' command for redistribute data.
  (주의!!! This command can use in operating status but I strongly recommend not to use it at busy operating. It can make a performance issue.)
# mmrestripefs filesystem_name -b

After upper action, you can check the filesystem using below command.
# mmdf filesystem_name