Skip to content

Commit b68cc33

Browse files
Radhika PCsebgoa
authored andcommitted
CLOUDSTACK-3300: Adding patches from cloudstack-1313
1 parent 0304034 commit b68cc33

8 files changed

Lines changed: 291 additions & 135 deletions

‎docs/en-US/attaching-volume.xml‎

Lines changed: 37 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -21,24 +21,41 @@
2121
specific language governing permissions and limitations
2222
under the License.
2323
-->
24-
2524
<section id="attaching-volume">
26-
<title>Attaching a Volume</title>
27-
<para>You can attach a volume to a guest VM to provide extra disk storage. Attach a volume when you first create a new volume, when you are moving an existing volume from one VM to another, or after you have migrated a volume from one storage pool to another.</para>
28-
<orderedlist>
29-
<listitem><para>Log in to the &PRODUCT; UI as a user or admin.</para></listitem>
30-
<listitem><para>In the left navigation, click Storage.</para></listitem>
31-
<listitem><para>In Select View, choose Volumes.</para></listitem>
32-
<listitem><para>4. Click the volume name in the Volumes list, then click the Attach Disk button<inlinemediaobject>
33-
<imageobject>
34-
<imagedata fileref="./images/attach-disk-icon.png" />
35-
</imageobject>
36-
<textobject><phrase>AttachDiskButton.png: button to attach a volume</phrase></textobject>
37-
</inlinemediaobject>
38-
</para></listitem>
39-
<listitem><para>In the Instance popup, choose the VM to which you want to attach the volume. You will only see instances to which you are allowed to attach volumes; for example, a user will see only instances created by that user, but the administrator will have more choices.</para>
40-
<!-- <para>If the VM is running in the OVM hypervisor, the VM must be stopped before a new volume can be attached to it.</para> -->
41-
</listitem>
42-
<listitem><para>When the volume has been attached, you should be able to see it by clicking Instances, the instance name, and View Volumes.</para></listitem>
43-
</orderedlist>
44-
</section>
25+
<title>Attaching a Volume</title>
26+
<para>You can attach a volume to a guest VM to provide extra disk storage. Attach a volume when
27+
you first create a new volume, when you are moving an existing volume from one VM to another, or
28+
after you have migrated a volume from one storage pool to another.</para>
29+
<orderedlist>
30+
<listitem>
31+
<para>Log in to the &PRODUCT; UI as a user or admin.</para>
32+
</listitem>
33+
<listitem>
34+
<para>In the left navigation, click Storage.</para>
35+
</listitem>
36+
<listitem>
37+
<para>In Select View, choose Volumes.</para>
38+
</listitem>
39+
<listitem>
40+
<para>4. Click the volume name in the Volumes list, then click the Attach Disk button<inlinemediaobject>
41+
<imageobject>
42+
<imagedata fileref="./images/attach-disk-icon.png"/>
43+
</imageobject>
44+
<textobject>
45+
<phrase>AttachDiskButton.png: button to attach a volume</phrase>
46+
</textobject>
47+
</inlinemediaobject>
48+
</para>
49+
</listitem>
50+
<listitem>
51+
<para>In the Instance popup, choose the VM to which you want to attach the volume. You will
52+
only see instances to which you are allowed to attach volumes; for example, a user will see
53+
only instances created by that user, but the administrator will have more choices.</para>
54+
<!-- <para>If the VM is running in the OVM hypervisor, the VM must be stopped before a new volume can be attached to it.</para> -->
55+
</listitem>
56+
<listitem>
57+
<para>When the volume has been attached, you should be able to see it by clicking Instances,
58+
the instance name, and View Volumes.</para>
59+
</listitem>
60+
</orderedlist>
61+
</section>

‎docs/en-US/creating-new-volumes.xml‎

