<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:0 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal>I screwed up, big time. If it was just one or two
mistakes than I think I could of solved it, but now I am not sure how to fix
this.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Some back ground: I recently picked up a DSN-3200
cheap off ebay. Its basically an Iscsi SAN system that holds 15
drives. VERY simplistic but hey, does RAID5. I added 5 drives and
set up a simple LVM2 group off the first partition of the array. (/dev/sdb1)
Followed the directions and made a logical drive, formatted to ext3 and everything
was great.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>A few months latter Fry’s was having a 500gb drive
sale, so I picked up 5 more drives and expanded the array (The DSN only tapes
on extra drives to the existing one, rather than expanding the array a drive at
a time. Think JOBD with RAID5 arrays) I now had an extra, or exact
1.7tb of space. I create another LVM2 partition (/dev/sdb2), expand both
the VG and LV.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>This would have been all fine, except I ran into an issue
with e2fsck. To expand the ext3, it wanted me to run e2fsck –f on
the volume. The problem was that eveytime I run the command, it would
seem to lock up the iscsi driver. I tried looking for any kind of hints
on why this was with no avail. After hours of working on it, I threw up
my hands. I figured if I can never e2fsck the volume, it might be bad for
me to extend it in the first place. At the time, I didn’t have a
way to back up the array, so I did something stupid.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>I deleted the /dev/sdb2 partition. Mind you, this was
after a few days and the line of thinking was that I would delete it, create an
ext3 partition, and copy the data over. Of course it gave a lot of errors
in LVM2 afterwards. I could still mount the volume so I thought I was
ok. <o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>A day or two passes and I wake up to find the server has
locked up. I do a hard reboot to find the little 160gig IDE drive in it
has failed. Doesn’t spin up on power. There goes my backup
metadata.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Sigh. I would have been better off with an ext3
partition to begin with, but I liked the flexibility that LVM2 offered.
To be honest I don’t remember a lot of the commands I have used either. Any
help would be appreciated. It even looks like I lost the logical
drive. But I know the data is still there, is there any kind of utility I
can just “get” the ext3 partition out of there?<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>[root@server archive]# vgscan<o:p></o:p></p>
<p class=MsoNormal> Reading all physical volumes. This may take a
while...<o:p></o:p></p>
<p class=MsoNormal> Found duplicate PV 5Up3QCLOFKXTDA1OHoWUfMrYne4SdXmb:
using /dev/sdb1 not /dev/sda1<o:p></o:p></p>
<p class=MsoNormal> Found volume group "VolGroup00" using
metadata type lvm2<o:p></o:p></p>
<p class=MsoNormal> Found volume group "ANIME" using metadata
type lvm2<o:p></o:p></p>
<p class=MsoNormal>[root@server archive]# ls<o:p></o:p></p>
<p class=MsoNormal>VolGroup00_00000.vg<o:p></o:p></p>
<p class=MsoNormal>[root@server archive]# vgchange -a y<o:p></o:p></p>
<p class=MsoNormal> Found duplicate PV 5Up3QCLOFKXTDA1OHoWUfMrYne4SdXmb:
using /dev/sdb1 not /dev/sda1<o:p></o:p></p>
<p class=MsoNormal> 2 logical volume(s) in volume group
"VolGroup00" now active<o:p></o:p></p>
<p class=MsoNormal> 0 logical volume(s) in volume group "ANIME"
now active<o:p></o:p></p>
<p class=MsoNormal>[root@server archive]# pvscan<o:p></o:p></p>
<p class=MsoNormal> Found duplicate PV 5Up3QCLOFKXTDA1OHoWUfMrYne4SdXmb:
using /dev/sdb1 not /dev/sda1<o:p></o:p></p>
<p class=MsoNormal> PV /dev/hda2 VG VolGroup00
lvm2 [148.94 GB / 0 free]<o:p></o:p></p>
<p class=MsoNormal> PV /dev/sdb1 VG
ANIME lvm2 [1.82 TB / 1.82 TB free]<o:p></o:p></p>
<p class=MsoNormal> PV
/dev/sda2
lvm2 [1.82 TB]<o:p></o:p></p>
<p class=MsoNormal> Total: 3 [3.78 TB] / in use: 2 [1.96 TB] / in no VG:
1 [1.82 TB]<o:p></o:p></p>
<p class=MsoNormal>[root@server archive]# lvscan<o:p></o:p></p>
<p class=MsoNormal> Found duplicate PV 5Up3QCLOFKXTDA1OHoWUfMrYne4SdXmb:
using /dev/sdb1 not /dev/sda1<o:p></o:p></p>
<p class=MsoNormal>
ACTIVE
'/dev/VolGroup00/LogVol00' [147.00 GB] inherit<o:p></o:p></p>
<p class=MsoNormal>
ACTIVE
'/dev/VolGroup00/LogVol01' [1.94 GB] inherit<o:p></o:p></p>
<p class=MsoNormal>[root@server archive]#<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
</div>
</body>
</html>