From: Zdenek Kabelac <zkabelac@redhat.com>
Cc: LVM <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] [dm-devel] fix corrupted thin pool
Date: Sun, 26 Oct 2014 00:47:51 +0200 [thread overview]
Message-ID: <544C2897.6020708@redhat.com> (raw)
In-Reply-To: <CACaajQtQ+h2NBhiH=Y-zET1cK7PE=5=PFoeSgLQqwnr9PiY0Cw@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 956 bytes --]
Dne 25.10.2014 v 22:53 Vasiliy Tolstov napsal(a):
> 2014-10-26 0:18 GMT+04:00 Zdenek Kabelac <zkabelac@redhat.com>:
>> There is 'internal' metadata archive then -
>>
>> dd if=/dev/your_pv_volume of=/tmp/1st.megabyte bs=1M count=1
>>
>> It's will capture first megabyte of your PV where are embedded
>> metadata of your Volume group.
>>
>> If you are not skilled enough - tar.gz and send this file to me.
>
>
> I'm do dd and send it. While i'm break thin pool i'm try to restore volume 2657.
> But i don't stop lvm thin pool =(.
>
From the metadata something bad was going one:
Fri Oct 24 17:03:04 2014
transaction_id = 120 - create = "3695"
And suddenly on Fri Oct 24 18:07:23 2014
pool is back on older transaction_id
transaction_id = 114
Is that the time of your vgcfgrestore?
I'm attaching those metadata which you likely should put back to get in sync
with your kernel metadata (assuming you have not modified those in any way)
Zdenek
[-- Attachment #2: recov --]
[-- Type: text/plain, Size: 5569 bytes --]
vg1 {
id = "jP49rT-lpl1-NHqu-5jHZ-gy5z-uv6v-YH9w7d"
seqno = 256
format = "lvm2" # informational
status = ["RESIZEABLE", "READ", "WRITE"]
flags = []
extent_size = 8192
max_lv = 10000
max_pv = 0
metadata_copies = 1
physical_volumes {
pv0 {
id = "hm3gZp-FjPP-AAbl-NEX3-n30T-x1Nw-9eiTw5"
device = "/dev/sdb"
status = ["ALLOCATABLE"]
flags = []
dev_size = 943718400
pe_start = 615425
pe_count = 115124
}
}
logical_volumes {
tp1 {
id = "Xk3HRX-XZSg-Fzge-Ut13-Ocxu-oegX-8gXbM2"
status = ["READ", "WRITE", "VISIBLE"]
flags = []
creation_host = "cn05"
creation_time = 1407945259
segment_count = 1
segment1 {
start_extent = 0
extent_count = 113920
type = "thin-pool"
metadata = "tp1_tmeta"
pool = "tp1_tdata"
transaction_id = 120
chunk_size = 128
discards = "passdown"
zero_new_blocks = 1
message1 {
create = "3695"
}
}
}
2735 {
id = "odXzLP-K0MG-lffg-SvH7-s3Gn-hdlJ-qNDhI6"
status = ["READ", "WRITE", "VISIBLE"]
flags = []
creation_host = "cn05"
creation_time = 1413304951
segment_count = 1
segment1 {
start_extent = 0
extent_count = 5120
type = "thin"
thin_pool = "tp1"
transaction_id = 59
device_id = 15
}
}
2799 {
id = "gze0LC-Kim7-tpP3-LwW8-82LJ-DLJf-5rnfSU"
status = ["READ", "WRITE", "VISIBLE"]
flags = []
creation_host = "cn05"
creation_time = 1413332125
segment_count = 1
segment1 {
start_extent = 0
extent_count = 5120
type = "thin"
thin_pool = "tp1"
transaction_id = 60
device_id = 16
}
}
2749 {
id = "3TokZu-3nWx-mWcv-XQY2-S1lY-VRCZ-pdszYr"
status = ["READ", "WRITE", "VISIBLE"]
flags = []
creation_host = "cn05"
creation_time = 1413484929
segment_count = 1
segment1 {
start_extent = 0
extent_count = 5120
type = "thin"
thin_pool = "tp1"
transaction_id = 67
device_id = 20
}
}
3119 {
id = "jscAdT-PGuM-b80R-pwg4-5DlY-4bMf-e5Ybg0"
status = ["READ", "WRITE", "VISIBLE"]
flags = []
creation_host = "cn05"
creation_time = 1413488295
segment_count = 1
segment1 {
start_extent = 0
extent_count = 5120
type = "thin"
thin_pool = "tp1"
transaction_id = 68
device_id = 21
}
}
2679_751 {
id = "hoSlsB-eZJ0-gbrh-P3aL-5U8T-Erc0-7skUnq"
status = ["READ", "WRITE", "VISIBLE"]
flags = ["ACTIVATION_SKIP"]
creation_host = "cn05"
creation_time = 1413740222
segment_count = 1
segment1 {
start_extent = 0
extent_count = 5120
type = "thin"
thin_pool = "tp1"
transaction_id = 85
device_id = 28
}
}
3435 {
id = "8xgMUd-pBtZ-U0Rs-qytl-XeC2-J8wb-QxLoez"
status = ["READ", "WRITE", "VISIBLE"]
flags = []
creation_host = "cn05"
creation_time = 1413983820
segment_count = 1
segment1 {
start_extent = 0
extent_count = 5120
type = "thin"
thin_pool = "tp1"
transaction_id = 95
device_id = 30
}
}
3471 {
id = "eHumdz-bxzn-7H1N-hGm1-2c7R-MSEu-nwwvUe"
status = ["READ", "WRITE", "VISIBLE"]
flags = []
creation_host = "cn05"
creation_time = 1413991440
segment_count = 1
segment1 {
start_extent = 0
extent_count = 5120
type = "thin"
thin_pool = "tp1"
transaction_id = 97
device_id = 31
}
}
2937_785 {
id = "H0Fqvl-xniV-FCE8-Eh86-Xfwb-bnb6-wzDVzO"
status = ["READ", "WRITE", "VISIBLE"]
flags = ["ACTIVATION_SKIP"]
creation_host = "cn05"
creation_time = 1413992701
segment_count = 1
segment1 {
start_extent = 0
extent_count = 40960
type = "thin"
thin_pool = "tp1"
transaction_id = 98
device_id = 32
}
}
3547 {
id = "EEPlcg-dBrQ-fclB-MJMi-HQBY-MG9B-gPimpS"
status = ["READ", "WRITE", "VISIBLE"]
flags = []
creation_host = "cn05"
creation_time = 1414060010
segment_count = 1
segment1 {
start_extent = 0
extent_count = 40960
type = "thin"
thin_pool = "tp1"
transaction_id = 109
device_id = 33
}
}
3645 {
id = "f8WN0H-dcYX-p5YZ-evnU-dZlQ-7ayZ-tMvE9Q"
status = ["READ", "WRITE", "VISIBLE"]
flags = []
creation_host = "cn05"
creation_time = 1414135683
segment_count = 1
segment1 {
start_extent = 0
extent_count = 5120
type = "thin"
thin_pool = "tp1"
transaction_id = 117
device_id = 34
}
}
3647 {
id = "IrDJ48-H0Nb-QOLa-eTAk-ralE-NM1w-Pfkx6J"
status = ["READ", "WRITE", "VISIBLE"]
flags = []
creation_host = "cn05"
creation_time = 1414135684
segment_count = 1
segment1 {
start_extent = 0
extent_count = 5120
type = "thin"
thin_pool = "tp1"
transaction_id = 118
device_id = 35
}
}
3695 {
id = "0ZHo7z-aIqP-tiij-URcc-HsZp-9fzF-Wc38Ll"
status = ["READ", "WRITE", "VISIBLE"]
flags = []
creation_host = "cn05"
creation_time = 1414155784
segment_count = 1
segment1 {
start_extent = 0
extent_count = 5120
type = "thin"
thin_pool = "tp1"
transaction_id = 119
device_id = 36
}
}
lvol0_pmspare {
id = "tznz20-2upf-S3Mu-RQLX-nu7g-giVI-yU2fMN"
status = ["READ", "WRITE"]
flags = []
creation_host = "cn05"
creation_time = 1407945259
segment_count = 1
segment1 {
start_extent = 0
extent_count = 155
type = "striped"
stripe_count = 1 # linear
stripes = [
"pv0", 0
]
}
}
tp1_tmeta {
id = "bwjbfk-4Yd3-3nbm-DpVC-jYGc-G5Go-gy0Dt1"
status = ["READ", "WRITE"]
flags = []
creation_host = "cn05"
creation_time = 1407945259
segment_count = 1
segment1 {
start_extent = 0
extent_count = 155
type = "striped"
stripe_count = 1 # linear
stripes = [
"pv0", 114075
]
}
}
tp1_tdata {
id = "g0NIO3-pyRi-aEvU-v0zp-2707-juvr-Ob2jG8"
status = ["READ", "WRITE"]
flags = []
creation_host = "cn05"
creation_time = 1407945259
segment_count = 1
segment1 {
start_extent = 0
extent_count = 113920
type = "striped"
stripe_count = 1 # linear
stripes = [
"pv0", 155
]
}
}
}
}
# Generated by LVM2 version 2.02.106(2) (2014-04-10): Fri Oct 24 17:03:04 2014
contents = "Text Format Volume Group"
version = 1
description = ""
creation_host = "cn05" # Linux cn05 3.10-3-amd64 #1 SMP Debian 3.10.49-1+0~20140721094239.35+wheezy~1.gbp298443 ( x86_64
creation_time = 1414155784 # Fri Oct 24 17:03:04 2014
next prev parent reply other threads:[~2014-10-25 22:47 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-24 19:59 [linux-lvm] fix corrupted thin pool Vasiliy Tolstov
2014-10-25 12:43 ` Zdenek Kabelac
2014-10-25 18:41 ` [linux-lvm] [dm-devel] " Vasiliy Tolstov
2014-10-25 18:42 ` Vasiliy Tolstov
2014-10-25 20:18 ` Zdenek Kabelac
2014-10-25 20:53 ` Vasiliy Tolstov
2014-10-25 22:47 ` Zdenek Kabelac [this message]
2014-10-26 19:46 ` Vasiliy Tolstov
2014-10-27 9:15 ` Zdenek Kabelac
2014-10-28 13:55 ` Vasiliy Tolstov
2014-10-28 14:09 ` Joe Thornber
2014-10-28 14:29 ` Vasiliy Tolstov
2014-10-27 6:58 ` Anatoly Pugachev
2014-10-27 9:05 ` Zdenek Kabelac
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=544C2897.6020708@redhat.com \
--to=zkabelac@redhat.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).