<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1515" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=775410019-23092005><FONT face=Arial
color=#0000ff size=2>Additional information explaining what caused the below
errors:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=775410019-23092005><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=775410019-23092005><FONT face=Arial
color=#0000ff size=2>+++++++++++++++ start
+++++++++++++++++++++++++++++++++++++++++++++</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=775410019-23092005><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=775410019-23092005><FONT face=Arial
color=#0000ff size=2><<A href="mailto:root@paxton">root@paxton</A>:~>#
fdisk /dev/sdo1<BR>Device contains neither a valid DOS partition table, nor Sun,
SGI or OSF disklabel<BR>Building a new DOS disklabel. Changes will remain in
memory only,<BR>until you decide to write them. After that, of course, the
previous<BR>content won't be recoverable.</FONT></SPAN></DIV>
<DIV> </DIV><SPAN class=775410019-23092005>
<DIV dir=ltr align=left><BR><FONT face=Arial color=#0000ff size=2>The number of
cylinders for this disk is set to 3541.<BR>There is nothing wrong with that, but
this is larger than 1024,<BR>and could in certain setups cause problems
with:<BR>1) software that runs at boot time (e.g., old versions of LILO)<BR>2)
booting and partitioning software from other OSs<BR> (e.g., DOS
FDISK, OS/2 FDISK)<BR>Warning: invalid flag 0x0000 of partition table 4 will be
corrected by w(rite)</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2>Command (m for
help): o<BR>Building a new DOS disklabel. Changes will remain in memory
only,<BR>until you decide to write them. After that, of course, the
previous<BR>content won't be recoverable.</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV dir=ltr align=left><BR><FONT face=Arial color=#0000ff size=2>The number of
cylinders for this disk is set to 3541.<BR>There is nothing wrong with that, but
this is larger than 1024,<BR>and could in certain setups cause problems
with:<BR>1) software that runs at boot time (e.g., old versions of LILO)<BR>2)
booting and partitioning software from other OSs<BR> (e.g., DOS
FDISK, OS/2 FDISK)<BR>Warning: invalid flag 0x0000 of partition table 4 will be
corrected by w(rite)</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2>Command (m for
help): m<BR>Command action<BR> a toggle a bootable
flag<BR> b edit bsd disklabel<BR>
c toggle the dos compatibility flag<BR> d
delete a partition<BR> l list known partition
types<BR> m print this menu<BR>
n add a new partition<BR> o create a new
empty DOS partition table<BR> p print the partition
table<BR> q quit without saving changes<BR>
s create a new empty Sun disklabel<BR> t
change a partition's system id<BR> u change
display/entry units<BR> v verify the partition
table<BR> w write table to disk and exit<BR>
x extra functionality (experts only)</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2>Command (m for
help): n<BR>Command action<BR> e
extended<BR> p primary partition (1-4)<BR>p<BR>Partition
number (1-4): 1<BR>First cylinder (1-3541, default 1):<BR>Using default value
1<BR>Last cylinder or +size or +sizeM or +sizeK (1-3541, default 3541):<BR>Using
default value 3541</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2>Command (m for
help): t<BR>Selected partition 1<BR>Hex code (type L to list codes):
8e<BR>Changed system type of partition 1 to 8e (Linux LVM)</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2>Command (m for
help): m<BR>Command action<BR> a toggle a bootable
flag<BR> b edit bsd disklabel<BR>
c toggle the dos compatibility flag<BR> d
delete a partition<BR> l list known partition
types<BR> m print this menu<BR>
n add a new partition<BR> o create a new
empty DOS partition table<BR> p print the partition
table<BR> q quit without saving changes<BR>
s create a new empty Sun disklabel<BR> t
change a partition's system id<BR> u change
display/entry units<BR> v verify the partition
table<BR> w write table to disk and exit<BR>
x extra functionality (experts only)</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2>Command (m for
help): p</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2>Disk /dev/sdo1:
29.1 GB, 29133909504 bytes<BR>255 heads, 63 sectors/track, 3541
cylinders<BR>Units = cylinders of 16065 * 512 = 8225280 bytes</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff
size=2> Device Boot
Start End
Blocks Id
System<BR>/dev/sdo1p1
1 3541 28443051 8e Linux
LVM</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2>Command (m for
help): v<BR>62 unallocated sectors</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2>Command (m for
help): v<BR>62 unallocated sectors</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2>Command (m for
help): w<BR>The partition table has been altered!</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2>Calling ioctl() to
re-read partition table.</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2>WARNING:
Re-reading the partition table failed with error 16: Device or resource
busy.<BR>The kernel still uses the old table.<BR>The new table will be used at
the next reboot.<BR>Syncing disks.</FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff
size=2></FONT> </DIV>
<DIV dir=ltr align=left></SPAN><SPAN class=775410019-23092005><FONT face=Arial
color=#0000ff size=2>+++++++++++++++++++++++++++++ end
++++++++++++++++++++++++++++++++++++++</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> linux-lvm-bounces@redhat.com
[mailto:linux-lvm-bounces@redhat.com] <B>On Behalf Of </B>Stein, Paul (TLR
Corp)<BR><B>Sent:</B> Friday, September 23, 2005 11:20 AM<BR><B>To:</B>
linux-lvm@redhat.com<BR><B>Subject:</B> [linux-lvm] Recover Partition Table -
vgdisplay/vgscan fails<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV><FONT face=Arial size=2><SPAN class=338550616-23092005>I inadvertantly blew
away the partition table on /dev/sdo that was in use. While the system is still
running and no errors have occured...yet, I need</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=338550616-23092005>to get the partition
table restored and be able to vgdisplay the datavg. Below is the sampling
of error messages.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><<A
href="mailto:root@paxton:/proc/lvm">root@paxton:/proc/lvm</A>># vgdisplay
datavg<BR>vgdisplay -- ERROR: VGDA in kernel and lvmtab are NOT consistent;
please run vgscan<BR></FONT></DIV>
<DIV><FONT face=Arial size=2><<A
href="mailto:root@paxton:/proc/lvm">root@paxton:/proc/lvm</A>>#
vgscan<BR>vgscan -- reading all physical volumes (this may take a
while...)<BR>vgscan -- found active volume group "rootvg"<BR>vgscan -- found
active volume group "localvg"<BR>vgscan -- found active volume group
"datavg"<BR>vgscan -- ERROR "vg_read_with_pv_and_lv(): current PV" can't get
data of volume group "datavg" from physical volume(s)<BR>vgscan -- "/etc/lvmtab"
and "/etc/lvmtab.d" successfully created<BR>vgscan -- WARNING: This program does
not do a VGDA backup of your volume groups</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><SPAN class=338550616-23092005><FONT face=Arial size=2>Is it safe to clear
VGDA using the "dd if=/dev/zero of=PhysicalVolume bs=512 count=1" shown in
the pvcreate man pages and the come back and</FONT></SPAN></DIV>
<DIV><SPAN class=338550616-23092005><FONT face=Arial size=2>recreate the
VGDA using pvcreate, or use pvcreate outright not using the dd method? Or,
is there a better method to get /dev/sdo back into the
datavg</FONT></SPAN></DIV>
<DIV><SPAN class=338550616-23092005><FONT face=Arial size=2>group while
recreating the partition table?</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV align=left>
<DIV align=left><FONT face="Comic Sans MS" size=4>Paul Stein</FONT></DIV></DIV>
<DIV> </DIV></BODY></HTML>