Lines changed: 60 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -20,44 +20,65 @@
2020
KIND, either express or implied. See the License for the
2121
specific language governing permissions and limitations
2222
under the License.
23-
-->
23+
-->
2424
<section id="creating-new-volumes">
25-
<title>Creating a New Volume</title>
26-
<para>You can add more data disk volumes to a guest VM at any time, up to the limits of your storage capacity. Both &PRODUCT; administrators and users can add volumes to VM instances. When you create a new volume, it is stored as an entity in &PRODUCT;, but the actual storage resources are not allocated on the physical storage device until you attach the volume. This optimization allows the &PRODUCT; to provision the volume nearest to the guest that will use it when the first attachment is made.</para>
27-
<section id="local-storage-data-volumes">
28-
<title>Using Local Storage for Data Volumes</title>
29-
<para>You can create data volumes on local storage (supported with XenServer, KVM, and VMware).
30-
The data volume is placed on the same
31-
host as the VM instance that is attached to the data volume. These
32-
local data volumes can be attached to virtual machines, detached, re-attached,
33-
and deleted just as with the other types of data volume.</para>
34-
<para>Local storage is ideal for scenarios where persistence of data volumes and HA
35-
is not required. Some of the benefits include reduced disk I/O latency and cost
36-
reduction from using inexpensive local disks.</para>
37-
<para>In order for local volumes to be used, the feature must be enabled for the
38-
zone.</para>
39-
<para>You can create a data disk offering for local storage. When a user creates a
40-
new VM, they can select this disk offering in order to cause the data disk
41-
volume to be placed in local storage.</para>
42-
<para>You can not migrate a VM that has a volume in local storage to a different
43-
host, nor migrate the volume itself away to a different host. If you want to put
44-
a host into maintenance mode, you must first stop any VMs with local data
45-
volumes on that host.</para>
46-
</section>
47-
<section id="creating-new-volume-steps">
48-
<title>To Create a New Volume</title>
49-
<orderedlist>
50-
<listitem><para>Log in to the &PRODUCT; UI as a user or admin.</para></listitem>
51-
<listitem><para>In the left navigation bar, click Storage.</para></listitem>
52-
<listitem><para>In Select View, choose Volumes.</para></listitem>
53-
<listitem><para>To create a new volume, click Add Volume, provide the following details, and click OK.</para>
54-
<itemizedlist>
55-
<listitem><para>Name. Give the volume a unique name so you can find it later.</para></listitem>
56-
<listitem><para>Availability Zone. Where do you want the storage to reside? This should be close to the VM that will use the volume.</para></listitem>
57-
<listitem><para>Disk Offering. Choose the characteristics of the storage.</para></listitem>
58-
</itemizedlist>
59-
<para>The new volume appears in the list of volumes with the state “Allocated.” The volume data is stored in &PRODUCT;, but the volume is not yet ready for use</para></listitem>
60-
<listitem><para>To start using the volume, continue to Attaching a Volume </para></listitem>
61-
</orderedlist>
62-
</section>
25+
<title>Creating a New Volume</title>
26+
<para>You can add more data disk volumes to a guest VM at any time, up to the limits of your
27+
storage capacity. Both &PRODUCT; administrators and users can add volumes to VM instances. When
28+
you create a new volume, it is stored as an entity in &PRODUCT;, but the actual storage
29+
resources are not allocated on the physical storage device until you attach the volume. This
30+
optimization allows the &PRODUCT; to provision the volume nearest to the guest that will use it
31+
when the first attachment is made.</para>
32+
<section id="local-storage-data-volumes">
33+
<title>Using Local Storage for Data Volumes</title>
34+
<para>You can create data volumes on local storage (supported with XenServer, KVM, and VMware).
35+
The data volume is placed on the same host as the VM instance that is attached to the data
36+
volume. These local data volumes can be attached to virtual machines, detached, re-attached,
37+
and deleted just as with the other types of data volume.</para>
38+
<para>Local storage is ideal for scenarios where persistence of data volumes and HA is not
39+
required. Some of the benefits include reduced disk I/O latency and cost reduction from using
40+
inexpensive local disks.</para>
41+
<para>In order for local volumes to be used, the feature must be enabled for the zone.</para>
42+
<para>You can create a data disk offering for local storage. When a user creates a new VM, they
43+
can select this disk offering in order to cause the data disk volume to be placed in local
44+
storage.</para>
45+
<para>You can not migrate a VM that has a volume in local storage to a different host, nor
46+
migrate the volume itself away to a different host. If you want to put a host into maintenance
47+
mode, you must first stop any VMs with local data volumes on that host.</para>
48+
</section>
49+
<section id="creating-new-volume-steps">
50+
<title>To Create a New Volume</title>
51+
<orderedlist>
52+
<listitem>
53+
<para>Log in to the &PRODUCT; UI as a user or admin.</para>
54+
</listitem>
55+
<listitem>
56+
<para>In the left navigation bar, click Storage.</para>
57+
</listitem>
58+
<listitem>
59+
<para>In Select View, choose Volumes.</para>
60+
</listitem>
61+
<listitem>
62+
<para>To create a new volume, click Add Volume, provide the following details, and click
63+
OK.</para>
64+
<itemizedlist>
65+
<listitem>
66+
<para>Name. Give the volume a unique name so you can find it later.</para>
67+
</listitem>
68+
<listitem>
69+
<para>Availability Zone. Where do you want the storage to reside? This should be close
70+
to the VM that will use the volume.</para>
71+
</listitem>
72+
<listitem>
73+
<para>Disk Offering. Choose the characteristics of the storage.</para>
74+
</listitem>
75+
</itemizedlist>
76+
<para>The new volume appears in the list of volumes with the state “Allocated.” The volume
77+
data is stored in &PRODUCT;, but the volume is not yet ready for use</para>
78+
</listitem>
79+
<listitem>
80+
<para>To start using the volume, continue to Attaching a Volume </para>
81+
</listitem>
82+
</orderedlist>
83+
</section>
6384
</section>

