alexo89
Goto Top

Linux VMWare Maschine Festplatte vollgelaufen

Hallo Zusammen,

die Festplatte in der VM OpenXChange/VMWare ist voll geleaufen. (UCS Managment System)

Ich habe die Festplatte schon in der VMWare Verwaltung vergrößert, leider wird die neue Größe nicht von der Linux Maschine übernommen.

Hat jemand eine Idee wieso? Wenn ja, wie vergrößer ich die Maschine?

Dateisystem 1K-Blöcke Benutzt Verfügbar Verw% Eingehängt auf
rootfs 29049840 27762476 0 100% /
udev 10240 0 10240 0% /dev
tmpfs 622536 14192 608344 3% /run
/dev/mapper/vg_ucs-rootfs 29049840 27762476 0 100% /
tmpfs 5120 0 5120 0% /run/lock
tmpfs 1452300 0 1452300 0% /run/shm
/dev/sda1 96990 42358 49413 47% /boot
tmpfs 1452300 32 1452268 1% /tmp


Vielen Dank im Voraus.
Alexo

Content-Key: 275173

Url: https://administrator.de/contentid/275173

Printed on: April 25, 2024 at 10:04 o'clock

Member: Dani
Dani Jun 20, 2015 at 16:17:10 (UTC)
Goto Top
Moin,
du musst die Festplatte natürlich unter Linux auch noch vergrößern (Klick).


Gruß,
Dani
Member: orcape
orcape Jun 20, 2015 at 16:19:43 (UTC)
Goto Top
Hi,
da wirst Du wohl nicht viele Möglichkeiten haben.
Bei der Erstellung einer VM hast Du beim Einrichten die Möglichkeit zu wählen, ob die Festplattengröße sich dynamisch anpasst.
Da hilft dann wohl nur Daten sichern und VM neu erstellen.
Gruß orcape
Member: alexo89
alexo89 Jun 20, 2015 updated at 16:22:27 (UTC)
Goto Top
Die Anleitung kann ich so nicht umsetzen.

root@mail:~# cd /var
root@mail:/var# ls -la /dev/disk/by-path |grep sdb
root@mail:/var#


nichts passiert..

Zu den zweiten Tipp.

Ich habe die Festplatte in VMWare schon deutlich vergrößert. (von 30 GB auf 128 GB)
Member: orcape
orcape Jun 20, 2015 at 16:36:43 (UTC)
Goto Top
root@mail:~# cd /var
root@mail:/var# ls -la /dev/disk/by-path |grep sdb
root@mail:/var#

...probiers mal so...

root@mail:~# cd /var
root@mail:/var# ls -la /dev/disk/by-path | grep sdb
root@mail:/var#
Member: alexo89
alexo89 Jun 20, 2015 updated at 16:56:52 (UTC)
Goto Top
Leider das gleiche Ergebnis

root@mail:~# cd /var
root@mail:/var# ls -la /dev/disk/by-path | grep sdb
root@mail:/var#

folgende Meldung

root@mail:~# fdisk -l | grep Disk
Disk /dev/mapper/vg_ucs-rootfs doesn't contain a valid partition table
Disk /dev/sda: 137.4 GB, 137438953472 bytes
Disk identifier: 0x000923dc
Disk /dev/mapper/vg_ucs-rootfs: 30.4 GB, 30358372352 bytes
Disk identifier: 0x00000000


Das muss doch irgendwie zu aktualisieren sein...
Member: aqui
aqui Jun 20, 2015 at 20:09:41 (UTC)
Goto Top
Member: alexo89
alexo89 Jun 21, 2015 updated at 10:05:10 (UTC)
Goto Top
habe ich auch schon probiert...

funktioniert leider auch nicht..

root@mail:~# resize2fs /dev/sda
resize2fs 1.42.5 (29-Jul-2012)
resize2fs: Das Gerät oder die Ressource ist belegt beim Versuch, /dev/sda zu öffnen
Kann keinen gültigen Dateisystem-Superblock finden.

kurzes Update

konnte die Platte mit gparted vergrößern...

Jetzt Startet jedoch die Univention UCS nicht mehr richtig.

Der Startbildschirm friert ein. Ich habe zwar die möglichkeit per SSH auf den Server zu zu greifen... kann aber kein Fehler feststellen.

root@mail:~# fdisk -l | grep Disk
Disk /dev/mapper/vg_ucs-rootfs doesn't contain a valid partition table
Disk /dev/sda: 137.4 GB, 137438953472 bytes
Disk identifier: 0x000923dc
Disk /dev/mapper/vg_ucs-rootfs: 136.3 GB, 136268742656 bytes
Disk identifier: 0x00000000


und


root@mail:~# df
Dateisystem 1K-Blöcke Benutzt Verfügbar Verw% Eingehängt auf
rootfs 130858500 27913264 97332304 23% /
udev 10240 0 10240 0% /dev
tmpfs 622536 168 622368 1% /run
/dev/mapper/vg_ucs-rootfs 130858500 27913264 97332304 23% /
tmpfs 5120 0 5120 0% /run/lock
tmpfs 1452300 0 1452300 0% /run/shm
/dev/sda1 96990 42358 49413 47% /boot


Die Disk wurde also von 30 auf 130 GB erhöht.

root@mail:~# resize2fs /dev/vg_ucs/rootfs
resize2fs 1.42.5 (29-Jul-2012)
Das Dateisystem ist schon 33268736 Blöcke groÃ. Nichts zu tun!

Hat jemand eine Idee warum das System nach einem neustart nun nicht mehr startet?
Member: Lochkartenstanzer
Lochkartenstanzer Jun 21, 2015 updated at 09:44:28 (UTC)
Goto Top
Zitat von @alexo89:

