All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-lvm] LVM configuration question....
@ 2001-06-24 21:30 Mark J. Bobak
  2001-06-24 21:48 ` Goetz Bock
  0 siblings, 1 reply; 5+ messages in thread
From: Mark J. Bobak @ 2001-06-24 21:30 UTC (permalink / raw)
  To: linux-lvm

Hi,

I just installed SuSE 7.2, I have the LVM configured, all storage is on
LVM except for '/'.  It's working great.  All storage is SCSI.  I have one
9GB drive that I did not configure, that I left data I wanted to save.
So, I've copied everything I want from there back on to the new running
system.  Now I want to add this disk to the Volume Group.  So, I deleted
the partitions on it w/ fdisk.  As I could read in the LVM whitepaper,
that's not good enough.  So, I did:

dd if=/dev/zero of=/dev/sdc bs=1k count=1

And that didn't work.  I noticed an (apparent) typo in the the whitepaper,
in that the comment made after the above command is "This command
overwrites the first 10k Bytes of a disk with zeros, deleting any
partition table."  Well, since the command specifies bs=1k and count=1, I
suspect it only overwrites 1k.  So, I tried w/ 'bs=10k count=1', 'bs=1k
count=10', and even 'bs=100k count=1'.  All with the same results.  When I
try to run 'pvcreate', I get:

# pvcreate /dev/sdc
pvcreate -- device "/dev/sdc" has a partition table

pvcreate [-d|--debug] [-f[f]|--force [--force]] [-h|--help] [-y|--yes]
        [-v|--verbose] [-V|--version] PhysicalVolume [PhysicalVolume...]


So, can anyone offer me a clue as to the problem?

Thanks,

-Mark

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [linux-lvm] LVM configuration question....
  2001-06-24 21:30 [linux-lvm] LVM configuration question Mark J. Bobak
@ 2001-06-24 21:48 ` Goetz Bock
  2001-06-24 21:57   ` Mark J. Bobak
  2001-06-24 22:32   ` Brian J. Murrell
  0 siblings, 2 replies; 5+ messages in thread
From: Goetz Bock @ 2001-06-24 21:48 UTC (permalink / raw)
  To: linux-lvm

[-- Attachment #1: Type: text/plain, Size: 494 bytes --]


On Sun, Jun 24 '01 at 17:30, Mark J. Bobak wrote:
> # pvcreate /dev/sdc
> pvcreate -- device "/dev/sdc" has a partition table
> 
> So, can anyone offer me a clue as to the problem?
Well, you can force pvcreate to use /dev/sdc, but you should not.
use fdisk to make one partition (/dev/sdc1) with the full capacity of
/dev/sdc and make it as LVM (type: 8e). Than use pvcreate /dev/sdc1
(this marks sdc1 as a PV) and add it to the VG as described in the
whitepaper/faq.

    Goetz.

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [linux-lvm] LVM configuration question....
  2001-06-24 21:48 ` Goetz Bock
@ 2001-06-24 21:57   ` Mark J. Bobak
  2001-06-24 22:32   ` Brian J. Murrell
  1 sibling, 0 replies; 5+ messages in thread
From: Mark J. Bobak @ 2001-06-24 21:57 UTC (permalink / raw)
  To: linux-lvm

Thanks Goetz.  I'll give it a try!

-Mark

On Sun, 24 Jun 2001, Goetz Bock wrote:

>
> On Sun, Jun 24 '01 at 17:30, Mark J. Bobak wrote:
> > # pvcreate /dev/sdc
> > pvcreate -- device "/dev/sdc" has a partition table
> >
> > So, can anyone offer me a clue as to the problem?
> Well, you can force pvcreate to use /dev/sdc, but you should not.
> use fdisk to make one partition (/dev/sdc1) with the full capacity of
> /dev/sdc and make it as LVM (type: 8e). Than use pvcreate /dev/sdc1
> (this marks sdc1 as a PV) and add it to the VG as described in the
> whitepaper/faq.
>
>     Goetz.
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [linux-lvm] LVM configuration question....
  2001-06-24 21:48 ` Goetz Bock
  2001-06-24 21:57   ` Mark J. Bobak
@ 2001-06-24 22:32   ` Brian J. Murrell
  2001-06-24 22:57     ` Goetz Bock
  1 sibling, 1 reply; 5+ messages in thread
From: Brian J. Murrell @ 2001-06-24 22:32 UTC (permalink / raw)
  To: linux-lvm

On Sun, Jun 24, 2001 at 11:48:00PM +0200, Goetz Bock wrote:
> 
> On Sun, Jun 24 '01 at 17:30, Mark J. Bobak wrote:
> > # pvcreate /dev/sdc
> > pvcreate -- device "/dev/sdc" has a partition table
> > 
> > So, can anyone offer me a clue as to the problem?
> Well, you can force pvcreate to use /dev/sdc, but you should not.

Why not?  I thought for non-system (i.e. boot) disks this was
perfectly acceptable.

b.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [linux-lvm] LVM configuration question....
  2001-06-24 22:32   ` Brian J. Murrell
@ 2001-06-24 22:57     ` Goetz Bock
  0 siblings, 0 replies; 5+ messages in thread
From: Goetz Bock @ 2001-06-24 22:57 UTC (permalink / raw)
  To: linux-lvm

[-- Attachment #1: Type: text/plain, Size: 694 bytes --]


On Sun, Jun 24 '01 at 15:32, Brian J. Murrell wrote:
> > Well, you can force pvcreate to use /dev/sdc, but you should not.
> 
> Why not?  I thought for non-system (i.e. boot) disks this was
> perfectly acceptable.
It will gain you about a meg (one cylinder), but will cause all kind of
trouble when you're not very carefyll. lilo, other OSes installers,
user errors can easily cause the rewriting of a MBR. This will kill your
PV, and the VG it belongs to.
Some readers already had this happen, and it was QUITE a pain to recover
the data on the affected VG (I'm not sure if everyone was able to
recover their data, for sure some were (with the help of Heinz IIRC))

    Goetz.

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2001-06-24 22:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-06-24 21:30 [linux-lvm] LVM configuration question Mark J. Bobak
2001-06-24 21:48 ` Goetz Bock
2001-06-24 21:57   ` Mark J. Bobak
2001-06-24 22:32   ` Brian J. Murrell
2001-06-24 22:57     ` Goetz Bock

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.