MyFirstBrain/Technik/Linux-Volume-Manager.md
2024-11-13 20:38:20 +01:00

1.1 KiB

LVM

Add 10GB to "root" volume: (Bei mir das 2.te)

lvresize -L +10G /dev/VolGroup00/root
lvresize -L +40G pve/root

danach noch Resize the filesystem that resides on that volume_:

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:

watch df -h

Linux Tar gzip and Split

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 :

tar zcf - /volume4/Mario/VeeamAgentUser35343537-3633-5a43-3236-313830303538/Agent_Backup_Policy_1_-_dc-2019/AgentBack2024-11-02T220012.vbk  | split -b 200G - Mariobackup.part