HP XP20000/XP24000 HP StorageWorks XP Disk Array Configuration Guide (T5278-96 - Page 26

S1 = PE Size × Free PE, To create logical volumes

Page 26 highlights

To create logical volumes: 1. Use the lvcreate -L command 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 OPEN-L = 34756 OPEN-V = 61432 To calculate S1 for CVS, LUSE, and CVS LUSE volumes, first use the vgdisplay command to display the physical extent size (PE Size) and usable number of physical extents (Free PE) for the volume. Calculate the maximum size value (in MB) as follows: S1 = (PE Size) × (Free PE) Logical volumes can span multiple physical volumes. Use the diskinfo command for extended LUNs. 2. Create an OPEN-3 logical volume the size of the physical volume, using 2344 for the size parameter. An OPEN-9 volume uses 7040 for the size parameter to create a logical volume the size of the physical volume. Example # lvcreate -L 2344 /dev/vg06 Logical volume "/dev/vg06/lvol1" has been successfully created with character device "/dev/vg06/rlvol1". Logical volume "/dev/vg06/lvol1" has been successfully extended. Volume Group configuration for /dev/vg06 has been saved in /etc/1vmconf/vg06.conf. 3. Use the lvdisplay command to verify that the logical volume was created correctly. Example # lvdisplay /dev/vg06/lvol1 - - - Logical volume - - - LV Name /dev/vg06/lvol1 VG Name /dev/vg06 LV Permission read/write LV Status available/syncd Mirror copies 0 Consistency Recovery MWC Schedule parallel LV Size (Mbytes) 2344 Current LE 586 Allocated PE 586 Stripes 0 Stripe Size (Kbytes) 0 Bad block on Allocation strict 4. Repeat steps 1-3 for each logical volume to be created. You can create only one logical volume at a time. However, you can verify multiple logical volumes at a time. 26 HP-UX

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183

To create logical volumes:
1.
Use the
lvcreate
L
command 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
OPEN-L = 34756
OPEN-V = 61432
To calculate S1 for CVS, LUSE, and CVS LUSE volumes, first use the
vgdisplay
command
to display the physical extent size (PE Size) and usable number of physical extents (Free PE)
for the volume. Calculate the maximum size value (in MB) as follows:
S1 = (PE Size) × (Free PE)
Logical volumes can span multiple physical volumes. Use the
diskinfo
command for extended
LUNs.
2.
Create an OPEN-3 logical volume the size of the physical volume, using 2344 for the size
parameter. An OPEN-9 volume uses 7040 for the size parameter to create a logical volume
the size of the physical volume.
Example
# lvcreate
L 2344 /dev/vg06
Logical volume "/dev/vg06/lvol1" has been successfully created with
character device "/dev/vg06/rlvol1".
Logical volume "/dev/vg06/lvol1" has been successfully extended.
Volume Group configuration for /dev/vg06 has been saved in
/etc/1vmconf/vg06.conf.
3.
Use the
lvdisplay
command to verify that the logical volume was created correctly.
Example
# lvdisplay /dev/vg06/lvol1
- - - Logical volume - - -
LV Name
/dev/vg06/lvol1
VG Name
/dev/vg06
LV Permission
read/write
LV Status
available/syncd
Mirror copies
0
Consistency Recovery
MWC
Schedule
parallel
LV Size (Mbytes)
2344
Current LE
586
Allocated PE
586
Stripes
0
Stripe Size (Kbytes)
0
Bad block
on
Allocation
strict
4.
Repeat steps 1–3 for each logical volume to be created.
You can create only one logical volume at a time. However, you can verify multiple logical
volumes at a time.
26
HP-UX