5

I don't have physical access to the machine, so I can't unplug the drive.

# hdparm -I /dev/sda | grep frozen
            frozen

The advice I've read elsewhere is to hotplug the drive, pull the power / sata cables while the machine is running. Those are not possible in this situation as I don't have physical access. I've tried power cycling the machine through the host's control panel a few times, but that hasn't worked.

Is there any way I can unfreeze (unfrozen?) the drive without physical access?

chmac
  • 977
  • 1
  • 7
  • 16

4 Answers4

5

If you have rtcwake on the machine, and it's an option to put it in an S3 (suspend) power state for a short amount of time. For a 10 second suspend before resuming use:

$ sudo rtcwake -m mem -s 10

-m is the type of power state enter. mem is Suspend-to-RAM, the only option that will unfreeze the drive (in my testing).

-s is the time in seconds to stay in the desired state before waking up.

Still working on finding a solution that doesn't require putting the machine in a suspend state... Hope this helps with a remote unfreeze.

rustyx
  • 1,506
  • 3
  • 19
  • 28
5

Suspend & resume should unfreeze the hard-drives.

Dima
  • 305
  • 1
  • 4
  • 17
  • 1
    @slm no, it's actually an answer. Since BIOS freezes all hard-drives on boot, thus most common option (after hot-plugging post-boot) is to suspend & resume. Since then drives will come up unfrozen, without need to hot-plug/unplug hard-drives. Also if there is remote management, one might even succeed performing this unattended. – Dima Dec 02 '13 at 23:55
  • 1
    I'm not doubting this will fix it, rather in it's current form this seems hardly like a stand alone answer in its current form. Perhaps you could sight a reference or too to bolster this answer a bit? – slm Dec 03 '13 at 00:06
  • 2
    This answer is no good for a machine with no physical access as described in the question, how would you wake the machine again? – Dark Jul 11 '19 at 12:25
2

I had the same problem. After some googling I decided to suspend the machine remotely:

CentOS6# pm-suspend

and then I called a person on site to turn it on. That did the job.

Yes it require some physical access but not necessarily you nor someone technical. Just call some random person around the box to press the power button.

moo
  • 311
  • 1
  • 8
1

"Freezing" the drive is done by the system BIOS pre-boot when the hard drive has a password enabled. Some BIOSes always freeze drives, though this usually only happens with laptops.

You can try one of two things to unfreeze the drive, but both of them require physical access, or at least console access:

  1. Remove the hard drive password in the BIOS, and reboot.
    • If your BIOS always freezes drives, contact the hardware vendor for a fixed BIOS.
  2. Hotplug the drive, as you noted above.
Michael Hampton
  • 237,123
  • 42
  • 477
  • 940
  • 2
    SSD also can be unstable / old firmware. Sadly, there is nothing you can do. Transalte to "my friends car does not start, i am 8000km away, how can i repair it". You can not. – TomTom Oct 03 '12 at 18:08