From 7f101972814184295af71198994dd439edc1a323 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 17 Mar 2024 00:22:47 +0300 Subject: [PATCH] Update fs orders --- docs/linux/filesystems.md | 44 +++++++++++++++++++-------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/docs/linux/filesystems.md b/docs/linux/filesystems.md index 2197bfa..ead6dec 100644 --- a/docs/linux/filesystems.md +++ b/docs/linux/filesystems.md @@ -1,11 +1,24 @@ -# LVM -#### Extend -```bash -lvextend -L+1G /dev/vg4/homevol -``` - # Btrfs +### Snapshot + +#### Create shapshot +```bash +btrfs subvolume snapshot xyz xyz-snapshot-path-name + +# or + +btrfs subvolume snapshot main "main-`date +%Y-%m-%d`" +``` +#### Delete shapshot +```bash +btrfs subvolume delete xyz-snapshot-path-name + +# or + +btrfs subvolume delete "`echo main-* | tr ' ' \\\\n | sort | head -n 1`" +``` + #### Resize ```bash btrfs filesystem resize max /mnt/dmp/ @@ -20,23 +33,10 @@ btrfs property set -f . ro false btrfs property set -f . ro true ``` -### Snapshot - -#### Create shapshot +# LVM +#### Extend ```bash -btrfs subvolume snapshot xyz xyz-snapshot-path-name - -# or - -btrfs subvolume snapshot main main-`date +%Y-%m-%d` -``` -#### Delete shapshot -```bash -btrfs subvolume delete xyz-snapshot-path-name - -# or - -btrfs subvolume delete "`echo main-* | tr ' ' \\\\n | sort | head -n 1`" +lvextend -L+1G /dev/vg4/homevol ``` # Ext4