Moving a File System to Another Subnet

Move a file system to another subnet.

There might be situations where you need to move a file system to a different subnet. For example, because you can't change subnet size, you might need to move the file system to a larger or smaller subnet as your needs change.

  1. Create the new subnet. See VCN and Subnet Management for instructions.
  2. Create a new mount target in the new subnet.
  3. Create new export with the same export path in the new mount target to the file system. See Creating an Export for instructions.

    • Choose Select Existing Mount Target
    • Be sure that the export path for the new export is exactly the same as the export path for the original export. The original and new mount target can exist at the same time without issue.
  4. Switch over the instance mount point to the new mount target. This can be done at any time convenient to your maintenance schedule:
    1. Stop any workload application processes running on the instance mount point.
    2. Unmount the file system. See Mounting File Systems for instructions.
    3. Mount the file system using the new mount target, but the same mount point that was previously used.

      For example: If the file system was mounted with the original mount target like this:

      sudo mount 10.0.0.10:/my-export-path /mnt/MyMountPoint

      Then the new mount command would look like this:

      sudo mount 10.1.1.10:/my-export-path /mnt/MyMountPoint

      See Mounting File Systems for instructions.

    4. Update any system configuration files that use the old export path. For example, /etc/fstab.
    5. Start workload applications and verify that they can access the file system as expected.
    6. After testing and verification is complete, you can delete the original mount target and subnet.