Fehler im Filesystem nach LV verkleinern

09/02/2014 - 16:10 von Siegfrid Brandstätter | Report spam

Hallo,
bei einer Verkleinerung eines LV von 60 auf 50 G machte ich was falsch,
zumindest erhalte ich nun folgende Meldungen:

Das ganze ist auf einem Wheezy passiert mit Ext4 als Filesystem.


Beim Versuch das LV zu mounten kommt nun diese Meldung:

# mount /Filme/
mount: wrong fs type, bad option, bad superblock on /dev/mapper/xvt1-
Filme,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so

Beim Booten kommt diese Meldung:

File system check failed. A log is being saved in /var/log/fsck/checkfs
if that location is writable. Please repair the file system manually.
... failed!

aus /var/log/fsck/checkfs:

/dev/mapper/xvt1-Filme: The filesystem size (according to the
superblock) is 15728640 blocks
The physical size of the device is 13107200 blocks
Either the superblock or the partition table is likely to be corrupt!


/dev/mapper/xvt1-Filme: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.
(i.e., without -a or -p options)


Meine Versuche waren:
fsck -L /dev/mapper/xvt1-Filme und alle anderen Optionen so wie mit
"-c,-f, -v,-b, -B, -j, -l", aber alles ohne Erfolg.



Was hatte ich gemacht um zu verkleinern:

Habe das zweite Debian am Rechner gebootet und von dort gearbeitet, aber
leider hat dies genau so zugriff auf alle Partitionen wie das andere.


root@xvt1:/home/sigi# umount /dev/mapper/xvt1-Filme

root@xvt1:/home/sigi# e2fsck -f /dev/mapper/xvt1-Filme

root@xvt1:/home/sigi# resize2fs -P /dev/mapper/xvt1-Filme
resize2fs 1.41.12 (17-May-2010)


# lvreduce -L 50G /dev/mapper/xvt1-Filme
WARNING: Reducing active logical volume to 50,00 GiB
THIS MAY DESTROY YOUR DATA (filesystem etc.)
Do you really want to reduce Filme? [y/n]: Y
Reducing logical volume Filme to 50,00 GiB
Logical volume Filme successfully resized

Leider habe ich diese Meldung nicht genug ernst genommen ;-( wie es
scheint.

# lvdisplay

Alter Status vor der Aktion:
Logical volume
LV Name /dev/xvt1/Filme
VG Name xvt1
LV UUID MPSjV9-Tbwk-rBdy-Uxs6-Tg0k-z9oh-sd9VCF
LV Write Access read/write
LV Status available
# open 0
LV Size 60,00 GiB
Current LE 15360
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 254:10

neuer Status nach der Aktion:
root@xvt1:/home/sigi# lvdisplay /dev/mapper/xvt1-Filme
Logical volume
LV Name /dev/xvt1/Filme
VG Name xvt1
LV UUID MPSjV9-Tbwk-rBdy-Uxs6-Tg0k-z9oh-sd9VCF
LV Write Access read/write
LV Status available
# open 0
LV Size 50,00 GiB
Current LE 12800
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 254:10


Hoffe ich kann noch was retten, aber leider finde ich nicht raus wie. Es
würde mich sehr freuen wenn mir dies wer von Euch sagen könnte, Danke
schon im voraus und
Einen Schönen Gruß,

Sigi


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/str...">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'DejaVu Sans Mono'; font-size:9pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Hallo,</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">bei einer Verkleinerung eines LV von 60 auf 50 G machte ich was falsch, zumindest erhalte ich nun folgende Meldungen:</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nbsp;</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Das ganze ist auf einem Wheezy passiert mit Ext4 als Filesystem.</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nbsp;</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nbsp;</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Beim Versuch das LV zu mounten kommt nun diese Meldung:</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nbsp;</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"># mount /Filme/</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">mount: wrong fs type, bad option, bad superblock on /dev/mapper/xvt1-Filme,</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"> missing codepage or helper program, or other error</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"> In some cases useful info is found in syslog - try</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"> dmesg | tail or so</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nbsp;</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Beim Booten kommt diese Meldung:</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nbsp;</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">File system check failed. A log is being saved in /var/log/fsck/checkfs if that location is writable. Please repair the file system manually. ... failed!</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nbsp;</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">aus /var/log/fsck/checkfs:</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nbsp;</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">/dev/mapper/xvt1-Filme: The filesystem size (according to the superblock) is 15728640 blocks</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">The physical size of the device is 13107200 blocks</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Either the superblock or the partition table is likely to be corrupt!</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nbsp;</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nbsp;</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">/dev/mapper/xvt1-Filme: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"> (i.e., without -a or -p options)</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nbsp;</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nbsp;</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Meine Versuche waren:</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">fsck -L /dev/mapper/xvt1-Filme und alle anderen Optionen so wie mit </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&quot;-c,-f, -v,-b, -B, -j, -l&quot;, aber alles ohne Erfolg.</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nbsp;</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nbsp;</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nbsp;</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Was hatte ich gemacht um zu verkleinern:</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nbsp;</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Habe das zweite Debian am Rechner gebootet und von dort gearbeitet, aber leider hat dies genau so zugriff auf alle Partitionen wie das andere.</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nbsp;</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nbsp;</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">root@xvt1:/home/sigi# umount /dev/mapper/xvt1-Filme</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nbsp;</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">root@xvt1:/home/sigi# e2fsck -f /dev/mapper/xvt1-Filme</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nbsp;</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">root@xvt1:/home/sigi# resize2fs -P /dev/mapper/xvt1-Filme</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">resize2fs 1.41.12 (17-May-2010)</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nbsp;</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nbsp;</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"># lvreduce -L 50G /dev/mapper/xvt1-Filme</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"> WARNING: Reducing active logical volume to 50,00 GiB</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"> THIS MAY DESTROY YOUR DATA (filesystem etc.) </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"> Do you really want to reduce Filme? [y/n]: Y</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"> Reducing logical volume Filme to 50,00 GiB</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"> Logical volume Filme successfully resized</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nbsp;</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Leider habe ich diese Meldung nicht genug ernst genommen ;-( wie es scheint.</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nbsp;</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"># lvdisplay </p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nbsp;</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Alter Status vor der Aktion:</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"> Logical volume </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"> LV Name /dev/xvt1/Filme</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"> VG Name xvt1</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"> LV UUID MPSjV9-Tbwk-rBdy-Uxs6-Tg0k-z9oh-sd9VCF</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"> LV Write Access read/write</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"> LV Status available</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"> # open 0</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"> LV Size 60,00 GiB</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"> Current LE 15360</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"> Segments 1</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"> Allocation inherit</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"> Read ahead sectors auto</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"> - currently set to 256</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"> Block device 254:10</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nbsp;</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">neuer Status nach der Aktion:</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">root@xvt1:/home/sigi# lvdisplay /dev/mapper/xvt1-Filme</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"> Logical volume </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"> LV Name /dev/xvt1/Filme</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"> VG Name xvt1</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"> LV UUID MPSjV9-Tbwk-rBdy-Uxs6-Tg0k-z9oh-sd9VCF</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"> LV Write Access read/write</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"> LV Status available</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"> # open 0</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"> LV Size 50,00 GiB</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"> Current LE 12800</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"> Segments 1</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"> Allocation inherit</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"> Read ahead sectors auto</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"> - currently set to 256</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"> Block device 254:10</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nbsp;</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nbsp;</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Hoffe ich kann noch was retten, aber leider finde ich nicht raus wie. Es würde mich sehr freuen wenn mir dies wer von Euch sagen könnte, Danke schon im voraus und </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Einen Schönen Gruß,</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nbsp;</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Sigi</p></body></html>


Zum AUSTRAGEN schicken Sie eine Mail an debian-user-german-REQUEST@lists.debian.org
mit dem Subject "unsubscribe". Probleme? Mail an listmaster@lists.debian.org (engl)
Archive: http://lists.debian.org/201402091504.46754.debian@o-h-z.de
 

Lesen sie die antworten

#1 Siegfrid Brandstätter
09/02/2014 - 17:50 | Warnen spam
Hallo Andreas,
Am Sonntag, 9. Februar 2014 schrieb Andreas:
Am 09.02.2014 16:04, schrieb Siegfrid Brandstàtter:
> Hallo,
>
> bei einer Verkleinerung eines LV von 60 auf 50 G machte ich was
> falsch, zumindest erhalte ich nun folgende Meldungen:
>
> Das ganze ist auf einem Wheezy passiert mit Ext4 als Filesystem.
>
> Beim Versuch das LV zu mounten kommt nun diese Meldung:
>
> # mount /Filme/
>
> mount: wrong fs type, bad option, bad superblock on
> /dev/mapper/xvt1-Filme,
>
> missing codepage or helper program, or other error
>
> In some cases useful info is found in syslog - try
>
> dmesg | tail or so
>
> Beim Booten kommt diese Meldung:
>
> File system check failed. A log is being saved in
> /var/log/fsck/checkfs if that location is writable. Please repair
> the file system manually. ... failed!
>
> aus /var/log/fsck/checkfs:
>
> /dev/mapper/xvt1-Filme: The filesystem size (according to the
> superblock) is 15728640 blocks
>
> The physical size of the device is 13107200 blocks
>
> Either the superblock or the partition table is likely to be
> corrupt!
>
> /dev/mapper/xvt1-Filme: UNEXPECTED INCONSISTENCY; RUN fsck
> MANUALLY.
>
> (i.e., without -a or -p options)
>
> Meine Versuche waren:
>
> fsck -L /dev/mapper/xvt1-Filme und alle anderen Optionen so wie mit
>
> "-c,-f, -v,-b, -B, -j, -l", aber alles ohne Erfolg.
>
> Was hatte ich gemacht um zu verkleinern:
>
> Habe das zweite Debian am Rechner gebootet und von dort gearbeitet,
> aber leider hat dies genau so zugriff auf alle Partitionen wie das
> andere.
>
> :/home/sigi# umount /dev/mapper/xvt1-Filme
>
> :/home/sigi# e2fsck -f /dev/mapper/xvt1-Filme
>
> :/home/sigi# resize2fs -P /dev/mapper/xvt1-Filme
>
> resize2fs 1.41.12 (17-May-2010)
>
> # lvreduce -L 50G /dev/mapper/xvt1-Filme
>
> WARNING: Reducing active logical volume to 50,00 GiB
>
> THIS MAY DESTROY YOUR DATA (filesystem etc.)
>
> Do you really want to reduce Filme? [y/n]: Y
>
> Reducing logical volume Filme to 50,00 GiB
>
> Logical volume Filme successfully resized
>
> Leider habe ich diese Meldung nicht genug ernst genommen ;-( wie es
> scheint.
>
> # lvdisplay
>
> Alter Status vor der Aktion:
>
> Logical volume
>
> LV Name /dev/xvt1/Filme
>
> VG Name xvt1
>
> LV UUID MPSjV9-Tbwk-rBdy-Uxs6-Tg0k-z9oh-sd9VCF
>
> LV Write Access read/write
>
> LV Status available
>
> # open 0
>
> LV Size 60,00 GiB
>
> Current LE 15360

>
> neuer Status nach der Aktion:
>
> :/home/sigi# lvdisplay /dev/mapper/xvt1-Filme
>
> Logical volume
>
> LV Name /dev/xvt1/Filme
>
> VG Name xvt1
>
> LV UUID MPSjV9-Tbwk-rBdy-Uxs6-Tg0k-z9oh-sd9VCF
>
> LV Write Access read/write
>
> LV Status available
>
> # open 0
>
> LV Size 50,00 GiB

Current LE 12800

Hallo

Du hast vergessen beim resize2fs-Befehl die neue Zielgröße anzugeben.
Ohne diese Angabe wird das Dateisystem immer auf die im LV maximal
verfügbare Größe gebracht. Du könntest versuchen, das LV nochmal auf
etwa 60-61G zu vergrößern. Falls du noch nichts anderes auf der
Platte gmacht hast könnte es klappen. Dannsolltest du allerdings ein
Backup der Daten machen bevor es wieder ans verkleinern geht.



Danke für die Hilfe!
Das wird nur nicht gehen da ich den freien Platz schon vergeben habe.
Aber ein versuch ergibt folgendes:

# resize2fs -P /dev/mapper/xvt1-Filme 50G
resize2fs 1.41.12 (17-May-2010)
Bitte zuerst »e2fsck -f /dev/mapper/xvt1-Filme« laufen lassen.

:/home/sigi# e2fsck -f /dev/mapper/xvt1-Filme
e2fsck 1.41.12 (17-May-2010)
Die Dateisystem Größe ( laut SuperBlock) ist 15728640 Blocks
Die physikalische Größe von Geràt ist 13107200 Blocks
Entweder der SuperBlock oder die Partionstabelle ist beschàdigt!
Abbrechen<j>? ja

Im Notfall falls ich die Daten nicht mehr zurück bekomme, kann ich
dieses
"/dev/mapper/xvt1-Filme"
löschen und neu vergeben für was anderes ohne damit weitere Risiken
einzugehen?

Einen lieben Gruss,

Sigi


Zum AUSTRAGEN schicken Sie eine Mail an
mit dem Subject "unsubscribe". Probleme? Mail an (engl)
Archive: http://lists.debian.org/

Ähnliche fragen