| 187 | |
| 188 | = lvcreate --size 1.5G -n drbd vgnfs = |
| 189 | * mitty@ubuntu-haa:~$ sudo lvcreate --size 1.5G -n drbd vgnfs |
| 190 | {{{ |
| 191 | Logical volume "drbd" created |
| 192 | }}} |
| 193 | * mitty@ubuntu-haa:~$ sudo pvdisplay -C |
| 194 | {{{ |
| 195 | PV VG Fmt Attr PSize PFree |
| 196 | /dev/md0 vgnfs lvm2 a- 1.94g 448.00m |
| 197 | }}} |
| 198 | * mitty@ubuntu-haa:~$ sudo pvdisplay |
| 199 | {{{ |
| 200 | --- Physical volume --- |
| 201 | PV Name /dev/md0 |
| 202 | VG Name vgnfs |
| 203 | PV Size 1.95 GiB / not usable 15.94 MiB |
| 204 | Allocatable yes |
| 205 | PE Size 32.00 MiB |
| 206 | Total PE 62 |
| 207 | Free PE 14 |
| 208 | Allocated PE 48 |
| 209 | PV UUID Z2JXRP-fa5g-SYS5-xzMs-Lq8C-1Jbh-QPKihr |
| 210 | |
| 211 | }}} |
| 212 | * mitty@ubuntu-haa:~$ sudo vgdisplay -v |
| 213 | {{{ |
| 214 | Finding all volume groups |
| 215 | Finding volume group "vgnfs" |
| 216 | --- Volume group --- |
| 217 | VG Name vgnfs |
| 218 | System ID |
| 219 | Format lvm2 |
| 220 | Metadata Areas 1 |
| 221 | Metadata Sequence No 2 |
| 222 | VG Access read/write |
| 223 | VG Status resizable |
| 224 | MAX LV 0 |
| 225 | Cur LV 1 |
| 226 | Open LV 0 |
| 227 | Max PV 0 |
| 228 | Cur PV 1 |
| 229 | Act PV 1 |
| 230 | VG Size 1.94 GiB |
| 231 | PE Size 32.00 MiB |
| 232 | Total PE 62 |
| 233 | Alloc PE / Size 48 / 1.50 GiB |
| 234 | Free PE / Size 14 / 448.00 MiB |
| 235 | VG UUID I6vVoh-6gCJ-9uvA-v2MV-Fyva-7J8v-Cvftfi |
| 236 | |
| 237 | --- Logical volume --- |
| 238 | LV Name /dev/vgnfs/drbd |
| 239 | VG Name vgnfs |
| 240 | LV UUID dNxdNj-hZCZ-GMrC-woMk-0hA2-f3oR-sBsrHI |
| 241 | LV Write Access read/write |
| 242 | LV Status available |
| 243 | # open 0 |
| 244 | LV Size 1.50 GiB |
| 245 | Current LE 48 |
| 246 | Segments 1 |
| 247 | Allocation inherit |
| 248 | Read ahead sectors auto |
| 249 | - currently set to 256 |
| 250 | Block device 251:0 |
| 251 | |
| 252 | --- Physical volumes --- |
| 253 | PV Name /dev/md0 |
| 254 | PV UUID Z2JXRP-fa5g-SYS5-xzMs-Lq8C-1Jbh-QPKihr |
| 255 | PV Status allocatable |
| 256 | Total PE / Free PE 62 / 14 |
| 257 | |
| 258 | }}} |
| 259 | * mitty@ubuntu-haa:~$ sudo pvscan |
| 260 | {{{ |
| 261 | PV /dev/md0 VG vgnfs lvm2 [1.94 GiB / 448.00 MiB free] |
| 262 | Total: 1 [1.94 GiB] / in use: 1 [1.94 GiB] / in no VG: 0 [0 ] |
| 263 | }}} |
| 264 | * mitty@ubuntu-haa:~$ sudo vgscan |
| 265 | {{{ |
| 266 | Reading all physical volumes. This may take a while... |
| 267 | Found volume group "vgnfs" using metadata type lvm2 |
| 268 | }}} |
| 269 | * mitty@ubuntu-haa:~$ sudo lvscan |
| 270 | {{{ |
| 271 | ACTIVE '/dev/vgnfs/drbd' [1.50 GiB] inherit |
| 272 | }}} |