Skip to content

Instantly share code, notes, and snippets.

@tfmeneses
Created January 25, 2022 18:48
Show Gist options
  • Save tfmeneses/307342ce0cc80c2a8f5610b3c8c2adb4 to your computer and use it in GitHub Desktop.
Save tfmeneses/307342ce0cc80c2a8f5610b3c8c2adb4 to your computer and use it in GitHub Desktop.
lsblk #find loop(X) swift
losetup /dev/loop0 #find the swiftloopback directory
blkid #confirm ext4 or xfs file system
dd if=/dev/zero bs=1MiB of=/srv/loopback-device/swiftloopback conv=notrunc oflag=append count=XXXXX # XXXX new size in megabytes
losetup -c /dev/loop0
resize2fs /dev/loop0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment