Re: Mit LVM Platte vergrößert, wird aber nic ht übernommen

Juergen Edner <[email protected]>
Newsgroups spline.eisxen
Organization privat
Message-ID <[email protected]>
Hallo Andreas,

> ich hab auf meine eisxen einen eisfair1 mit dem Namen ' eis-2 '
> angelegt, auf dem hda1 zu klein wird. Nun hab ich mit LVM die Platte
> vergrößert
> 
> Vorher : eis-2 => 512mb
> Nachher : eis-2 => 700mb
> 
> wenn ich jedoch den ' eis-2 ' reboote wird der erweiterre Platz nicht
> angezeigt.
> 
> Was hab ich vergessen bzw. nicht beachtet ?

mittels folgender Schritte habe ich seinerzeit ein logisches Volume
erfolgreich vergrößert. Vielleicht hilft Dir dies weiter:

1. VM anhalten
   xm shutdown eis1-test

2. Aktuelle Volumegröße auslesen
   lvs  -> 9.77G

3. Volume vergrößern indem man die neue Größe angibt
   # lvextend -v -L 30G /dev/vg/eis1-test
    Finding volume group vg
    Archiving volume group "vg" metadata (seqno 19).
  Extending logical volume eis1-test to 30.00 GB
    Creating volume group backup "/etc/lvm/backup/vg" (seqno 20).
    Found volume group "vg"
    Found volume group "vg"
    Loading vg-eis1--test table
    Suspending vg-eis1--test (254:5) without device flush
    Found volume group "vg"
    Resuming vg-eis1--test (254:5)
  Logical volume eis1-test successfully resized

4. Existierendes Dateisystem auf Fehler prüfen
   # e2fsck -f -v /dev/vg/eis1-test
   e2fsck 1.40.8 (13-Mar-2008)
   Pass 1: Checking inodes, blocks, and sizes
   Pass 2: Checking directory structure
   Pass 3: Checking directory connectivity
   Pass 4: Checking reference counts
   Pass 5: Checking group summary information

     211089 inodes used (32.87%)
      16275 non-contiguous inodes (7.7%)
            # of inodes with ind/dind/tind blocks: 83929/9/0
    2517647 blocks used (98.35%)
          0 bad blocks
          1 large file

     194392 regular files
      10376 directories
        564 character device files
       5279 block device files
          1 fifo
        409 links
        468 symbolic links (467 fast symbolic links)
          0 sockets
   --------
     211489 files

5. Dateisystem vergrößern
   # resize2fs /dev/vg/eis1-test
   resize2fs 1.40.8 (13-Mar-2008)
   Resizing the filesystem on /dev/vg/eis1-test to 7864320 (4k) blocks.
   The filesystem on /dev/vg/eis1-test is now 7864320 blocks long.

Gruß Jürgen
-- 
Mail: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.