Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index International Gentoo Users Deutsches Forum (German) Diskussionsforum
  • Search

[erledigt] lvm2 - Volume vergrössern

Unterhaltung über Gentoo und andere Themen: Alles was nicht in ein Support-Forum gehört.
Post Reply
  • Print view
Advanced search
3 posts • Page 1 of 1
Author
Message
Sabaton
Apprentice
Apprentice
Posts: 216
Joined: Sat Mar 02, 2019 8:48 am

[erledigt] lvm2 - Volume vergrössern

  • Quote

Post by Sabaton » Thu May 15, 2025 2:04 pm

Hallo zusammen,

ich habe bei einem Linux-Gastsystem in VirtualBox die "virtuelle Festplatte" von 40 GB auf 50 GB vergrössert.

Wie gebe ich die freien 10 GB bei VG "alt" hinzu?

Code: Select all

[root@alt ~]# pvs 
  PV         VG  Fmt  Attr PSize   PFree 
  /dev/sda1  alt lvm2 a--  <49,97g 10,00g
Mfg,
Sabaton
Last edited by Sabaton on Thu May 15, 2025 4:03 pm, edited 4 times in total.
Top
Max Steel
Advocate
Advocate
User avatar
Posts: 2324
Joined: Mon Feb 12, 2007 6:35 pm
Location: My own world! I and Gentoo!

  • Quote

Post by Max Steel » Thu May 15, 2025 2:20 pm

lvresize /dev/alt/root -l +100%FREE

Und abhängig vom verwendeten Dateisystem anschließend:
resize2fs /dev/alt/root
xfs_growfs /

und so weiter.
mfg
Steel
___________________

Heim-PC: AMD Ryzen 9 5950X, 64GB RAM, RX 9070 XT
Laptop: AMD Ryzen 5 7640U, 32GB RAM, Radeon onCPU Graphics
Arbeit-PC: AMD Ryzen 3 Pro 7335U, 16GB RAM, AMD Radeon Graphics (leider WSL2)
Top
Sabaton
Apprentice
Apprentice
Posts: 216
Joined: Sat Mar 02, 2019 8:48 am

  • Quote

Post by Sabaton » Thu May 15, 2025 3:38 pm

Aufgabe gelöst.

Code: Select all

[root@alt ~]# pvs 
  PV         VG  Fmt  Attr PSize   PFree 
  /dev/sda1  alt lvm2 a--  <49,97g 10,00g

[root@alt ~]# lvresize /dev/alt/root -l +100%FREE
  Size of logical volume alt/root changed from 39,84 GiB (1275 extents) to 49,84 GiB (1595 extents).
  Logical volume alt/root successfully resized.

[root@alt ~]# pvs 
  PV         VG  Fmt  Attr PSize   PFree
  /dev/sda1  alt lvm2 a--  <49,97g    0 

[root@alt ~]# lvs
  LV   VG  Attr       LSize   Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
  root alt -wi-ao----  49,84g                                                    
  swap alt -wi-ao---- 128,00m 
                                                   
[root@alt ~]# df -h
Dateisystem          Größe Benutzt Verf. Verw% Eingehängt auf
udevfs                5,0M    4,0K  5,0M    1% /dev
runfs                 3,9G    1,2M  3,9G    1% /run
/dev/mapper/alt-root   39G     25G   13G   68% /
tmpfs                 3,9G       0  3,9G    0% /dev/shm
tmpfs                 795M     92K  795M    1% /run/user/1000

[root@alt ~]# resize2fs -p /dev/mapper/alt-root
resize2fs 1.47.1 (20-May-2024)
Dateisystem bei /dev/mapper/alt-root ist auf / eingehängt; Online-Größenänderung ist
erforderlich
old_desc_blocks = 5, new_desc_blocks = 7
Das Dateisystem auf /dev/mapper/alt-root is nun 13066240 (4k) Blöcke lang.

[root@alt ~]# df -h
Dateisystem          Größe Benutzt Verf. Verw% Eingehängt auf
udevfs                5,0M    4,0K  5,0M    1% /dev
runfs                 3,9G    1,2M  3,9G    1% /run
/dev/mapper/alt-root   49G     25G   22G   54% /
tmpfs                 3,9G       0  3,9G    0% /dev/shm
tmpfs                 795M     92K  795M    1% /run/user/1000

Vielen Dank für den Support!

Mfg,
Sabaton
Top
Post Reply
  • Print view

3 posts • Page 1 of 1

Return to “Diskussionsforum”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy