Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
This document describes how to migrate a GPFS filesystem from two LUN's (NSDs) to
Other two LUN's online.
April 2015
Below are the detailed procedures for GPFS filesystems live migration into new NSD
Disks.
hdisk3:::dataAndMetadata::nsd2:
hdisk5:::dataAndMetadata::nsd3:
hdisk6:::dataAndMetadata::nsd4:
# mmcrnsd -F /etc/nsd.map
# cat /var/mmfs/gen/nsdpvol
hdisk2 nsd1
hdisk5 nsd3
hdisk3 nsd2
hdisk6 nsd4
# lspv | grep -i nsd
hdisk2 00ccfe74959d42c1 nsd1
hdisk5 00ccfe74538bed3e nsd3
hdisk3 00ccfe7463443e89 nsd2
hdisk6 00ccfe742f959246 nsd4
# mmlsnsd -L
File system Disk name NSD volume ID NSD servers
----------------------------------------------------(free disk) nsd1 09AFD3B4559FA9A2 (directly attached)
(free disk) nsd2 09AFD3B4559FA9A3 (directly attached)
(free disk) nsd3 09AFD3B4559FA9A4 (directly attached)
(free disk) nsd4 09AFD3B4559FAA0C (directly attached)
04- Create one gpfs filesystem (gpfs1) spanned on NSD1 & NSD2 only:
# mmcrfs gpfs1 nsd1
# mmadddisk gpfs1 nsd2
# mmlsnsd -L
File system Disk name NSD volume ID NSD servers
------------------------------------------------------------gpfs1 nsd1 09AFD3B4559FA9A2 (directly attached)
gpfs1 nsd2 09AFD3B4559FA9A3 (directly attached)
(free disk) nsd3 09AFD3B4559FA9A4 (directly attached)
(free disk) nsd4 09AFD3B4559FAA0C (directly attached)
07- Add the other two NSD's (NSD3,NSD4) to the gpfs1 filesystem:
# mmadddisk gpfs1 nsd3
# mmadddisk gpfs1 nsd4
# mmlsnsd -L
File system Disk name NSD volume ID NSD servers
--------------------------------------------------------------gpfs1 nsd1 09AFD3B4559FA9A2 (directly attached)
gpfs1 nsd2 09AFD3B4559FA9A3 (directly attached)
gpfs1 nsd3 09AFD3B4559FA9A4 (directly attached)
gpfs1 nsd4 09AFD3B4559FAA0C (directly attached)
# mmlsdisk gpfs1
disk driver sector failure holds holds storage
name type size group metadata data status availability pool
--------------------------------------------------------------nsd1 nsd 512 -1 yes yes suspended up system
nsd2 nsd 512 -1 yes yes suspended up system
nsd3 nsd 512 -1 yes yes ready up system
nsd4 nsd 512 -1 yes yes ready up system
08- Now, the migration will be done from suspened NSD's to ready NSD's:
# mmrestripefs gpfs1 -r
GPFS: 6027-589 Scanning file system metadata, phase 1 ...
GPFS: 6027-552 Scan completed successfully.
GPFS: 6027-589 Scanning file system metadata, phase 2 ...
GPFS: 6027-552 Scan completed successfully.
GPFS: 6027-589 Scanning file system metadata, phase 3 ...
GPFS: 6027-552 Scan completed successfully.
GPFS: 6027-589 Scanning file system metadata, phase 4 ...
GPFS: 6027-552 Scan completed successfully.
GPFS: 6027-565 Scanning user file metadata ...
100.00 % complete on Fri Jul 10 14:16:39 2015
GPFS: 6027-552 Scan completed successfully.