6.17 Delete Partition

delete partition <partition_name>

Delete an existing partition by name.

nlvm [nlvm_options] delete partition <partition_name>

You are automatically prompted to confirm the delete action. Respond by typing yes or no, then press Enter. Use the --no-prompt NLVM option to suppress the confirmation prompt.

Before you create a OES Cluster Services SBD partition, you must take the cluster down, and stop OES Cluster Services from running on all nodes.

Command Options

partition_name

Mandatory. Specify the node name (such as sdc1.1) of the partition to be deleted.

Example

sdc1.1
-f , --force

Optional. The force NLVM option can be used with the delete partition command if the partition is part of a pool or move. If the partition is part of a pool, deleting the partition automatically deletes the pool. If the partition is part of a move destination, deleting the partition automatically deletes the pool move.

Examples

-f 
--force
--no-prompt

Optional. Specify this NLVM option to prevent a confirmation message from being displayed.

Example

--no-prompt

Command Examples

nlvm delete partition sdc1.1

Delete the partition /dev/sdc1.1.

nlvm --force delete partition sdd1.2

Delete the partition /dev/sdd1.2 that is part of an NSS pool move destination. The pool move is deleted as well.