From mboxrd@z Thu Jan 1 00:00:00 1970 From: NeilBrown Subject: Re: recovering from raid5 corruption Date: Mon, 30 Apr 2012 09:44:10 +1000 Message-ID: <20120430094410.6d49a8e9@notabene.brown> References: <4F9DC2E5.1090509@gmail.com> <20120430085257.65d19c20@notabene.brown> <4F9DCEC6.1050109@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/MxH/faOplSFyEcdblZcfOQH"; protocol="application/pgp-signature" Return-path: In-Reply-To: <4F9DCEC6.1050109@gmail.com> Sender: linux-raid-owner@vger.kernel.org To: Shaya Potter Cc: linux-raid@vger.kernel.org List-Id: linux-raid.ids --Sig_/MxH/faOplSFyEcdblZcfOQH Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Sun, 29 Apr 2012 19:29:10 -0400 Shaya Potter wrote: > On 04/29/2012 06:52 PM, NeilBrown wrote: > > > > You've written a new superblock 4K in to each device, where previously = here > > was something. So you have probably corrupted something though we can= not > > easily tell what. > > > > Retry your experiment with --metadata=3D0.90. Hopefully one of those > > combinations will work better. If it does, make a backup of the data y= ou > > want to keep, then I would suggest rebuilding the array from scratch. >=20 > ok, thanks, that was a huge help. >=20 > I have it setup correctly now (obvious due to the fact that I can read=20 > the lvm configuration without any gibberish when ordered correctly). >=20 > however, now I need to figure out how to recreate the lvm appropriately.= =20 > I see the configuration "file" in at the start of the raid array (less= =20 > -f /dev/md0 which I'm including below) >=20 > I asusme there should be a way to reuse this data to recreate the lvm? >=20 > any continued advice would be appreciated, googling doesn't seem to come= =20 > up with much if one doesn't have a backup of the lvm data. I don't use LVM myself so I don't know all the details, but doesn't 'pvscan' find them? I don't know what you do after that. NeilBrown >=20 > raid5 { > id =3D "8r27WQ-HvIw-0RQV-aksr-LJGN-DLVD-1WBg8h" > seqno =3D 6 > status =3D ["RESIZEABLE", "READ", "WRITE"] > extent_size =3D 8192 > max_lv =3D 0 > max_pv =3D 0 >=20 > physical_volumes { >=20 > pv0 { > id =3D "7P0W3p-XoPg-rCo8-HJ2G-Hfxc-UDWI-x6nQck" > device =3D "/dev/md0" >=20 > status =3D ["ALLOCATABLE"] > dev_size =3D 11721107456 > pe_start =3D 384 > pe_count =3D 1430799 > } > } >=20 > logical_volumes { >=20 > data { > id =3D "YZvrHt-Glyr-wnj0-QzV1-qRe6-VcRH-D7wU3U" > status =3D ["READ", "WRITE", "VISIBLE"] > segment_count =3D 1 >=20 > segment1 { > start_extent =3D 0 > extent_count =3D 524288 >=20 > type =3D "striped" > stripe_count =3D 1 # linear >=20 > stripes =3D [ > "pv0", 0 > ] > } > } >=20 > image { > id =3D "uHOzpc-l8L7-eF5h-Fa0C-EsCS-sM6X-3GpOP0" > status =3D ["READ", "WRITE", "VISIBLE"] > segment_count =3D 1 >=20 > segment1 { > start_extent =3D 0 > extent_count =3D 906511 >=20 > type =3D "striped" > stripe_count =3D 1 # linear > stripes =3D [ > "pv0", 524288 > ] > } > } > } > } > # Generated by LVM2 version 2.02.39 (2008-06-27): Wed Aug 19 23:36:50 2009 >=20 > contents =3D "Text Format Volume Group" > version =3D 1 >=20 > description =3D "" >=20 > creation_host =3D "nas" # Linux nas 2.6.27-14-generic #1 SMP Fri Jul 24= =20 > 22:19:33 UTC 2009 i686 > creation_time =3D 1250739410 # Wed Aug 19 23:36:50 2009 --Sig_/MxH/faOplSFyEcdblZcfOQH Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (GNU/Linux) iQIVAwUBT53SSjnsnt1WYoG5AQJYJA//ahC/71mXHG5zpQqiWBP5ORKx5+IbUtcA ioReGC+4OZebHEBF1WK3fjtBaIBdSZJaPxLQUlrPcuU5fLxDf4xNJW0BHq2/V5s3 gPuWhvov9vy2OvxlMF9Cp793Qb4SfGKwmmlEBMj3LhUheVG+TFv66H6Iq1PxgzzP +ejeklsGK2cq916HO7PMVaC9lryQlTEqucHTECdCd9V42D196ZJ4ugSoeDLaXx2z lFf4OrVq3tjxebG0DspKv13IO5cPGR9VRIP8b2Eo/k6/71baAS6fC1f3yjwB5Edk sDLlQ6pMvUc4sf59X6sfgTDQrhka1aWv5I9OPB+OcHkTGkhD9fNX4yy4mRRXLdB/ 072UOeF6sutP+GHGmAon851jaanTAbSOJ6oKLvS479Ww2HUXYhBXoyKw3y77wwy5 //SopQj+d3IsQwr+zCgfW4kiaraiI14Ogbe5NCEjwtjdtHbbKmoFsoy1XYOw8lxV 1xlAO4glKYbuFkTGjavrdiHosiLY4jGyPs0vAffckINShucdJ+gGqKOI6Dq5/LP7 hbKaaGFFDm6S6ck6w9XmLC4FPRicHpNcuXOK88Po4Ruzkn50+tqwqU4xhs8Qistu joWHIhzoBMCJ0AzzcWna+WA8BejYiGU5Da5vxpCBEGMdSllLz9OMOIxzfeOWZqPZ IPH/mNcVuzU= =0hPe -----END PGP SIGNATURE----- --Sig_/MxH/faOplSFyEcdblZcfOQH--