[linux-lvm] lvm with gpt partitioning?

Heinz J . Mauelshagen mauelshagen at sistina.com
Tue Oct 15 02:18:30 UTC 2002


Josh,

if a device holds a partition, LVM assumes PC style.

Can you remove the partition (dd if=/dev/zero of=/dev/sdb bs=1k count=1)
and use the whole device (pvcreate /dev/sdb) or go with PC style partitioning?

Regards,
Heinz    -- The LVM Guy --


On Mon, Oct 14, 2002 at 04:03:29PM -0400, Josh Duncan wrote:
> Hi all,
> 
> I hope this isn't a redundant question, I've tried looking through the mailing
> lists with no luck:
> 
> I'm having a problem setting up physical volumes on an ia64 machine running a
> 2.4.18+lvm1.0.5 kernel.
> 
> the disk is labelled using an "EFI GPT" disk label/partitioning arrangement.  I
> currently have two partitions defined, the first is 2gb and the second is 16gb.
> I can do a pvcreate on the second, but not on the first.  I've attached output
> from parted, fdisk, and pvcreate below...
> 
> any ideas?
> --Josh
> 
> ------
> fdisk:
> ------
> [root at one sbin]# fdisk -l /dev/sdb
> 
> Disk /dev/sdb: 255 heads, 63 sectors, 4427 cylinders
> Units = cylinders of 16065 * 512 bytes
> 
>    Device Boot    Start       End    Blocks   Id  System
> /dev/sdb1             1      4428  35566479+  ee  EFI GPT
> 
> -------
> parted:
> -------
> [root at one sbin]# parted /dev/sdb print
> Disk geometry for /dev/sdb: 0.000-34732.890 megabytes
> Disk label type: GPT
> Minor    Start       End     Filesystem  Name                  Flags
> 1          0.017   2047.000                                    lba
> 2       2047.000  18733.000                                    lba
> 
> ---------
> pvcreate:
> ---------
> [root at one sbin]# pvcreate /dev/sdb1
> pvcreate -- invalid partition type 0xee for "/dev/sdb1" (must be 0x8e)
> 
> 
> _______________________________________________
> linux-lvm mailing list
> linux-lvm at sistina.com
> http://lists.sistina.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

*** Software bugs are stupid.
    Nevertheless it needs not so stupid people to solve them ***

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Heinz Mauelshagen                                 Sistina Software Inc.
Senior Consultant/Developer                       Am Sonnenhang 11
                                                  56242 Marienrachdorf
                                                  Germany
Mauelshagen at Sistina.com                           +49 2626 141200
                                                       FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-




More information about the linux-lvm mailing list