All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-lvm] LVM partition type
@ 2009-03-05 15:53 Tejas Sumant
  2009-03-05 15:59 ` Bryn M. Reeves
  0 siblings, 1 reply; 2+ messages in thread
From: Tejas Sumant @ 2009-03-05 15:53 UTC (permalink / raw)
  To: linux-lvm

Hi there,

I created a physical volume using pvcreate command on /dev/sda. When I
checked the partition entries in MBR for /dev/sda using fdisk observed
that no partitions were displayed.

Why pvcreate doesnt make partition entry with type 8e in MBR? Which
partition entry gets used in case whole disk is made PV?

-- 
Tejas Sumant

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

* Re: [linux-lvm] LVM partition type
  2009-03-05 15:53 [linux-lvm] LVM partition type Tejas Sumant
@ 2009-03-05 15:59 ` Bryn M. Reeves
  0 siblings, 0 replies; 2+ messages in thread
From: Bryn M. Reeves @ 2009-03-05 15:59 UTC (permalink / raw)
  To: LVM general discussion and development

Tejas Sumant wrote:
> Hi there,
> 
> I created a physical volume using pvcreate command on /dev/sda. When I
> checked the partition entries in MBR for /dev/sda using fdisk observed
> that no partitions were displayed.

The pvcreate command only creates LVM2 labels, it does not update the 
MBR or other disk label at all.

> Why pvcreate doesnt make partition entry with type 8e in MBR? Which

That's your job ;)

If you chose to use partitions for PVs then you need to create those 
partitions and set their type codes appropriately (although LVM2 
doesn't actually check/use those type codes anywhere - it's really 
more of a "documentation" step these days).

> partition entry gets used in case whole disk is made PV?

None of them. If you use the whole disk as a PV it should not have any 
MBR at all.

Regards,
Bryn.

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

end of thread, other threads:[~2009-03-05 15:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-05 15:53 [linux-lvm] LVM partition type Tejas Sumant
2009-03-05 15:59 ` Bryn M. Reeves

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.