From: Johan Gardell <gardin@gmail.com>
To: linux-lvm@redhat.com
Subject: [linux-lvm] Re: Re: Re: Problems with dissapearing PV when mounting (Stuart D. Gathman)
Date: Sat, 12 Dec 2009 00:10:38 +0100 [thread overview]
Message-ID: <691e2b620912111510u5655f5cfn329895332ba681f4@mail.gmail.com> (raw)
Ok, but why is that? I haven't changed anything on the LV. The output of
lvdisplay -m shows that i have physical volumes extents right? (but
/dev/gardin does not exist at all)
lvdisplay -m
--- Logical volume ---
LV Name /dev/Dreamhack/dreamhacklv
VG Name Dreamhack
LV UUID Mr9moa-cLBU-YUwm-c5jl-LNeK-sftm-l4fn6Q
LV Write Access read/write
LV Status available
# open 2
LV Size 1,23 TiB
Current LE 321866
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 254:0
--- Segments ---
Logical extent 0 to 321865:
Type linear
Physical volume /dev/sdb2
Physical extents 0 to 321865
--- Logical volume ---
LV Name /dev/gardin/root
VG Name gardin
LV UUID av0y4y-2iyJ-3oHM-7M10-U1LD-HePf-95yDUn
LV Write Access read/write
LV Status available
# open 0
LV Size 928,00 GiB
Current LE 237568
Segments 2
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 254:1
--- Segments ---
Logical extent 0 to 118509:
Type linear
Physical volume /dev/sda5
Physical extents 0 to 118509
Logical extent 118510 to 237567:
Type linear
Physical volume /dev/sdc
Physical extents 0 to 119057
--- Logical volume ---
LV Name /dev/gardin/swap_1
VG Name gardin
LV UUID XUNjtq-OluL-ntqJ-q3Ek-ER32-PPKb-Q6Sc1V
LV Write Access read/write
LV Status available
# open 0
LV Size 2,59 GiB
Current LE 663
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 254:2
--- Segments ---
Logical extent 0 to 662:
Type linear
Physical volume /dev/sda5
Physical extents 118510 to 119172
Thanks in regards
Johan Gardell
>
> Message: 3
> Date: Thu, 10 Dec 2009 10:40:53 -0800
> From: malahal@us.ibm.com
> Subject: Re: [linux-lvm] Re: Re: Problems with dissapearing PV when
> � � � �mounting (Stuart D. Gathman)
> To: linux-lvm@redhat.com
> Message-ID: <20091210184053.GA6645@us.ibm.com>
> Content-Type: text/plain; charset=us-ascii
>
> Johan Gardell [gardin@gmail.com] wrote:
>> The output from
>> dmsetup table
>> � gardin-swap_1:
>> � gardin-root:
>> � Dreamhack-dreamhacklv: 0 2636726272 linear 8:34 384
>
> The above output clearly shows that gardin-root and gardin-swap_1 have
> empty tables. I remember there was a fix that cleaned up empty tables
> like above but that won't help you. You need to figure out the reason
> for 'device mapper lookup failure' messages.
>
>> >> [22723.980390] device-mapper: table: 254:1: linear: dm-linear: Device
>> >> lookup failed
>> >> [22723.980395] device-mapper: ioctl: error adding target to table
>> >> [22724.001153] device-mapper: table: 254:2: linear: dm-linear: Device
>> >> lookup failed
>> >> [22724.001158] device-mapper: ioctl: error adding target to table
>
> The above messages are direct reason for not "really" creating
> gardin-root or gardin-swap_1 logical volumes. �If you know the
> underlying PV's that make up gardin-root LV, try reading from them using
> 'dd'. If you can read, then the most likely problem is that someone else
> has opened them. It may be hard to find though. You need to go through
> usual culprits by running, 'cat /proc/mounts', 'cat /proc/swaps' etc. Is
> EVMS using them by any chance..., maybe mdraid...
>
>> >> mount doesn't give any messages in dmesg
>> >>
>> >> lvs shows:
>> >> ? LV ? ? ? ? ?VG ? ? ? ?Attr ? LSize ? Origin Snap% ?Move Log Copy% ?Convert
>> >> ? dreamhacklv Dreamhack -wi-ao ? 1,23t
>> >> ? root ? ? ? ?gardin ? ?-wi-d- 928,00g
>> >> ? swap_1 ? ? ?gardin ? ?-wi-d- ? 2,59g
>> >>
>> >> if i try to mount with:
>> >> ? mount -t reiserfs /dev/mapper/gardin-root /mnt/tmp
>> >>
>> >> i get this in dmesg:
>> >> ? [23113.711247] REISERFS warning (device dm-1): sh-2006
>> >> read_super_block: bread failed (dev dm-1, block 2, size 4096)
>> >> ? [23113.711257] REISERFS warning (device dm-1): sh-2006
>> >> read_super_block: bread failed (dev dm-1, block 16, size 4096)
>> >> ? [23113.711261] REISERFS warning (device dm-1): sh-2021
>> >> reiserfs_fill_super: can not find reiserfs on dm-1
>> >
>> > Looks like you have some kind of LV here. What is the output of the
>> > following two commands:
>
> Your 'dmsetup table' output shows why the mount failed. You have an LV
> created with no mapping.
>
> Thanks, Malahal.
>
>
>
next reply other threads:[~2009-12-11 23:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-11 23:10 Johan Gardell [this message]
2009-12-12 0:55 ` [linux-lvm] Re: Re: Re: Problems with dissapearing PV when mounting (Stuart D. Gathman) malahal
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=691e2b620912111510u5655f5cfn329895332ba681f4@mail.gmail.com \
--to=gardin@gmail.com \
--cc=linux-lvm@redhat.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 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).