openSeaChest_Erase sanitize command hangs after sending the command
xahmad opened this issue · 3 comments
openSeaChest_Erase sanitize command hangs after sending the command as if the Linux process is attempting to do more work.
For my setup the SATA drive is behind the SAS HBA.
Issuing the following command hangs but the terminal output shows that the hang is after the sanitize has been issued to the drive:
==========================================================================================
openSeaChest_Erase - openSeaChest drive utilities - NVMe Enabled
Copyright (c) 2014-2023 Seagate Technology LLC and/or its Affiliates, All Rights Reserved
openSeaChest_Erase Version: 4.1.0-5_0_0 X86_64
Build Date: Apr 24 2023
Today: Mon Apr 24 16:05:35 2023 User: root
==========================================================================================
/dev/sg3 - ST12000NM0008-2H3101 - SN04 - ATA
Sanitize
Starting Sanitize Overwrite Erase
Sanitize command has been started. Use the --progress sanitize option
to check for progress.
Thanks for reporting this. The primary issue is a function that is being called all the time rather than selectively. This function tells the OS to go and update what it knows about the filesystems on a device to prevent some very strange problems with some files being cached by the OS (seen with ext4 on Linux).
What we need to do instead is only call this function when an erase has completed and not all the time.
If it helps to make a decision on when to call that OS function...I tried to sanitize a device when it had a filesystem on it and when it didn't and got the same hang.
In other words, in one case the lsblk showed the OS had something mapped & in other case there was nothing mapped. Same results.
Marking this as closed since this code is in the latest release (v23.12) and it has been merged to both master and develop branches.
If you have any other trouble, please reopen this issue or create a new one and we will do our best to resolve it!