linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] Re: Re: Re: Problems with dissapearing PV when mounting (Stuart D. Gathman)
@ 2009-12-11 23:10 Johan Gardell
  2009-12-12  0:55 ` malahal
  0 siblings, 1 reply; 2+ messages in thread
From: Johan Gardell @ 2009-12-11 23:10 UTC (permalink / raw)
  To: linux-lvm

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

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

* Re: [linux-lvm] Re: Re: Re: Problems with dissapearing PV when mounting (Stuart D. Gathman)
  2009-12-11 23:10 [linux-lvm] Re: Re: Re: Problems with dissapearing PV when mounting (Stuart D. Gathman) Johan Gardell
@ 2009-12-12  0:55 ` malahal
  0 siblings, 0 replies; 2+ messages in thread
From: malahal @ 2009-12-12  0:55 UTC (permalink / raw)
  To: linux-lvm

Johan Gardell [gardin@gmail.com] wrote:
> 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" shows what is in LVM metadata. The LVs just fail to
activate in your case (root and swap_1). Since the LVM commands
(lvdisplay) are able to read the metadata without any errors, I would
assume that *some other software* on your machine openede the needed PVs
before LVM did, so LVM is unable to activate the LVs (aka unable to load
the mapping tables).

Thanks, Malahal.

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

end of thread, other threads:[~2009-12-12  0:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-11 23:10 [linux-lvm] Re: Re: Re: Problems with dissapearing PV when mounting (Stuart D. Gathman) Johan Gardell
2009-12-12  0:55 ` malahal

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