Skip to content

Commit 33643ba

Browse files
authored
Merge pull request #906 from jrdnbradford/google-troubleshooting-updates
Google Cloud troubleshooting and configuration updates
2 parents d5f688e + 6a7cbc8 commit 33643ba

File tree

7 files changed

+94
-0
lines changed

7 files changed

+94
-0
lines changed

docs/howto/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,5 @@ admin/systemd
6565
6666
providers/digitalocean
6767
providers/azure
68+
providers/google
6869
```

docs/howto/providers/google.md

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
(howto-providers-google)=
2+
3+
# Perform common Google Cloud configuration tasks
4+
5+
This page lists various common tasks you can perform on your
6+
Google Cloud virtual machine.
7+
8+
(howto-providers-google-resize-disk)=
9+
10+
## Increasing your boot disk size
11+
12+
Boot disks contain the operating system and boot loader for your TLJH instance. If you followed
13+
the [Google Cloud TLJH installation instructions](#install-google) then you created a virtual machine
14+
with one disk: a boot disk that will _also_ be used to hold user data in your hub. For various reasons
15+
you may need to change your boot disk size.
16+
17+
Google Cloud Compute Engine supports _increasing_ (but not _decreasing_) the size of existing disks.
18+
If you selected a boot disk with a supported version of **Ubuntu** or **Debian** as the operating
19+
system, then your boot disk can be resized easily from the console with these steps.
20+
21+
:::{note}
22+
Google Cloud resizes the root partition and file system for _boot_ disks with _public_ images
23+
(such as the TLJH supported **Ubuntu** and **Debian** images) automatically after your increase
24+
the size of your disk. If you have any other _non-boot_ disks attached to your instance, you
25+
will need to perform extra steps yourself after resizing your disk. For more information on
26+
this and other aspects of resizing persistent disks, see
27+
[Google's documentation](https://cloud.google.com/compute/docs/disks/resize-persistent-disk).
28+
:::
29+
30+
1. Go to [Google Cloud Console -> Compute Engine -> VM instances](https://console.cloud.google.com/compute/instances) and select your TLJH instance.
31+
32+
1. Scroll down until you find your boot disk and select it.
33+
34+
```{image} ../../images/providers/google/boot-disk-resize.png
35+
:alt: Boot disk with Ubuntu jammy image
36+
```
37+
38+
1. Select **Edit** in the top menu. This may require selecting the kebab menu (the 3 vertical dots).
39+
40+
```{image} ../../images/providers/google/boot-disk-edit-button.png
41+
:alt: Disk edit button
42+
```
43+
44+
1. Update the **Size** property and save the changes at the bottom of the page.
45+
46+
```{image} ../../images/providers/google/boot-disk-resize-properties.png
47+
:alt: Boot disk size property
48+
```
49+
50+
1. Reboot the VM instance by logging into your TLJH, opening the terminal, and running `sudo reboot`.
51+
You will lose your connection to the instance while it restarts. Once it comes back up, your disk
52+
will reflect your changes. You can verify that the automatic resize of your root partition and
53+
file system took place by running `df -h` in the terminal, which will show the size of the disk
54+
mounted on `/`:
55+
```bash
56+
$ df -h
57+
Filesystem Size Used Avail Use% Mounted on
58+
/dev/root 25G 6.9G 18G 28% /
59+
tmpfs 2.0G 0 2.0G 0% /dev/shm
60+
tmpfs 785M 956K 784M 1% /run
61+
tmpfs 5.0M 0 5.0M 0% /run/lock
62+
/dev/sda15 105M 6.1M 99M 6% /boot/efi
63+
```
18.1 KB
Loading
18.1 KB
Loading
14.9 KB
Loading
32.5 KB
Loading

docs/troubleshooting/providers/google.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,23 @@
33
This is an incomplete list of issues people have run into when running
44
TLJH on Google Cloud, and how they have fixed them!
55

6+
## Viewing VM instance logs
7+
8+
In addition to [installer, JupyterHub, traefik, and other logs](#troubleshooting-logs)
9+
you can view VM instance logs on Google Cloud to help diagnose issues. These logs will contain
10+
detailed information and error stack traces and can be viewed from
11+
[Google Cloud Console -> Compute Engine -> VM instances](https://console.cloud.google.com/compute/instances).
12+
Once you select your TLJH instance, select **Serial port 1 (console)**:
13+
14+
```{image} ../../images/providers/google/serial-port-console.png
15+
:alt: Serial port 1 (console) under Logs heading
16+
```
17+
18+
:::{tip}
19+
The console will show the logs of any startup scripts you configured for your instance,
20+
making it easy to see if it has completed and/or encountered any errors.
21+
:::
22+
623
## 'Connection Refused' error after restarting server
724

825
If you restarted your server from the Google Cloud console & then try to access
@@ -15,3 +32,16 @@ IP address, you might have to change it to point to the new correct IP.
1532

1633
You can prevent External IP changes by [reserving the static IP](https://cloud.google.com/compute/docs/ip-addresses/reserve-static-external-ip-address#promote_ephemeral_ip)
1734
your server is using.
35+
36+
## Issues caused by lack of disk space
37+
38+
If your boot disk becomes full, this can cause your instance to become unavailable,
39+
among other problems. If your instance appears up and running in the console but
40+
you cannot access it at your configured external IP/domain name, this could be caused
41+
by a lack of disk space.
42+
43+
You can explore your [VM logs in the console](#viewing-vm-instance-logs) to determine
44+
if any issues you are experiencing indicate disk space issues.
45+
46+
To resolve these types of issues, you can
47+
[increase your boot disk size](#howto-providers-google-resize-disk).

0 commit comments

Comments
 (0)