public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download: 
* Re: [gentoo-user] cryptsetup close and device in use when it is not
  @ 2021-06-15 14:52 99%     ` Jack
  0 siblings, 0 replies; 1+ results
From: Jack @ 2021-06-15 14:52 UTC (permalink / raw
  To: gentoo-user

On 6/15/21 10:21 AM, Dale wrote:
> Ramon Fischer wrote:
>> Hello Dale,
>>
>> this also happens to me sometimes and the culprit was an open process
>> still accessing the hard drive. Maybe you can solve it like this:
>>
>>     $ lsof /mnt/8tb
>>     zsh       8390 root  cwd    DIR  253,2      4096 27787265 /mnt/8tb
>>     $ kill 8390
>>     $ lsof /mnt/8tb
>>
>> After that, you should be able to close the drive via "cryptsetup".
>>
>> -Ramon
>>
>> On 14/06/2021 06:50, Dale wrote:
>>> root@fireball / # cryptsetup close 8tb
>>> Device 8tb is still in use.
>>> root@fireball / # mount | grep 8tb
>>> root@fireball / #
> I've tried lsof before, for both mount point and device, it shows
> nothing open.  It's weird.
>
> When this happened last night, just before I posted, I let the drive sit
> there while I was doing updates.  Later on, I tried to close it again
> and it closed just fine.  I hadn't done anything except let it sit
> there.  While I was glad it closed, I wonder why it did it.  Did udev
> finally catch up to the state of the drive?  Did some other device
> update and allow it to close?
>
> This is weird.  Everything says it is ready to be closed but it thinks
> something is open.  I'm not sure what to point too for the problem.  Yet
> anyway.
>
> Thanks for the tip.  It was worth mentioning.
>
> Dale

Is it possible it was still syncing cache out to the physical drive?  I 
wonder if iotop would show any activity for that drive if that's the case?

Jack



^ permalink raw reply	[relevance 99%]

Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2021-06-14  4:50     [gentoo-user] cryptsetup close and device in use when it is not Dale
2021-06-15 13:48     ` Ramon Fischer
2021-06-15 14:21       ` Dale
2021-06-15 14:52 99%     ` Jack

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox