Блочний пристрій сервер Ubuntu - sda = 500G
lsblk sda 8:0 0 500G 0 disk └─sda1 8:1 0 500G 0 part
Збільшую том іscsi до 600G (TrueNAS).
![]() |
| Новий розмір тому для iscsi target |
Персональний блог на різноманітні теми: від кулінарії до мережевої безпеки.
Ось 6-й курс (бонусний) "Automating Real-World Tasks with Python" за напрямком "Google IT Automation with Python Specialization" на платформі Coursera та за підтримки (2022-2023 UA Prometheus) - успішно завершено - Вересень 2023.
![]() |
| Google IT Automation with Python Specialization - Automating Real-World Tasks with Python |
Ось 3-й курс "Introduction to Git and GitHub" за напрямком "Google IT Automation with Python Specialization" на платформі Coursera та за підтримки (2022-2023 UA Prometheus) - успішно завершено - Серпень 2023.
![]() |
| Google IT Automation with Python Specialization - Introduction to Git and GitHub |
Ось 2-й курс "Using Python to Interact with the Operating System" за напрямком "Google IT Automation with Python Specialization" на платформі Coursera та за підтримки (2022-2023 UA Prometheus) - успішно завершено - Серпень 2023.
![]() |
| Google IT Automation with Python Specialization - Using Python to Interact with the Operating System |
Ось і 8-й курс "Put It to Work: Prepare for Cybersecurity Jobs" з 8-ми курсів за напрямком
Google Cybersecurity Professional Certificate
на платформі
Coursera та за
підтримки (2022-2023 UA Prometheus) - успішно завершено. За що отримано підсумковий сертифікат за всі 8 курсів.
![]() |
| Google Cybersecurity Professional Certificate |
![]() |
| Google Cybersecurity Certificate Issued by Coursera (Credly) |
![]() |
| Google Cybersecurity Professional Certificate - Put It to Work: Prepare for Cybersecurity Jobs |
Determine when and how to escalate a security incident
Engage with the cybersecurity community
Find and apply for cybersecurity jobs
Prepare for job interviews
Ось і закінчилася наша перша частина навчання в #GoIT з курсу #Python #Developer - Python Core 15 (ментор Volodymyr Dunkin).
Останнім завданням було виконання командної курсової роботи.
В
результаті цього, за неділю роботи, наша команда (11 - "From Zerro to
Herro") з 5-ти розробників - створила у межах проєкту консольний додаток
"Персональний помічник" - Assistant bot. Де мені випала посада "Team
Lead".
З результатами роботи можна ознайомитися на презентації
нашого навчального проєкту котрий підготувала і провела "Scrum master"
команди - Маргарита.
Велика подяка команді за участь.
Відео презентації: https://www.youtube.com/watch?v=ZYg62JWlqEw
Код проєкту : https://github.com/lexxai/goit_python_core_project_team_11
https://github.com/lexxai/goit_python_core_hw_06
Модуль 6. Робота з файлами. Work with files.
#python
https://github.com/lexxai/goit_python_core_hw_07
Модуль 7. Створення та встановлення власних пакетів. Creating and installing custom packages, virtual environment.
#python
https://github.com/lexxai/goit_python_core_hw_08
Модуль 8. Можливості деяких вбудованих пакетів Python. Work with date and time. Collections. Comprehensions.
#python
https://github.com/lexxai/goit_python_core_hw_09
Модуль 9. Функції (декоратори, замикання). Functions. Decorators. Closure. Carrying.
#python
https://github.com/lexxai/goit_python_core_hw_10
Модуль 10. Основи роботи з класами. OOP. Basics of working with classes.
#python
https://github.com/lexxai/goit_python_core_hw_11
Модуль 11. Магічні методи. OOP. 'Magic' class methods.
#python
https://github.com/lexxai/goit_python_core_hw_12
Модуль 12. Серіалізація та копіювання об'єктів. Serialization and copy objects.
#python
Задача - коректно зберігати базу даних при створені знімку віртуальної машини в Proxmox.
Що є:
Proxmox VE, VM з сервером FreeBSD 13, база даних postgresql.
Встановлюю qemu-guest-agent.
pkg version -x qemu-guest-agent
qemu-guest-agent-8.0.2
Налаштовую qemu-guest-agent:
/etc/rc.d
qemu_guest_agent_enable="YES"
qemu_guest_agent_flags="-d -v --fsfreeze-hook"
scripts/qemu-guest-agent/fsfreeze-hook
#!/bin/sh
# This script is executed when a guest agent receives fsfreeze-freeze and
# fsfreeze-thaw command, if it is specified in --fsfreeze-hook (-F)
# option of qemu-ga or placed in default path (/etc/qemu/fsfreeze-hook).
# When the agent receives fsfreeze-freeze request, this script is issued with
# "freeze" argument before the filesystem is frozen. And for fsfreeze-thaw
# request, it is issued with "thaw" argument after filesystem is thawed.
LOGFILE=/var/log/qga-fsfreeze-hook.log
FSFREEZE_D=$(dirname -- "$0")/fsfreeze-hook.d
# Check whether file $1 is a backup or rpm-generated file and should be ignored
is_ignored_file() {
case "$1" in
*~ | *.bak | *.orig | *.rpmnew | *.rpmorig | *.rpmsave | *.sample | *.dpkg-old | *.dpkg-new | *.dpkg-tmp | *.dpkg-dist | *.dpkg-bak | *.dpkg-backup | *.dpkg-remove)
return 0 ;;
esac
return 1
}
# Iterate executables in directory "fsfreeze-hook.d" with the specified args
[ ! -d "$FSFREEZE_D" ] && exit 0
for file in "$FSFREEZE_D"/* ; do
is_ignored_file "$file" && continue
[ -x "$file" ] || continue
printf "$(date): execute $file $@\n" >>$LOGFILE
"$file" "$@" >>$LOGFILE 2>&1
STATUS=$?
printf "$(date): $file finished with status=$STATUS\n" >>$LOGFILE
done
exit 0
/usr/local/etc/qemu/fsfreeze-hook.d/pg-flush.sh
#!/bin/sh
# Flush PGSQL tables to the disk before the filesystem is frozen.
# At the same time, this keeps a read lock in order to avoid write accesses
# from the other clients until the filesystem is thawed.
case "$1" in
freeze)
logger -t pg-flush "freeze pg before stop service"
service postgresql stop
sync
logger -t pg-flush "freeze pg after sync"
;;
thaw)
logger -t pg-flush "thaw pg starting service"
service postgresql start
logger -t pg-flush "thaw pg service `service postgresql status`"
;;
*)
exit 1
;;
esac
![]() |
| Proxmox snapshot VM |
Aug 1 17:39:24 pleroma pg-flush[40320]: freeze pg before stop service Aug 1 17:39:24 pleroma postgres[29734]: [10-1] 2023-08-01 17:39:24.116 [29734] FATAL: terminating connection due to administrator command Aug 1 17:39:24 pleroma postgres[29739]: [10-1] 2023-08-01 17:39:24.116 [29739] FATAL: terminating connection due to administrator command Aug 1 17:39:24 pleroma postgres[29736]: [10-1] 2023-08-01 17:39:24.116 [29736] FATAL: terminating connection due to administrator command Aug 1 17:39:24 pleroma postgres[29733]: [10-1] 2023-08-01 17:39:24.116 [29733] FATAL: terminating connection due to administrator command Aug 1 17:39:24 pleroma postgres[29738]: [10-1] 2023-08-01 17:39:24.116 [29738] FATAL: terminating connection due to administrator command Aug 1 17:39:24 pleroma postgres[29730]: [10-1] 2023-08-01 17:39:24.116 [29730] FATAL: terminating connection due to administrator command Aug 1 17:39:24 pleroma postgres[29735]: [10-1] 2023-08-01 17:39:24.116 [29735] FATAL: terminating connection due to administrator command Aug 1 17:39:24 pleroma postgres[29737]: [10-1] 2023-08-01 17:39:24.116 [29737] FATAL: terminating connection due to administrator command Aug 1 17:39:24 pleroma postgres[29731]: [10-1] 2023-08-01 17:39:24.116 [29731] FATAL: terminating connection due to administrator command Aug 1 17:39:24 pleroma postgres[16588]: [10-1] 2023-08-01 17:39:24.116 [16588] FATAL: terminating connection due to administrator command Aug 1 17:39:24 pleroma postgres[37548]: [10-1] 2023-08-01 17:39:24.116 [37548] FATAL: terminating connection due to administrator command Aug 1 17:39:24 pleroma postgres[47096]: [10-1] 2023-08-01 17:39:24.116 [47096] FATAL: terminating connection due to administrator command Aug 1 17:39:24 pleroma postgres[29742]: [10-1] 2023-08-01 17:39:24.116 [29742] FATAL: terminating connection due to administrator command Aug 1 17:39:24 pleroma postgres[47073]: [10-1] 2023-08-01 17:39:24.116 [47073] FATAL: terminating connection due to administrator command Aug 1 17:39:24 pleroma postgres[47076]: [10-1] 2023-08-01 17:39:24.116 [47076] FATAL: terminating connection due to administrator command Aug 1 17:39:24 pleroma pg-flush[40334]: freeze pg after sync Aug 1 17:39:24 pleroma pg-flush[40343]: thaw pg starting service Aug 1 17:39:24 pleroma pg-flush[40365]: thaw pg service pg_ctl: server is running (PID: 41234) /usr/local/bin/postgres "-D" "/var/db/postgres/data12"
Прослухав курс AWS Certified Solutions Architect - Associate (SAA-C03) Cert Prep: 2 Storage Design для підготовки сертифікаційного екзамену у межах навчальної системи LinkedIn Learning! як вільний слухач - без сертифікації. (Але у 2024 р. - отримав сертифікат).
Субтитри доступні українською мовою (автоматичні).
![]() |
| у 2024 р. - отримав сертифікат |
![]() |
| Storage Solutions, Amazon Web Services (AWS) |
![]() |
| Gigabyte vs Gibibyte |