Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
82f922b6
Commit
82f922b6
authored
Jun 09, 2015
by
krousey
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #9378 from justinsb/aws_no_thin_on_wheezy
AWS: Disable thin LVM provisioning on wheezy
parents
ff474e5d
f6440247
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
format-disks.sh
cluster/aws/templates/format-disks.sh
+11
-4
No files found.
cluster/aws/templates/format-disks.sh
View file @
82f922b6
...
@@ -119,10 +119,17 @@ else
...
@@ -119,10 +119,17 @@ else
# Create a docker lv, use docker on it
# Create a docker lv, use docker on it
# 95% goes to the docker thin-pool
# 95% goes to the docker thin-pool
lvcreate
-l
95%VG
--thinpool
docker-thinpool vg-ephemeral
release
=
`
lsb_release
-c
-s
`
if
[[
"
${
release
}
"
!=
"wheezy"
]]
;
then
THINPOOL_SIZE
=
$(
lvs vg-ephemeral/docker-thinpool
-o
LV_SIZE
--noheadings
--units
M
--nosuffix
)
lvcreate
-l
95%VG
--thinpool
docker-thinpool vg-ephemeral
lvcreate
-V
${
THINPOOL_SIZE
}
M
-T
vg-ephemeral/docker-thinpool
-n
docker
THINPOOL_SIZE
=
$(
lvs vg-ephemeral/docker-thinpool
-o
LV_SIZE
--noheadings
--units
M
--nosuffix
)
lvcreate
-V
${
THINPOOL_SIZE
}
M
-T
vg-ephemeral/docker-thinpool
-n
docker
else
# Thin provisioning not supported by Wheezy
echo
"Detected wheezy; won't use LVM thin provisioning"
lvcreate
-l
95%VG
-n
docker vg-ephemeral
fi
mkfs
-t
ext4 /dev/vg-ephemeral/docker
mkfs
-t
ext4 /dev/vg-ephemeral/docker
mkdir
-p
/mnt/docker
mkdir
-p
/mnt/docker
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment