Dot Hill Systems II 200 FC I.8 Creating a Logical Volume, # lvcreate -L 4092 /dev/vg02

Models: II 200 FC

1 210
Download 210 pages 50.54 Kb
Page 201
Image 201
I.8 Creating a Logical Volume

VG

Write

Access

read/write

VG

Status

available

Max

LV

 

255

Cur

LV

 

0

Open

LV

 

0

Max

PV

 

16

Cur

PV

 

1

Act

PV

 

1

Max

PE per PV

2167

VGDA

 

 

2

PE

Size

(Mbytes)

4

Total

PE

 

2167

Alloc

PE

 

0

Free

PE

 

2167

Total

PVG

0

 

 

 

 

 

In the output of vgdisplay, the Total PE field displays the number of physical extents in the volume group.

The size of each physical extent is displayed in the PE Size field (the default is 4 Mbyte), so the total capacity of this volume group is 2167 x 4 Mbyte = 8668 Mbyte.

The Alloc PE field shows the number of physical extents allocated to logical volumes. At this point, the Alloc PE field is zero because we have not assigned any of this volume group’s capacity to logical volumes.

I.8 Creating a Logical Volume

To create a logical volume within the volume group, use the lvcreate command with the -Loption to specify the size of the logical volume in megabytes. The logical volume size should be a multiple of the physical extent size. In this example, a logical volume of 4092 Mbyte is created:

# lvcreate -L 4092 /dev/vg02

Appendix I Configuring an HP Server Running the HP-UX Operating System I-7

Page 201
Image 201
Dot Hill Systems II 200 FC service manual I.8 Creating a Logical Volume, # lvcreate -L 4092 /dev/vg02