-
Notifications
You must be signed in to change notification settings - Fork 236
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Locked SED drives and linux errors #454
Comments
Well looks like I got into a worse situation testing. Seems the one drive I was testing with is bricked in some way. Ran the following, powered down the box and power it back up. Once it came back online I can no longer do anything with the drive. root@BunkSnapVaultProx:/dev/disk/by-id# ls -ltrh | grep 4441 root@BunkSnapVaultProx:~# sedutil-cli --query /dev/sddq |
Bummer, seems sedutils bricked my drive in some way. Can't even see information via hdparm anymore. root@BunkSnapVaultProx:/dev/disk/by-id# hdparm -I /dev/disk/by-id/ata-SAMSUNG_MZ7L37T6HBLA-00A07_S6EPNN0W504441 /dev/disk/by-id/ata-SAMSUNG_MZ7L37T6HBLA-00A07_S6EPNN0W504441: ATA device, with non-removable media |
Once in awhile ill see this. root@BunkSnapVaultProx:~# sedutil-cli --query /dev/sdbu /dev/sdbu ATA SAMSUNG MZ7L37T6HBLA-00A07 JXTC304Q S6EPNN0W504441 So I know the drive i locked. Most of the time I see this. root@BunkSnapVaultProx:~# sedutil-cli --query /dev/sdbu I have to be missing something major here. Similar with this command as well. root@BunkSnapVaultProx: |
Testing with another drive, hit the same issue once the drive is locked. This time I manually locked the drive. root@BunkSnapVaultProx:/dev/disk/by-id# sedutil-cli --setlockingrange 0 ro PASSWORD /dev/sdcn root@BunkSnapVaultProx:/dev/disk/by-id# mount /dev/sdcn /mnt This looks good, drive shouldn't mount when its RO. root@BunkSnapVaultProx:/dev/disk/by-id# sedutil-cli --setlockingrange 0 rw PASSWORD /dev/sdcn root@BunkSnapVaultProx:/dev/disk/by-id# mount /dev/sdcn /mnt Then I locked the drive and I am in the same position as the other drive. root@BunkSnapVaultProx:/dev/disk/by-id# sedutil-cli --setlockingrange 0 lk PASSWORD /dev/sdcn root@BunkSnapVaultProx:~# sedutil-cli --setlockingrange 0 rw PASSWORD /dev/sdcn I am guessing my only option is the PSID? |
I think this is the second or third issue I've seen here now where someone on Linux had issues with booting because of encrypted non-boot drives. You could read #449, I don't know if that will help you, sorry. For the record, I think Windows might have problems with this too, I think the OSes just might not like seeing drives on boot they cannot access? A PSID revert should at least bring the drive back (hopefully). You could also try |
Appreciate the input. I did try the revertNoErase. That works aok as long as I don't power down the drive or put it into a lk state. root@BunkSnapVaultProx:/dev/disk/by-id# sedutil-cli --revertNoErase PASSWORD /dev/sdcn These drives are remote, so I have to make a 40 minute trip to the data center to get the psid. I had these working pretty well with hdparm, im not sure what in the world im missing with sedutils. |
There's also Reading #449 again, maybe the solution for that (or a variation) could work here, too. basically having |
I gave that one a try with no luck as well. root@BunkSnapVaultProx:/dev/disk/by-id# sedutil-cli --revertTPer PASSWORD /dev/sdbu Its almost as if once the disk is locked, its bricked. Im not even sold the psid is going to help here. root@BunkSnapVaultProx:/dev/disk/by-id# sedutil-cli --yesIreallywanttoERASEALLmydatausingthePSID TEST /dev/sdbu Obviously the psid isn't test, but I would expect a different failure output, like the one below, on a disk that hasn't been locked yet. root@BunkSnapVaultProx:/dev/disk/by-id# sedutil-cli --yesIreallywanttoERASEALLmydatausingthePSID TEST /dev/sdbd |
You might have to try taking the drive(s) out and doing this on another system. I hope they're not really bricked and it's just something going wrong with the OS? Do you have an external adapter that supports OPAL commands (sadly not all USB ones work, apparently those with a SATA controller do, and any Thunderbolt ones should work I think? I also have an NVME-to-USB one that works)? Or just a different computer to plug them into? If they're actually bricked then this is of course a giant issue with sedutil (and sorry for your loss, oof). Wish we could put that into the README like really big on top or something but this repo is basically dead in terms of development and nobody else has control over it. |
Is there a live CD/DVD OS I could use? I do have access to the ipmi port to mount remote iso's etc. |
No idea, sorry. |
Pretty much any Live Linux will do, once you set There is also Seagate/TCGstorageAPI which might provide more useful information (requires building from source though). The front part is in Python, so it is easy to write scripts for debugging. |
FWIW I ran into the same exact issue on the samsung drives
Seems like Can see events via:
and can see debug
I couldn't figure out a proper way to fix. Ideally we'd want The workaround is to stop
|
Hey all I am using SED's in a server enviroment for encryption. I have a process in place to unlock the drives once the server boots up, however the locked drives seem to cause a number of issues on the linux server during boot.
Is there any easy or known way to ignore locked SED's during boot? Anyone else every run into this issue? Once the drives are unlocked all is well.
[Wed Dec 13 06:49:50 2023] sd 8:0:1:0: [sday] tag#1059 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_OK cmd_age=0s
[Wed Dec 13 06:49:50 2023] sd 8:0:1:0: [sday] tag#1059 Sense Key : Illegal Request [current]
[Wed Dec 13 06:49:50 2023] sd 8:0:1:0: [sday] tag#1059 Add. Sense: Security conflict in translated device
[Wed Dec 13 06:49:50 2023] sd 8:0:1:0: [sday] tag#1059 CDB: Read(16) 88 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00
[Wed Dec 13 06:49:50 2023] I/O error, dev sdbo, sector 15002931712 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 2
[Wed Dec 13 06:49:50 2023] Buffer I/O error on dev sdbo, logical block 1875366464, async page read
[Wed Dec 13 06:49:51 2023] Buffer I/O error on dev sdbo, logical block 1875366464, async page read
The text was updated successfully, but these errors were encountered: