When I ran mmcrnsd
to setup the disks/nsds in this filesystem I did not specify any failure groups as at the time I was not interested in using metadata or data replication. Now I would like to have my two disks in seperate failure groups for metadata replication to work properly.
[root@foonsd1 ~]# mmlsdisk foodata1 disk driver sector failure holds holds storage name type size group metadata data status availability pool ------------ -------- ------ ------- -------- ----- ------------- ------------ ------------ nsd1 nsd 512 -1 Yes Yes ready up system nsd2 nsd 512 -1 Yes Yes ready up system
The mmchdisk
can change almost all parameters set by mmcrnsd
. Here I’m setting nsd1 into failure group 1 and nsd2 into failure group 2.
[root@foonsd1 ~]# mmchdisk foodata1 change -d nsd1::::1::: Verifying file system configuration information ... mmchdisk: Propagating the cluster configuration data to all affected nodes. This is an asynchronous process. [root@foonsd1 ~]# mmchdisk foodata1 change -d nsd2::::2::: Verifying file system configuration information ... mmchdisk: Propagating the cluster configuration data to all affected nodes. This is an asynchronous process.
Verify the change.
[root@foonsd1 ~]# mmlsdisk foodata1 disk driver sector failure holds holds storage name type size group metadata data status availability pool ------------ -------- ------ ------- -------- ----- ------------- ------------ ------------ nsd1 nsd 512 1 Yes Yes ready up system nsd2 nsd 512 2 Yes Yes ready up system Attention: Due to an earlier configuration change the file system is no longer properly replicated.
The warning message is because I had previously changed the default metadata value from -m 1
to -m 2
. No we can go ahead and restripe the filesystem’s replication.
[root@foonsd1 ~]# mmrestripefs foodata1 -R 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 Mon Jun 4 14:09:45 2012 Scan completed successfully.
And the warning message when running mmlsdisk
is now gone.
[root@foonsd1 ~]# mmlsdisk foodata1 disk driver sector failure holds holds storage name type size group metadata data status availability pool ------------ -------- ------ ------- -------- ----- ------------- ------------ ------------ nsd1 nsd 512 1 Yes Yes ready up system nsd2 nsd 512 2 Yes Yes ready up system