| 106 | |
| 107 | = pvcreate /dev/md0 = |
| 108 | * mitty@ubuntu-haa:~$ sudo pvcreate /dev/md0 |
| 109 | {{{ |
| 110 | Physical volume "/dev/md0" successfully created |
| 111 | }}} |
| 112 | * mitty@ubuntu-haa:~$ sudo pvdisplay -C |
| 113 | {{{ |
| 114 | PV VG Fmt Attr PSize PFree |
| 115 | /dev/md0 lvm2 -- 1.95g 1.95g |
| 116 | }}} |
| 117 | * mitty@ubuntu-haa:~$ sudo pvdisplay |
| 118 | {{{ |
| 119 | "/dev/md0" is a new physical volume of "1.95 GiB" |
| 120 | --- NEW Physical volume --- |
| 121 | PV Name /dev/md0 |
| 122 | VG Name |
| 123 | PV Size 1.95 GiB |
| 124 | Allocatable NO |
| 125 | PE Size 0 |
| 126 | Total PE 0 |
| 127 | Free PE 0 |
| 128 | Allocated PE 0 |
| 129 | PV UUID Z2JXRP-fa5g-SYS5-xzMs-Lq8C-1Jbh-QPKihr |
| 130 | |
| 131 | }}} |
| 132 | |
| 133 | |
| 134 | = vgcreate -s 32 vgnfs /dev/md0 = |
| 135 | * mitty@ubuntu-haa:~$ sudo vgcreate -s 32 vgnfs /dev/md0 |
| 136 | {{{ |
| 137 | Volume group "vgnfs" successfully created |
| 138 | }}} |
| 139 | * mitty@ubuntu-haa:~$ sudo vgdisplay -C |
| 140 | {{{ |
| 141 | VG #PV #LV #SN Attr VSize VFree |
| 142 | vgnfs 1 0 0 wz--n- 1.94g 1.94g |
| 143 | }}} |
| 144 | * mitty@ubuntu-haa:~$ sudo vgdisplay |
| 145 | {{{ |
| 146 | --- Volume group --- |
| 147 | VG Name vgnfs |
| 148 | System ID |
| 149 | Format lvm2 |
| 150 | Metadata Areas 1 |
| 151 | Metadata Sequence No 1 |
| 152 | VG Access read/write |
| 153 | VG Status resizable |
| 154 | MAX LV 0 |
| 155 | Cur LV 0 |
| 156 | Open LV 0 |
| 157 | Max PV 0 |
| 158 | Cur PV 1 |
| 159 | Act PV 1 |
| 160 | VG Size 1.94 GiB |
| 161 | PE Size 32.00 MiB |
| 162 | Total PE 62 |
| 163 | Alloc PE / Size 0 / 0 |
| 164 | Free PE / Size 62 / 1.94 GiB |
| 165 | VG UUID I6vVoh-6gCJ-9uvA-v2MV-Fyva-7J8v-Cvftfi |
| 166 | |
| 167 | }}} |
| 168 | * mitty@ubuntu-haa:~$ sudo pvdisplay -C |
| 169 | {{{ |
| 170 | PV VG Fmt Attr PSize PFree |
| 171 | /dev/md0 vgnfs lvm2 a- 1.94g 1.94g |
| 172 | }}} |
| 173 | * mitty@ubuntu-haa:~$ sudo pvdisplay |
| 174 | {{{ |
| 175 | --- Physical volume --- |
| 176 | PV Name /dev/md0 |
| 177 | VG Name vgnfs |
| 178 | PV Size 1.95 GiB / not usable 15.94 MiB |
| 179 | Allocatable yes |
| 180 | PE Size 32.00 MiB |
| 181 | Total PE 62 |
| 182 | Free PE 62 |
| 183 | Allocated PE 0 |
| 184 | PV UUID Z2JXRP-fa5g-SYS5-xzMs-Lq8C-1Jbh-QPKihr |
| 185 | |
| 186 | }}} |