forked from cloudfoundry/docs-bosh
-
Notifications
You must be signed in to change notification settings - Fork 0
/
aws-instance-storage.html.md.erb
34 lines (26 loc) · 1.53 KB
/
aws-instance-storage.html.md.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
---
title: Using Instance Storage
---
<p class="note">Note: This feature is available with bosh-aws-cpi v32+ and only for releases deployed with ? stemcells.</p>
Certain [instance types](https://aws.amazon.com/ec2/instance-types/) have access to instance storage. All BOSH managed VMs have to store some ephemeral data such as release jobs, packages, logs and other scratch data. First instance storage disk is used if possible; otherwise, a separate EBS volume is created as an ephemeral disk.
Applications may need access to all instance storage disks. In that case separate EBS volume will always be created to store ephemeral data. To enable access to all instance storage disks add `raw_instance_storage: true`:
```yaml
resource_pools:
- name: default
network: default
stemcell:
name: bosh-aws-xen-hvm-ubuntu-trusty-go_agent
version: latest
cloud_properties:
instance_type: d2.2xlarge
raw_instance_storage: true
```
With multiple disks attached, the Agent partitions and labels instance storage disks with label `raw-ephemeral-*` so that release jobs can easily find and use them:
<pre class="terminal">
bosh_caxspafr6@09f1a2db-f322-487c-bd03-63bf0d367f3d:~$ ls -la /dev/disk/by-partlabel/raw-ephemeral-*
lrwxrwxrwx 1 root root 12 Oct 5 03:09 /dev/disk/by-partlabel/raw-ephemeral-0 -> ../../xvdba1
lrwxrwxrwx 1 root root 12 Oct 5 03:09 /dev/disk/by-partlabel/raw-ephemeral-1 -> ../../xvdbb1
</pre>
---
[Back to Table of Contents](index.html#cpi-config)
Previous: [Using IAM instance profiles](aws-iam-instance-profiles.html)