All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ondrej Kozina <okozina@redhat.com>
To: LVM general discussion and development <linux-lvm@redhat.com>
Cc: st@ateneto.com
Subject: Re: [linux-lvm] LVM problem: Unable to mount encrypted Luks HDs after reinstalling Ubuntu; Error: unknown filesystem type 'LVM2_member'
Date: Mon, 01 Jun 2015 10:40:50 +0200	[thread overview]
Message-ID: <556C1A92.3040504@redhat.com> (raw)
In-Reply-To: <20150530054508.Horde.UHD8nrE6gSp5bNvnIOGDQA5@webmail.df.eu>


Hi Sebastian,

I'm not familiar with Ubuntu so the only thing I can help you with is 
trying to explain what went (probably) wrong.

>
> This is the situation in the terminal:
> sog@sog-workstation:~$ sudo cryptsetup luksOpen /dev/sdb5 encrypted
> Enter passphrase for /dev/sdb5:
> sog@sog-workstation:~$ sudo mkdir /media/encrypted
> sog@sog-workstation:~$ sudo mount /dev/mapper/encrypted /media/encrypted
> mount: unknown filesystem type 'LVM2_member'

This seems like you're about to mount lvm2 PV (VG member) instead of LV 
with actual filesystem residing in.

You should always try to mount LVM2 LV like follows:
mount /dev/<your_vg_name>/<your_lv_name> /mnt/point

Could you paste here 'lsblk' output here so we have better picture about 
your device stack?

> sog@sog-workstation:~$ sudo vgscan --mknodes
>     Reading all physical volumes. This may take a while...
>     Found volume group "it-vg" using metadata type lvm2
>     Found volume group "it-vg" using metadata type lvm2
> sog@sog-workstation:~$ sudo vgchange -ay
>     device-mapper: create ioctl on it--vg-root failed: Device or resource busy
>     device-mapper: create ioctl on it--vg-swap_1 failed: Device or resource busy
>     0 logical volume(s) in volume group "it-vg" now active
>     2 logical volume(s) in volume group "it-vg" now active

Seems like an activation issue. We can't help you more without -vvvv 
debug ouput. (vgchane -ay -vvvv). Also 'dmsetup table' and 'dmsetup 
info' commands output would help after failure in any activation command.

Regards
Ondrej

  reply	other threads:[~2015-06-01  8:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-30  3:45 [linux-lvm] LVM problem: Unable to mount encrypted Luks HDs after reinstalling Ubuntu; Error: unknown filesystem type 'LVM2_member' st
2015-06-01  8:40 ` Ondrej Kozina [this message]
2015-06-12 20:03 ` Klaus Lichtenwalder

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=556C1A92.3040504@redhat.com \
    --to=okozina@redhat.com \
    --cc=linux-lvm@redhat.com \
    --cc=st@ateneto.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.