All of lore.kernel.org
 help / color / mirror / Atom feed
From: Goetz Bock <bock@blacknet.de>
To: linux-lvm@sistina.com
Subject: [linux-lvm] adding a bootsector to a PV destroys it ?!?
Date: Sat Aug 31 19:30:31 2002	[thread overview]
Message-ID: <20020901022635.E6906@zealot.blacknet.de> (raw)

Hi list,

while I have tried to search the archive, I was obviousely to dump to
find what I was looking for.

I just did (on 2.4.19 with LVM 1.0.5)

pvcreate /dev/hda4
vgcreate vg00 /dev/hda4
lvcreated ...
copy ... install ...
.
.
.
vgcfgbackup
dd if=/dev/hda of=/dev/hda4 bs=512 count=1 (*)

[ reboot ]

argl /dev/hda4 is no longer a valid PV.

doing

pvcreate /dev/hda4
vgcfgrestore -f /etc/lvmconf/vg00.conf /dev/hda4

recovered all my LVs, so I'm back in the game.

Still, just to make sure:
overwriting the first 512byte of a PV destroy it?

Thanks, and keep up the good work :-)


(*) to backup LILOs boot sector, I wanted to install (shiver) W2k
    and moving lilo from MBR would allow me to recover easily. 
-- 
Goetz Bock       (c) 2002 as     blacknet.de - Munich - Germany   /"\
IT Consultant    GNU FDL 1.1    secure mobile Linux everNETting   \ /
                                                                   X
 ASCII Ribbon Campaign against HTML email & microsoft attachments / \

             reply	other threads:[~2002-08-31 19:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-31 19:30 Goetz Bock [this message]
2002-09-01  4:05 ` [linux-lvm] adding a bootsector to a PV destroys it ?!? José Luis Domingo López
2002-09-01  9:09   ` Goetz Bock

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020901022635.E6906@zealot.blacknet.de \
    --to=bock@blacknet.de \
    --cc=linux-lvm@sistina.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.