[linux-lvm]Re: corrupt /dev/lvm - bizzare properties
Chris Doherty
chris.doherty at adelaide.edu.au
Sun Feb 8 08:46:02 UTC 2004
Quoting Rainer krienke <rainer at krienke.org>:
> Am Sonntag, 8. Februar 2004 13:00 schrieb Chris Doherty:
> > Quoting Måns Rullgård <mru at kth.se>:
> > > Chris Doherty <chris.doherty at adelaide.edu.au> writes:
> > > > I've been using LVM happily for several months without any
> > > > complaints or problems. This morning that all changed. The boot
> > > > process stopped cold when lvm-mod (w|c)ouldn't load. My first
> > > > impulse was to fsck, which I did as a matter of course. Eventually,
> > > > I stumbled across what appears to be the source of my problem:
> > > >
> > > > root at connect4:~# ls -la /dev/lvm
> > > > ?---rws-w- 8306 840966198 976250230 875573298 Sep 24 2004 /dev/lvm
> > >
> > > Your filesystem seems to have taken some heavy blows. You should fsck
> > > it properly. You might need the -f flag to fsck to force a complete
> > > check if filesystem is marked clean.
> >
> > the filesystem can't be mounted (which is the really worrying part) so i
> > can't fsck it.
> >
>
> A filesystem that is to be fscked can and may *never* be mounted when
> performing an fsck. Usually all fsck tools won't do anything but stop if the
oops, sorry my last statement was ambiguous. what i meant was that the
filesystem can't be mounted *and* fsck refuses to acknowledge that it is (or
was?) a filesystem.
root at connect4:~# fsck -cvf -t ext3 /dev/vg1/lv1
fsck 1.32 (09-Nov-2002)
e2fsck 1.32 (09-Nov-2002)
fsck.ext3: No such device or address while trying to open /dev/vg1/lv1
Possibly non-existent or swap device?
it looks like what i need is a non-destructive MAKEDEV which can repair /dev/lvm
(in a dream world) or, more realistically to create a new LVM device and
reassign all of the logical volumes to it. can any LVM gurus confirm whether
this would work?
i've been trying to find a way to make a backup so i can start experimenting, so
far without success.
root at connect4:~# tar cvf lvm.tar /dev/lvm
tar: /dev/lvm: Unknown file type; file ignored
tar: Error exit delayed from previous errors
root at connect4:~# dd if=/dev/lvm of=lvm.dd
dd: reading `/dev/lvm': Invalid argument
0+0 records in
0+0 records out
root at connect4:~# man dump
mdoc warning: Empty input line #609
DUMP(8) BSD System Managerâ??s Manual
DUMP(8)
NAME
dump - ext2 filesystem backup
<snip>
two problems with dump:
1) the filesystem on the LV is (was?) ext3
2) /dev/lvm isn't a filesystem
> filesystem (fsck was called for) is currently mounted! If your root
> filesystem is corrupt boot from a rescue CD or similar and then check the
> filesystem.
More information about the linux-lvm
mailing list