Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bradfitz/embiggen-disk
embiggden-disk live-resizes a filesystem after first live-resizing any necessary layers below it: an optional LVM LV and PV, and an MBR or GPT partition table
https://github.com/bradfitz/embiggen-disk
btrfs ext4 gpt lvm mbr qemu resize resize2fs virtual-machine vm vms
Last synced: 10 days ago
JSON representation
embiggden-disk live-resizes a filesystem after first live-resizing any necessary layers below it: an optional LVM LV and PV, and an MBR or GPT partition table
- Host: GitHub
- URL: https://github.com/bradfitz/embiggen-disk
- Owner: bradfitz
- License: other
- Created: 2018-07-27T19:25:51.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-07-25T00:04:27.000Z (over 2 years ago)
- Last Synced: 2024-10-14T16:29:54.103Z (28 days ago)
- Topics: btrfs, ext4, gpt, lvm, mbr, qemu, resize, resize2fs, virtual-machine, vm, vms
- Language: Go
- Homepage:
- Size: 2.74 MB
- Stars: 474
- Watchers: 20
- Forks: 25
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# embiggen-disk
The **embiggen-disk** tool live-resizes a filesystem after first live-resizing
any necessary layers below it: an optional LVM LV and PV, and an MBR or GPT
partition table.# Example
```
# embiggen-disk /
Changes made:
* partition /dev/sda3: before: 8442546176 sectors, after: 8444643328 sectors
* LVM PV /dev/sda3: before: sectors=8442544128, after: sectors=8444641280
* LVM LV /dev/mapper/debvg-root: before: sectors=8442544128, after: sectors=8444641280
* ext4 filesystem at /: before: 1038833256 blocks, after: 1039091312 blocks
```Then again:
```
# embiggen-disk /
No changes made.
```# Installing
With Go 1.15 and earlier:
```
$ go get github.com/bradfitz/embiggen-disk
```With Go 1.16+:
```
$ go install github.com/bradfitz/embiggen-disk@latest
```# Requirements
* Go 1.7+
* Linux 3.6+ (for [BLKPG_RESIZE_PARTITION](https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=c83f6bf98dc1f1a194118b3830706cebbebda8c4))It's only been tested on 64-bit x86 Linux ("amd64"). It should work on
other Linux architectures.# Disclaimer
Audit the code and/or snapshot your disk before use if you're worried about losing data.