habe ich auch schon probiert...

funktioniert leider auch nicht..

root@mail:~# resize2fs /dev/sda
resize2fs 1.42.5 (29-Jul-2012)
resize2fs: Das Gerät oder die Ressource ist belegt beim Versuch, /dev/sda zu öffnen
Kann keinen gültigen Dateisystem-Superblock finden.

Villeicht mal die VM mit knoppix o.ä. booten udn dann resizen, wenn das System "offline" ist?

filesysteme zu resizen, während sie gemauntet oder sonstwie in benutztung sind, ist wie einenen Ast abzusägen, auf dem man noch sitzt.

lsk
Member: alexo89
alexo89 Jun 21, 2015 updated at 10:23:44 (UTC)
Goto Top
kurzes Update

konnte die Platte mit gparted vergrößern...

Jetzt Startet jedoch die Univention UCS nicht mehr richtig.

Der Startbildschirm friert ein. Ich habe zwar die möglichkeit per SSH auf den Server zu zu greifen... kann aber kein Fehler feststellen.

root@mail:~# fdisk -l | grep Disk
Disk /dev/mapper/vg_ucs-rootfs doesn't contain a valid partition table
Disk /dev/sda: 137.4 GB, 137438953472 bytes
Disk identifier: 0x000923dc
Disk /dev/mapper/vg_ucs-rootfs: 136.3 GB, 136268742656 bytes
Disk identifier: 0x00000000


und


root@mail:~# df
Dateisystem 1K-Blöcke Benutzt Verfügbar Verw% Eingehängt auf
rootfs 130858500 27913264 97332304 23% /
udev 10240 0 10240 0% /dev
tmpfs 622536 168 622368 1% /run
/dev/mapper/vg_ucs-rootfs 130858500 27913264 97332304 23% /
tmpfs 5120 0 5120 0% /run/lock
tmpfs 1452300 0 1452300 0% /run/shm
/dev/sda1 96990 42358 49413 47% /boot


Die Disk wurde also von 30 auf 130 GB erhöht.

root@mail:~# resize2fs /dev/vg_ucs/rootfs
resize2fs 1.42.5 (29-Jul-2012)
Das Dateisystem ist schon 33268736 Blöcke groÃ. Nichts zu tun!

Hat jemand eine Idee warum das System nach einem neustart nun nicht mehr startet?

"maximal mount count reached running e2fsck is recommended"
Member: aqui
aqui Jun 21, 2015 updated at 15:37:29 (UTC)
Goto Top
funktioniert leider auch nicht..
Kaum zu glauben das eine originale Anleitung von VmWare nicht funktioniert. Das die auf ihren eigenen Seiten Unsinn posten im Technischen Support kann man wohl eher bezweifeln.
Da solltest du dich mal selber fragen was bei dir nicht funktioniert ?!
Member: alexo89
alexo89 Jun 22, 2015 at 05:10:09 (UTC)
Goto Top
Wie soll ich vorgehen.

Ist Zustand:

Dateisystem 1K-Blöcke Benutzt Verfügbar Verw% Eingehängt auf
rootfs 130858500 31315260 93930308 26% /
udev 10240 0 10240 0% /dev
tmpfs 622536 172 622364 1% /run
/dev/mapper/vg_ucs-rootfs 130858500 31315260 93930308 26% /
tmpfs 5120 0 5120 0% /run/lock
tmpfs 1452300 0 1452300 0% /run/shm
/dev/sda1 96990 42358 49413 47% /boot

Vorgaben von VMWare


Increase the size of the virtual disk associated with the volume from the Virtual Infrastructure Client.
In the Linux virtual machine, reboot to see the larger disk.
Increase the size of the Linux partition to use the new space. If there is a swap and/or extended partition after it, you can unmount swap with:

          1. swapoff /dev/sdXY

          This removes the extended partition temporarily. You can do this by going to fdisk /dev/sdX , delete Linux partition (type 83), recreate a new partition larger in size leaving space for the swap partition, and quit.

          Reboot the virtual machine again to see the new partition table.
          Run this command to increase the filesystem size to use the full partition space:

                  1. resize2fs /dev/sdXY

                  The X indicates the device number. The Y indicates the Linux partition.

                  Recreate a swap partition, if you originally had one.

                  To recreate the swap partition:
                  Reboot to see the partition table.
                  Run the commands:

                                  1. mkswap /dev/sdXY
                                  2. swapon /dev/sdXY

                  Where sdXY is the swap partition.

                  You might want to change the swap partition entry in /etc/fstab if the device name/number changed.

                  Beschreib mir bitte Schritt für Schritt wie ich vorgehen muss
Mitglied: 119944
119944 Jun 22, 2015 at 07:33:08 (UTC)
Goto Top
Moin,

ist das dein Ernst? Du betreibst einen Linux Server und hast selber null Ahnung davon?
Eine Partition zu vergrößern ist ja wohl das kleinste Problem...

Da du LVM benutzt musst du etwas anders vorgehen als die Anleitung von VMWare:
https://www.thomas-krenn.com/de/wiki/LVM_vergr%C3%B6%C3%9Fern

Wie immer gilt:
Teste sowas doch vorher in einer VM bevor du ans Livesystem gehst!

VG
Val
Member: alexo89
alexo89 Jun 22, 2015 at 13:53:03 (UTC)
Goto Top
hatte auch ein Snapshot.....

Und es läuft....

Und es lag nicht an der Vergrößerung...

Dadurch, dass die Platte vollgelaufen ist waren teilweise die Postfächer defekt!

Habe diese repariert und nun startet das System Problemlos.

Danke für die Geduld und eure Motivation. @ Valexus & aqui