Skip to content

Commit

Permalink
Increase disk image to 512GB, Increase LVM Volumes (#215)
Browse files Browse the repository at this point in the history
Also fixed a bug with the regex to remove the bento MOTD.
  • Loading branch information
svpernova09 authored Jan 6, 2020
1 parent 160aa75 commit 8cf7820
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions bin/link-to-bento.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
sed -i '' 's/scripts\/cleanup.sh/scripts\/homestead.sh/' ../bento/packer_templates/ubuntu/ubuntu-18.04-amd64.json
sed -i '' 's/"cpus": "1"/"cpus": "2"/' ../bento/packer_templates/ubuntu/ubuntu-18.04-amd64.json
sed -i '' 's/"memory": "1024"/"memory": "2048"/' ../bento/packer_templates/ubuntu/ubuntu-18.04-amd64.json
sed -i '' 's/"disk_size": "65536"/"disk_size": "131072"/' ../bento/packer_templates/ubuntu/ubuntu-18.04-amd64.json
sed -i '' 's/"..\/_common\/motd.sh",//' ../bento/packer_templates/ubuntu/ubuntu-18.04-amd64.json
sed -i '' 's/"disk_size": "65536"/"disk_size": "524288"/' ../bento/packer_templates/ubuntu/ubuntu-18.04-amd64.json
sed -i '' '/\/_common\/motd.sh/d' ../bento/packer_templates/ubuntu/ubuntu-18.04-amd64.json
2 changes: 1 addition & 1 deletion http/preseed.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ d-i mirror/http/directory string /ubuntu/
d-i mirror/http/hostname string archive.ubuntu.com
d-i mirror/http/proxy string
d-i partman-auto-lvm/new_vg_name string homestead-vg
d-i partman-auto-lvm/guided_size string 20GB
d-i partman-auto-lvm/guided_size string 60GB
d-i partman-auto/choose_recipe select atomic
d-i partman-auto/method string lvm
d-i partman-lvm/confirm boolean true
Expand Down
4 changes: 2 additions & 2 deletions scripts/provision.sh
Original file line number Diff line number Diff line change
Expand Up @@ -382,11 +382,11 @@ ln -s /opt/lmm/lmm /usr/local/sbin/lmm
# size leaving ~5GB free for other volumes.
mkdir -p /homestead-vg/master
sudo lvs
lvcreate -L 40G -T homestead-vg/thinpool
lvcreate -L 64G -T homestead-vg/thinpool

# Create a 10GB volume for the database. If needed, it can be expanded with
# lvextend.
lvcreate -V10G -T homestead-vg/thinpool -n mysql-master
lvcreate -V64G -T homestead-vg/thinpool -n mysql-master
mkfs.ext4 /dev/homestead-vg/mysql-master
echo "/dev/homestead-vg/mysql-master\t/homestead-vg/master\text4\terrors=remount-ro\t0\t1" >> /etc/fstab
mount -a
Expand Down

0 comments on commit 8cf7820

Please sign in to comment.