zfs hang with umount

Bryan Drewery bryan-lists at shatow.net
Tue Mar 12 01:45:12 UTC 2013


On 3/11/2013 4:43 PM, Uroš Gruber wrote:
> Hi Andriy,
> 
> can you tell me more about this or what was the cause for this so I
> can avoid it until 9.2 is released. I don't want to jump on 9-STABLE
> and maybe have more problems with some other stuff.
> 


This can very easily happen with `umount -f`. My understanding is it
just takes a file descriptor being open to an unlinked file. Best to
avoid -f if possible.

If you run into one of these deadlocks you'll need to restart, possibly
with reboot(8).

> regards
> 
> Uros
> 
> On 11 March 2013 22:22, Andriy Gapon <avg at freebsd.org> wrote:
>> on 11/03/2013 20:20 Uroš Gruber said the following:
>>> Hi,
>>>
>>> I don't know what causes this, but while stopping one of jails I also
>>> run zfs inherit mountpoint on this jails fs. This jail was in stopping
>>> state at this moment. Process than hanged in D state. Then I was doing
>>> some stuff on the server, and while "zfs unmount -f" of that fs,
>>> server chrased. Now everytime I wan't to unmount that fs process hang.
>>> I've managed to send & receive this fs to other fs and mounted
>>> sucessfuly.
>>>
>>> Before I reboot and try to destroy this fs, here is output of procstat
>>> -k PID (zfs umount zroot/myfs)
>>>
>>>   PID    TID COMM             TDNAME           KSTACK
>>>  3937 100559 zfs              -                mi_switch
>>> sleepq_timedwait _sleep zfs_zget zfs_get_data zil_commit
>>> zfs_freebsd_write VOP_WRITE_APV vnode_pager_generic_putpages
>>> vnode_pager_putpages vm_pageout_flush vm_object_page_collect_flush
>>> vm_object_page_clean vm_object_terminate vnode_destroy_vobject
>>> zfs_freebsd_reclaim vgonel vflush
>>>
>>> Is there anything I can check or is this know bug?
>>>
>>> Server is running on 9.1-RELEASE
>>
>> This should be fixed in stable/9.
>>
>> --
>> Andriy Gapon
> _______________________________________________
> freebsd-fs at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-fs
> To unsubscribe, send any mail to "freebsd-fs-unsubscribe at freebsd.org"
> 


-- 
Regards,
Bryan Drewery
bdrewery at freenode/EFNet


More information about the freebsd-fs mailing list