個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證正在載入完整 README。 以下為已儲存的摘錄。
description: Pyflexebs will allow you to monitor and expand/contract your EBS volumes in aws
How to create a package this code?
Make sure you have internet access, as the following commands may pull packages off the internet.
The result is in the dist folder in a file called pyflexebs-[VERSION].
This file is an executable that should run on all linux platforms.
How to install this package as a service?
How to remove this package as a service?檢視完整 README ↗description: Pyflexebs will allow you to monitor and expand/contract your EBS volumes in aws
project website: https://veltzer.github.io/pyflexebs
author: Mark Veltzer
version: 0.0.89
Make sure you have internet access, as the following commands may pull packages off the internet.
Install git
On a yum system:
$ sudo yum install git
On an apt system:
$ sudo apt install git
Clone the repository:
$ git clone https://github.com/veltzer/pyflexebs
CD into the repository:
$ cd pyflexebs
Build the executable
On a yum system:
$ ./build.yum.sh
On an apt system:
$ ./build.apt.sh
The result is in the dist folder in a file called pyflexebs-[VERSION]. This file is an executable that should run on all linux platforms.
$ sudo ./pyflexebs-[version] service_install
$ sudo ./pyflexebs-[version] service_uninstall
$ sudo ./pyflexebs-[version] service_start
or
$ sudo systemctl start pyflexebs.service
$ sudo ./pyflexebs-[version] service_stop
or
$ sudo systemctl stop pyflexebs.service
After installing the service you will get a config file called /etc/pyflexebs.json. This is the configuration file for the service. Any change in parameters in this file will effect the next run. Edit this to your hearts content. If you don't know what a specific parameter means just use:
$ ./pyflexebs-[version] daemon_run --help
Remember to configure proxy information if you need it. It can be configured in the config file in the following lines:
"no_proxy": "localhost,169.254.169.254",
"http_proxy": null,
"https_proxy": null,
Assuming we want to reduce EBS, the first thing we will need to do is to make a note of the root volume’s block device name and our instance’s availability zone
Stop the instance
Detach the volume from instance
Create a new instance
Create an empty Amazon EBS volume with size require in the same availability zone
Attach both volumes to the instance and again note all device name details.
Block Device Name Big Volume = /dev/sdb Block Device Name Small Volume = /dev/sdg
Create a file system for the new volume you have created
sudo mkfs -t ext4 /dev/xvdg
Create two mount directories and mount the new volumes.
sudo mkdir /mnt/big
sudo mount /dev/xvdf /mnt/big
sudo mkdir /mnt/small
sudo mount /dev/xvdg /mnt/small
Sync big to small
rsync -aHAXxSP /mnt/real/ /mnt/small
Umount the smaller
umount /dev/xvdg
8. Stop new instance
Detach the small volume from new instance
Attached the small volume to orig instance with same block device
Start the orig instance
Login instance #1 a. Mount small disk mount /dev/xvdb /mnt/xvdb
After every thing is working you can remove the big volume. recommend to save it for 1-2 week before removing
Mark Veltzer, Copyright © 2020, 2021, 2022, 2023, 2024, 2025, 2026