If an error occurs on the file system and it becomes corrupted, re-create the file system.
This section describes the procedure for re-creating a currently used DFS without changing the partition configuration.
The purpose of this is to restore all files from the backup to restore a file system.
See
If the partition configuration is changed, delete the DFS being used, and then create a DFS in the new partition configuration.
Refer to "13.2 Deleting a Storage System" for information on the procedure to delete and create a DFS.
Note
When a file system is re-created, all old file system data is deleted. Therefore, back up the required data before re-creation.
The DFS re-creation procedure is described below, using the following environment as an example,
- Representative partition | : /dev/disk/by-id/scsi-1FUJITSU_300000370106 |
- Logical file system name | : pdfs1 |
Unless specifically indicated otherwise, execute at the primary master server.
If the targeted DFS is mounted, unmount it.
Unmount the DFS on all slave servers, development servers, and collaboration servers.
# umount pdfs1 <Enter>
Unmount the DFS at the master server.
# pdfsumntgl /dev/disk/by-id/scsi-1FUJITSU_300000370106 <Enter>
Obtain the pdfsmkfs command line that re-creates a file system.
# pdfsmkfs -m /dev/disk/by-id/scsi-1FUJITSU_300000370106 > _mkfs_param_ <Enter>
Also, specify the force option in the pdfsmkfs command line. This option is used specifically for re-creation.
Before editing:
# cat _mkfs_param_ <Enter> pdfsmkfs -o free=10,...[snip]...,node=master1,master2 /dev/disk/by-id/scsi-1FUJITSU_300000370106
After editing:
# cat _mkfs_param_ <Enter> pdfsmkfs -o force,free=10,...[snip]...,node=master1,master2 /dev/disk/by-id/scsi-1FUJITSU_300000370106
Re-create the DFS.
# sh _mkfs_param_ <Enter>
Delete the pdfsmkfs command line.
# rm _mkfs_param_ <Enter>
Mount the DFS, and restart operations.
Mount the DFS, starting with the master server.
# pdfsmntgl /dev/disk/by-id/scsi-1FUJITSU_300000370106 <Enter>
Mount the DFS on all slave servers, development servers, and collaboration servers that use the DFS.
# mount pdfs1 <Enter>