Top
Interstage Big DataParallel Processing ServerV1.0.0 User's Guide
Interstage

E.1 Deleting a File System

In a DFS, information on the partitions comprising a file system is recorded in the management partition.

Therefore, when the DFS currently being used is no longer required, it must be deleted.

Note

When a file system is deleted, all file system data is deleted. Therefore, back up required data before deletion.

The DFS deletion procedure is described below using the following environment as an example:

  • Representative partition:

/dev/disk/by-id/scsi-1FUJITSU_300000370107

  • File system ID:

2

  • Logical file system name:

pdfs2

Unless specifically indicated otherwise, execute at the master server (primary).

  1. If the targeted DFS is mounted, unmount it.

    Unmount the DFS at all slave servers, development servers and collaboration servers.

    # umount pdfs2 <Enter>

    Unmount the DFS at the master server.

    # pdfsumntgl /dev/disk/by-id/scsi-1FUJITSU_300000370107 <Enter>
  2. Check the current file system information.

    # pdfsinfo -a <Enter>
    /dev/disk/by-id/scsi-1FUJITSU_300000370106:
    FSID special                                           size Type mount
       1 /dev/disk/by-id/scsi-1FUJITSU_300000370106 (864) 14422 META -----
       1 /dev/disk/by-id/scsi-1FUJITSU_300000370106 (864)  5116 LOG  -----
       1 /dev/disk/by-id/scsi-1FUJITSU_300000370106 (864) 95112 DATA -----
    /dev/disk/by-id/scsi-1FUJITSU_300000370107:
    FSID special                                           size Type mount
       2 /dev/disk/by-id/scsi-1FUJITSU_300000370107 (880) 14422 META -----
       2 /dev/disk/by-id/scsi-1FUJITSU_300000370107 (880)  5116 LOG  -----
       2 /dev/disk/by-id/scsi-1FUJITSU_300000370107 (880) 95112 DATA -----
  3. Delete the DFS.

    # pdfsadm -D /dev/disk/by-id/scsi-1FUJITSU_300000370107 <Enter>
  4. Check that the DFS was deleted.

    # pdfsinfo -a <Enter>
    /dev/disk/by-id/scsi-1FUJITSU_300000370106:
    FSID special                                           size Type mount
       1 /dev/disk/by-id/scsi-1FUJITSU_300000370106 (864) 14422 META -----
       1 /dev/disk/by-id/scsi-1FUJITSU_300000370106 (864)  5116 LOG  -----
       1 /dev/disk/by-id/scsi-1FUJITSU_300000370106 (864) 95112 DATA -----
  5. Back up the management partition information.

    Store _backup_file_ very carefully because it is used for maintenance work.

    # pdfsgetconf _backup_file_ <Enter>
  6. On all slave servers, development servers and collaboration servers, delete the file system configuration information file.

    # cd /etc/pdfs <Enter>
    # rm ./client.conf.pdfs2 <Enter>
  7. On the master server (primary) and the master server (secondary), delete the connection authorization list file.

    # cd /etc/pdfs <Enter>
    # rm ./server.conf.2 <Enter>
  8. Delete the targeted DFS description from the /etc/fstab of the master server(primary), the master server (secondary), slave servers, development servers and collaboration servers.

    Information

    The DFS device names entered in /etc/fstab are as follows:

    • Master server (primary), master server (secondary): Representative partition by-id name

    • Slave server, development server, collaboration server: Logical file system name