linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] Setting LVM logical volume filesystem type
@ 2009-06-09 21:17 ajalkane
  2009-06-10  5:36 ` Luca Berra
  0 siblings, 1 reply; 2+ messages in thread
From: ajalkane @ 2009-06-09 21:17 UTC (permalink / raw)
  To: linux-lvm

Hi,

how can I set the filesystem type for LVM2 logical volume? For some
reason my logical volume /var, which is ext3, suddenly started to be
detected as solaris_mirror_member (or something to that effect) which
causes it to be unable to be automatically mounted. If I mount it
manually specifying the filesystem type as ext3 it works. Fsck reports
no errors.

This happened just suddenly. Naturally I would like to know how it
could corrupt like that. But it might be difficult. Right now I just
want my system to be usable again. How can I tell LVM that it is
indeed ext3 volume without reformatting the logical volume?

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

* Re: [linux-lvm] Setting LVM logical volume filesystem type
  2009-06-09 21:17 [linux-lvm] Setting LVM logical volume filesystem type ajalkane
@ 2009-06-10  5:36 ` Luca Berra
  0 siblings, 0 replies; 2+ messages in thread
From: Luca Berra @ 2009-06-10  5:36 UTC (permalink / raw)
  To: linux-lvm

On Wed, Jun 10, 2009 at 12:17:47AM +0300, ajalkane wrote:
>Hi,
>
>how can I set the filesystem type for LVM2 logical volume? For some
>reason my logical volume /var, which is ext3, suddenly started to be
>detected as solaris_mirror_member (or something to that effect) which
>causes it to be unable to be automatically mounted. If I mount it
>manually specifying the filesystem type as ext3 it works. Fsck reports
>no errors.
>
>This happened just suddenly. Naturally I would like to know how it
>could corrupt like that. But it might be difficult. Right now I just
>want my system to be usable again. How can I tell LVM that it is
>indeed ext3 volume without reformatting the logical volume?

lvm has no notion of what is inside a logical volume.
i suppose blkid (which is used by mount to find the fs type got it
wrong)
check running
blkid /dev/vgXXX/lvolYYY
and
blkid -c /dev/null /dev/vgXXX/lvolYYY

L.
-- 
Luca Berra -- bluca@comedia.it
         Communication Media & Services S.r.l.
  /"\
  \ /     ASCII RIBBON CAMPAIGN
   X        AGAINST HTML MAIL
  / \

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

end of thread, other threads:[~2009-06-10  5:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-09 21:17 [linux-lvm] Setting LVM logical volume filesystem type ajalkane
2009-06-10  5:36 ` Luca Berra

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