From: Rich Turner <rich@storix.com>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: [linux-lvm] pvcreate not overwriting partition table
Date: Wed, 09 Jun 2004 13:34:33 -0700 [thread overview]
Message-ID: <1086813273.1391.12.camel@rich> (raw)
from what i can remember, pvcreate should be unable (without "force") to
create a physical volume on an entire disk if there was a partition
table on that disk. something must have changed because now it seems it
doesnt even check, and worse, it doesnt remove the partition table. what
happens is you end up with a pv on the entire disk as well as a
partition table on the disk.
here are some details:
[root@linuxclone root]# lvm version
LVM version: 2.00.15 (2004-04-19)
Library version: 1.00.14-ioctl (2004-04-06)
Driver version: 4.1.0
distribution: fedora core 2
pvscan shows 2 pv's, one on the entire disk the other on a partition on
the same disk. how can that happen?
[root@linuxclone root]# pvscan
PV /dev/hda VG vault_vg lvm2 [37.27 GB / 36.27 GB free]
PV /dev/hda2 lvm2 [37.01 GB]
Total: 2 [74.28 GB] / in use: 1 [37.27 GB] / in no VG: 1 [37.01 GB]
[root@linuxclone root]# sfdisk -l /dev/hda
Disk /dev/hda: 77545 cylinders, 16 heads, 63 sectors/track
Warning: The partition table looks like it was made
for C/H/S=*/255/63 (instead of 77545/16/63).
For this listing I'll assume that geometry.
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from
0
Device Boot Start End #cyls #blocks Id System
/dev/hda1 * 0+ 32 33- 265041 82 Linux swap
/dev/hda2 33 4864 4832 38813040 8e Linux LVM
/dev/hda3 0 - 0 0 0 Empty
/dev/hda4 0 - 0 0 0 Empty
reply other threads:[~2004-06-09 20:34 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=1086813273.1391.12.camel@rich \
--to=rich@storix.com \
--cc=linux-lvm@redhat.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox