MyFirstBrain/Technik/Linux-Volume-Manager.md

39 lines
1.2 KiB
Markdown
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
created: 2025-07-20T17:21
updated: 2025-07-20T17:21
---
# LVM
Add 10GB to "root" volume: (Bei mir das 2.te)
```bash
lvresize -L +10G /dev/VolGroup00/root
lvresize -L +40G pve/root
```
danach noch
Resize the filesystem that resides on that volume_:
```bash
resize2fs /dev/VolGroup00/root
```
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:
```bash
watch df -h
```
### Linux Tar gzip and Split
```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
```
Geht aber "nur" mit einem Verzeichnis.
tar -cf - tar ein verzeichnis nach StdOut
-C /volume4/Mario/VeeamAgentUser35343537-3633-5a43-3236-313830303538/Agent_Backup_Policy_1_-_dc-2019 . TAr dieses Verzeichnis Wobei der **.** am Ende wichtig ist
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
```