Conga Home > Conga Use Cases > Cluster and Storage group Pages | Red Hat

Use Case CGA-0300: Initializing a disk or disk partition as a Physical Volume(PV)

by Jim Parsons

Last Modified: $Date: 2006/03/06 21:48:04 $


Description: An admin wishes to initialize a disk or disk partition, thereby making it a Physical Volume that can be grouped into a logical volume.

Goal Level: User Goal.

Actors: Administrator.

Trigger:An administrator wishes to make a disk or a disk partition available to a logical volume group.

Basic Path:

  1. The Administrator chooses a disk or disk partition for the operation.
  2. The Administrator initializes the disk or disk partition.

Success End Conditions: The disk or disk partition is has a volume group descriptor written to the start of the disk.

Alternative Paths:

Exception Paths:If a partition table exists on the disk to be initialized, the partition table will have to be erased before setting the disk up as a physical volume. This condition must be trapped and a confirmation dialog offered to the user offering a choice of:

Failure End Conditions:

Preconditions:

Postconditions:

Sample Narrative:

Open Issues: The commandline equivalent for this command on a disk is:
pvcreate /dev/hdb
or, for a partition:
pvcreate /dev/hdb1

The commandline incantation to remove the partition table for the exception path above is:
dd if=/dev/zero of=/dev/diskname bs=1k count=1
blockdev --rereadpt /dev/diskname