Under DFS, adding partitions to scale-out the system can provide either or both improvement in processing performance, and increased file system size of a shared disk device.
When adding partitions, unmount the targeted DFS.
The procedure for adding partitions to the DFS is described below using the following environment as an example:
| pdfs1 |
| /mnt/pdfs |
| /dev/disk/by-id/scsi-1FUJITSU_300000370106 |
| 1 |
| master1,master2 |
| slave1, slave2, slave3, slave4, slave5, develop, collaborate |
| /dev/disk/by-id/scsi-1FUJITSU_300000370107 |
| /dev/disk/by-id/scsi-1FUJITSU_300000370108 |
If the targeted DFS is mounted, unmount it.
Unmount the DFS at 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>
Check the file system information.
From the file system information recorded in the management partition, check the configuration of the targeted file system.
# pdfsinfo /dev/disk/by-id/scsi-1FUJITSU_300000370106 <Enter> /dev/disk/by-id/scsi-1FUJITSU_300000370106: FSID special size Type mount 1 /dev/disk/by-id/scsi-1FUJITSU_300000370106 (864) 25418 META ----- 1 /dev/disk/by-id/scsi-1FUJITSU_300000370106 (864) 5120 LOG ----- 1 /dev/disk/by-id/scsi-1FUJITSU_300000370106 (864) 232256 DATA ----- 1 /dev/disk/by-id/scsi-1FUJITSU_300000370107 (880) 7341778 DATA -----
Add the partition.
Add /dev/disk/by-id/scsi-1FUJITSU_300000370108 as a file data area.
# pdfsadd -D /dev/disk/by-id/scsi-1FUJITSU_300000370108 /dev/disk/by-id/scsi-1FUJITSU_300000370106 <Enter>
Check that the partition was added.
From the file system information, check that the partition was added.
# pdfsinfo /dev/disk/by-id/scsi-1FUJITSU_300000370106 <Enter> /dev/disk/by-id/scsi-1FUJITSU_300000370106: FSID special size Type mount 1 /dev/disk/by-id/scsi-1FUJITSU_300000370106 (864) 25418 META ----- 1 /dev/disk/by-id/scsi-1FUJITSU_300000370106 (864) 5120 LOG ----- 1 /dev/disk/by-id/scsi-1FUJITSU_300000370106 (864) 232256 DATA ----- 1 /dev/disk/by-id/scsi-1FUJITSU_300000370107 (880) 7341778 DATA ----- 1 /dev/disk/by-id/scsi-1FUJITSU_300000370108 (896) 6578704 DATA -----
Regenerate the DFS configuration information file.
Execute the pdfsmkconf command at the master server.
# pdfsmkconf <Enter>
Information
A configuration information file is generated, as pdfsmkconf_out/client.conf.fsid under the directory where the pdfsmkconf command is executed, for each file system ID, fsid.
Convert the configuration information file name to a logical file system name.
Convert the file system ID fsid to a logical file system name.
# cd pdfsmkconf_out <Enter> # mv ./client.conf.1 client.conf.pdfs1 <Enter>
Distribute the configuration information file to each of the slave servers, development servers and collaboration servers.
# scp -p ./client.conf.pdfs1 root@slave1:/etc/pdfs/client.conf.pdfs1 <Enter> # scp -p ./client.conf.pdfs1 root@slave2:/etc/pdfs/client.conf.pdfs1 <Enter>
Note
Place the configuration information file under /etc/pdfs at each of the slave servers, development servers and collaboration servers.
Mount the DFS and restart operation.
Mount the DFS, starting from the master server.
# pdfsmntgl /dev/disk/by-id/scsi-1FUJITSU_300000370106 <Enter>
Mount the DFS at all slave servers, development servers and collaboration servers.
# mount pdfs1 <Enter>