‎docs/en-US/detach-move-volumes.xml‎

Lines changed: 36 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -22,25 +22,39 @@
2222
under the License.
2323
-->
2424
<section id="detach-move-volumes">
25-
<title>Detaching and Moving Volumes</title>
26-
<note><para>This procedure is different from moving disk volumes from one storage pool to another. See VM Storage Migration </para></note>
27-
<para>A volume can be detached from a guest VM and attached to another guest. Both &PRODUCT; administrators and users can detach volumes from VMs and move them to other VMs.</para>
28-
<para>If the two VMs are in different clusters, and the volume is large, it may take several minutes for the volume to be moved to the new VM.</para>
29-
<!-- <para>If the destination VM is running in the OVM hypervisor, the VM must be stopped before a new volume can be attached to it.</para> -->
30-
<orderedlist>
31-
<listitem><para>Log in to the &PRODUCT; UI as a user or admin.</para></listitem>
32-
<listitem><para>In the left navigation bar, click Storage, and choose Volumes in Select View. Alternatively, if you know which VM the volume is attached to, you can click Instances, click the VM name, and click View Volumes.</para></listitem>
33-
<listitem><para>Click the name of the volume you want to detach, then click the Detach Disk button. <inlinemediaobject>
34-
<imageobject>
35-
<imagedata fileref="./images/detach-disk-icon.png"/>
36-
</imageobject>
37-
<textobject>
38-
<phrase>DetachDiskButton.png: button to detach a volume</phrase>
39-
</textobject>
40-
</inlinemediaobject>
41-
</para></listitem>
42-
<listitem><para>To move the volume to another VM, follow the steps in <xref linkend="attaching-volume"
43-
/>.</para></listitem>
44-
</orderedlist>
45-
</section>
46-
25+
<title>Detaching and Moving Volumes</title>
26+
<note>
27+
<para>This procedure is different from moving disk volumes from one storage pool to another. See
28+
VM Storage Migration </para>
29+
</note>
30+
<para>A volume can be detached from a guest VM and attached to another guest. Both &PRODUCT;
31+
administrators and users can detach volumes from VMs and move them to other VMs.</para>
32+
<para>If the two VMs are in different clusters, and the volume is large, it may take several
33+
minutes for the volume to be moved to the new VM.</para>
34+
<!-- <para>If the destination VM is running in the OVM hypervisor, the VM must be stopped before a new volume can be attached to it.</para> -->
35+
<orderedlist>
36+
<listitem>
37+
<para>Log in to the &PRODUCT; UI as a user or admin.</para>
38+
</listitem>
39+
<listitem>
40+
<para>In the left navigation bar, click Storage, and choose Volumes in Select View.
41+
Alternatively, if you know which VM the volume is attached to, you can click Instances,
42+
click the VM name, and click View Volumes.</para>
43+
</listitem>
44+
<listitem>
45+
<para>Click the name of the volume you want to detach, then click the Detach Disk button. <inlinemediaobject>
46+
<imageobject>
47+
<imagedata fileref="./images/detach-disk-icon.png"/>
48+
</imageobject>
49+
<textobject>
50+
<phrase>DetachDiskButton.png: button to detach a volume</phrase>
51+
</textobject>
52+
</inlinemediaobject>
53+
</para>
54+
</listitem>
55+
<listitem>
56+
<para>To move the volume to another VM, follow the steps in <xref linkend="attaching-volume"
57+
/>.</para>
58+
</listitem>
59+
</orderedlist>
60+
</section>

‎docs/en-US/storage.xml‎

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version='1.0' encoding='utf-8' ?>
2-
<!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
2+
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
33
<!ENTITY % BOOK_ENTITIES SYSTEM "cloudstack.ent">
44
%BOOK_ENTITIES;
55
]>
@@ -21,12 +21,11 @@
2121
specific language governing permissions and limitations
2222
under the License.
2323
-->
24-
2524
<chapter id="storage">
26-
<title>Working With Storage</title>
27-
<xi:include href="storage-overview.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
28-
<xi:include href="primary-storage.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
29-
<xi:include href="secondary-storage.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
30-
<xi:include href="working-with-volumes.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
31-
<xi:include href="working-with-snapshots.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
25+
<title>Working With Storage</title>
26+
<xi:include href="storage-overview.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
27+
<xi:include href="primary-storage.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
28+
<xi:include href="secondary-storage.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
29+
<xi:include href="working-with-volumes.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
30+
<xi:include href="working-with-snapshots.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
3231
</chapter>

‎docs/en-US/upload-existing-volume-to-vm.xml‎

