Parted, GPT and LVM

Always forget this:


(parted) mklabel gpt
(parted) mkpart primary 0 100%
(parted) set 1 lvm on

That is all.

2 Comments

  1. Jose Lourenco says:

    Do you know how to do if one want to use the lv partitions created on the LVM as iSCSI devices?
    The problem I have is how to make the corresponding mapped devices available after rebooting.
    As they have no defined filesystems they cannot be mounted on /etc/fstab (as far as I know).

    Thank you.
    Best regards,
    Jose Lourenco

  2. sink says:

    sudo parted /dev/sdb
    (parted) mklabel gpt
    (parted) mkpart primary 0 100%
    (parted) set 1 lvm on

    sudo kvpm
    Create physical volume

Leave a Reply