You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+29Lines changed: 29 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -170,6 +170,35 @@ Other measures
170
170
171
171
</details>
172
172
173
+
### Resize Drives / File Systems
174
+
175
+
Enlarging drives and their partitions seems to work well, even for the root partition of a running system (Debian).
176
+
177
+
- Take a snapshot of the EBS Volume, wait for it to be completed
178
+
- Use "Modify volume" and increase the size
179
+
- Increase the partition and file system sizes ([details here](https://docs.aws.amazon.com/ebs/latest/userguide/recognize-expanded-volume-linux.html))
180
+
-`sudo growpart /dev/nvme0n1 1` (if there are partitions)
181
+
-`sudo resize2fs /dev/nvme0n1p1`
182
+
183
+
### Recreate Drive
184
+
185
+
To recreate a drive / file system (to shrink it, or to move to a different file system), create a new EBS volume, mount it and copy the data over using `rsync`.
186
+
- new EBS volume, gp3, 400g, default iops/throughput. us-west-1c.
187
+
- attach to instance as `/dev/xvdN`
188
+
-`lsblk`
189
+
-`mkfs -t ext4 -N 50000000 /dev/xvdN` (`-N` to specify the [number of inodes](https://github.com/scala/community-build/issues/1633); `df -hi` to display)
0 commit comments