Update fs orders

This commit is contained in:
root
2024-03-17 00:22:47 +03:00
parent e2b36dd829
commit 7f10197281

View File

@@ -1,11 +1,24 @@
# LVM
#### Extend
```bash
lvextend -L+1G /dev/vg4/homevol
```
# Btrfs # 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 #### Resize
```bash ```bash
btrfs filesystem resize max /mnt/dmp/ btrfs filesystem resize max /mnt/dmp/
@@ -20,23 +33,10 @@ btrfs property set -f . ro false
btrfs property set -f . ro true btrfs property set -f . ro true
``` ```
### Snapshot # LVM
#### Extend
#### Create shapshot
```bash ```bash
btrfs subvolume snapshot xyz xyz-snapshot-path-name lvextend -L+1G /dev/vg4/homevol
# 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`"
``` ```
# Ext4 # Ext4