[linux-lvm] Destroyed partition on one PV

Ken Bass daytooner at gmail.com
Sat Oct 5 02:50:18 UTC 2013

I went through this once before a long time ago, but can't seem to find the
notes on what I did. So, asking again (sorry):

I have (had?) a vg with 5 pv's, and one lv with 3 of those. I accidentally
(isn't that always the case) destroyed the partitions on 1 of them, and
maybe some of the data as well.

I tried to recreate one of the pv's:

[root at elmer ken]# pvcreate --uuid "LTXsEX-QpJN-tM2F-2CP1-wHSP-JcUa-Rnnlju"
--restorefile /etc/lvm/archive/VG_NAS_00003-846081755.vg /dev/sdb
  Couldn't find device with uuid LTXsEX-QpJN-tM2F-2CP1-wHSP-JcUa-Rnnlju.
  Couldn't find device with uuid Tnw4jr-SPj1-ChV7-k6Rz-ytWt-MtDD-lHso13.
  Couldn't find device with uuid GQivgz-fh47-z2pF-kWQD-4khT-aRKz-flcvIs.
  Couldn't find device with uuid 67IRC3-kmhr-Lo94-N4H4-C6mJ-NkZ7-KVEubc.
  Device /dev/sdb not found (or ignored by filtering).
[root at elmer ken]# fdisk -l /dev/sdb

WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk
doesn't support GPT. Use GNU Parted.

Disk /dev/sdb: 3000.6 GB, 3000592982016 bytes
255 heads, 63 sectors/track, 364801 cylinders, total 5860533168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1  4294967295  2147483647+  ee  GPT
Partition 1 does not start on physical sector boundary.
[root at elmer ken]#

Not good is it. I get the same thing for the other drive.

I think last time I just bit the bullet, and activated the partial VG/LV,
ran e2fsck to fix what was left of the filesystem, with files recovered
into trash.

Is that the best solution?

Any help with this would be greatly appreciated.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/linux-lvm/attachments/20131004/ae989802/attachment.htm>

More information about the linux-lvm mailing list