Skip to content
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
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
notes
CONTRIBUTING.md Prep for release. Jul 25, 2018
LICENSE Prep for release. Jul 25, 2018
README.md
TODO
fs.go
go.mod
go.sum
integration_test.go Fix /sbin/sfdisk hanging indefinitely Sep 4, 2018
lvm.go Ignore rootfs, use blkid to find partition type if sfdisk doesn't rep… Oct 11, 2018
main.go
part.go fix Errorf format string Mar 14, 2019
util.go

README.md

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

$ go get github.com/google/embiggen-disk

Requirements

It's only been tested on 64-bit x86 Linux ("amd64"). It should work on other Linux architectures.

Disclaimer

This is not an officially supported Google product.

Audit the code and/or snapshot your disk before use if you're worried about losing data.

You can’t perform that action at this time.