linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: Christian Lahti <clahti@gmail.com>
To: linux-lvm@redhat.com
Subject: [linux-lvm] file-based locking initialization failed after pvresize
Date: Thu, 30 May 2013 14:02:37 -0700	[thread overview]
Message-ID: <51A7BE6D.3090609@gmail.com> (raw)
In-Reply-To: <51A79EEE.6020308@gmail.com>

Hello all:

I have a VMWare virtual CentOS 6 server with the following disk layout:

/dev/sda 15GB
/dev/sdb 100GB

Standard CentOS LVM setup

on sda1
/dev/vg_centos6/lv_root mounted on /
/dev/vg_centos6/lv_swap

on sdb1
/dev/vg_centos6/lv_var mounted on /var

I was starting to run low on disk space for /var, so I shut down the
machine gracefully, extended the disk in VMWare to 250G and rebooted in
single user mode. I then ran the following two commands:

pvresize --setphysicalvolumesize 250G /dev/sdb1
lvresize -L250G /dev/vg_centos6/lv_var

I then rebooted expecting the /var to now be 250G instead of 100G. What
I got was:

No such file or directory trying to open /dev/vg_centos6/lv_var

After dropping to a maintenance shell I could not run any pv* or lv*
commands, always resulting in the error:

File-based locking initialization failed

After Googling forever I found some lv* and pv* commands take
--ignorelockingfailure as a parameter, so now I can "see" the pv and lv
information but I do not know how to recover this partition:

pvdisplay --ignorelockingfailure /dev/sdb1
File-based locking initialization failed
--- Physical volume ---
PV Name /dev/sdb1
VG Name vg_centos6
PV Size 250 GiB / not useable 3.00 MiB
Allocatable yes
PE Size 4.00 MiB
Total PE 63999
Free PE 25599
Allocated PE 38400

lvdisplay --ignorelockingfailure /dev/vg_centos6/lv_var
File-based locking initialization failed
--- Logical volume ---
LV Path /dev/vg_centos6/lv_var
LV Name lv_var
VG Name vg_centos6
LV Write Access read/write
LV Status suspended
# open 0
LV Size 150.00 GiB
Current LE 38400
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:2

I cannot mount this, I cannot fsck, /dev/mapper/vg_centos6/lv_var does
not even get created. This is a critical server, can anyone please tell
me how to reverse this or at least recover the data?

Thanks!

/Christian

  reply	other threads:[~2013-05-30 21:02 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-30 18:48 [linux-lvm] file-based locking initialization failed after pvresize Christian Lahti
2013-05-30 21:02 ` Christian Lahti [this message]
     [not found]   ` <1369952053.99499.YahooMailClassic@web181504.mail.ne1.yahoo.com>
     [not found]     ` <CAEh524ZjZRizYoEimXg0OsLxz2kD8HLu2bqw2V2RbjYKdggVxw@mail.gmail.com>
2013-05-31  3:37       ` [linux-lvm] Fwd: " Christian Lahti
2013-05-31  8:23         ` Zdenek Kabelac
2013-05-31  9:04         ` Gabriel Barazer
2013-05-31 15:42           ` Zdenek Kabelac
     [not found]   ` <CAKPhfZMihQUFpeG=Tv_8pLwedw4Ugbf9u0jUP=5PTXfbUQHVaQ@mail.gmail.com>
     [not found]     ` <CAKPhfZMctTqczVBVxzdqL__=uYsOCKzkKD1dLj1zj4Z_0ZoW0g@mail.gmail.com>
     [not found]       ` <CAKPhfZPiD3Dux_Z_DGpNz0hyi1sJTXexwbstPe=WdjMGGh4Hog@mail.gmail.com>
2013-05-31 11:45         ` [linux-lvm] " service hofman
2013-05-31 17:20 ` Christian Lahti

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=51A7BE6D.3090609@gmail.com \
    --to=clahti@gmail.com \
    --cc=linux-lvm@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).