![]() | Oracle System Handbook - ISO 7.0 May 2018 Internal/Partner Edition | ||
|
|
![]() |
||||||||||||
Solution Type Technical Instruction Sure Solution 1020298.1 : Zpool Import or Mount of a ZFS File System might Fail with "mountpoint or dataset is busy" Message
PreviouslyPublishedAs 255811 Applies to:Solaris Operating System - Version 10 6/06 U2 and laterOracle ZFS Storage ZS3-4 - Version All Versions and later All Platforms GoalThis document provides information how to check which process(es) blocks zpool import/export or zfs mount/umount commands
Solution
# zpool import tank
# fuser -fu /tank
c Indicates that the process is using the file as its current directory.
m Indicates that the process is using a file mapped with mmap(2). See mmap(2) for details. n Indicates that the process is holding a nonblocking mandatory lock on the file. o Indicates that the process is using the file as an open file. r Indicates that the process is using the file as its root directory. t Indicates that the process is using the file as its text file. y Indicates that the process is using the file as its controlling terminal. In the example above, we can see that the process 2022 is using the directory for the dataset 'tank' as its current directory. How to identify which process is using a zpool or zfs filesystem if a "zpool export" or a "zfs unmount" fails with "device busy" message: In the following example, a process (pid:2016) is using the zpool.
Note: It highly depends on the system and application whether certain processes can be killed (terminated) to free a zpool or zfs dataset
So, it's up to the system administrator to decide which of the following actions is most appropriate: A) kill (terminate) a process B) gracefully reboot the system to terminate the blocking processes C) use commands as shown below to force export zpool or zfs unmount ( can be dangerous ) You can export zpool or unmount zfs forcibly as follows.
References<NOTE:1507489.1> - Troubleshooting zpool import failure<NOTE:1506251.1> - WARNING: /usr/sbin/zfs mount -a failed: one or more file systems failed to mount <NOTE:1911523.1> - beadm destroy fails with "/.../var: mountpoint or dataset is busy" Attachments This solution has no attachment |
||||||||||||
|