- List disks and determine the disk
$ diskutil list - Unmount the disk
$ diskutil unmountDisk disk4 - Install
e2fsprogs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Stop all running containers. | |
| lxc stop -all | |
| lxc storage list | |
| truncate -s +20G /var/lib/lxd/disks/default.img | |
| zpool set autoexpand=on default | |
| zpool status -vg default | |
| zpool online -e default device_id_from_step_above | |
| zpool set autoexpand=off default |
For more on the protocol: https://www.rsyslog.com/doc/master/configuration/modules/imrelp.html
For client/server to communicate over RELP protocol (over TCP), both should have the corresponding library present:
apt-get install rsyslog-relp
- Cоздаем своего бота: Ищем в телеграмме бота @BotFather и говорим /newbot. В процессе создания получаем api-key для бота
- Добавляем в интересующий нас чат этого бота
- В этот же чат добавляем бота @myidbot и говорим ему /getgroupid@myidbot. Эта команда даст нам id чата (он должен начинаться с тире -)
- В настройках Notification Channel графаны выбираем telegram и пишем туда полученные ранее api-key и id чата
API ключ — секретный код, который позволяет настроить связь с ботом вне клиента Telegram. Чтобы узнать API ключ для своего бота необходимо:
- Перейти в системного бота @BotFather.
- Отправить в диалог с @BotFather команду /mybots
- Выбрать из клавиатуры под сообщением юзернейм необходимого бота