Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Mar 2013 20:38:25 -0500
From:      Bryan Drewery <bryan-lists@shatow.net>
To:        =?UTF-8?B?VXJvxaEgR3J1YmVy?= <uros.gruber@gmail.com>
Cc:        freebsd-fs@freebsd.org
Subject:   Re: zfs hang with umount
Message-ID:  <513E8711.2080909@shatow.net>
In-Reply-To: <CAHGMo95Sx_5EEvj9-8m_Eck0D16ricbLrfPTeMbUV0=xwP4zVg@mail.gmail.com>
References:  <CAHGMo95Giii7ttxbNVEL1BKez5BGhktqBqamuuSd91n2yReiWw@mail.gmail.com> <513E4B0B.3090807@FreeBSD.org> <CAHGMo95Sx_5EEvj9-8m_Eck0D16ricbLrfPTeMbUV0=xwP4zVg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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@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@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-fs
> To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org"
> 


-- 
Regards,
Bryan Drewery
bdrewery@freenode/EFNet



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?513E8711.2080909>