From 9b06c2023f2e0d9866da4fd9d14dbe0882849c79 Mon Sep 17 00:00:00 2001 From: ivuorinen Date: Fri, 25 Apr 2025 00:19:45 +0000 Subject: [PATCH] Update cheatsheets --- tldr/linux/lvextend | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tldr/linux/lvextend b/tldr/linux/lvextend index a7f8a7e7..541e3a6d 100644 --- a/tldr/linux/lvextend +++ b/tldr/linux/lvextend @@ -11,12 +11,16 @@ source: https://github.com/tldr-pages/tldr.git - Increase a volume's size to 120 GB: -`lvextend {{[-L|--size]}} {{120G}} {{logical_volume}}` +`sudo lvextend {{[-L|--size]}} {{120G}} {{logical_volume}}` - Increase a volume's size by 40 GB as well as the underlying filesystem: -`lvextend {{[-L|--size]}} +{{40G}} {{[-r|--resizefs]}} {{logical_volume}}` +`sudo lvextend {{[-L|--size]}} +{{40G}} {{[-r|--resizefs]}} {{logical_volume}}` - Increase a volume's size to 100% of the free physical volume space: -`lvextend {{[-L|--size]}} +{{100}}%FREE {{logical_volume}}` +`sudo lvextend {{[-l|--extents]}} +{{100}}%FREE {{logical_volume}}` + +- Increase a volume's size to 100% of the free physical volume space and resize the underlying filesystem: + +`sudo lvextend {{[-l|--extents]}} +{{100}}%FREE {{[-r|--resizefs]}} {{logical_volume}}`