From: "Dr. David Alan Gilbert" <dave@treblig.org>
To: linux-lvm@redhat.com
Subject: [linux-lvm] Help with a confused lv
Date: Sun, 27 Jan 2013 15:09:19 +0000 [thread overview]
Message-ID: <20130127150919.GA17782@gallifrey> (raw)
Hi,
I seem to have a rather confused lv that I could do with some help with.
I've got a simple MBR partition that's my pv, and on that I have a
single vg, inside which I have a bunch of LVs, some of which are
filesystems, and most are backing disks for virtual machines.
If I do any LVM command I'm getting errors; e.g.
root@major:~# pvdisplay
/dev/main/Precise: read failed after 0 of 4096 at 6291390464: Input/output error
/dev/main/Precise: read failed after 0 of 4096 at 6291447808: Input/output error
/dev/main/Precise: read failed after 0 of 4096 at 0: Input/output error
/dev/main/Precise: read failed after 0 of 4096 at 4096: Input/output error
--- Physical volume ---
PV Name /dev/sda3
VG Name main
PV Size 834.24 GiB / not usable 1.08 MiB
Allocatable yes
PE Size 4.00 MiB
Total PE 213565
Free PE 98231
Allocated PE 115334
PV UUID oFAwO8-WRQK-Qhse-VPuS-b6RW-nP2N-aJDNCy
The backing disc is fine (no errors in dmesg, smartctl showing
no failures and no logged errors).
I created a new virtual machine (Precise) via virt-manager
and it created me the /dev/main/Precise lv but I think set up
as allocate on demand. During the 1st boot of the VM lvm gave
an allocation error in dmesg, but as you can see there is plenty
of Free PE's on the PV:
Jan 19 19:07:42 major vmunix: [ 436.873411] device-mapper: snapshots: Invalidating snapshot: Unable to allocate exception.
I'm currently on the Ubuntu 3.8.0-2-generic kernel (on Raring) (was on 3.8.0-1 when
I got that exception).
I guess I have two questions:
1) Why did it throw that exception?
2) How do I clean this mess up? Just delete the Precise lv?
root@major:~# vgdisplay
/dev/main/Precise: read failed after 0 of 4096 at 6291390464: Input/output error
/dev/main/Precise: read failed after 0 of 4096 at 6291447808: Input/output error
/dev/main/Precise: read failed after 0 of 4096 at 0: Input/output error
/dev/main/Precise: read failed after 0 of 4096 at 4096: Input/output error
--- Volume group ---
VG Name main
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 22
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 13
Open LV 2
Max PV 0
Cur PV 1
Act PV 1
VG Size 834.24 GiB
PE Size 4.00 MiB
Total PE 213565
Alloc PE / Size 115334 / 450.52 GiB
Free PE / Size 98231 / 383.71 GiB
VG UUID owLDAR-CJYp-2P1H-wzFf-DtHo-1mhW-FZfCv2
lvdisplay -a is showing (ignoring all the other lv's that are fine):
--- Logical volume ---
LV Path /dev/main/Precise
LV Name Precise
VG Name main
LV UUID nkOTeb-0gA7-tIja-LQ1U-In1y-ftjv-rEsc6t
LV Write Access read/write
LV Creation host, time major, 2013-01-19 19:05:56 +0000
LV snapshot status INACTIVE destination for Precise_vorigin
LV Status available
# open 0
LV Size 5.86 GiB
Current LE 1500
COW-table size 4.00 MiB
COW-table LE 1
Snapshot chunk size 4.00 KiB
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 252:15
--- Logical volume ---
Internal LV Name Precise_vorigin
VG Name main
LV UUID CgAoab-zm7j-rGpg-kFJ1-Ocdc-pMDw-KM04Gh
LV Write Access read/write
LV Creation host, time major, 2013-01-19 19:05:56 +0000
LV snapshot status source of
Precise [INACTIVE]
LV Status available
# open 0
LV Size 5.86 GiB
Current LE 1500
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 252:13
dmsetup info is showing:
Name: main-Precise
State: ACTIVE
Read Ahead: 256
Tables present: LIVE
Open count: 0
Event number: 0
Major, minor: 252, 15
Number of targets: 1
UUID: LVM-owLDARCJYp2P1HwzFfDtHo1mhWFZfCv2nkOTeb0gA7tIjaLQ1UIn1yftjvrEsc6t
Name: main-Precise_vorigin-real
State: ACTIVE
Read Ahead: 256
Tables present: LIVE
Open count: 2
Event number: 0
Major, minor: 252, 12
Number of targets: 1
UUID: LVM-owLDARCJYp2P1HwzFfDtHo1mhWFZfCv2CgAoabzm7jrGpgkFJ1OcdcpMDwKM04Gh-real
Name: main-Precise_vorigin
State: ACTIVE
Read Ahead: 256
Tables present: LIVE
Open count: 0
Event number: 0
Major, minor: 252, 13
Number of targets: 1
UUID: LVM-owLDARCJYp2P1HwzFfDtHo1mhWFZfCv2CgAoabzm7jrGpgkFJ1OcdcpMDwKM04Gh
Name: main-Precise-cow
State: ACTIVE
Read Ahead: 256
Tables present: LIVE
Open count: 1
Event number: 0
Major, minor: 252, 14
Number of targets: 1
UUID: LVM-owLDARCJYp2P1HwzFfDtHo1mhWFZfCv2nkOTeb0gA7tIjaLQ1UIn1yftjvrEsc6t-cow
--
-----Open up your eyes, open up your mind, open up your code -------
/ Dr. David Alan Gilbert | Running GNU/Linux | Happy \
\ gro.gilbert @ treblig.org | | In Hex /
\ _________________________|_____ http://www.treblig.org |_______/
next reply other threads:[~2013-01-27 15:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-27 15:09 Dr. David Alan Gilbert [this message]
-- strict thread matches above, loose matches on Subject: below --
2013-01-28 16:00 [linux-lvm] Help with a confused lv Andrew Walsh
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=20130127150919.GA17782@gallifrey \
--to=dave@treblig.org \
--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).