View previous topic :: View next topic |
Author |
Message |
Giuly Tux's lil' helper
Joined: 21 May 2003 Posts: 138 Location: Bremen - Germany
|
Posted: Sun May 04, 2008 2:26 pm Post subject: LVM2 gibt nicht die ganze Größe frei |
|
|
Hi,
Code: | giuly tm # vgdisplay rt
--- Volume group ---
VG Name rt
System ID
Format lvm2
Metadata Areas 2
Metadata Sequence No 5
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 1
Open LV 1
Max PV 0
Cur PV 2
Act PV 2
VG Size 35.84 GB
PE Size 4.00 MB
Total PE 9176
Alloc PE / Size 9176 / 35.84 GB
Free PE / Size 0 / 0
VG UUID qF22N4-pWJJ-Ef28-Cgw3-Slxy-sbLD-B14ZFc
giuly tm # df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/rt-root 9.9G 9.0G 359M 97% /
udev 10M 304K 9.8M 3% /dev
/dev/hdb1 74G 49G 22G 70% /mnt/loc
shm 502M 0 502M 0% /dev/shm |
Kann mit jemand erklären, warum mein rt zwar 35GB hat, aber laut df nur 9,9?
Grüße _________________ dunno |
|
Back to top |
|
|
bbgermany Veteran
Joined: 21 Feb 2005 Posts: 1844 Location: Oranienburg/Germany
|
Posted: Sun May 04, 2008 3:10 pm Post subject: |
|
|
Hi,
vielleicht hilft die das hier weiter: http://www.linuxjunkies.org/html/LVM-HOWTO.html#s2
Ich denke du verwechselst "volume group" mit dem eigentlichen eingehängtem volume. Wenn du lvdisplay ausführst, solltest du die gleiche Größe wie bei df sehen.
MfG. Stefan _________________ Desktop: Ryzen 5 5600G, 32GB, 2TB, RX7600
Notebook: Dell XPS 13 9370, 16GB, 1TB
Server #1: Ryzen 5 Pro 4650G, 64GB, 16.5TB
Server #2: Ryzen 4800H, 32GB, 22TB |
|
Back to top |
|
|
Genone Retired Dev
Joined: 14 Mar 2003 Posts: 9595 Location: beyond the rim
|
Posted: Sun May 04, 2008 7:46 pm Post subject: |
|
|
bbgermany wrote: | Ich denke du verwechselst "volume group" mit dem eigentlichen eingehängtem volume. |
Ein möglicher Grund.
Quote: | Wenn du lvdisplay ausführst, solltest du die gleiche Größe wie bei df sehen. |
Nicht unbedingt. `df` zeigt an wie gross das jeweilige Dateisystem ist, welches durchaus kleiner sein kann als das darunterliegende Block-Device. Ist z.B. wichtig zu wissen wenn man die Grösse von Dateisystem ändern will. |
|
Back to top |
|
|
Giuly Tux's lil' helper
Joined: 21 May 2003 Posts: 138 Location: Bremen - Germany
|
Posted: Wed May 07, 2008 1:14 pm Post subject: |
|
|
Code: | giuly giuly # lvdisplay
--- Logical volume ---
LV Name /dev/rt/root
VG Name rt
LV UUID LnZ0WZ-ef72-6RWB-AprQ-vXUc-4CJn-BWEwza
LV Write Access read/write
LV Status available
# open 1
LV Size 35.84 GB
Current LE 9176
Segments 2
Allocation inherit
Read ahead sectors 0
Block device 253:0
giuly giuly # df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/rt-root 9.9G 9.1G 328M 97% /
udev 10M 304K 9.8M 3% /dev
/dev/hdb1 74G 70G 0 100% /mnt/loc
shm 502M 0 502M 0% /dev/shm |
Dann erklärt mir dochmal das. Die Partition ist bei 9.9G auch voll und es geht nix mehr rauf. Wenn ihr mein "emerge -Dau world" deswegen sehen würdet, wird euch schlecht...
Grüße _________________ dunno |
|
Back to top |
|
|
bbgermany Veteran
Joined: 21 Feb 2005 Posts: 1844 Location: Oranienburg/Germany
|
Posted: Wed May 07, 2008 1:30 pm Post subject: |
|
|
Wie bereits Genone gesagt hat (was ich völlig verplant hatte), kann das filesystem kleiner sein als das volume. Mit resize2fs solltest du das Filesystem erweitern können auf die volle Größe des Volumes und somit wieder genug Platz haben.
MfG. Stefan _________________ Desktop: Ryzen 5 5600G, 32GB, 2TB, RX7600
Notebook: Dell XPS 13 9370, 16GB, 1TB
Server #1: Ryzen 5 Pro 4650G, 64GB, 16.5TB
Server #2: Ryzen 4800H, 32GB, 22TB |
|
Back to top |
|
|
musv Advocate
Joined: 01 Dec 2002 Posts: 3359 Location: de
|
Posted: Wed May 07, 2008 3:18 pm Post subject: |
|
|
Giuly wrote: | "emerge -Dau world" |
*lol* |
|
Back to top |
|
|
|