Re: Setting LVM logical volume filesystem type

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
 / \

_______________________________________________
linux-lvm mailing list
linux-lvm@redhat.com
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

[Index of Archives]     [Gluster Users]     [Kernel Development]     [Linux Clusters]     [Device Mapper]     [Security]     [Bugtraq]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]

  Powered by Linux