Previous page

Next page

Locate page in Contents

Print this page

Partitioning the Disk Manually

To partition a disk manually, do the following (in our example, /dev/sdb is the target disk):

  1. Create a new partition table:

    # parted /dev/sdb mklabel gpt

  2. Create a new partition:

    # parted /dev/sdb mkpart primary 0 -0

  3. Format the new partition to ext4 with the required label pstorage-hotplug :

    # mkfs.ext4 -L pstorage-hotplug /dev/sdb1

  4. Configure a mount point for this partition in /etc/fstab :

    # /dev/sdb1 /mnt ext4 defaults 0 0

  5. Mount the partition:

    # mount /dev/sdb1 /mnt

  6. Create a CS at /mnt/cs , or move an existing CS, or leave it to automatic CS creation on next replug. Example:

    # pstorage -c pcs1 make-cs -r /mnt/cs