mirror of
https://github.com/fruworg/fruworg.github.io.git
synced 2025-01-18 03:40:51 +03:00
Compare commits
4 Commits
2b22134d1f
...
4c7d8fa703
Author | SHA1 | Date | |
---|---|---|---|
4c7d8fa703 | |||
59e403ff61 | |||
065c517ba4 | |||
fded74c558 |
29
content/posts/linux-disk-resize.md
Normal file
29
content/posts/linux-disk-resize.md
Normal file
@ -0,0 +1,29 @@
|
||||
---
|
||||
title: Ресайз диска
|
||||
description: ext4
|
||||
date: 2024-12-10T13:57:00+01:00
|
||||
tags: [linux]
|
||||
---
|
||||
## Расширение раздела
|
||||
|
||||
`<disk>` - sda \
|
||||
`<partition>` - 1
|
||||
|
||||
```shell
|
||||
growpart /dev/<disk> <partition>
|
||||
```
|
||||
|
||||
## Увеличение ФС
|
||||
|
||||
`<partition>` - sda1
|
||||
|
||||
```shell
|
||||
resize2fs /dev/<partition>
|
||||
```
|
||||
## Очистка логов
|
||||
|
||||
Если совсем нет места для выполнения команд
|
||||
|
||||
```shell
|
||||
journalctl --vacuum-time=1d
|
||||
```
|
40
content/posts/pve-update.md
Normal file
40
content/posts/pve-update.md
Normal file
@ -0,0 +1,40 @@
|
||||
---
|
||||
title: Обновление Proxmox 7 -> Proxmox 8
|
||||
description: И дошлифовка
|
||||
date: 2024-12-10T14:05:00+01:00
|
||||
tags: [linux]
|
||||
---
|
||||
|
||||
## Актуализация ОС
|
||||
|
||||
```shell
|
||||
apt -y update
|
||||
apt -y dist-upgrade
|
||||
```
|
||||
|
||||
## Проверка готовности обновления
|
||||
|
||||
```shell
|
||||
pve7to8 --full
|
||||
```
|
||||
|
||||
## Актуализация репозиториев
|
||||
|
||||
```shell
|
||||
sed -i 's/bullseye/bookworm/g' /etc/apt/sources.list
|
||||
sed -i 's/bullseye/bookworm/g' /etc/apt/sources.list.d/*.list
|
||||
```
|
||||
|
||||
## Обновление ОС и PVE
|
||||
|
||||
```shell
|
||||
apt -y update
|
||||
apt -y dist-upgrade
|
||||
init 6
|
||||
```
|
||||
|
||||
## Дошлифовка
|
||||
|
||||
```shell
|
||||
bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/misc/post-pve-install.sh)"
|
||||
```
|
Loading…
x
Reference in New Issue
Block a user