Update fs orders
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user