Re: [linux-lvm] Re: partition table read incorrectly

From: Andreas Dilger (adilger@turbolabs.com)
Date: Wed Oct 03 2001 - 22:15:08 EST


On Oct 04, 2001 01:39 +0200, Wichert Akkerman wrote:
> Previously Andries.Brouwer@cwi.nl wrote:
> > But why do you call it wrong?
>
> I deleted all partitions with fdisk so I expect none to be there.
> fdisk shows none, but the kernel does.

The safest thing to do at this point is to simply delete the whole thing:

dd if=/dev/zero of=/dev/sdb count=1

then pvcreate the disk again. If you already have data on the PV in
question, you can "dd if=/dev/zero of=/dev/sdb bs=1 seek=510 count=2"
to remove only the partition signature.

Note also that it is a bug in LVM that it did not zero the whole thing
in the first place.

Cheers, Andreas

--
Andreas Dilger  \ "If a man ate a pound of pasta and a pound of antipasto,
                 \  would they cancel out, leaving him still hungry?"
http://www-mddsp.enel.ucalgary.ca/People/adilger/               -- Dogbert

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Oct 07 2001 - 21:00:30 EST