Skip to content

handle stale mount and fstab entries during#4867

Open
Nagachandan-P wants to merge 2 commits into
dell:stagingfrom
Nagachandan-P:fix/omnia-sh-install-stale-mount
Open

handle stale mount and fstab entries during#4867
Nagachandan-P wants to merge 2 commits into
dell:stagingfrom
Nagachandan-P:fix/omnia-sh-install-stale-mount

Conversation

@Nagachandan-P

Copy link
Copy Markdown
Contributor

After this fix, omnia.sh --install does the following before mounting:

  1. Checks if omnia_path is already a mount point.
    • If yes, it unmounts the existing share.
    • If umount fails, it tries a lazy unmount.
    • If both fail, it exits with a clear error and asks the user to unmount manually.
  2. Checks /etc/fstab for an existing entry for omnia_path.
    • If found, it backs up /etc/fstab and removes the stale entry.
  3. Then proceeds with mounting the new NFS share and adding a single clean /etc/fstab entry.

reinstall

Signed-off-by: Nagachandan-P <Nagachandan.p@dell.com>
Comment thread omnia.sh
mkdir -p $omnia_path

# Remove any stale mount or fstab entry for omnia_path before reuse
echo -e "${BLUE} Checking for existing mount at $omnia_path.${NC}"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

stale should be removed as part of uninstall flow. also to be taken care of slurm and k8s share

…cleanup

- omnia.sh --install: unmount existing omnia_path and remove stale /etc/fstab
  entries before mounting a new NFS share.
- omnia.sh --uninstall: always unmount omnia_path and remove its /etc/fstab
  entry, regardless of metadata state.
- oim_cleanup.yml: unmount and remove /etc/fstab entries for slurm and k8s
  OIM mounts with mount_on_oim: true.

Signed-off-by: Nagachandan-P <Nagachandan.p@dell.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants