[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-lvm
Subject: [linux-lvm] Restore data from a Invalid Snapshot or COW.
From: Oliver_Carreño <orcoliver () gmail ! com>
Date: 2012-01-03 14:07:57
Message-ID: CA+jZo2FDGn=aPRC7=rSVEapdB2xBXL0+9SiX0G3163KY_ZYz+w () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Dear friends,
Performing a system upgrade, I lost important data from a logical volume. T=
he
only thing I have to retrieve that data is a snapshot inactive, because the
COW out of space in the update. When I try to mount the snapshot, I get I /=
O
errors. And if I try to mount the partition COW, this show me unknown file
system error.
=BFI can extract data from a snapshot invalid or Cow?
Thanks and regards.
# dmsetup status
eBox--Veneyarna-swap_1: 0 20209664 linear
eBox--Veneyarna-root-real: 0 550223872 linear
eBox--Veneyarna-rootsnap: 0 550223872 snapshot Invalid
eBox--Veneyarna-backups: 0 104857600 linear
eBox--Veneyarna-rootsnap-cow: 0 419430400 linear
eBox--Veneyarna-root: 0 550223872 snapshot-origin
# dmsetup table
eBox--Veneyarna-swap_1: 0 20209664 linear 8:5 550224256
eBox--Veneyarna-root-real: 0 550223872 linear 8:5 384
eBox--Veneyarna-rootsnap: 0 550223872 snapshot 252:0 252:2 P 16
eBox--Veneyarna-backups: 0 104857600 linear 8:17 384
eBox--Veneyarna-rootsnap-cow: 0 419430400 linear 8:17 104857984
eBox--Veneyarna-root: 0 550223872 snapshot-origin 252:0
# vgdisplay
/dev/dm-3: read failed after 0 of 4096 at 0: Input/output error
--- Volume group ---
VG Name eBox-Veneyarna
System ID
Format lvm2
Metadata Areas 2
Metadata Sequence No 23
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 4
Open LV 1
Max PV 0
Cur PV 2
Act PV 2
VG Size 737.25 GiB
PE Size 4.00 MiB
Total PE 188735
Alloc PE / Size 133633 / 522.00 GiB
Free PE / Size 55102 / 215.24 GiB
VG UUID IB3AdY-85sg-p5El-L1Er-qpB3-0BWI-LvYmYj
# lvdisplay
/dev/dm-3: read failed after 0 of 4096 at 0: Input/output error
--- Logical volume ---
LV Name /dev/eBox-Veneyarna/root
VG Name eBox-Veneyarna
LV UUID FhcR2z-aouw-X6wg-BKsz-wNdX-QwvS-KWZoiV
LV Write Access read/write
LV snapshot status source of
/dev/eBox-Veneyarna/rootsnap [INACTIVE]
LV Status available
# open 0
LV Size 262.37 GiB
Current LE 67166
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 252:1
--- Logical volume ---
LV Name /dev/eBox-Veneyarna/swap_1
VG Name eBox-Veneyarna
LV UUID Czx0Yi-1NCA-Ejwv-i0S2-I1yW-amD8-eV6KY8
LV Write Access read/write
LV Status available
# open 0
LV Size 9.64 GiB
Current LE 2467
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 252:4
--- Logical volume ---
LV Name /dev/eBox-Veneyarna/backups
VG Name eBox-Veneyarna
LV UUID 5uWOv8-mwp2-utqI-QtAC-rbH3-GejG-zcWY4n
LV Write Access read/write
LV Status available
# open 1
LV Size 50.00 GiB
Current LE 12800
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 252:5
--- Logical volume ---
LV Name /dev/eBox-Veneyarna/rootsnap
VG Name eBox-Veneyarna
LV UUID HQ0HGG-31Mq-IZR1-3LDy-WIMG-BrAa-IhVpIN
LV Write Access read/write
LV snapshot status INACTIVE destination for /dev/eBox-Veneyarna/root
LV Status available
# open 0
LV Size 262.37 GiB
Current LE 67166
COW-table size 200.00 GiB
COW-table LE 51200
Snapshot chunk size 8.00 KiB
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 252:3
Oliver Carre=F1o
[Attachment #5 (text/html)]
<span class="hps" style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">Dear \
friends,</span><br style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">
<span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"></span><span \
class="hps" style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">Performing \
a</span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"> \
</span><span class="hps" \
style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">system \
upgrade,</span><span \
style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"> \
</span><span class="hps" \
style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">I \
lost</span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"> \
</span><span class="hps" \
style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">important \
data from</span><span \
style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"> \
</span><span class="hps" \
style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">a \
logical volume.</span><span \
style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"> \
</span><span class="hps" \
style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">The \
only thing</span><span \
style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"> \
</span><span class="hps" \
style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">I \
have to</span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"> \
</span><span class="hps" \
style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">retrieve \
that data</span><span \
style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"> \
</span><span class="hps" \
style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">is</span><span \
style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"> \
</span><span class="hps" \
style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">a \
snapshot</span><span \
style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"> \
</span><span class="hps" \
style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">inactive,</span><span \
style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"> \
</span><span class="hps" \
style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">because \
the</span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"> \
</span><span class="hps" \
style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">COW</span><span \
style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"> \
</span><span class="hps" \
style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">out \
of space</span><span \
style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"> \
</span><span class="hps" \
style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">in \
the update.</span><span \
style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"> \
</span><span class="hps" \
style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">When \
I try to</span><span \
style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"> \
</span><span class="hps" \
style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">mount \
the</span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"> \
</span><span class="hps" \
style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">snapshot</span><span \
style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">, \
I get</span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"> \
</span><span class="hps" \
style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">I \
/</span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"> \
</span><span class="hps" \
style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">O \
errors.</span><span \
style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"> \
</span><span class="hps" \
style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">And</span><span \
style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"> \
</span><span class="hps" \
style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">if \
I try to</span><span \
style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"> \
</span><span class="hps" \
style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">mount \
the</span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"> \
</span><span class="hps" \
style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">partition \
</span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"></span><span \
class="hps" style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">COW, \
this</span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"> \
</span><span class="hps" \
style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">show \
me</span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"> \
</span><span class="hps" \
style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">unknown \
file</span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"> \
</span><span class="hps" \
style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">system \
</span> <span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">error</span><span \
style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">.</span><br \
style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">
<br style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"><span \
style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"></span><span \
class="hps atn" style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">¿</span><span \
style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">I \
can</span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"> \
</span><span class="hps" \
style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">extract \
data from a</span><span \
style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"> \
</span><span class="hps" \
style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">snapshot</span><span \
style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"> \
</span><span class="hps" \
style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">invalid</span><span \
style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"> \
</span><span class="hps" \
style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">or</span><span \
style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"> \
</span><span class="hps" \
style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">Cow</span><span \
style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">?</span><br \
style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">
<span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"></span><span \
class="hps" style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">Thanks \
and</span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"> \
</span><span class="hps" \
style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">regards.</span> \
<div> <br></div><div><br></div><div><div># dmsetup \
status</div><div>eBox--Veneyarna-swap_1: 0 20209664 \
linear</div><div>eBox--Veneyarna-root-real: 0 550223872 \
linear</div><div>eBox--Veneyarna-rootsnap: 0 550223872 snapshot Invalid</div> \
<div>eBox--Veneyarna-backups: 0 104857600 \
linear</div><div>eBox--Veneyarna-rootsnap-cow: 0 419430400 \
linear</div><div>eBox--Veneyarna-root: 0 550223872 \
snapshot-origin</div><div><br></div><div><br></div><div><br></div><div> # dmsetup \
table</div><div>eBox--Veneyarna-swap_1: 0 20209664 linear 8:5 \
550224256</div><div>eBox--Veneyarna-root-real: 0 550223872 linear 8:5 \
384</div><div>eBox--Veneyarna-rootsnap: 0 550223872 snapshot 252:0 252:2 P 16</div> \
<div>eBox--Veneyarna-backups: 0 104857600 linear 8:17 \
384</div><div>eBox--Veneyarna-rootsnap-cow: 0 419430400 linear 8:17 \
104857984</div><div>eBox--Veneyarna-root: 0 550223872 snapshot-origin \
252:0</div><div><br></div><div> # vgdisplay</div><div> /dev/dm-3: read failed after \
0 of 4096 at 0: Input/output error</div><div> --- Volume group ---</div><div> VG \
Name eBox-Veneyarna</div><div> System ID</div><div> Format \
lvm2</div> <div> Metadata Areas 2</div><div> Metadata Sequence No \
23</div><div> VG Access read/write</div><div> VG Status \
resizable</div><div> MAX LV 0</div><div> Cur LV \
4</div> <div> Open LV 1</div><div> Max PV 0</div><div> \
Cur PV 2</div><div> Act PV 2</div><div> VG Size \
737.25 GiB</div><div> PE Size 4.00 MiB</div> <div> Total PE \
188735</div><div> Alloc PE / Size 133633 / 522.00 GiB</div><div> Free PE / \
Size 55102 / 215.24 GiB</div><div> VG UUID \
IB3AdY-85sg-p5El-L1Er-qpB3-0BWI-LvYmYj</div> <div><br></div><div># \
lvdisplay</div><div> /dev/dm-3: read failed after 0 of 4096 at 0: Input/output \
error</div><div> --- Logical volume ---</div><div> LV Name \
/dev/eBox-Veneyarna/root</div><div> VG Name eBox-Veneyarna</div> \
<div> LV UUID FhcR2z-aouw-X6wg-BKsz-wNdX-QwvS-KWZoiV</div><div> LV \
Write Access read/write</div><div> LV snapshot status source \
of</div><div> /dev/eBox-Veneyarna/rootsnap [INACTIVE]</div> \
<div> LV Status available</div><div> # open \
0</div><div> LV Size 262.37 GiB</div><div> Current LE \
67166</div><div> Segments 1</div><div> Allocation \
inherit</div> <div> Read ahead sectors auto</div><div> - currently set to \
256</div><div> Block device 252:1</div><div><br></div><div> --- Logical \
volume ---</div><div> LV Name /dev/eBox-Veneyarna/swap_1</div> <div> \
VG Name eBox-Veneyarna</div><div> LV UUID \
Czx0Yi-1NCA-Ejwv-i0S2-I1yW-amD8-eV6KY8</div><div> LV Write Access \
read/write</div><div> LV Status available</div><div> # open \
0</div> <div> LV Size 9.64 GiB</div><div> Current LE \
2467</div><div> Segments 1</div><div> Allocation \
inherit</div><div> Read ahead sectors auto</div><div> - currently set to \
256</div> <div> Block device 252:4</div><div><br></div><div> --- Logical \
volume ---</div><div> LV Name /dev/eBox-Veneyarna/backups</div><div> \
VG Name eBox-Veneyarna</div><div> LV UUID \
5uWOv8-mwp2-utqI-QtAC-rbH3-GejG-zcWY4n</div> <div> LV Write Access \
read/write</div><div> LV Status available</div><div> # open \
1</div><div> LV Size 50.00 GiB</div><div> Current LE \
12800</div><div> Segments 1</div> <div> Allocation \
inherit</div><div> Read ahead sectors auto</div><div> - currently set to \
256</div><div> Block device 252:5</div><div><br></div><div> --- Logical \
volume ---</div><div> LV Name /dev/eBox-Veneyarna/rootsnap</div> \
<div> VG Name eBox-Veneyarna</div><div> LV UUID \
HQ0HGG-31Mq-IZR1-3LDy-WIMG-BrAa-IhVpIN</div><div> LV Write Access \
read/write</div><div> LV snapshot status INACTIVE destination for \
/dev/eBox-Veneyarna/root</div> <div> LV Status available</div><div> # \
open 0</div><div> LV Size 262.37 GiB</div><div> \
Current LE 67166</div><div> COW-table size 200.00 GiB</div><div> \
COW-table LE 51200</div> <div> Snapshot chunk size 8.00 KiB</div><div> \
Segments 1</div><div> Allocation inherit</div><div> Read \
ahead sectors auto</div><div> - currently set to 256</div><div> Block \
device 252:3</div> <div><br></div></div><div><br clear="all">Oliver \
Carreño<br> </div>
_______________________________________________
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/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic