linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] Rebuilding ext4 filesystem on an LV
@ 2010-07-05  1:30 Ken Bass
  2010-07-05  5:54 ` Bryan Whitehead
  0 siblings, 1 reply; 13+ messages in thread
From: Ken Bass @ 2010-07-05  1:30 UTC (permalink / raw)
  To: linux-lvm

[-- Attachment #1: Type: text/plain, Size: 1435 bytes --]

In short:

- originally created LV with several physical drives (5)
- formatted LV for ext4
- one physical drive got many sectors trashed. Those included the partition
and metadata.
- did the following to recover the LV (VolGroupX-LogVolX):
---pvcreate --uuid <original uuid>  /dev/sdX  (successfully created)
---vgcfgrestore VolGroupX (restsored volume group VolGroupX)
---vgscan  (found volume group "VolGroupX" using metadata type lvm2)
--- vgchange -ay VolGroupX ( note response:
" device-mapper: reload ioctl failed: Invalid argument.
 1 logical volume(s) in volume group "VolGroupX" now active")

At this pont, /dev/mapper/VolGroupX-LogVolX exists, but I can't run any
utilities on it, since it can't find any superblock. For example:
________________
[root@Elmer ken] # e2fsck  /dev/mapper/VolGroupX-LogVolX
e2fsck 1.41.9 (22-Aug-2009)
e2fsck: Invalid argument while trying to open /dev/mapper/VolGroupX-LogVolX

The superblock could not be read or does not describe a correct ext2
filesystem.  If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
    e2fsck -b 8193 <device>

[root@Elmer ken] #
_________________________
I really want to recover at least the data on the 4 other drives, and any
data left from this drive as well.

Any help will be greatly appreciated.

TIA

ken

[-- Attachment #2: Type: text/html, Size: 1633 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2010-07-12 18:58 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-05  1:30 [linux-lvm] Rebuilding ext4 filesystem on an LV Ken Bass
2010-07-05  5:54 ` Bryan Whitehead
2010-07-05  8:52   ` Ken Bass
2010-07-05 10:06     ` Bryan Whitehead
2010-07-05 15:39       ` Ken Bass
2010-07-05 18:27     ` Stuart D. Gathman
2010-07-05 21:16       ` Ken Bass
2010-07-06 16:17       ` Malahal Naineni
2010-07-08  2:46         ` Ken Bass
2010-07-08 18:59           ` Malahal Naineni
2010-07-08 19:06           ` Stuart D. Gathman
2010-07-08 19:13             ` Stuart D. Gathman
2010-07-12 18:57               ` Ken Bass

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).