Lines changed: 89 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
specific language governing permissions and limitations
2222
under the License.
2323
-->
24-
2524
<section id="upload-existing-volume-to-vm">
25+
<<<<<<< HEAD
2626
<title>Uploading an Existing Volume to a Virtual Machine</title>
2727
<para>Existing data can be made accessible to a virtual machine. This is called uploading a volume to the VM. For example, this is useful to upload data from a local file system and attach it to a VM. Root administrators, domain administrators, and end users can all upload existing volumes to VMs.</para>
2828
<para>The upload is performed using HTTP. The uploaded volume is placed in the zone's secondary storage</para>
@@ -73,4 +73,92 @@
7373
</listitem>
7474
<listitem><para>Wait until the status of the volume shows that the upload is complete. Click Instances - Volumes, find the name you specified in step <xref linkend="optional-hash"/>, and make sure the status is Uploaded.</para></listitem>
7575
</orderedlist>
76+
=======
77+
<title>Uploading an Existing Volume to a Virtual Machine</title>
78+
<para>Existing data can be made accessible to a virtual machine. This is called uploading a volume
79+
to the VM. For example, this is useful to upload data from a local file system and attach it to
80+
a VM. Root administrators, domain administrators, and end users can all upload existing volumes
81+
to VMs.</para>
82+
<para>The upload is performed using HTTP. The uploaded volume is placed in the zone's secondary
83+
storage</para>
84+
<para>You cannot upload a volume if the preconfigured volume limit has already been reached. The
85+
default limit for the cloud is set in the global configuration parameter max.account.volumes,
86+
but administrators can also set per-domain limits that are different from the global default.
87+
See Setting Usage Limits </para>
88+
<para>To upload a volume:</para>
89+
<orderedlist>
90+
<listitem>
91+
<para>(Optional) Create an MD5 hash (checksum) of the disk image file that you are going to
92+
upload. After uploading the data disk, &PRODUCT; will use this value to verify that no data
93+
corruption has occurred.</para>
94+
</listitem>
95+
<listitem>
96+
<para>Log in to the &PRODUCT; UI as an administrator or user</para>
97+
</listitem>
98+
<listitem>
99+
<para>In the left navigation bar, click Storage.</para>
100+
</listitem>
101+
<listitem>
102+
<para>Click Upload Volume.</para>
103+
</listitem>
104+
<listitem>
105+
<para>Provide the following:</para>
106+
<itemizedlist>
107+
<listitem>
108+
<para>Name and Description. Any desired name and a brief description that can be shown in
109+
the UI.</para>
110+
</listitem>
111+
<listitem>
112+
<para>Availability Zone. Choose the zone where you want to store the volume. VMs running
113+
on hosts in this zone can attach the volume.</para>
114+
</listitem>
115+
<listitem>
116+
<para>Format. Choose one of the following to indicate the disk image format of the
117+
volume.</para>
118+
<informaltable>
119+
<tgroup cols="2" align="left" colsep="1" rowsep="1">
120+
<thead>
121+
<row>
122+
<entry><para>Hypervisor</para></entry>
123+
<entry><para>Disk Image Format</para></entry>
124+
</row>
125+
</thead>
126+
<tbody>
127+
<row>
128+
<entry><para>XenServer</para></entry>
129+
<entry><para>VHD</para></entry>
130+
</row>
131+
<row>
132+
<entry><para>VMware</para></entry>
133+
<entry><para>OVA</para></entry>
134+
</row>
135+
<row>
136+
<entry><para>KVM</para></entry>
137+
<entry><para>QCOW2</para></entry>
138+
</row>
139+
<!-- <row>
140+
<entry><para>OVM</para></entry>
141+
<entry><para>RAW</para></entry>
142+
</row> -->
143+
</tbody>
144+
</tgroup>
145+
</informaltable>
146+
</listitem>
147+
<listitem>
148+
<para>URL. The secure HTTP or HTTPS URL that &PRODUCT; can use to access your disk. The
149+
type of file at the URL must match the value chosen in Format. For example, if Format is
150+
VHD, the URL might look like the following:</para>
151+
<para>http://yourFileServerIP/userdata/myDataDisk.vhd</para>
152+
</listitem>
153+
<listitem>
154+
<para>MD5 checksum. (Optional) Use the hash that you created in step 1.</para>
155+
</listitem>
156+
</itemizedlist>
157+
</listitem>
158+
<listitem>
159+
<para>Wait until the status of the volume shows that the upload is complete. Click Instances -
160+
Volumes, find the name you specified in step 5, and make sure the status is Uploaded.</para>
161+
</listitem>
162+
</orderedlist>
163+
>>>>>>> 9cb9f45... CLOUDSTACK-1313
76164
</section>

0 commit comments

Comments
 (0)