linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: Ray Morris <support@bettercgi.com>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] Can't mount LV on fakeraid mirror
Date: Mon, 11 Oct 2010 17:34:24 -0500	[thread overview]
Message-ID: <1286836464.8289.0@raydesk1.bettercgi.com> (raw)
In-Reply-To: <1286834941.5515.4.camel@MobileOne> (from lists@amadron.com on Mon Oct 11 17:09:01 2010)

    I wonder what pvdisplay and vgchnage -ay would
say, but before doing anything else I'd make another
backup of the files iif possible, or make an image
of at least one of the drives.  It looks like something
may have changed with the RAID, such as storing the
metadata at the end versus the beginning, but before
messing with anything that could possibly make any
chnages on the disks make a straight dd image, as any
changes you make could bad.
--
Ray Morris
support@bettercgi.com

Strongbox - The next generation in site security:
http://www.bettercgi.com/strongbox/

Throttlebox - Intelligent Bandwidth Control
http://www.bettercgi.com/throttlebox/

Strongbox / Throttlebox affiliate program:
http://www.bettercgi.com/affiliates/user/register.php


On 10/11/2010 05:09:01 PM, Mike Reed wrote:
> Hi,
> I was using a fakeraid mirror with LVM for backups (don't ask) and  
> after
> an upgrade from ubuntu 8.10 to ubuntu 9.04, the switch to grub2 broke  
> my
> system.
> Before doing anything I wanted to check I could still see my backups  
> on
> the mirror.
> I'm using Ubuntu 10.04 Live CD. I boot up and:
> 
> # sudo su
> # apt-get install lvm2
> ...
> 
> So far so good. Then
> 
> # lvdisplay
> --- Logical volume ---
> LV Name /dev/VolGroup01/LogVol02
> VG Name VolGroup01
> LV UUID tyP51S-EMOO-UCfE-4MSy-TA9f-xaJh-SMMnk9
> LV Write Access read/write
> LV Status NOT available
> LV Size 465.76 GiB
> Current LE 119234
> Segments 1
> Allocation inherit
> Read ahead sectors auto
> 
> Hmmm... it says "NOT available" and indeed, I can't mount it.
> 
> # mkdir home
> # mount /dev/VolGroup01/LogVol02 home
> mount: special device /dev/VolGroup01/LogVol02 does not exist
> 
> I checked the raid sets:
> 
> # dmraid -s pdc_bbbad
> /dev/sdb: "sil" and "pdc" formats discovered (using pdc)!
> /dev/sdc: "sil" and "pdc" formats discovered (using pdc)!
> *** Active Set
> name : pdc_bbbad
> size : 976562432
> stride : 128
> type : mirror
> status : ok
> subsets: 0
> devs : 2
> spares : 0
> 
> It says "ok". I also check through dmsetup:
> 
> # dmsetup info pdc_bbbad
> Name: pdc_bbbad
> State: ACTIVE
> Read Ahead: 256
> Tables present: LIVE
> Open count: 0
> Event number: 1
> Major, minor: 252, 0
> Number of targets: 1
> UUID: DMRAID-pdc_bbbad
> 
> It says "ACTIVE" and the tables present are "LIVE". Why is my logical
> volume not available?
> 
> I then tried:
> 
> # partprobe
> Error: Can't have a partition outside the disk!
> Warning: Unable to open /dev/sr0 read-write (Read-only file
> system). /dev/sr0 has been opened read-only.
> 
> Now that first error I'd seen a while back even when I could mount the
> LV. Now:
> 
> # lvdisplay
> --- Logical volume ---
> LV Name /dev/VolGroup01/LogVol02
> VG Name VolGroup01
> LV UUID tyP51S-EMOO-UCfE-4MSy-TA9f-xaJh-SMMnk9
> LV Write Access read/write
> LV Status suspended
> # open 0
> LV Size 465.76 GiB
> Current LE 119234
> Segments 1
> Allocation inherit
> Read ahead sectors auto
> - currently set to 256
> Block device 252:4
> 
> Status is "suspended". Hmmm, looks slightly more hopefule, but:
> 
> # lvm lvchange -ay /dev/VolGroup01/LogVol02
> device-mapper: resume ioctl failed: Invalid argument
> Unable to resume VolGroup01-LogVol02 (252:4)
> 
> Before I tried to mount my LV with the backups I knew little about LV  
> (I
> remember using some graphical tool to set it up years ago and hadn't
> touched it since), and new nothing about dmraid or dmsetup so now I'm
> stuck.
> Really want to check my backup mirror LV before doing anything else so
> would really appreciate if someone can give me some pointers as to  
> what
> to do next.
> 
> Thanks,
> Mike.
> 
> _______________________________________________
> 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/
> 
> 

      reply	other threads:[~2010-10-11 22:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-11 22:09 [linux-lvm] Can't mount LV on fakeraid mirror Mike Reed
2010-10-11 22:34 ` Ray Morris [this message]

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=1286836464.8289.0@raydesk1.bettercgi.com \
    --to=support@bettercgi.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).