On Fri, Aug 12, 2011 at 10:14 AM, Paras Pradhan wrote:
That's correct. Pvcreate can be used on raw unpartitioned devices (e.g. pvcreate /dev/sdc).On Fri, Aug 12, 2011 at 7:39 AM, Alan Brown <ajb2 mssl ucl ac uk> wrote:Paras pradhan wrote:Hi,I have a 2199GB LUN assigned to my 3 node cluster. Since its >2TB, I usedparted to create the EFI GPT parittion. After that pvcreate and vgcreate were successfull but I get the following error when doing lvcreate.If the entire LUN is a PV then you don't need to partition it.You mean don't use parted or any and directly proceed to pvcreate?
If you try to do this on your disks, I'm pretty sure pvcreate will complain/abort because it detects an existing partition table...
Personally, I find GPT partition tables to be annoying... (a) because I have to use "parted", and (b) because they're so difficult to erase from a disk.
If you want to get rid of that GPT partition table, you'll have to zero out (dd if=/dev/zero ...) the first three blocks AND the entire last cylinder of your disk to obliterate all traces of it (there's a backup GPT partition table hiding in the last cylinder).
Description: S/MIME Cryptographic Signature