Hosting tasks¶
Rescale a server¶
Linode makes it easy to scale/resize a server (number of cores and GiB of RAM).
You must re-deploy the server to re-configure states that depend on total memory (grains.mem_total
), like swap, Elasticsearch and PostgreSQL.
Rescale reserved space¶
When adding a new disk or increasing an existing disk over 100 GB, set reserved space to 1% (from 5%) if it is a root partition, and 0% otherwise. For example, to reduce /dev/md2
, as root:
tune2fs -m 1 /dev/md2
If reducing an existing disk below 100 GB, restore reserved space to 5%. For example:
tune2fs -m 5 /dev/md2
Manager cloud services¶
Azure¶
Configure Azure portal¶
Open the Directories + subscriptions settings
Set Default subscription filter to “All subscriptions”
Configure Azure CLI¶
Install the Azure CLI
Log in to Azure:
az login
Set the default subscription:
az account set --subscription 4e98b5b1-1619-44be-a38e-90cdb8e4bc95
Set the default resource group:
az configure --defaults group=default
See also
Recover a server¶
If a server becomes inaccessible, including via SSH, log into the hosting provider and:
Reboot the server. This often restores access, as unsaved changes to firewall rules are reset, system resources are freed, and running processes are restarted.
Use a recovery system to restore access if the server remains inaccessible.
Lish (Linode Shell) provides console access to our Linode instances, similar to connecting via SSH.
Select the server you want to access
Click the Launch LISH Console link
Login as
root
, using the password from OCP’s LastPass account
Hetzner Cloud offers two recovery methods.
Click the Default project
Select the server you want to access
Click the Actions button
Click the Console menu item
Click the Default project
Select the server you want to access
Activate the rescue system:
Click the Rescue tab
Click the Enable rescue & power cycle button
Set Choose a Rescue OS to linux64
Select your key for SSH key (if missing, add it via the project’s Security menu item)
Click the Enable rescue button
Connect to the server as the
root
user using SSH
Hetzner Dedicated offers two recovery methods.
The Hetzner Rescue System boots the server using a temporary recovery image, from which we can mount the server drives to fix issues.
Select the server you want to access
Activate the rescue system:
Click the Rescue tab
Set Operating system to Linux
Set Architecture to 64 bit
Select your key for Public key (if missing, add it in Key management)
Click the Activate rescue system button
Reboot the server:
Click the Reset tab
Set Reset type to Press power button of server or Send CTRL+ALT+DEL to the server
Click the Send button
It takes some time to process the instruction. If nothing happens after 5 minutes, try again using Execute an automatic hardware reset.
Connect to the server as the
root
user using SSHMount the drive(s):
mount /dev/md/2 /mnt
Optionally,
chroot
into the operating system:chroot-prepare /mnt chroot /mnt
Hetzner technicians attach a remote console (KVM Console) to a dedicated server. This option is slow to set up, but might be required if the issue is with the network, firewall or SSH configuration.
Click the Virtual machines icon
Select the server you want to access
Click the Connect menu item
Expand the More ways to connect detail
Click the Go to serial console button
Login as
ocpadmin
, using the password from OCP’s LastPass account
See also