Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add doc section on volume expansion #262

Merged
merged 1 commit into from
Oct 5, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1754,6 +1754,35 @@
User defined values take precedence over boot generated values in the Magic Castle
Puppet data hierarchy.

### 10.15 Expand a volume

Volumes defined in the `volumes` map can be expanded at will. After their creation, you can
increase their size in the `main.tf` then call `terraform apply` and the associated block
device will be expanded.

To benefit from the new storage, the following commands need to be ran as root
on the instance to which the expanded volume is attached.
1. Identify the physical volume path
```
pvscan
```
2. Expand the physical volume
``` 
pvresize /dev/vdxyz # replace vdxyz by the volume identify at step 1
```
3. Identify the volume group path
``` 
lvdisplay
```
4. Expand the volume group using step volume group path identified
```
lvextend -l '+100%FREE' -r /dev/project_vg/project
```
5. Resize the XFS fileystem:

Check failure on line 1781 in docs/README.md

View workflow job for this annotation

GitHub Actions / codespell

fileystem ==> filesystem
```
xfs_growfs /dev/project_vg/project
```

## 11. Customize Magic Castle Terraform Files

You can modify the Terraform module files in the folder named after your cloud
Expand Down
Loading