LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 10-10-2010, 04:17 PM   #1
mikereed
LQ Newbie
 
Registered: Oct 2010
Posts: 1

Rep: Reputation: 0
Can't mount LV on fakeraid mirror


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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Problems with Debootstrap and apt-mirror-based Debian mirror lil_drummaboy Debian 3 06-22-2010 06:12 PM
Set up rsync to mirror mount on Windows Server to mount point on 2nd internal drive MoMule Linux - Server 4 04-13-2007 09:34 PM
Another FakeRaid question Quakeboy02 Linux - Kernel 6 03-07-2007 04:57 AM
LXer: How To Create A Local Debian/Ubuntu Mirror With apt-mirror LXer Syndicated Linux News 0 01-04-2007 05:33 PM
Installing to SATA fakeRAID phil_haigh Linux - Hardware 1 01-05-2006 08:38 PM


All times are GMT -5. The time now is 02:12 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration