LX0-103 · Question #54
After moving data to a new filesystem, how can the former path of the data be kept intact in order to avoid reconfiguration of existing applications? (Choose TWO correct answers.)
The correct answer is C. By creating a symbolic link from the old to the new path of the data. E. By mounting the new filesystem on the original path of the data.. After moving data to a new filesystem, a symbolic link at the old path or mounting the new filesystem on the original path both preserve the original path transparently for existing applications.
Question
After moving data to a new filesystem, how can the former path of the data be kept intact in order to avoid reconfiguration of existing applications? (Choose TWO correct answers.)
Options
- ABy creating an ACL redirection from the old to the new path of the data.
- BBy creating a hard link from the old to the new path of the data.
- CBy creating a symbolic link from the old to the new path of the data.
- DBy running the command touch on the old path.
- EBy mounting the new filesystem on the original path of the data.
How the community answered
(34 responses)- A18% (6)
- B3% (1)
- C74% (25)
- D6% (2)
Why each option
After moving data to a new filesystem, a symbolic link at the old path or mounting the new filesystem on the original path both preserve the original path transparently for existing applications.
ACL entries control file permissions, not path redirection; Linux provides no ACL-based mechanism for aliasing or redirecting filesystem paths.
Hard links cannot span different filesystems because they reference inode numbers, which are local identifiers within a single filesystem.
Placing a symbolic link at the old path that points to the new filesystem location transparently redirects all access through the original path to the new location, requiring no changes to application configuration.
The touch command creates an empty file or updates timestamps at the given path; it does not redirect access to or link toward the relocated data.
Mounting the new filesystem directly on the original directory path causes the data to appear at the exact same path as before, making the move completely invisible to existing applications.
Concept tested: Symbolic links and bind mounts for path preservation
Source: https://man7.org/linux/man-pages/man1/ln.1.html
Topics
Community Discussion
No community discussion yet for this question.