Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
hypervisor:base:storage [2015/03/05 01:35] admin [Create a Storage Repository] |
hypervisor:base:storage [2015/03/05 12:45] (current) admin [Delete a Storage Repository] |
||
---|---|---|---|
Line 99: | Line 99: | ||
If you do not already have a device to use as repository, create a logical volume on volume group. | If you do not already have a device to use as repository, create a logical volume on volume group. | ||
+ | |||
<code> | <code> | ||
- | > lvcreate --size 30G -n LocalStorage xenvg | + | > sudo lvcreate --size 13G -n Xsr0 Xvg0 |
</code> | </code> | ||
Line 110: | Line 111: | ||
You should see your partition in a line such as: | You should see your partition in a line such as: | ||
<code> | <code> | ||
- | Disk /dev/mapper/xenvg-LocalStorage: 32.2 GB, 32212254720 bytes | + | ... |
+ | Disk /dev/mapper/Xvg0-Xsr0: 13.7 GB, 13744734208 bytes | ||
+ | ... | ||
</code> | </code> | ||
==== 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='LocalStorage' device-config:device=/dev/mapper/xenvg-LocalStorage | + | > xe sr-create type=ext name-label='X-Local-SR' device-config:device=/dev/mapper/Xvg0-Xsr0 |
</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 121: | Line 124: | ||
Display the storage repository: | Display the storage repository: | ||
<code> | <code> | ||
- | > xe sr-list name-label='LocalStorage' | + | > xe sr-list name-label='X-Local-SR' |
</code> | </code> | ||
Line 188: | Line 191: | ||
</code> | </code> | ||
- | NOTE: at this stage the logical volume will still exist in the LVM partition. | + | NOTE: at this stage the SR data will still exist in the LVM partition, you could also use the //**xe sr-destroy**// command to totally wipe out the SR, loosing everything that was on it! |
===== Using NFS ===== | ===== Using NFS ===== |