You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/product/cluster_configuration/storage_system/local_ds.md
+26-24Lines changed: 26 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,8 +19,8 @@ This storage configuration uses the local storage area of each Host to run VMs.
19
19
20
20
The Front-end needs to prepare the storage area for:
21
21
22
-
***Image Datastores** to store the image repository.
23
-
***System Datastores** to hold temporary disks and files for VMs `stopped` and `undeployed`.
22
+
-**Image Datastores** to store the image repository.
23
+
-**System Datastores** to hold temporary disks and files for VMs `stopped` and `undeployed`.
24
24
25
25
Simply make sure that there is enough space under `/var/lib/one/datastores` to store images and the disks of the `stopped` and `undeployed` Virtual Machines. Note that `/var/lib/one/datastores`**can be mounted from any NAS/SAN server in your network**.
26
26
@@ -29,7 +29,7 @@ Simply make sure that there is enough space under `/var/lib/one/datastores` to s
29
29
Just make sure that there is enough space under `/var/lib/one/datastores` to store the disks of running VMs on that Host.
30
30
31
31
{{< alert title="Warning" color="warning" >}}
32
-
Make sure all the Hosts, including the Front-end, can SSH to any other Host (including themselves), otherwise migrations will not work.{{< /alert >}}
32
+
Ensure that all Hosts, including the Front-end, can remotely connect via SSH to any other Host (and themselves); otherwise, migrations will not perform as expected.{{< /alert >}}
33
33
34
34
## OpenNebula Configuration
35
35
@@ -39,11 +39,11 @@ Once the Hosts and Front-end storage is set up, configuring OpenNebula comprises
39
39
40
40
To create a new System Datastore, you need to set the following (template) parameters:
41
41
42
-
| Attribute | Description |
43
-
|-------------|-------------------|
44
-
|`NAME`| Name of datastore |
45
-
|`TYPE`|`SYSTEM_DS`|
46
-
|`TM_MAD`|`local`|
42
+
| Attribute | Description |
43
+
|---------|-----------------|
44
+
|`NAME`| Name of datastore |
45
+
|`TYPE`|`SYSTEM_DS`|
46
+
|`TM_MAD`|`local`|
47
47
48
48
You can do this either in Sunstone or through the CLI; for example, to create a local System Datastore simply enter:
49
49
@@ -58,18 +58,18 @@ ID: 101
58
58
```
59
59
60
60
{{< alert title="Note" color="success" >}}
61
-
When different System Datastores are available, the `TM_MAD_SYSTEM` attribute will be set after selecting the Datastore.{{< /alert >}}
61
+
When different System Datastores are available, select one to have the the `TM_MAD_SYSTEM` attribute set.{{< /alert >}}
62
62
63
63
### Create Image Datastore
64
64
65
65
To create a new Image Datastore, you need to set the following (template) parameters:
|`CONVERT`|`yes` (default) or `no`. Change Image format to `DRIVER`|
73
73
74
74
For example, the following illustrates the creation of a Local Datastore:
75
75
@@ -86,20 +86,20 @@ ID: 100
86
86
Also note that there are additional attributes that can be set. Check the [datastore template attributes]({{% relref "datastores#datastore-common" %}}).
87
87
88
88
{{< alert title="Warning" color="warning" >}}
89
-
Be sure to use the same `TM_MAD` for both the System and Image datastores. When combining different transfer modes, check the section below.{{< /alert >}}
89
+
Be sure to use the same `TM_MAD` for both the System and Image datastores. When combining different transfer modes, check the section below.{{< /alert >}}
90
90
91
91
### Additional Configuration
92
92
93
-
*`DD_BLOCK_SIZE`: Block size for dd operations (default: 64kB). Can be set in `/var/lib/one/remotes/etc/datastore/fs/fs.conf`.
94
-
*`SUPPORTED_FS`: Comma-separated list of every filesystem supported for creating formatted datablocks. Can be set in `/var/lib/one/remotes/etc/datastore/datastore.conf`.
95
-
*`FS_OPTS_<FS>`: Options for creating the filesystem for formatted datablocks. Can be set in `/var/lib/one/remotes/etc/datastore/datastore.conf` for each filesystem type.
96
-
*`SPARSE`: If set to `NO` the images and disks in the image and system Datastore, respectively, will not be sparsed (i.e. the files will use all assigned space on the Datastore filesystem).
93
+
-`DD_BLOCK_SIZE`: Block size for dd operations (default: 64kB). Configured in `/var/lib/one/remotes/etc/datastore/fs/fs.conf`.
94
+
-`SUPPORTED_FS`: Comma-separated list of every filesystem supported for creating formatted datablocks. Configured in `/var/lib/one/remotes/etc/datastore/datastore.conf`.
95
+
-`FS_OPTS_<FS>`: Options for creating the filesystem for formatted datablocks. Configured in `/var/lib/one/remotes/etc/datastore/datastore.conf` for each filesystem type.
96
+
-`SPARSE`: When the value is `NO`, the images and disks in the image and System Datastore, respectively, will not be sparsed (i.e. the files will use all assigned space on the Datastore filesystem).
97
97
98
98
{{< alert title="Warning" color="warning" >}}
99
99
Before adding a new filesystem to the `SUPPORTED_FS` list make sure that the corresponding `mkfs.<fs_name>` command is available in the Front-end and hypervisor Hosts. If an unsupported FS is used by the user the default one will be used.{{< /alert >}}
100
100
101
101
{{< alert title="Note" color="success" >}}
102
-
When using a Local Storage Datastore the `QCOW2_OPTIONS` attribute is ignored since the cloning script uses the `tar` command instead of `qemu-img`.{{< /alert >}}
102
+
When using a Local Storage Datastore, the `QCOW2_OPTIONS` attribute is ignored because the cloning script uses the `tar` command instead of `qemu-img`.{{< /alert >}}
103
103
104
104
## Datastore Drivers
105
105
@@ -152,15 +152,14 @@ The distributed cache maintains VM disk images in two levels:
152
152
153
153
2.**Central (Upstream) Cache**: One or more “central” cache nodes (typically the hosts with the most resources) maintain a larger pool of images shared by the entire cluster.
154
154
155
-
When a VM is instantiated, the Host first checks its *local cache* for the needed image. If missing, it then checks the *central cache*. Only if the image is not found in either cache does the Host request it from the Image Datastore on the Front-end. Once retrieved from the Front-end, the image is stored in both caches for future reuse.
155
+
When a VM is instantiated, the Host first checks its _local cache_ for the needed image. If missing, it then checks the _central cache_. Only if the image is not found in either cache does the Host request it from the Image Datastore on the Front-end. Once retrieved from the Front-end, the image is stored in both caches for future reuse.
156
156
157
157

158
158
159
159
## How to Enable and Configure the Cache
160
160
161
161
The Cache is configured per **Image Datastore**. In other words, each Image Datastore in OpenNebula that uses the local TM driver defines its own cache settings. The cache settings are described in the next table:
|`CACHE_ENABLE`| Set to `yes` to enable the distributed cache for this Image Datastore, or `no` to disable it. |`NO`|
@@ -169,7 +168,6 @@ The Cache is configured per **Image Datastore**. In other words, each Image Data
169
168
|`CACHE_UPSTREAMS`| Comma-separated list of one or more “central” cache hostnames or IPs (e.g., `'hostname0,hostname1'`). Leave empty (`''`) to disable central caches. |`''` (no upstreams) |
170
169
|`CACHE_MIN_AGE`| Minimum age in seconds before a cached image can be evicted. For example, "3600" means that any image used within the last hour cannot be removed from cache. |`900`|
171
170
172
-
173
171
For example, to configure a Distributed Cache update the image datastore template with the following parameters:
For the distributed cache to work, the `oneadmin` user (see [Node installation]({{% relref "../../../product/operation_references/hypervisor_configuration" %}})) must have SSH passwordless authentication configured on all Hosts.{{< /alert >}}
0 commit comments