Re: HELP! 'can't get data of volume group "vg01" from physical volume(s)'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jun 26, 2003 at 11:21:50AM +0200, Heinz J . Mauelshagen wrote:
> 
> Jens,

Hello!
 
> did you use "vgremove /dev/hdb" before you changed the partition table
> to use hdb4 as a PV ? (the metadata backup seems to reflect you did).

I didn't even add it to the VG in the first place. I only used pvcreate
and then decided against it.
 
> Because the partition table is located at the end of sector 1 on hdb
> and there seems to be a PV staructure at the beginning still (strange
> if you used vgremove on hdb), this should help:

Ah. Good to know. (this should be in the HOWTO :)
 
> # to save the existing partition sector
> dd if=/dev/hdb of=hdb.s1 bs=512 count=1
> # to overwrite the start of the PV structure
> dd if=/dev/zero of=/dev/hdb bs=128 count=1
> vgscan;vgchange -ay

That did it! THANK YOU!!!
 

-- 
mfg, Jens Benecke	
  
QOTD: The Internet is not a network of machines. It's a network of PEOPLE.
      That's where its real power comes from.
  
http://www.rb-hosting.de - Webhosting mit Extras
Werbefreies Hosting ab €7 - SSH-Zugang ab €19 - Günstiger Traffic

_______________________________________________
linux-lvm mailing list
linux-lvm@sistina.com
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/


[Index of Archives]     [Gluster Users]     [Kernel Development]     [Linux Clusters]     [Device Mapper]     [Security]     [Bugtraq]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]

  Powered by Linux