Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
hypervisor:base:storage [2015/03/05 01:35]
admin [Create a Storage Repository]
hypervisor:base:storage [2015/03/05 01:41]
admin [Register the logical volume for use with XAPI]
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-LocalStorage32.GB, 32212254720 ​bytes+... 
 +Disk /​dev/​mapper/​Xvg0-Xsr013.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>​