Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
hypervisor:base:storage [2015/03/04 08:33] admin [Delete a Storage Repository] |
hypervisor:base:storage [2015/03/05 01:35] admin [Create a Storage Repository] |
||
---|---|---|---|
Line 37: | Line 37: | ||
---- | ---- | ||
- | ---- | ||
==== Virtual Disk Data Formats ==== | ==== Virtual Disk Data Formats ==== | ||
---- | ---- | ||
Line 52: | Line 51: | ||
---- | ---- | ||
- | If you followed our [[hypervisor:base:debian|Debian Installation]] section, you should already have an LVM partition, thus a physical volume: | + | The following example illustrates the SR creation on a local non-shared Filesystem (ext). |
+ | |||
+ | If you follow the [[sample:base|Sample Configuration]] section of this wiki, you will have a LVM partition, thus a physical volume to use: | ||
<code> | <code> | ||
- | > pvdisplay | + | > sudo pvdisplay |
--- Physical volume --- | --- Physical volume --- | ||
- | PV Name /dev/sda2 | + | PV Name /dev/sde5 |
- | VG Name xenvg | + | VG Name Xvg0 |
- | PV Size 464.83 GiB / not usable 0 | + | PV Size 12.82 GiB / not usable 3.00 MiB |
Allocatable yes | Allocatable yes | ||
PE Size 4.00 MiB | PE Size 4.00 MiB | ||
- | Total PE 118996 | + | Total PE 3282 |
- | Free PE 112322 | + | Free PE 5 |
- | Allocated PE 6674 | + | Allocated PE 3277 |
- | PV UUID 4g97od-AZ1M-8sws-7ghY-YPaT-PsPR-mpO3iy | + | PV UUID sJOaJc-vZzX-1d8O-2R5i-jmi5-Gkj4-S4rxdJ |
</code> | </code> | ||
Along with a volume group: | Along with a volume group: | ||
<code> | <code> | ||
- | > vgdisplay | + | > sudo vgdisplay |
- | --- Volume group --- | + | |
- | VG Name xenvg | + | --- Volume group --- |
+ | VG Name Xvg0 | ||
System ID | System ID | ||
Format lvm2 | Format lvm2 | ||
Metadata Areas 1 | Metadata Areas 1 | ||
- | Metadata Sequence No 22 | + | Metadata Sequence No 7 |
VG Access read/write | VG Access read/write | ||
VG Status resizable | VG Status resizable | ||
MAX LV 0 | MAX LV 0 | ||
- | Cur LV 3 | + | Cur LV 1 |
- | Open LV 3 | + | Open LV 1 |
Max PV 0 | Max PV 0 | ||
Cur PV 1 | Cur PV 1 | ||
Act PV 1 | Act PV 1 | ||
- | VG Size 464.83 GiB | + | VG Size 12.82 GiB |
PE Size 4.00 MiB | PE Size 4.00 MiB | ||
- | Total PE 118996 | + | Total PE 3282 |
- | Alloc PE / Size 6674 / 26.07 GiB | + | Alloc PE / Size 3277 / 12.80 GiB |
- | Free PE / Size 112322 / 438.76 GiB | + | Free PE / Size 5 / 20.00 MiB |
- | VG UUID yf4fNc-5Nke-5SCd-Jqo6-ie9c-gH7r-8dCE66 | + | VG UUID Skt7yP-fl4B-IxvG-VUA4-KcJH-1Mho-2QASh8 |
</code> | </code> | ||
Line 112: | Line 115: | ||
==== Register the logical volume for use with XAPI ==== | ==== Register the logical volume for use with XAPI ==== | ||
<code> | <code> | ||
- | > xe sr-create type=ext name-label='Local Storage' device-config:device=/dev/mapper/xenvg-LocalStorage | + | > xe sr-create type=ext name-label='LocalStorage' device-config:device=/dev/mapper/xenvg-LocalStorage |
</code> | </code> | ||
This will take a while if the volume is large, it will return the SR UUID. | This will take a while if the volume is large, it will return the SR UUID. | ||
Line 118: | Line 121: | ||
Display the storage repository: | Display the storage repository: | ||
<code> | <code> | ||
- | > xe sr-list name-label='Local Storage' | + | > xe sr-list name-label='LocalStorage' |
</code> | </code> | ||
Line 155: | Line 158: | ||
Set the default SR | Set the default SR | ||
<code> | <code> | ||
- | > xe pool-param-set uuid=<pool-uuid> default-SR=<sr-uuid> | + | > xe pool-param-set uuid=<pool_uuid> default-SR=<sr_uuid> |
</code> | </code> | ||
===== Delete a Storage Repository ===== | ===== Delete a Storage Repository ===== |