From: Mike Reed <lists@amadron.com>
To: linux-lvm@redhat.com
Subject: [linux-lvm] Can't mount LV on fakeraid mirror
Date: Mon, 11 Oct 2010 23:09:01 +0100 [thread overview]
Message-ID: <1286834941.5515.4.camel@MobileOne> (raw)
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.
next reply other threads:[~2010-10-11 22:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-11 22:09 Mike Reed [this message]
2010-10-11 22:34 ` [linux-lvm] Can't mount LV on fakeraid mirror Ray Morris
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=1286834941.5515.4.camel@MobileOne \
--to=lists@amadron.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).