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
  • 1,057

4 Answers4

7

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,979
5

Suspend & resume should unfreeze the hard-drives.

Dima
  • 315
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
  • 252,907