MyFirstBrain/Technik/Linux-Volume-Manager.md

39 lines
1.2 KiB
Markdown
Raw Normal View History

2025-07-27 19:00:52 +02:00
---
created: 2025-07-20T17:21
updated: 2025-07-20T17:21
---
2024-10-22 09:56:26 +02:00
# LVM
2024-10-22 19:12:56 +02:00
Add 10GB to "root" volume: (Bei mir das 2.te)
2024-10-22 09:56:26 +02:00
```bash
lvresize -L +10G /dev/VolGroup00/root
2024-10-22 19:10:56 +02:00
lvresize -L +40G pve/root
2024-10-22 09:56:26 +02:00
```
danach noch
Resize the filesystem that resides on that volume_:
```bash
resize2fs /dev/VolGroup00/root
```
2024-10-22 18:13:11 +02:00
Note: resize2fs may take a while to expand the file system on a large volume, so you may want to open a second terminal and monitor the progress with the following command:
2024-10-22 09:56:26 +02:00
```bash
watch df -h
```
2024-11-13 20:26:59 +01:00
### Linux Tar gzip and Split
2024-10-22 09:56:26 +02:00
2024-11-13 20:26:59 +01:00
```bash
tar -cf - --ignore-failed-read -C /volume4/Mario/VeeamAgentUser35343537-3633-5a43-3236-313830303538/Agent_Backup_Policy_1_-_dc-2019 . | gzip | split -b 20G - Mariobackup.part
```
2024-11-13 20:28:59 +01:00
Geht aber "nur" mit einem Verzeichnis.
2024-11-13 20:26:59 +01:00
tar -cf - tar ein verzeichnis nach StdOut
2024-11-13 20:28:59 +01:00
-C /volume4/Mario/VeeamAgentUser35343537-3633-5a43-3236-313830303538/Agent_Backup_Policy_1_-_dc-2019 . TAr dieses Verzeichnis Wobei der **.** am Ende wichtig ist
2024-11-13 20:38:20 +01:00
So geht es auch mit einem File :
```bash
tar zcf - /volume4/Mario/VeeamAgentUser35343537-3633-5a43-3236-313830303538/Agent_Backup_Policy_1_-_dc-2019/AgentBack2024-11-02T220012.vbk | split -b 200G - Mariobackup.part
```
2024-11-13 20:28:59 +01:00