Partitioning the Disk Manually
To partition a disk manually, do the following (in our example,
/dev/sdb
is the target disk):
-
Create a new partition table:
# parted /dev/sdb mklabel gpt
-
Create a new partition:
# parted /dev/sdb mkpart primary 0 -0
-
Format the new partition to ext4 with the required label
pstorage-hotplug
:
# mkfs.ext4 -L pstorage-hotplug /dev/sdb1
-
Configure a mount point for this partition in
/etc/fstab
:
# /dev/sdb1 /mnt ext4 defaults 0 0
-
Mount the partition:
# mount /dev/sdb1 /mnt
-
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
|