restructure disk on hetzner01 #69

Closed
opened 2026-01-16 13:45:09 +00:00 by viceice · 2 comments
Owner

Currently all act caches for all runner are stored on root partition which can cause bad issues.

So we need to refactor:

  • stop all runners
  • destroy lxc containers
  • delete contents of /var/lib/forgejo-runner
  • backup /var/lib/lxc
  • create lvm on /dev/md4
  • create lv's for /var/lib/lxc and /var/lib/forgejo-runner with xfs
  • mount /var/lib/lxc and /var/lib/forgejo-runner to new lv's
  • restore /var/lib/lxc

Currently all act caches for all runner are stored on root partition which can cause bad issues. So we need to refactor: - [x] stop all runners - [x] destroy lxc containers - [x] delete contents of `/var/lib/forgejo-runner` - [ ] backup `/var/lib/lxc` - [x] create lvm on `/dev/md4` - [x] create lv's for `/var/lib/lxc` and `/var/lib/forgejo-runner` with xfs - [x] mount `/var/lib/lxc` and `/var/lib/forgejo-runner` to new lv's - [ ] restore `/var/lib/lxc` --- - https://codeberg.org/forgejo/discussions/issues/436
viceice added the due date 2026-01-19 2026-01-16 13:45:50 +00:00
viceice self-assigned this 2026-01-19 08:44:50 +00:00
Author
Owner

there was nothing to backup

df -h
Filesystem                        Size  Used Avail Use% Mounted on
udev                               32G     0   32G   0% /dev
tmpfs                             6.3G  1.3M  6.3G   1% /run
/dev/md3                          491G   26G  441G   6% /
tmpfs                              32G     0   32G   0% /dev/shm
tmpfs                             5.0M     0  5.0M   0% /run/lock
/dev/md2                          989M  124M  815M  14% /boot
/dev/mapper/data-lxc              1.0T   49G  975G   5% /var/lib/lxc
/dev/mapper/data-forgejo--runner  1.0T  7.2G 1017G   1% /var/lib/forgejo-runner
/dev/md0                          256M  160K  256M   1% /boot/efi
tmpfs                             6.3G     0  6.3G   0% /run/user/1000
there was nothing to backup ```sh df -h Filesystem Size Used Avail Use% Mounted on udev 32G 0 32G 0% /dev tmpfs 6.3G 1.3M 6.3G 1% /run /dev/md3 491G 26G 441G 6% / tmpfs 32G 0 32G 0% /dev/shm tmpfs 5.0M 0 5.0M 0% /run/lock /dev/md2 989M 124M 815M 14% /boot /dev/mapper/data-lxc 1.0T 49G 975G 5% /var/lib/lxc /dev/mapper/data-forgejo--runner 1.0T 7.2G 1017G 1% /var/lib/forgejo-runner /dev/md0 256M 160K 256M 1% /boot/efi tmpfs 6.3G 0 6.3G 0% /run/user/1000 ```
Author
Owner

the new lv's are using xfs with noatime for perf

debian@hetzner01:~$ cat /etc/fstab
proc /proc proc defaults 0 0
# /dev/md/0
UUID=7DD6-A3F8 /boot/efi vfat umask=0077 0 1
# /dev/md/1
UUID=e665675f-ff3a-4445-8120-aa5fbd8b3910 none swap sw 0 0
# /dev/md/2
UUID=3444f8af-903d-428e-8fb6-3c6de6fca683 /boot ext3 defaults 0 0
# /dev/md/3
UUID=fd909ce2-5c22-46af-97d5-457b05d779b9 / ext4 defaults 0 0
# /dev/md/4
#UUID=8fa675d1-ec91-4cd9-84ab-9602bb764844 /var/lib/lxc ext4 defaults 0 0

UUID="6344391a-3be4-4c44-917a-7786e833e7bd" /var/lib/lxc xfs defaults,noatime 0 0
UUID="ac5390a2-a53d-4597-8996-7976fb8cfafc" /var/lib/forgejo-runner xfs defaults,noatime 0 0
the new lv's are using xfs with `noatime` for perf ```sh debian@hetzner01:~$ cat /etc/fstab proc /proc proc defaults 0 0 # /dev/md/0 UUID=7DD6-A3F8 /boot/efi vfat umask=0077 0 1 # /dev/md/1 UUID=e665675f-ff3a-4445-8120-aa5fbd8b3910 none swap sw 0 0 # /dev/md/2 UUID=3444f8af-903d-428e-8fb6-3c6de6fca683 /boot ext3 defaults 0 0 # /dev/md/3 UUID=fd909ce2-5c22-46af-97d5-457b05d779b9 / ext4 defaults 0 0 # /dev/md/4 #UUID=8fa675d1-ec91-4cd9-84ab-9602bb764844 /var/lib/lxc ext4 defaults 0 0 UUID="6344391a-3be4-4c44-917a-7786e833e7bd" /var/lib/lxc xfs defaults,noatime 0 0 UUID="ac5390a2-a53d-4597-8996-7976fb8cfafc" /var/lib/forgejo-runner xfs defaults,noatime 0 0 ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

2026-01-19

Reference
infrastructure/documentation#69
No description provided.