Rescue mode does not create /run/lock, so LVM tools won't run

Asked by Sgifford

When booting Oneiric or Precise in Rescue Mode, the LVM tools give a locking error. For example, if I run "lvscan", it only outputs:

  /var/lock/lvm: mkdir failed: No such file or directory
  File-based locking initialisation failed

This makes it impossible to use the LVM tools, which can be very important for recovery.

The problem seems to be the absence of a "/run/lock" directory. If I run this command:

  mkdir /run/lock

Then the LVM tools don't give this error, and "lvscan" works properly.

Any advice here? Or should I open up a bug for this?

Thanks!

------Scott.

Question information

Language:
English Edit question
Status:
Open
For:
Ubuntu rescue Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Daniel (hackie) said :
#1

Same problem here (only with precise). There is a file with the name /var/lock. If i remove it, the lvm tools create a directory with the same name there.

Revision history for this message
Eric (eric-woodruff) said :
#2

Hit the same problem. Thanks for documenting this workaround!

Can you help with this problem?

Provide an answer of your own, or ask Sgifford for more information if necessary.

To post a message you must log in.