LINUX.ORG.RU
ФорумAdmin

Отмонтировать недоступную NFS-шару


0

0

Сеть недоступна, соответственно до шары не достучаться.

fuser, lsof виснут при попытке узнать, что за процесс использует.

stat64("/mnt/share",

umount -f не работает.

Как без перезагрузки отмонтировать такую шару? Фейковую тоже создавать не хочется.

★★★★
Ответ на: комментарий от Sylvia

Похоже до сих пор существует эта проблема. Использование automount помогало.

anonymous
()

Кажись

umount -f -l /mnt/share

Slavaz ★★★★★
()
Ответ на: комментарий от Sylvia

>mount.cifs поддерживает опцию -l (lazy unmount) в mount.nfs к сожалению этого нет

man umount.nfs

UMOUNT.NFS(8) UMOUNT.NFS(8)

NAME umount.nfs, umount.nfs4 - unmount a Network File System

SYNOPSIS umount.nfs dir [-fvnrlh ]

DESCRIPTION umount.nfs and umount.nfs4 are a part of nfs(5) utilities package, which provides NFS client functionality.

umount.nfs4 and umount.nfs are meant to be used by the umount(8) command for unmounting NFS shares. This subcommand, however, can also be used as a standalone command with lim- ited functionality.

dir is the directory on which the file system is mounted.

OPTIONS -f Force unmount the file system in case of unreachable NFS system.

-v Be verbose.

-n Do not update /etc/mtab. By default, an entry is created in /etc/mtab for every mounted file system. Use this option to skip deleting an entry.

-r In case unmounting fails, try to mount read-only.

-l Lazy unmount. Detach the file system from the file system hierarchy now, and cleanup all references to the file system as soon as it is not busy anymore.

-h Print help message.

NOTE For further information please refer nfs(5) and umount(8) manual pages.

FILES /etc/fstab file system table

/etc/mtab table of mounted file systems

SEE ALSO nfs(5), umount(8),

BUGS Please notify current developers of NFS of any bugs in the current software or mail nfs@lists.sourceforge.net

AUTHOR Amit Gud <agud@redhat.com>

6 Jun 2006 UMOUNT.NFS(8)

есть такая опция ...

anonymous
()
Ответ на: комментарий от Sylvia

>mount.cifs поддерживает опцию -l (lazy unmount) 
в mount.nfs к сожалению этого нет


man umount.nfs

UMOUNT.NFS(8)                                                    UMOUNT.NFS(8)

NAME
       umount.nfs, umount.nfs4 - unmount a Network File System

SYNOPSIS
       umount.nfs dir [-fvnrlh ]

DESCRIPTION
       umount.nfs and umount.nfs4 are a part of nfs(5) utilities package, which provides NFS client functionality.

       umount.nfs4  and  umount.nfs are meant to be used by the umount(8) command for unmounting NFS shares. This subcommand, however, can also be used as a standalone command with lim-
       ited functionality.

       dir is the directory on which the file system is mounted.

OPTIONS
       -f     Force unmount the file system in case of unreachable NFS system.

       -v     Be verbose.

       -n     Do not update /etc/mtab.  By default, an entry is created in /etc/mtab for every mounted file system. Use this option to skip deleting an entry.

       -r     In case unmounting fails, try to mount read-only.

       -l     Lazy unmount. Detach the file system from the file system hierarchy now, and cleanup all references to the file system as soon as it is not busy anymore.

       -h     Print help message.

NOTE
       For further information please refer nfs(5) and umount(8) manual pages.

FILES
       /etc/fstab        file system table

       /etc/mtab         table of mounted file systems

SEE ALSO
       nfs(5), umount(8),

BUGS
       Please notify current developers of NFS of any bugs in the current software or mail nfs@lists.sourceforge.net

AUTHOR
       Amit Gud <agud@redhat.com>

                                  6 Jun 2006                     UMOUNT.NFS(8)

есть такая опция ...

anonymous
()
Ответ на: комментарий от kaktyc

ну вот) главное указать направление где копать)

Sylvia ★★★★★
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.