Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
LVM2 gibt nicht die ganze Größe frei
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
Giuly
Tux's lil' helper
Tux's lil' helper


Joined: 21 May 2003
Posts: 138
Location: Bremen - Germany

PostPosted: Sun May 04, 2008 2:26 pm    Post subject: LVM2 gibt nicht die ganze Größe frei Reply with quote

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
View user's profile Send private message
bbgermany
Veteran
Veteran


Joined: 21 Feb 2005
Posts: 1844
Location: Oranienburg/Germany

PostPosted: Sun May 04, 2008 3:10 pm    Post subject: Reply with quote

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
View user's profile Send private message
Genone
Retired Dev
Retired Dev


Joined: 14 Mar 2003
Posts: 9538
Location: beyond the rim

PostPosted: Sun May 04, 2008 7:46 pm    Post subject: Reply with quote

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
View user's profile Send private message
Giuly
Tux's lil' helper
Tux's lil' helper


Joined: 21 May 2003
Posts: 138
Location: Bremen - Germany

PostPosted: Wed May 07, 2008 1:14 pm    Post subject: Reply with quote

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
View user's profile Send private message
bbgermany
Veteran
Veteran


Joined: 21 Feb 2005
Posts: 1844
Location: Oranienburg/Germany

PostPosted: Wed May 07, 2008 1:30 pm    Post subject: Reply with quote

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
View user's profile Send private message
musv
Advocate
Advocate


Joined: 01 Dec 2002
Posts: 3337
Location: de

PostPosted: Wed May 07, 2008 3:18 pm    Post subject: Reply with quote

Giuly wrote:
"emerge -Dau world"

*lol*
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum