HP XP10000 Creating logical volumes, Example lvremove /dev/vgnn/lvolx, lvextend, lvreduce

Models: XP10000

1 82
Download 82 pages 60.77 Kb
Page 43
Image 43
Creating logical volumes

Creating logical volumes

Use these commands for logical volume configuration:

lvremove

Deletes a logical volume.

 

Any file system attached to the logical volume must be

 

unmounted before executing the lvremove command.

 

Example: lvremove /dev/vgnn/lvolx

lvextend

Increases the size of an existing logical volume.

 

Example: lvextend –L size /dev/vgnn/lvolx

lvreduce

Decreases the size of an existing logical volume.

 

Any file system attached to the logical volume must be

 

unmounted before executing the lvreduce command.

 

Example: lvreduce –L size /dev/vgnn/lvolx

Caution Data within the file system can be lost after execution of lvreduce.

Create logical volumes after you create volume groups. A logical volume must be created for each new SCSI disk device

To create logical volumes:

1.Use the lvcreate –Lcommand to create a logical volume.

Specify the volume size (in megabytes) and the volume group for the new logical volume. HP-UX assigns the logical volume numbers automatically (lvol1, lvol2, lvol3). Use the following capacity values for the size parameter:

OPEN-K = 1740 OPEN-3 = 2344 OPEN-8 = 7004 OPEN-9 = 7004 OPEN-E = 13888

Installation

45

Page 43
Image 43
HP XP10000 Creating logical volumes, Example lvremove /dev/vgnn/lvolx, lvextend, lvreduce, To create logical volumes