INT 21h

Hi, I am Vladimir Smagin, SysAdmin and Kaptain. Telegram Email / GIT / RSS / GPG

Remove automatically created raid partition for /home in Hetzner

№ 11312 В разделе "Sysadmin" от August 14th, 2021,
В подшивках: ,

For example, you got real server in Hetzner.

Automatical installer made own partitioning and you mad about this:

root@k8s ~ # df -h
Filesystem      Size  Used Avail Use% Mounted on
tmpfs            13G  1,9M   13G   1% /run
tmpfs            63G     0   63G   0% /dev/shm
tmpfs           5,0M     0  5,0M   0% /run/lock
tmpfs           4,0M     0  4,0M   0% /sys/fs/cgroup
/dev/md3        1,5T   77M  1,5T   1% /home
/dev/md2        2,0T  8,5G  1,9T   1% /
/dev/md1        487M  312M  150M  68% /boot
tmpfs            13G  4,0K   13G   1% /run/user/0

WTF?! 1.5Tb for /home?! Lets remove md3 and extend root partition.
(more…)

Нет комментариев »

Hetzner DNS golang library

№ 10996 В разделе "Programming" от May 6th, 2020,
В подшивках: ,

I made this library to interact with Hetzner DNS API in most easy way. Hopefully in future it will be used for Hetzner external-dns provider. Check out example directory and API_help.md.

Get your own token on Hetzner DNS and place it to token variable and run code

token := "jcB2UywP9XtZGhvhSHpH5m"
zone := "vhSHpH5mjcB2UywP9XtZGh"

log.Println("Create new instance")
hdns := hclouddns.New(token)

log.Println("Get zone", zone)

allRecords, err := hdns.GetRecords(zone)
if err != nil {
	log.Fatalln(err)
}

log.Println(allRecords.Records)
log.Println(allRecords.Error)

Нет комментариев »

Сага о проёбаном LVM на Hetzner

№ 9478. В разделе " Sysadmin " от October 27th, 2018

В подшивках: , ,

Terraform for Hetzner Cloud: 2 balancers, 2 floating IPs, 4 nodes and SSH key

№ 9426 В разделе "Sysadmin" от September 19th, 2018,
В подшивках: ,

How to run:

  • In Hetzner control panel create token in Access tab
  • Download my repo and install terraform (suddenly it required to execute terraform files)
  • Configure tf files as you need, put your token into project.tf file
  • Run terraform init and terraform apply after it

DO NOT FORGET TO MAKE YOUR OWN SSH MASTER KEY! DO NOT USE GENERATED FOR THIS EXAMPLE!

You can download it here https://git.blindage.org/21h/terraform-samples

Нет комментариев »

Яндекс.Метрика

Fortune cookie: Today's spam: Girls prefer real things, not toothpicks.