[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: LV vergrössern



Hallöchen


So ...mit ein bisschen Hirnschmalz hab ich eine bessere Lösung als das
Kopierte aus den
Foren :-)
Und geht auch schneller !!!

Das ganze über Grub machen...so bist du nicht vom Bios abhängig


Also:

1) Live Debian cd downloaden ( zb. debian-live-7.6.0-i386-standard.iso)
2) Ich hab die ISO  direkt in die /boot Partition gepackt. Wenn es dir
Spaß macht, kannst du auch
einen extra Ordner anlegen ( natürlich in /boot!!!)
3) Mit Editor die /etc/grub.d/40_costum öffnen
4) trage hier folgendes ein:

#Menuentry nur für dich
menuentry "ISOLOAD" {
        set isofile="/boot/debian-live-7.6.0-i386-standard.iso"
        loopback loop (hd0,1)$isofile
        linux (loop)/live/vmlinuz1 boot=live iso-scan/filename=$isofile
noprompt noeject
         initrd (loop)/live/initrd1.img
 }

5) update-grub
6) reboot
7) /root Partition bearbeiten, da ja logisch NICHT GEMOUNTET!!!!!!
8) sich freuen....

Liebe grüße
Alex
Am 06.08.2014 16:08, schrieb alex bachmer:
> Hoffe dir hilft vielleicht das weiter:
>
> http://www.ivarch.com/blogs/oss/2007/01/resize-a-live-root-fs-a-howto.shtml
>
> oder
> <zitat>
>
> Debian Squeeze AMD64 with LVM2 on ext3 /root partiton that was full.
> Thanks for your suggestions and links. I used this link as well,
> http://www.radioprosciutto.com/node/7, but did not unmount my root
> partition after reading the replies. No problems were encountered
> increasing the /root partition size while it was mounted. I followed the
> steps below, but did not perform steps 4, 5, and 7.
>
> 1. Extend logical volume: root
> #lvextend -L +5G /dev/MU/root
>
> 2. Verify
> #lvdisplay /dev/MU/root
>
> 3. Compare filesystem
> #df -h /root
>
> 4. Unmount not needed
> /* #exportfs -u 127.0.0.1:/root */
> /* #umount /root */
>
> 5. Check filesystem not needed
> /* #e2fsck -f /dev/mapper/MU-root */
>
> 6. Resize filesystem
> #resize2fs -p /dev/mapper/MU/root
>
> 7. Mount not needed
> /* #mount /root */
>
> 8. Verify filesystem
> #df -h /root
> </zitat>
>
> Grüße Alex
>
> Am 06.08.2014 14:55, schrieb Siegfrid Brandstätter:
>> Am Mittwoch, 6. August 2014 schrieb Siegfrid Brandstätter:
>>> Am Mittwoch, 6. August 2014 schrieb Siegfrid Brandstätter:
>>>> Hallo Alexander,
>>>>
>>>> Am Mittwoch, 6. August 2014 schrieb alexander bachmer:
>>>>> Am 06.08.2014 06:25, schrieb Siegfrid Brandstätter:
>>>>>> Hallo,
>>>>>>
>>>>>> beim vergrössern eines LV`s habe ich leider ein Problem. Leider ist
>>>>>> es mir nicht möglich diese Aktion über ein zweites installiertes
>>>>>> System oder über eine Live CD durchzuführen. Das CD-Laufwerk ist
>>>>>> defekt, ein Usb Stick wird nicht als bootfähiges Medium vom Bios
>>>>>> anerkannt und lässt sich auch nicht ändern.
>>>>>>
>>>>>>
>>>>>>
>>>>>> Kann ich ein LV in diesem Fall die root Partition auch ohne obiger
>>>>>> Aktion umounten und danach vergrössern?
>>>>> Hi...
>>>>>
>>>>> Klar..unmounten in init 1 bzw rescuemodus..
>>>> Genau so habe ich es gemacht. Gebootet im rescuemodus. Aber mit obigen
>>>> Erfolg. Was kann dann der Fehler sein? Laut:
>>>> http://manpages.ubuntu.com/manpages/dapper/man8/lvextend.8lvm-10.html
>>>> steht unter:
>>>> DIAGNOSTICS
>>>> lvextend returns an exit code of 0 for success or > 0 for error:
>>>> 5  logical volume not active
>>>>
>>>> Aber mit umount muss ich ja zuvor aushängen, selbst wenn ich versuche es
>>>> zu mounten und den Versuch starte kommt die Fehler Meldung.
>>> Was ich noch vergessen habe, wenn ich "mount" frage nach dem umount
>>> /dev/mapper/stable-root wird mir diese angezeigt.
>> Noch was:
>> Bei umount /dev/mapper/stable-root  erscheint die Meldung:
>> [ 172. .....] Ext4-fs    (dm-0): re-mounted. Opts: (null)
>>
>>
>>
>


Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: