<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.19019">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2 face=Arial>Hello,</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>While adding a new disk to my LV i ended up
with a crash during the <SPAN class=code><FONT size=3
face="Times New Roman">resize2fs. Now I have LVM reporting different sizes for
my VG and LV.</FONT></SPAN></FONT></DIV>
<DIV><SPAN class=code>How do I fix this?</SPAN></DIV>
<DIV><SPAN class=code><FONT size=2 face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=code><FONT size=2 face=Arial>I tried to do a "vgreduce vgftp
/dev/sde1" to remove my new drive again. This only gives me an error "Physical
volume "/dev/sde1" still in use"</FONT></SPAN></DIV>
<DIV><SPAN class=code><FONT size=2 face=Arial>If I can revert the adding of the
new drive, I planned on trying to vgcfgrestore to an archived config from before
I added the drive and did the lvextend and resize2fs.</FONT></SPAN></DIV>
<DIV><SPAN class=code><FONT size=2 face=Arial>Is this a good way of solving the
problem? I guess it's not possible to lvreduce the LV by the same amount i did
lvextend it before, because the system still thinks the LV is the old size. I
just want to get rid of the PV i added to the VG</FONT></SPAN></DIV>
<DIV><SPAN class=code><FONT size=2 face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=code><FONT size=2 face=Arial>I'm a bit confused on how to do
this.</FONT></SPAN></DIV>
<DIV><SPAN class=code><FONT size=2 face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=code><FONT size=2 face=Arial># vgdisplay<BR> --- Volume
group ---<BR> VG
Name
vgftp<BR> System
ID
<BR>
Format
lvm2<BR> Metadata Areas
13<BR> Metadata Sequence No 67<BR> VG
Access
read/write<BR> VG
Status
resizable<BR> MAX
LV
0<BR> Cur
LV
1<BR> Open
LV
0<BR> Max
PV
0<BR> Cur
PV
12<BR> Act
PV
12<BR> VG
Size
5.59 TiB<BR> PE
Size
4.00 MiB<BR> Total
PE
1464180<BR> Alloc PE / Size 1089649 /
4.16 TiB<BR> Free PE / Size
374531 / 1.43 TiB<BR> VG
UUID
kOApX5-oTeV-cPWr-h41J-NxML-sbbj-WcKObC</FONT></SPAN></DIV>
<DIV><SPAN class=code><FONT size=2 face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=code><FONT size=2 face=Arial> # lvdisplay<BR> ---
Logical volume ---<BR> LV
Name
/dev/vgftp/lvftp<BR> VG
Name
vgftp<BR> LV
UUID
l4EWSh-GOfD-n0Sx-7ZSG-RTVi-p7fC-ApyHZS<BR> LV Write
Access read/write<BR> LV
Status
NOT available<BR> LV
Size
4.16 TiB<BR> Current
LE
1089649<BR>
Segments
14<BR>
Allocation
inherit<BR> Read ahead sectors
auto<BR> </FONT></SPAN></DIV>
<DIV><SPAN class=code><FONT size=2 face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=code><FONT size=2 face=Arial>thank you</FONT></SPAN></DIV>
<DIV><SPAN class=code><FONT size=2 face=Arial>/Fredrik
Skog</FONT></SPAN></DIV></BODY></HTML>